bead9a653a957a894365c9155b18615a88c2cb91
[gnulib.git] / ChangeLog
1 2012-04-22  Bruno Haible  <bruno@clisp.org>
2
3         rint* tests: Avoid gcc warnings.
4         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
5         * tests/test-rintf.c (INFINITY, NAN): Likewise.
6         * tests/test-rintl.c (INFINITY, NAN): Likewise.
7
8 2012-04-21  Bruno Haible  <bruno@clisp.org>
9
10         users.txt: Update.
11         * users.txt: Add freedink, wdiff. Update URLs for projects that have
12         switched from CVS to git, bzr, or svn.
13
14 2012-04-21  Bruno Haible  <bruno@clisp.org>
15
16         Large File Support for native Windows platforms.
17
18         * m4/largefile.m4 (gl_LARGEFILE): New macro.
19         * modules/largefile (configure.ac): Require gl_LARGEFILE.
20
21         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
22         type.
23         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
24         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
25         * doc/posix-headers/sys_types.texi: Mention the effect of the
26         'largefile' module.
27
28         * lib/fcntl.in.h: Add comments about off_t.
29         * modules/fcntl-h (Depends-on): Add sys_types.
30
31         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
32         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
33         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
34         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
35         * modules/unistd (Depends-on): Add sys_types.
36         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
37
38         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
39         instead of lseek.
40         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
41         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
42         * modules/lseek (Depends-on): Add sys_types.
43
44         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
45         msvc-nothrow.h.
46         (SetFileSize): New function.
47         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
48         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
49         if Large File Support is requested.
50         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
51         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
52
53         * lib/stdio.in.h: Add comments about off_t.
54         * modules/stdio (Depends-on): Add sys_types.
55
56         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
57         instead of ftello.
58         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
59         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
60         (gl_PREREQ_FTELLO): New macro.
61         * modules/ftello (Depends-on): Add sys_types.
62         (configure.ac): Incoke gl_PREREQ_FTELLO.
63
64         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
65         instead of fseeko.
66         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
67         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
68         (gl_PREREQ_FSEEKO): New macro.
69         * modules/fseeko (Depends-on): Add sys_types.
70         (configure.ac): Invoke gl_PREREQ_FSEEKO.
71
72         * lib/sys_stat.in.h: Add comments about off_t.
73         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
74         64-bit integer for st_size in 'struct stat'.
75         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
76         Define _GL_WINDOWS_64_BIT_ST_SIZE.
77         * modules/sys_stat (Depends-on): Add sys_types.
78         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
79
80         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
81         instead of stat or _stat.
82
83         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
84         'struct _stati64' instead of fstat and 'struct stat'.
85         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
86         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
87
88         Reported by Ray Satiro <raysatiro@yahoo.com>.
89
90 2012-04-19  Eric Blake  <eblake@redhat.com>
91
92         bootstrap: accommodate older libtool
93         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
94         Reported by Daniel P. Berrange.
95
96 2012-04-19  Jim Meyering  <meyering@redhat.com>
97
98         announce-gen: avoid failure due to lack of Digest::SHA1
99         Even with the preferred Digest::SHA available, this script
100         would fail when the backup module, Digest::SHA1, was not installed.
101         * build-aux/announce-gen: Quote the conditional use of "use".
102         Reported by Reuben Thomas in:
103         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
104
105         bootstrap: don't let a user's CDPATH setting affect this script
106         When CDPATH is set, cd will sometimes generate output.
107         When "cd" is run in a subshell whose output matters, that
108         surprising-to-some output can cause malfunction.
109         Unsetting CDPATH turns off this shell "feature."
110         * build-aux/bootstrap (CDPATH): Unset.
111         Reported by Reuben Thomas in:
112         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
113         and inspired by his patch here:
114         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
115
116 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
117         and Jim Meyering  <meyering@redhat.com>
118
119         maint.mk: catch "see @xref{}" and similar
120         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
121         prohibit "See also @xref{", "Also see @pxref{", and similar.
122
123 2012-04-16  Jim Meyering  <meyering@redhat.com>
124
125         bootstrap: really use gnulib's po/Makefile.in.in
126         * build-aux/bootstrap: Correct the source file name in previous change.
127         Reported by Akim Demaille.
128
129         configmake: correct minor inconsistency in Makefile rule
130         * modules/configmake (Makefile.am): All other rules like this one
131         run the final "mv -f ..." in the same backslash-continued command
132         as the one that does everything else.  This one put the mv -f ...
133         command on a separate, non-backslash-continued line.
134         Make it like the others.
135
136         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
137         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
138         the one from gettext.  Reported by Akim Demaille.
139
140 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
141
142         Fix recursion of install-* into po directories.
143         Bison's install-pdf bug reported by Hans Aberg at
144         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
145         * build-aux/po/Makefile.in.in (install-dvi, install-html)
146         (install-info, install-pdf, install-ps): New targets.
147
148 2012-04-16  Jim Meyering  <meyering@redhat.com>
149
150         maint: avoid spurious "make sc_maint" failure
151         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
152         exempt all *.class file names, for lib/javaversion.class.
153
154 2012-04-15  Bruno Haible  <bruno@clisp.org>
155
156         lseek: Make configure test independent of environment.
157         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
158         Windows, we know that lseek() on pipes is broken; skip the runtime
159         test.
160
161 2012-04-14  Bruno Haible  <bruno@clisp.org>
162
163         stat: Bypass buggy override in mingw64.
164         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
165         * lib/stat.c (stat) [mingw64]: Define to _stat.
166         * doc/posix-functions/stat.texi: Mention mingw64 bug.
167
168 2012-04-14  Bruno Haible  <bruno@clisp.org>
169
170         pathmax: Fix compilation error on MSVC 9.
171         * modules/pathmax (Depends-on): Add unistd.
172
173 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
174
175         README: document pointer comparison assumption
176         * README (Portability guidelines): Document assumption about
177         pointer comparisons, in response to a recent bug-gnulib comment by
178         Jeffrey Kegler.
179
180 2012-04-12  Bruno Haible  <bruno@clisp.org>
181
182         Tests for module 'getrusage'.
183         * modules/getrusage-tests: New file.
184         * tests/test-getrusage.c: New file.
185
186         New module 'getrusage'.
187         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
188         warn-on-use.h.
189         (getrusage): New declaration.
190         * lib/getrusage.c: New file.
191         * m4/getrusage.m4: New file.
192         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
193         is declared.
194         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
195         HAVE_GETRUSAGE.
196         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
197         snippet/c++defs, snippet/warn-on-use.
198         (Makefile.am): Update generation of sys/resource.h. Substitute
199         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
200         * modules/getrusage: New file.
201         * doc/posix-functions/getrusage.texi: Mention the new module.
202
203 2012-04-12  Bruno Haible  <bruno@clisp.org>
204
205         Tests for module 'sys_resource'.
206         * modules/sys_resource-tests: New file.
207         * tests/test-sys_resource.c: New file.
208
209         New module 'sys_resource'.
210         * lib/sys_resource.in.h: New file.
211         * m4/sys_resource_h.m4: New file.
212         * modules/sys_resource: New file.
213         * doc/posix-headers/sys_resource.texi: Mention the new module.
214
215 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
216
217         ioctl: Fix compilation error on mingw.
218         * lib/ioctl.c: Include <windows.h>.
219         Also reported by Ray Satiro <raysatiro@yahoo.com>.
220
221 2012-04-04  Jim Meyering  <meyering@redhat.com>
222
223         regex: correct #pragma guard expression
224         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
225         not 4.3.  Correct its cpp guard expression.
226
227 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
228
229         regex: remove unnecessary type punning
230         Problem reported by Vladimir Serbinenko in
231         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
232         * lib/regex.h (struct re_pattern_buffer): Change the type of
233         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
234         Fix comment to match code.
235         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
236         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
237         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
238         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
239         (set_regs):
240         Omit no-longer-necessary casts.
241
242 2012-04-03  Bruno Haible  <bruno@clisp.org>
243
244         Tests for module 'ilogbl'.
245         * modules/ilogbl-tests: New file.
246         * tests/test-ilogbl.c: New file.
247
248         New module 'ilogbl'.
249         * lib/math.in.h (ilogbl): New declaration.
250         * lib/ilogbl.c: New file.
251         * m4/ilogbl.m4: New file.
252         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
253         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
254         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
255         Split sed invocation, to avoid the limit of 100 substitutions of
256         HP-UX 'sed'.
257         * modules/ilogbl: New file.
258         * tests/test-math-c++.cc: Check the declaration of ilogbl.
259         * doc/posix-functions/ilogbl.texi: Mention the new module.
260
261 2012-04-03  Bruno Haible  <bruno@clisp.org>
262
263         Tests for module 'ilogbf'.
264         * modules/ilogbf-tests: New file.
265         * tests/test-ilogbf.c: New file.
266
267         New module 'ilogbf'.
268         * lib/math.in.h (ilogbf): New declaration.
269         * lib/ilogbf.c: New file.
270         * m4/ilogbf.m4: New file.
271         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
272         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
273         REPLACE_ILOGBF.
274         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
275         REPLACE_ILOGBF.
276         * modules/ilogbf: New file.
277         * tests/test-math-c++.cc: Check the declaration of ilogbf.
278         * doc/posix-functions/ilogbf.texi: Mention the new module.
279
280 2012-04-03  Bruno Haible  <bruno@clisp.org>
281
282         Tests for module 'ilogb'.
283         * modules/ilogb-tests: New file.
284         * tests/test-ilogb.c: New file.
285         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
286         tests/test-logb-ieee.h.
287
288         New module 'ilogb'.
289         * lib/math.in.h (ilogb): New declaration.
290         * lib/ilogb.c: New file.
291         * m4/ilogb.m4: New file.
292         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
293         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
294         REPLACE_ILOGB.
295         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
296         REPLACE_ILOGB.
297         * modules/ilogb: New file.
298         * tests/test-math-c++.cc: Check the declaration of ilogb.
299         * doc/posix-functions/ilogb.texi: Mention the new module.
300
301 2012-04-03  Bruno Haible  <bruno@clisp.org>
302
303         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
304         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
305         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
306         (main): Check their values.
307         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
308         problem.
309
310 2012-04-03  Bruno Haible  <bruno@clisp.org>
311
312         Tests for module 'logbl-ieee'.
313         * modules/logbl-ieee-tests: New file.
314         * tests/test-logbl-ieee.c: New file.
315
316         New module 'logbl-ieee'.
317         * modules/logbl-ieee: New file.
318
319         Tests for module 'logb-ieee'.
320         * modules/logb-ieee-tests: New file.
321         * tests/test-logb-ieee.c: New file.
322
323         New module 'logb-ieee'.
324         * modules/logb-ieee: New file.
325
326         Tests for module 'logbf-ieee'.
327         * modules/logbf-ieee-tests: New file.
328         * tests/test-logbf-ieee.c: New file.
329         * tests/test-logb-ieee.h: New file.
330
331         New module 'logbf-ieee'.
332         * modules/logbf-ieee: New file.
333
334 2012-04-03  Bruno Haible  <bruno@clisp.org>
335
336         Tests for module 'logbl'.
337         * modules/logbl-tests: New file.
338         * tests/test-logbl.c: New file.
339
340         New module 'logbl'.
341         * lib/math.in.h (logbl): New declaration.
342         * lib/logbl.c: New file.
343         * m4/logbl.m4: New file.
344         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
345         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
346         REPLACE_LOGBL.
347         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
348         REPLACE_LOGBL.
349         * modules/logbl: New file.
350         * tests/test-math-c++.cc: Check the declaration of logbl.
351         * doc/posix-functions/logbl.texi: Mention the new module.
352
353 2012-04-02  Bruno Haible  <bruno@clisp.org>
354
355         Tests for module 'logbf'.
356         * modules/logbf-tests: New file.
357         * tests/test-logbf.c: New file.
358
359         New module 'logbf'.
360         * lib/math.in.h (logbf): New declaration.
361         * lib/logbf.c: New file.
362         * m4/logbf.m4: New file.
363         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
364         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
365         REPLACE_LOGBF.
366         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
367         REPLACE_LOGBF.
368         * modules/logbf: New file.
369         * tests/test-math-c++.cc: Check the declaration of logbf.
370         * doc/posix-functions/logbf.texi: Mention the new module.
371
372 2012-04-02  Bruno Haible  <bruno@clisp.org>
373
374         logb tests: More tests.
375         * tests/test-logb.h: New file, based on tests/test-logb.c and
376         tests/test-frexp.h.
377         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
378         (main): Just invoke test_function.
379         * modules/logb-tests (Files): Add tests/test-logb.h,
380         tests/minus-zero.h, tests/randomd.c.
381         (Makefile.am): Add randomd.c to test_logb_SOURCES.
382
383         logb: Provide replacement and workarounds.
384         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
385         is 1.
386         * lib/logb.c: New file.
387         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
388         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
389         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
390         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
391         * modules/logb (Files): Add lib/logb.c.
392         (Depends-on): Add isfinite, frexp, isnand.
393         (configure.ac): Compile the replacement code logb.c if needed.
394         * tests/test-math-c++.cc: Check the declaration of logb.
395         * doc/posix-functions/logb.texi: Mention the replacement and the bug
396         with subnormal numbers.
397
398 2012-04-02  Bruno Haible  <bruno@clisp.org>
399
400         log10* tests: Speed up.
401         * tests/test-log10.h (test_function): Reduce amount of random numbers
402         to test.
403
404 2012-04-01  Bruno Haible  <bruno@clisp.org>
405
406         logf-ieee: Fix test whether logf works.
407         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
408
409 2012-04-01  Bruno Haible  <bruno@clisp.org>
410
411         log10l: Work around log10l-ieee test failure on IRIX 6.5.
412         * lib/log10l.c: Include <float.h>
413         (log10l): On IRIX, normalize the +Infinity value.
414         * modules/log10l (Depends-on): Add 'float'.
415         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
416         +Infinity.
417
418         log10f-ieee: Work around test failure on NetBSD 5.1.
419         * m4/log10f-ieee.m4: New file.
420         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
421         test whether log10f works with a negative argument. Replace it if not.
422         * lib/log10f.c (log10f): For negative arguments, return NaN.
423         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
424         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
425         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
426
427         log10f-ieee: Work around test failure on Solaris 9.
428         * modules/log10f-ieee (Depends-on): Add log10-ieee.
429         (configure.ac): Require gl_FUNC_LOG10F.
430
431         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
432         * m4/log10-ieee.m4: New file.
433         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
434         whether log10 works with a negative argument. Replace it if not.
435         * lib/log10.c (log10): For negative arguments, return NaN.
436         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
437         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
438         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
439
440         Tests for module 'log10l-ieee'.
441         * modules/log10l-ieee-tests: New file.
442         * tests/test-log10l-ieee.c: New file.
443
444         New module 'log10l-ieee'.
445         * modules/log10l-ieee: New file.
446
447         Tests for module 'log10-ieee'.
448         * modules/log10-ieee-tests: New file.
449         * tests/test-log10-ieee.c: New file.
450
451         New module 'log10-ieee'.
452         * modules/log10-ieee: New file.
453
454         Tests for module 'log10f-ieee'.
455         * modules/log10f-ieee-tests: New file.
456         * tests/test-log10f-ieee.c: New file.
457         * tests/test-log10-ieee.h: New file.
458
459         New module 'log10f-ieee'.
460         * modules/log10f-ieee: New file.
461
462 2012-04-01  Bruno Haible  <bruno@clisp.org>
463
464         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
465         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
466         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
467         workaround.
468         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
469         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
470         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
471         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
472         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
473         (Depends-on): Update conditions.
474         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
475         IRIX 6.5, OSF/1 5.1 problems.
476
477 2012-04-01  Bruno Haible  <bruno@clisp.org>
478
479         log10f: Work around OSF/1 5.1 bug.
480         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
481         * lib/log10f.c (log10f): If logf exists, use it and provide just the
482         workaround.
483         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
484         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
485         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
486         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
487         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
488         (Depends-on): Update conditions.
489         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
490
491 2012-04-01  Bruno Haible  <bruno@clisp.org>
492
493         log10: Work around OSF/1 5.1 bug.
494         * lib/math.in.h (log10): New declaration.
495         * lib/log10.c: New file.
496         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
497         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
498         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
499         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
500         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
501         * modules/log10 (Files): Add lib/log10.c.
502         (Depends-on): Add math.
503         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
504         * tests/test-math-c++.cc: Check the declaration of log10.
505         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
506
507 2012-03-31  Bruno Haible  <bruno@clisp.org>
508
509         log10l tests: More tests.
510         * modules/log10l-tests (Files): Add tests/test-log10l.h,
511         tests/minus-zero.h, tests/randoml.c.
512         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
513         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
514         (main): Invoke test_function.
515
516         log10f tests: More tests.
517         * modules/log10f-tests (Files): Add tests/test-log10.h,
518         tests/minus-zero.h, tests/randomf.c.
519         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
520         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
521         (main): Invoke test_function.
522
523         log10 tests: More tests.
524         * tests/test-log10.h: New file.
525         * modules/log10-tests (Files): Add tests/test-log10.h,
526         tests/minus-zero.h, tests/randomd.c.
527         (Makefile.am): Add randomd.c to test_log10_SOURCES.
528         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
529         (main): Invoke test_function.
530
531 2012-03-31  Simon Josefsson  <simon@josefsson.org>
532
533         fflush: Fix syntax error.
534         * lib/fflush.c: Include unused-parameter.h, needed for
535         _GL_UNUSED_PARAMETER.
536         * modules/fflush (Depends-on): Add snippet/unused-parameter.
537
538 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
539
540         regex: pacify GCC when compiling GRUB
541         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
542         a diagnostic.  Reported by Vladimir Serbinenko in
543         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
544
545 2012-03-29  Eric Blake  <eblake@redhat.com>
546
547         stdio: don't assume gets any more
548         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
549         support.
550         * modules/stdio (Makefile.am): Likewise.
551         * lib/stdio-read.c (gets): Likewise.
552         * tests/test-stdio-c++.cc: Likewise.
553         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
554         * lib/stdio.in.h (gets): Make warning occur in more places.
555         * doc/posix-functions/gets.texi (gets): Update documentation.
556         Reported by Christer Solskogen.
557
558         maint.mk: fix syntax checks without exclusions
559         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
560         Reported by Daniel P. Berrange.
561
562         strerror_r: avoid compiler warning
563         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
564         level.
565
566         fflush: avoid compiler warning
567         * lib/fflush.c (update_fpos_cache): Mark variables that are
568         potentially unused.
569
570 2012-03-25  Bruno Haible  <bruno@clisp.org>
571
572         Tests for module 'localeconv'.
573         * modules/localeconv-tests: New file.
574         * tests/test-localeconv.c: New file.
575
576         New module 'localeconv'.
577         * lib/locale.in.h (localeconv): New declaration.
578         * lib/localeconv.c: New file.
579         * m4/localeconv.m4: New file.
580         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
581         REPLACE_LOCALECONV.
582         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
583         REPLACE_LOCALECONV.
584         * modules/localeconv: New file.
585         * modules/nl_langinfo (Depends-on): Add localeconv.
586         * modules/human (Depends-on): Likewise.
587         * doc/posix-functions/localeconv.texi: Mention the new module.
588
589 2012-03-25  Bruno Haible  <bruno@clisp.org>
590
591         locale: Provide a complete 'struct lconv'.
592         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
593         'struct lconv' does not contain int_p_cs_precedes.
594         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
595         * doc/posix-headers/locale.texi: Update.
596
597         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
598         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
599         * doc/posix-headers/locale.texi: Update.
600
601         locale: Provide a working 'struct lconv'.
602         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
603         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
604         'struct lconv' does not even contain decimal_point.
605         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
606         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
607         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
608         * doc/posix-headers/locale.texi: Mention the problems with
609         'struct lconv'.
610         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
611
612 2012-03-24  Bruno Haible  <bruno@clisp.org>
613
614         Enable common subexpression optimization in GCC.
615         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
616         macros.
617         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
618         GCC attribute 'const'.
619         (uc_locale_language): Declare with GCC attribute 'pure'.
620         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
621         with GCC attribute 'const'.
622         * lib/unictype.in.h (uc_is_general_category_withtable,
623         uc_combining_class, uc_combining_class_name,
624         uc_combining_class_long_name, uc_bidi_class_name,
625         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
626         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
627         uc_decimal_value, uc_digit_value, uc_numeric_value,
628         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
629         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
630         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
631         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
632         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
633         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
634         Declare with GCC attribute 'const'.
635         (uc_general_category_name, uc_general_category_long_name,
636         uc_general_category_byname, uc_general_category,
637         uc_is_general_category, uc_combining_class_byname,
638         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
639         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
640         Declare with GCC attribute 'pure'.
641         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
642         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
643         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
644         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
645         with GCC attribute 'pure'.
646         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
647         'const'.
648         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
649         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
650         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
651         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
652         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
653         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
654         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
655         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
656         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
657         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
658         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
659         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
660         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
661         GCC attribute 'pure'.
662         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
663         'const'.
664         * lib/uniwidth.in.h (uc_width): Simplify declaration.
665         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
666         u32_strwidth): Declare with GCC attribute 'pure'.
667
668         Enable common subexpression optimization in GCC.
669         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
670         (alphasort): Declare with GCC attribute 'pure'.
671         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
672         (atoll): Declare with GCC attribute 'pure'.
673         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
674         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
675         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
676         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
677         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
678         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
679         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
680
681 2012-03-24  Bruno Haible  <bruno@clisp.org>
682
683         gnulib-tool: Avoid unintended error output from 'cmp'.
684         * gnulib-tool (func_add_file, func_update_file, func_import): Use
685         "cmp -s", not "cmp > /dev/null".
686
687 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
688
689         gnulib-tool: fix imprecise comments w.r.t. an automake bug
690
691         It's not just Automake versions < 1.9b that creates an empty
692         pkgdatadir at installation time if pkgdata_DATA is specified
693         to empty; modern automake versions do this as well, at least
694         until automake 1.11.4 (not yet released at the moment of writing,
695         but soon to appear).  That behaviour was generally considered a
696         feature rather than a bug, at least until this discussion:
697         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
698
699         See also automake bugs #10997 and #11030.
700
701         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
702         reference to relevant automake bug numbers.
703         (func_emit_tests_Makefile_am): Likewise.
704
705 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
706
707         announce-gen: use Digest::SHA when possible
708         * build-aux/announce-gen: Use Digest::SHA when possible, falling
709         back to Digest::SHA1 if necessary.
710
711 2012-03-20  Jim Meyering  <meyering@redhat.com>
712
713         tests: avoid gcc warnings about argv vs. const initializers
714         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
715         warnings about discarding 'const' qualifier from pointer target type.
716         * tests/test-posix_spawn2.c (main): Likewise.
717
718 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
719
720         README-release: simplify slightly
721         * top/README-release: Run "git checkout master" only once.
722
723 2012-03-15  Mark Wielaard  <mark@klomp.org>
724
725         git-merge-changelog: add specific example on how to use with hg.
726         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
727
728 2012-03-18  Mark Wielaard  <mark@klomp.org>
729
730         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
731
732 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
733
734         git-version-gen: don't let "prefix" envvar cause trouble
735         * build-aux/git-version-gen (prefix): Initialize properly,
736         so as not to use a value specified via the environment.
737         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
738
739 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
740
741         regex: diagnose too-large repeat counts in EREs
742         Previously, the code did not diagnose the too-large repeat count
743         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
744         as if it were 'b\{1000000000}', which is unexpected.
745         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
746         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
747         is a reasonable one for this problem.  Another option would be to
748         create a new REG_OVERFLOW error for repeat counts that are too large.
749         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
750         count is too large, so that the caller can distinguish the two cases.
751         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
752         "Too large" return code, and that repeat counts are one example of this.
753
754 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
755
756         doc: some glibc x32 integer width issues
757         * doc/posix-headers/sys_types.texi (sys/types.h):
758         * doc/posix-headers/time.texi (time.h):
759         Mention that glibc x32 does not conform to POSIX in a couple of
760         areas related to integer widths.
761
762 2012-03-15  Bruno Haible  <bruno@clisp.org>
763
764         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
765         * lib/fma.c (VOLATILE): New macro.
766         (FUNC): Use it to work around a GCC compiler bug.
767
768 2012-03-13  Bruno Haible  <bruno@clisp.org>
769
770         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
771         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
772         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
773         REPLACE_HYPOTL to 1.
774         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
775
776 2012-03-13  Bruno Haible  <bruno@clisp.org>
777
778         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
779         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
780         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
781         REPLACE_REMAINDERL to 1.
782         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
783         bug.
784
785 2012-03-13  Bruno Haible  <bruno@clisp.org>
786
787         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
788         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
789         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
790         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
791         too big rounding errors.
792         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
793         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
794         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
795         (Depends-on): Update conditions.
796         * tests/test-sqrtl.c (my_ldexpl): New function.
797         (main): Add test of a particular value.
798         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
799
800 2012-03-13  Pádraig Brady  <P@draigBrady.com>
801
802         doc: Update timer_* platform portability notes.
803         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
804         that always return ENOSYS.
805         * doc/posix-functions/timer_delete.texi: Likewise.
806         * doc/posix-functions/timer_gettime.texi: Likewise.
807         * doc/posix-functions/timer_settime.texi: Likewise.
808
809 2012-03-13  Bruno Haible  <bruno@clisp.org>
810
811         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
812         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
813         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
814         REPLACE_CBRTL to 1.
815         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
816
817 2012-03-13  Bruno Haible  <bruno@clisp.org>
818
819         remainderl: Avoid compilation error on AIX >= 5.2.
820         * lib/math.in.h (remainderl): Undefine macro from the system header.
821
822 2012-03-13  Bruno Haible  <bruno@clisp.org>
823
824         Avoid compilation errors with MSVC option -fp:strict.
825         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
826         * lib/cbrtf.c: Likewise.
827         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
828
829 2012-03-12  Bruno Haible  <bruno@clisp.org>
830
831         uninorm: Don't crash in out-of-memory conditions.
832         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
833         gracefully.
834         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
835         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
836
837 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
838
839         quote: fix syntax-check
840         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
841         also exports quote_quoting_options.
842
843 2012-03-12  Simon Josefsson  <simon@josefsson.org>
844
845         Collapse list of copyright years to ranges.  See
846         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
847         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
848         build-aux/csharpexec.sh.in, build-aux/gnupload,
849         build-aux/install-reloc, build-aux/javacomp.sh.in,
850         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
851         build-aux/move-if-change, build-aux/reloc-ldflags,
852         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
853
854 2012-03-11  Bruno Haible  <bruno@clisp.org>
855
856         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
857         * m4/log2f-ieee.m4: New file.
858         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
859         whether log2f works with a minus zero argument. Replace it if not.
860         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
861         (Depends-on): Add log2-ieee.
862         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
863         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
864
865         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
866         * m4/log2-ieee.m4: New file.
867         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
868         whether log2 works with a minus zero argument. Replace it if not.
869         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
870         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
871         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
872
873         Tests for module 'log2l-ieee'.
874         * modules/log2l-ieee-tests: New file.
875         * tests/test-log2l-ieee.c: New file.
876
877         New module 'log2l-ieee'.
878         * modules/log2l-ieee: New file.
879
880         Tests for module 'log2-ieee'.
881         * modules/log2-ieee-tests: New file.
882         * tests/test-log2-ieee.c: New file.
883
884         New module 'log2-ieee'.
885         * modules/log2-ieee: New file.
886
887         Tests for module 'log2f-ieee'.
888         * modules/log2f-ieee-tests: New file.
889         * tests/test-log2f-ieee.c: New file.
890         * tests/test-log2-ieee.h: New file.
891
892         New module 'log2f-ieee'.
893         * modules/log2f-ieee: New file.
894
895 2012-03-11  Bruno Haible  <bruno@clisp.org>
896
897         Tests for module 'log2l'.
898         * modules/log2l-tests: New file.
899         * tests/test-log2l.c: New file.
900
901         New module 'log2l'.
902         * lib/math.in.h (log2l): New declaration.
903         * lib/log2l.c: New file.
904         * m4/log2l.m4: New file.
905         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
906         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
907         REPLACE_LOG2L.
908         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
909         REPLACE_LOG2L.
910         * modules/log2l: New file.
911         * tests/test-math-c++.cc: Check the declaration of log2l.
912         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
913         and OSF/1 problems.
914
915 2012-03-11  Bruno Haible  <bruno@clisp.org>
916
917         Tests for module 'log2f'.
918         * modules/log2f-tests: New file.
919         * tests/test-log2f.c: New file.
920
921         New module 'log2f'.
922         * lib/math.in.h (log2f): New declaration.
923         * lib/log2f.c: New file.
924         * m4/log2f.m4: New file.
925         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
926         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
927         REPLACE_LOG2F.
928         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
929         REPLACE_LOG2F.
930         * modules/log2f: New file.
931         * tests/test-math-c++.cc: Check the declaration of log2f.
932         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
933         and OSF/1 and Cygwin problems.
934
935 2012-03-11  Bruno Haible  <bruno@clisp.org>
936
937         Tests for module 'log2'.
938         * modules/log2-tests: New file.
939         * tests/test-log2.c: New file.
940         * tests/test-log2.h: New file.
941
942         New module 'log2'.
943         * lib/math.in.h (log2): New declaration.
944         * lib/log2.c: New file.
945         * m4/log2.m4: New file.
946         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
947         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
948         REPLACE_LOG2.
949         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
950         REPLACE_LOG2.
951         * modules/log2: New file.
952         * tests/test-math-c++.cc: Check the declaration of log2.
953         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
954         and OSF/1 and Cygwin problems.
955
956 2012-03-11  Bruno Haible  <bruno@clisp.org>
957
958         exp2* tests: More tests.
959         * tests/test-exp2.h (test_function): Test all integral arguments that
960         don't need to overflow or denormalized numbers.
961         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
962         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
963         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
964
965 2012-03-10  Bruno Haible  <bruno@clisp.org>
966
967         log1pl-ieee: Work around test failure on AIX 7.1.
968         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
969
970         log1pl-ieee: Work around test failure on IRIX 6.5.
971         * m4/log1pl-ieee.m4: New file.
972         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
973         test whether log1pl works with a minus zero argument. Replace it if
974         not.
975         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
976         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
977         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
978         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
979         (Depends-on): Update conditions.
980         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
981         m4/signbit.m4.
982         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
983         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
984
985         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
986         * m4/log1pf-ieee.m4: New file.
987         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
988         test whether log1pf works with a minus zero argument. Replace it if
989         not.
990         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
991         m4/signbit.m4.
992         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
993         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
994
995         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
996         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
997         (configure.ac): Require gl_FUNC_LOG1PF.
998
999         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
1000         * m4/log1p-ieee.m4: New file.
1001         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
1002         whether log1p works with a minus zero argument. Replace it if not.
1003         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
1004         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
1005         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
1006         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
1007         (Depends-on): Update conditions.
1008         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
1009         m4/signbit.m4.
1010         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
1011         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
1012
1013         Tests for module 'log1pl-ieee'.
1014         * modules/log1pl-ieee-tests: New file.
1015         * tests/test-log1pl-ieee.c: New file.
1016
1017         New module 'log1pl-ieee'.
1018         * modules/log1pl-ieee: New file.
1019
1020         Tests for module 'log1p-ieee'.
1021         * modules/log1p-ieee-tests: New file.
1022         * tests/test-log1p-ieee.c: New file.
1023
1024         New module 'log1p-ieee'.
1025         * modules/log1p-ieee: New file.
1026
1027         Tests for module 'log1pf-ieee'.
1028         * modules/log1pf-ieee-tests: New file.
1029         * tests/test-log1pf-ieee.c: New file.
1030         * tests/test-log1p-ieee.h: New file.
1031
1032         New module 'log1pf-ieee'.
1033         * modules/log1pf-ieee: New file.
1034
1035 2012-03-10  Bruno Haible  <bruno@clisp.org>
1036
1037         Tests for module 'log1pl'.
1038         * modules/log1pl-tests: New file.
1039         * tests/test-log1pl.c: New file.
1040
1041         New module 'log1pl'.
1042         * lib/math.in.h (log1pl): New declaration.
1043         * lib/log1pl.c: New file.
1044         * m4/log1pl.m4: New file.
1045         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
1046         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
1047         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
1048         * modules/log1pl: New file.
1049         * tests/test-math-c++.cc: Check the declaration of log1pl.
1050         * doc/posix-functions/log1pl.texi: Mention the new module.
1051
1052 2012-03-10  Bruno Haible  <bruno@clisp.org>
1053
1054         Tests for module 'log1pf'.
1055         * modules/log1pf-tests: New file.
1056         * tests/test-log1pf.c: New file.
1057
1058         New module 'log1pf'.
1059         * lib/math.in.h (log1pf): New declaration.
1060         * lib/log1pf.c: New file.
1061         * m4/log1pf.m4: New file.
1062         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
1063         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
1064         REPLACE_LOG1PF.
1065         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
1066         REPLACE_LOG1PF.
1067         * modules/log1pf: New file.
1068         * tests/test-math-c++.cc: Check the declaration of log1pf.
1069         * doc/posix-functions/log1pf.texi: Mention the new module.
1070
1071 2012-03-10  Bruno Haible  <bruno@clisp.org>
1072
1073         log1p tests: More tests.
1074         * tests/test-log1p.h: New file.
1075         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
1076         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
1077         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
1078         (main): Invoke test_function.
1079
1080         log1p: Provide replacement for Minix and MSVC.
1081         * lib/math.in.h (log1p): New declaration.
1082         * lib/log1p.c: New file.
1083         * m4/log1p.m4: New file.
1084         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
1085         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
1086         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
1087         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
1088         (Depends-on): Add math, isnand, log, round.
1089         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
1090         HAVE_LOG1P is 0.
1091         * tests/test-math-c++.cc: Check the declaration of log1p.
1092         * doc/posix-functions/log1p.texi: Mention the replacement.
1093
1094 2012-03-10  Bruno Haible  <bruno@clisp.org>
1095
1096         math tests: Small simplification.
1097         * tests/test-exp.h (test_function): Use the same err_bound for
1098         'double' on platforms with sizeof (long double) == sizeof (double)
1099         than on platforms with sizeof (long double) > sizeof (double).
1100         * tests/test-exp2.h (test_function): Likewise.
1101         * tests/test-expm1.h (test_function): Likewise.
1102         * tests/test-log.h (test_function): Likewise.
1103
1104 2012-03-10  Bruno Haible  <bruno@clisp.org>
1105
1106         Fix some comments.
1107         * lib/expl.c: Fix an ambiguous comment.
1108         * lib/expm1.c: Likewise.
1109         * lib/expm1l.c: Likewise.
1110         * lib/exp2.c: Likewise.
1111         * lib/exp2l.c: Likewise.
1112
1113 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
1114
1115         regex: allow inclusion of <regex.h> before <limits.h>
1116         Without this patch, portable programs had to include <limits.h> before
1117         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
1118         I ran into this problem with a test version of GNU grep on Solaris 8.
1119         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
1120         This is done conditionally so that this change can be merged
1121         back to glibc.
1122         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
1123         using the included regex.
1124
1125         fts: depend on fdopendir
1126         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
1127         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
1128         problem was introduced when fdopendir was split out.
1129
1130 2012-03-10  Bruno Haible  <bruno@clisp.org>
1131
1132         Remove unused variables.
1133         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
1134         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
1135
1136 2012-03-10  Bruno Haible  <bruno@clisp.org>
1137
1138         isnanf-nolibm: Fix last commit.
1139         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
1140
1141         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
1142         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
1143
1144 2012-03-10  Bruno Haible  <bruno@clisp.org>
1145
1146         logf-ieee: Work around test failure on NetBSD 5.1.
1147         * m4/logf-ieee.m4: New file.
1148         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
1149         whether logf works with a negative argument. Replace it if not.
1150         * lib/logf.c (logf): For negative arguments, return NaN.
1151         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
1152         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
1153         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
1154
1155         logf-ieee: Work around test failure on Solaris 9.
1156         * modules/logf-ieee (Depends-on): Add log-ieee.
1157         (configure.ac): Require gl_FUNC_LOGF.
1158
1159         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
1160         * m4/log-ieee.m4: New file.
1161         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
1162         log works with a negative argument. Replace it if not.
1163         * lib/log.c (log): For negative arguments, return NaN.
1164         * modules/log-ieee (Files): Add m4/log-ieee.m4.
1165         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
1166         * doc/posix-functions/log.texi: Mention the log-ieee module.
1167
1168         Tests for module 'logl-ieee'.
1169         * modules/logl-ieee-tests: New file.
1170         * tests/test-logl-ieee.c: New file.
1171
1172         New module 'logl-ieee'.
1173         * modules/logl-ieee: New file.
1174
1175         Tests for module 'log-ieee'.
1176         * modules/log-ieee-tests: New file.
1177         * tests/test-log-ieee.c: New file.
1178
1179         New module 'log-ieee'.
1180         * modules/log-ieee: New file.
1181
1182         Tests for module 'logf-ieee'.
1183         * modules/logf-ieee-tests: New file.
1184         * tests/test-logf-ieee.c: New file.
1185         * tests/test-log-ieee.h: New file.
1186
1187         New module 'logf-ieee'.
1188         * modules/logf-ieee: New file.
1189
1190 2012-03-10  Bruno Haible  <bruno@clisp.org>
1191
1192         log: Fix bug introduced on 2012-03-09.
1193         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
1194
1195 2012-03-10  Pádraig Brady  <P@draigBrady.com>
1196
1197         timer-time: link explicitly with pthreads on glibc
1198         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
1199         to support static linking, when newer glibc is
1200         detected, as that contains pthread emulation of
1201         POSIX timer functions where required.
1202         * modules/timer-time: Depend on threadlib to
1203         pull in the appropriate library to link.
1204
1205 2012-03-10  Bruno Haible  <bruno@clisp.org>
1206
1207         log* tests: More tests.
1208         * tests/test-log.h: New file.
1209         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
1210         (main): Invoke test_function.
1211         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
1212         (main): Invoke test_function.
1213         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
1214         (main): Invoke test_function.
1215         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1216         tests/randomd.c.
1217         (Makefile.am): Add randomd.c to test_log_SOURCES.
1218         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1219         tests/randomf.c.
1220         (Makefile.am): Add randomf.c to test_logf_SOURCES.
1221         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1222         tests/randoml.c.
1223         (Depends-on): Add 'float'.
1224         (Makefile.am): Add randoml.c to test_logl_SOURCES.
1225
1226 2012-03-09  Bruno Haible  <bruno@clisp.org>
1227
1228         logl: Work around OSF/1 5.1 bug.
1229         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
1230         * lib/logl.c (logl): If logl exists, use it and provide just the
1231         workaround.
1232         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
1233         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
1234         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
1235         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
1236         * modules/logl (configure.ac): Consider REPLACE_LOGL.
1237         (Depends-on): Update conditions.
1238         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
1239
1240 2012-03-09  Bruno Haible  <bruno@clisp.org>
1241
1242         logf: Work around OSF/1 5.1 bug.
1243         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
1244         * lib/logf.c (logf): If logf exists, use it and provide just the
1245         workaround.
1246         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
1247         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
1248         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
1249         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
1250         * modules/logf (configure.ac): Consider REPLACE_LOGF.
1251         (Depends-on): Update conditions.
1252         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
1253
1254 2012-03-09  Bruno Haible  <bruno@clisp.org>
1255
1256         log: Work around OSF/1 5.1 bug.
1257         * lib/math.in.h (log): New declaration.
1258         * lib/log.c: New file.
1259         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
1260         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
1261         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
1262         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
1263         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
1264         * modules/log (Files): Add lib/log.c.
1265         (Depends-on): Add math.
1266         (configure.ac): If REPLACE_LOG is 1, compile an override.
1267         * tests/test-math-c++.cc: Check the declaration of log.
1268         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
1269
1270 2012-03-09  Jim Meyering  <meyering@redhat.com>
1271
1272         readtokens.c: adjust wording in a comment
1273         * lib/readtokens.c: Insert omitted "that" in a comment.
1274
1275 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1276
1277         modechange: add notations +40, 00440, etc.
1278         * lib/modechange.c (mode_compile): Support new notations
1279         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
1280
1281 2012-03-08  Bruno Haible  <bruno@clisp.org>
1282
1283         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
1284         * m4/exp2l-ieee.m4: New file.
1285         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
1286         test whether exp2l works with a NaN argument and with a negative
1287         infinity argument. Replace it if not.
1288         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
1289         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
1290         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
1291         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
1292         (Depends-on): Update conditions.
1293         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
1294         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
1295         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
1296
1297         Tests for module 'exp2l-ieee'.
1298         * modules/exp2l-ieee-tests: New file.
1299         * tests/test-exp2l-ieee.c: New file.
1300
1301         New module 'exp2l-ieee'.
1302         * modules/exp2l-ieee: New file.
1303
1304         Tests for module 'exp2-ieee'.
1305         * modules/exp2-ieee-tests: New file.
1306         * tests/test-exp2-ieee.c: New file.
1307
1308         New module 'exp2-ieee'.
1309         * modules/exp2-ieee: New file.
1310
1311         Tests for module 'exp2f-ieee'.
1312         * modules/exp2f-ieee-tests: New file.
1313         * tests/test-exp2f-ieee.c: New file.
1314         * tests/test-exp2-ieee.h: New file.
1315
1316         New module 'exp2f-ieee'.
1317         * modules/exp2f-ieee: New file.
1318
1319 2012-03-08  Bruno Haible  <bruno@clisp.org>
1320
1321         Tests for module 'exp2l'.
1322         * modules/exp2l-tests: New file.
1323         * tests/test-exp2l.c: New file.
1324
1325         New module 'exp2l'.
1326         * lib/math.in.h (exp2l): New declaration.
1327         * lib/exp2l.c: New file.
1328         * lib/expl-table.c: New file, extracted from lib/expl.c.
1329         * lib/expl.c (gl_expl_table): New declaration.
1330         (expl): Remove expl_table. Update reference.
1331         * m4/exp2l.m4: New file.
1332         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
1333         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
1334         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
1335         * modules/exp2l: New file.
1336         * modules/expl (Files): Add lib/expl-table.c.
1337         (configure.ac): Compile also expl-table.c.
1338         * tests/test-math-c++.cc: Check the declaration of exp2l.
1339         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
1340         problem.
1341
1342 2012-03-08  Bruno Haible  <bruno@clisp.org>
1343
1344         Tests for module 'exp2f'.
1345         * modules/exp2f-tests: New file.
1346         * tests/test-exp2f.c: New file.
1347
1348         New module 'exp2f'.
1349         * lib/math.in.h (exp2f): New declaration.
1350         * lib/exp2f.c: New file.
1351         * m4/exp2f.m4: New file.
1352         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
1353         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
1354         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
1355         * modules/exp2f: New file.
1356         * tests/test-math-c++.cc: Check the declaration of exp2f.
1357         * doc/posix-functions/exp2f.texi: Mention the new module and the
1358         IRIX problem.
1359
1360 2012-03-08  Bruno Haible  <bruno@clisp.org>
1361
1362         Tests for module 'exp2'.
1363         * modules/exp2-tests: New file.
1364         * tests/test-exp2.c: New file.
1365         * tests/test-exp2.h: New file.
1366
1367         New module 'exp2'.
1368         * lib/math.in.h (exp2): New declaration.
1369         * lib/exp2.c: New file.
1370         * m4/exp2.m4: New file.
1371         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
1372         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
1373         REPLACE_EXP2.
1374         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
1375         REPLACE_EXP2.
1376         * modules/exp2: New file.
1377         * tests/test-math-c++.cc: Check the declaration of exp2.
1378         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
1379         and OpenBSD problems.
1380
1381 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1382
1383         savedir: fix comment typo
1384         * lib/savedir.c (savedirstream): Fix typo in comment.
1385
1386 2012-03-08  Bruno Haible  <bruno@clisp.org>
1387
1388         test-readtokens.c: use const; remove unwarranted cast
1389         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
1390
1391 2012-03-08  Bruno Haible  <bruno@clisp.org>
1392
1393         fmal: Avoid compilation error on AIX.
1394         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
1395         AIX 5.2..7.1.
1396
1397 2012-03-08  Bruno Haible  <bruno@clisp.org>
1398
1399         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
1400         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
1401         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
1402         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
1403         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
1404         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
1405         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
1406
1407 2012-03-08  Bruno Haible  <bruno@clisp.org>
1408
1409         remainderf: Override buggy system function on IRIX 6.5.
1410         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
1411         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
1412         when it exists.
1413         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
1414
1415 2012-03-08  Jim Meyering  <meyering@redhat.com>
1416
1417         test-readtokens.c: avoid const-related compilation warnings
1418         * tests/test-readtokens.c: Avoid const-related compilation warnings.
1419
1420 2012-03-07  Jim Meyering  <meyering@redhat.com>
1421             Bruno Haible  <bruno@clisp.org>
1422
1423         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
1424         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
1425         tests/randomd.c.
1426         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
1427         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
1428         tests/randoml.c.
1429         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
1430
1431 2012-03-07  Bruno Haible  <bruno@clisp.org>
1432
1433         expm1l: Avoid compilation error on AIX.
1434         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
1435         AIX 5.2..7.1.
1436
1437 2012-03-07  Bruno Haible  <bruno@clisp.org>
1438
1439         expm1l: Don't override undeclared system function on IRIX 6.5.
1440         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
1441         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
1442         it exists. Set HAVE_DECL_EXPM1L.
1443         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
1444         HAVE_EXPM1L.
1445         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
1446         HAVE_EXPM1L.
1447         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
1448
1449 2012-03-07  Bruno Haible  <bruno@clisp.org>
1450
1451         remainderl: Don't override undeclared system function on IRIX 6.5.
1452         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
1453         HAVE_REMAINDERL.
1454         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
1455         declared when it exists. Set HAVE_DECL_REMAINDERL.
1456         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
1457         not HAVE_REMAINDERL.
1458         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
1459         HAVE_REMAINDERL.
1460         * doc/posix-functions/remainderl.texi: Mention missing declaration
1461         problem.
1462
1463 2012-03-07  Bruno Haible  <bruno@clisp.org>
1464
1465         rintf: Don't override undeclared system function on IRIX 6.5.
1466         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
1467         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
1468         exists. Set HAVE_DECL_RINTF.
1469         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
1470         HAVE_RINTF.
1471         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
1472         HAVE_RINTF.
1473         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
1474
1475 2012-03-07  Bruno Haible  <bruno@clisp.org>
1476
1477         roundl: Avoid compilation error on AIX.
1478         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
1479         AIX 5.2..7.1.
1480
1481 2012-03-07  Bruno Haible  <bruno@clisp.org>
1482
1483         roundl: Don't override undeclared system function on IRIX 6.5.
1484         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
1485         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
1486         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
1487         * modules/roundl (configure.ac): For replacement code, test
1488         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
1489         (Depends-on): Update conditions.
1490         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
1491
1492 2012-03-07  Bruno Haible  <bruno@clisp.org>
1493
1494         roundf: Don't override undeclared system function on IRIX 6.5.
1495         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
1496         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
1497         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
1498         * modules/roundf (configure.ac): For replacement code, test
1499         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
1500         (Depends-on): Update conditions.
1501         * modules/roundf-ieee (Depends-on): Update conditions.
1502         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
1503
1504 2012-03-07  Bruno Haible  <bruno@clisp.org>
1505
1506         round: Don't override undeclared system function on IRIX 6.5.
1507         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
1508         argument.
1509         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
1510         also when it is not declared. Set HAVE_ROUND. For replacement code,
1511         test HAVE_ROUND, not HAVE_DECL_ROUND.
1512         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
1513         not HAVE_DECL_ROUND.
1514         (Depends-on): Update conditions.
1515         * modules/round-ieee (Depends-on): Update conditions.
1516         * doc/posix-functions/round.texi: Mention the IRIX problem.
1517
1518 2012-03-07  Bruno Haible  <bruno@clisp.org>
1519
1520         copysignf: Don't override undeclared system function on IRIX 6.5.
1521         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
1522         HAVE_COPYSIGNF.
1523         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
1524         declared when it exists. Set HAVE_DECL_COPYSIGNF.
1525         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
1526         not HAVE_COPYSIGNF.
1527         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
1528         HAVE_COPYSIGNF.
1529         * doc/posix-functions/copysignf.texi: Mention missing declaration
1530         problem.
1531
1532 2012-03-07  Jim Meyering  <meyering@redhat.com>
1533
1534         readtokens: add tests
1535         * modules/readtokens-tests: New file.
1536         * tests/test-readtokens.c: New file.
1537
1538 2012-03-07  Jim Meyering  <meyering@redhat.com>
1539
1540         quotearg: the module must now include quote.h
1541         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
1542         So must the module.
1543         * modules/quotearg (Files): Add quote.h.
1544
1545 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
1546
1547         readtokens: avoid core dumps with unusual calling patterns
1548         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
1549         * lib/readtokens.c: Include limits.h.
1550         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
1551         (readtoken): Don't cache the delimiters; the cache code was buggy
1552         if !delim && saved_delim, or if the new n_delim differs from the old.
1553         Also, it wasn't thread-safe.
1554
1555 2012-03-07  Bruno Haible  <bruno@clisp.org>
1556
1557         quote: Adhere to common module description layout.
1558         * modules/quote (Makefile.am): Add back empty section.
1559
1560 2012-03-06  Akim Demaille  <demaille@gostai.com>
1561
1562         quote: fuse into quotearg
1563         This patch is made for the benefit of Bison.
1564         quote does not leave the choice of the quoting style to the user.
1565         quoting_style provides poor customizability, yet quoting_options,
1566         which is very rich, is hidden inside quotearg.c.  So in order to
1567         allow quote customization, move its implementation to quotearg.c.
1568         * lib/quote.c: Remove.
1569         * modules/quote: Adjust.
1570         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
1571         warning: provide all the members of literal structs.
1572         (quote_quoting_options): New.
1573         (quote, quote_n): Import implementation from quote.c.
1574         * lib/quote.h: Import the comments from quote.c.
1575         (quote_quoting_options): New.
1576
1577 2012-03-06  Bruno Haible  <bruno@clisp.org>
1578
1579         Tests for module 'expm1l-ieee'.
1580         * modules/expm1l-ieee-tests: New file.
1581         * tests/test-expm1l-ieee.c: New file.
1582
1583         New module 'expm1l-ieee'.
1584         * modules/expm1l-ieee: New file.
1585
1586         Tests for module 'expm1f-ieee'.
1587         * modules/expm1f-ieee-tests: New file.
1588         * tests/test-expm1f-ieee.c: New file.
1589
1590         New module 'expm1f-ieee'.
1591         * modules/expm1f-ieee: New file.
1592
1593         Tests for module 'expm1-ieee'.
1594         * modules/expm1-ieee-tests: New file.
1595         * tests/test-expm1-ieee.c: New file.
1596         * tests/test-expm1-ieee.h: New file.
1597
1598         New module 'expm1-ieee'.
1599         * modules/expm1-ieee: New file.
1600         * m4/expm1-ieee.m4: New file.
1601         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
1602         whether expm1 works with a minus zero argument. Replace it if not.
1603         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
1604         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
1605         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
1606         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
1607         (Depends-on): Update conditions.
1608         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
1609         AIX problem.
1610
1611 2012-03-06  Bruno Haible  <bruno@clisp.org>
1612
1613         Work around expm1f bug on IRIX 6.5.
1614         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
1615         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
1616         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
1617         not work.
1618         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
1619         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
1620         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
1621         (Depends-on): Update conditions.
1622         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
1623
1624 2012-03-06  Bruno Haible  <bruno@clisp.org>
1625
1626         Tests for module 'expm1l'.
1627         * modules/expm1l-tests: New file.
1628         * tests/test-expm1l.c: New file.
1629
1630         New module 'expm1l'.
1631         * lib/math.in.h (expm1l): New declaration.
1632         * lib/expm1l.c: New file.
1633         * m4/expm1l.m4: New file.
1634         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
1635         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
1636         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
1637         * modules/expm1l: New file.
1638         * tests/test-math-c++.cc: Check the declaration of expm1l.
1639         * doc/posix-functions/expm1l.texi: Mention the new module.
1640
1641 2012-03-06  Bruno Haible  <bruno@clisp.org>
1642
1643         Tests for module 'expm1f'.
1644         * modules/expm1f-tests: New file.
1645         * tests/test-expm1f.c: New file.
1646
1647         New module 'expm1f'.
1648         * lib/math.in.h (expm1f): New declaration.
1649         * lib/expm1f.c: New file.
1650         * m4/expm1f.m4: New file.
1651         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
1652         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
1653         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
1654         * modules/expm1f: New file.
1655         * tests/test-math-c++.cc: Check the declaration of expm1f.
1656         * doc/posix-functions/expm1f.texi: Mention the new module.
1657
1658 2012-03-06  Bruno Haible  <bruno@clisp.org>
1659
1660         Tests for module 'expm1'.
1661         * modules/expm1-tests: New file.
1662         * tests/test-expm1.c: New file.
1663         * tests/test-expm1.h: New file.
1664
1665         New module 'expm1'.
1666         * lib/math.in.h (expm1): New declaration.
1667         * lib/expm1.c: New file.
1668         * m4/expm1.m4: New file.
1669         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
1670         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
1671         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
1672         * modules/expm1: New file.
1673         * tests/test-math-c++.cc: Check the declaration of expm1.
1674         * doc/posix-functions/expm1.texi: Mention the new module.
1675
1676 2012-03-06  Bruno Haible  <bruno@clisp.org>
1677
1678         math: Ensure declarations of math functions.
1679         * modules/acosf (Depends-on): Add 'extensions'.
1680         * modules/asinf (Depends-on): Likewise.
1681         * modules/atan2f (Depends-on): Likewise.
1682         * modules/atanf (Depends-on): Likewise.
1683         * modules/cbrt (Depends-on): Likewise.
1684         * modules/cbrtf (Depends-on): Likewise.
1685         * modules/cbrtl (Depends-on): Likewise.
1686         * modules/copysignf (Depends-on): Likewise.
1687         * modules/copysignl (Depends-on): Likewise.
1688         * modules/cosf (Depends-on): Likewise.
1689         * modules/coshf (Depends-on): Likewise.
1690         * modules/expf (Depends-on): Likewise.
1691         * modules/fabsf (Depends-on): Likewise.
1692         * modules/fabsl (Depends-on): Likewise.
1693         * modules/fmaf (Depends-on): Likewise.
1694         * modules/fmal (Depends-on): Likewise.
1695         * modules/fmodf (Depends-on): Likewise.
1696         * modules/fmodl (Depends-on): Likewise.
1697         * modules/frexpf (Depends-on): Likewise.
1698         * modules/frexpl (Depends-on): Likewise.
1699         * modules/hypot (Depends-on): Likewise.
1700         * modules/hypotf (Depends-on): Likewise.
1701         * modules/hypotl (Depends-on): Likewise.
1702         * modules/ldexpf (Depends-on): Likewise.
1703         * modules/ldexpl (Depends-on): Likewise.
1704         * modules/log10f (Depends-on): Likewise.
1705         * modules/log10l (Depends-on): Likewise.
1706         * modules/log1p (Depends-on): Likewise.
1707         * modules/logb (Depends-on): Likewise.
1708         * modules/logf (Depends-on): Likewise.
1709         * modules/modff (Depends-on): Likewise.
1710         * modules/modfl (Depends-on): Likewise.
1711         * modules/powf (Depends-on): Likewise.
1712         * modules/remainderf (Depends-on): Likewise.
1713         * modules/remainderl (Depends-on): Likewise.
1714         * modules/rintf (Depends-on): Likewise.
1715         * modules/rintl (Depends-on): Likewise.
1716         * modules/sinf (Depends-on): Likewise.
1717         * modules/sinhf (Depends-on): Likewise.
1718         * modules/sqrtf (Depends-on): Likewise.
1719         * modules/tanf (Depends-on): Likewise.
1720         * modules/tanhf (Depends-on): Likewise.
1721         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
1722         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
1723         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
1724         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
1725         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
1726         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
1727         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
1728         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
1729         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
1730         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
1731         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
1732         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
1733         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
1734         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
1735         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
1736         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
1737         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
1738         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
1739         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
1740         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
1741         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
1742         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
1743         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
1744         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
1745         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
1746         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
1747         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
1748         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
1749         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
1750         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
1751         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
1752         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
1753         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
1754         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
1755         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
1756         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
1757         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
1758         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
1759         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
1760         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
1761         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
1762
1763 2012-03-06  Bruno Haible  <bruno@clisp.org>
1764
1765         math: Update module names in warnings.
1766         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
1767         tanl): Use specific module name in warn-on-use warning.
1768
1769 2012-03-06  Bruno Haible  <bruno@clisp.org>
1770
1771         expl: Simplify computation.
1772         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
1773
1774 2012-03-05  Bruno Haible  <bruno@clisp.org>
1775
1776         exp* tests: More tests.
1777         * tests/test-exp.h: New file.
1778         * tests/test-exp.c: Include <float.h> and test-exp.h.
1779         (main): Invoke test_function.
1780         * tests/test-expf.c: Include <float.h> and test-exp.h.
1781         (main): Invoke test_function.
1782         * tests/test-expl.c: Include <float.h> and test-exp.h.
1783         (main): Invoke test_function.
1784         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
1785         (Makefile.am): Add randomd.c to test_exp_SOURCES.
1786         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
1787         (Makefile.am): Add randomf.c to test_expf_SOURCES.
1788         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
1789         (Depends-on): Add 'float'.
1790         (Makefile.am): Add randoml.c to test_expl_SOURCES.
1791
1792         expl: Fix precision of computed result.
1793         * lib/expl.c: Completely rewritten.
1794         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
1795         (Maintainer): Add me.
1796         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
1797
1798 2012-03-05  Bruno Haible  <bruno@clisp.org>
1799
1800         cbrt* tests: More tests.
1801         * tests/test-cbrt.h: New file.
1802         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
1803         (main): Invoke test_function.
1804         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
1805         (main): Invoke test_function.
1806         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
1807         (main): Invoke test_function.
1808         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
1809         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
1810         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
1811         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
1812         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
1813         (Depends-on): Add 'float'.
1814         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
1815
1816 2012-03-05  Bruno Haible  <bruno@clisp.org>
1817
1818         hypot* tests: More tests.
1819         * tests/test-hypot.h: New file, partially extracted from
1820         tests/test-hypotl.c.
1821         * tests/test-hypot.c: Include test-hypot.h.
1822         (main): Invoke test_function.
1823         * tests/test-hypotf.c: Include test-hypot.h.
1824         (main): Invoke test_function.
1825         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
1826         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
1827         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
1828         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
1829         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
1830         tests/randomf.c.
1831         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
1832         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
1833         tests/randoml.c.
1834         (Depends-on): Add 'fpucw', 'float'.
1835         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
1836
1837 2012-03-05  Bruno Haible  <bruno@clisp.org>
1838
1839         fpucw: Doc about FreeBSD.
1840         * lib/fpucw.h: Mention FreeBSD in comments.
1841
1842 2012-03-04  Bruno Haible  <bruno@clisp.org>
1843
1844         sqrt* tests: More tests.
1845         * tests/test-sqrt.h: New file.
1846         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
1847         (main): Invoke test_function.
1848         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
1849         (main): Invoke test_function.
1850         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
1851         (main): Invoke test_function.
1852         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
1853         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
1854         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
1855         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
1856         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
1857         (Depends-on): Add 'float'.
1858         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
1859
1860 2012-03-04  Bruno Haible  <bruno@clisp.org>
1861
1862         remainder* tests: More tests.
1863         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
1864         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
1865         (main): Invoke test_function.
1866         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
1867         (main): Invoke test_function.
1868         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
1869         (main): Invoke test_function.
1870         * modules/remainder-tests (Files): Add tests/test-remainder.h,
1871         tests/randomd.c.
1872         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
1873         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
1874         tests/randomf.c.
1875         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
1876         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
1877         tests/randoml.c.
1878         (Depends-on): Add 'float'.
1879         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
1880
1881 2012-03-04  Bruno Haible  <bruno@clisp.org>
1882
1883         remainder, remainderf, remainderl: Fix computation for large quotients.
1884         * lib/remainder.c: Completely rewritten.
1885         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
1886         USE_FLOAT.
1887         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
1888         USE_LONG_DOUBLE.
1889         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
1890         isnand, isinf. Remove round, fma.
1891         * modules/remainderf (Files): Add lib/remainder.c.
1892         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
1893         Remove roundf, fmaf.
1894         * modules/remainderl (Files): Add lib/remainder.c.
1895         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
1896         isinf. Remove roundl, fmal.
1897         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
1898         REMAINDER_LIBM.
1899         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
1900         REMAINDERF_LIBM.
1901         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
1902         REMAINDERL_LIBM.
1903
1904 2012-03-04  Bruno Haible  <bruno@clisp.org>
1905
1906         fmod* tests: More tests.
1907         * tests/test-fmod.h (my_ldexp): New function.
1908         (test_function): Reduce amount of random numbers to test. Add tests
1909         of very large quotients x / y.
1910         * tests/test-fmod.c (MAX_EXP): New macro.
1911         * tests/test-fmodf.c (MAX_EXP): Likewise.
1912         * tests/test-fmodl.c (MAX_EXP): Likewise.
1913
1914 2012-03-04  Bruno Haible  <bruno@clisp.org>
1915
1916         fmod, fmodl: Fix computation for large quotients x / y.
1917         * lib/fmod.c: Completely rewritten.
1918         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
1919         USE_LONG_DOUBLE.
1920         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
1921         isnand. Remove fma.
1922         * modules/fmodl (Files): Add lib/fmod.c.
1923         (Depends-on): Add float, isfinite, signbit, fabsl,
1924         frexpl, ldexpl, isnanl. Remove fma.
1925         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
1926         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
1927
1928 2012-03-03  Bruno Haible  <bruno@clisp.org>
1929
1930         fmod* tests: More tests.
1931         * tests/test-fmod.h: New file.
1932         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
1933         (main): Invoke test_function.
1934         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
1935         (main): Invoke test_function.
1936         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
1937         (main): Invoke test_function.
1938         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
1939         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
1940         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
1941         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
1942         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
1943         (Depends-on): Add 'float'.
1944         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
1945
1946 2012-03-03  Bruno Haible  <bruno@clisp.org>
1947
1948         rint* tests: More tests.
1949         * tests/test-rint.h: New file, partially extracted from
1950         tests/test-rintl.c.
1951         * tests/test-rint.c: Include test-rint.h.
1952         (main): Invoke test_function.
1953         * tests/test-rintf.c: Include test-rint.h.
1954         (main): Invoke test_function.
1955         * tests/test-rintl.c: Include test-rint.h.
1956         (main): Invoke test_function.
1957         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
1958         (Makefile.am): Add randomd.c to test_rint_SOURCES.
1959         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
1960         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
1961         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
1962         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
1963
1964 2012-03-03  Bruno Haible  <bruno@clisp.org>
1965
1966         modf* tests: More tests.
1967         * tests/test-modf.h: New file.
1968         * tests/test-modf.c: Include <float.h> and test-modf.h.
1969         (main): Invoke test_function.
1970         * tests/test-modff.c: Include <float.h> and test-modf.h.
1971         (main): Invoke test_function.
1972         * tests/test-modfl.c: Include <float.h> and test-modf.h.
1973         (main): Invoke test_function.
1974         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
1975         (Makefile.am): Add randomd.c to test_modf_SOURCES.
1976         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
1977         (Makefile.am): Add randomf.c to test_modff_SOURCES.
1978         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
1979         (Depends-on): Add 'float'.
1980         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
1981
1982 2012-03-03  Bruno Haible  <bruno@clisp.org>
1983
1984         fabs* tests: More tests.
1985         * tests/test-fabs.h: New file, partially extracted from
1986         tests/test-fabsl.c.
1987         * tests/test-fabs.c (RANDOM): New macro.
1988         * tests/test-fabsf.c (RANDOM): New macro.
1989         * tests/test-fabsl.c (RANDOM): New macro.
1990         * modules/fabs-tests (Files): Add tests/randomd.c.
1991         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
1992         * modules/fabsf-tests (Files): Add tests/randomf.c.
1993         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
1994         * modules/fabsl-tests (Files): Add tests/randoml.c.
1995         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
1996
1997 2012-03-03  Bruno Haible  <bruno@clisp.org>
1998
1999         ldexp* tests: More tests.
2000         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
2001         * tests/test-ldexp.c (RANDOM): New macro.
2002         * tests/test-ldexpf.c (RANDOM): New macro.
2003         * tests/test-ldexpl.c (RANDOM): New macro.
2004         * modules/ldexp-tests (Files): Add tests/randomd.c.
2005         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
2006         * modules/ldexpf-tests (Files): Add tests/randomf.c.
2007         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
2008         * modules/ldexpl-tests (Files): Add tests/randoml.c.
2009         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
2010
2011 2012-03-03  Bruno Haible  <bruno@clisp.org>
2012
2013         frexp* tests: More tests.
2014         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
2015         * tests/test-frexp.c (RANDOM): New macro.
2016         * tests/test-frexpf.c (RANDOM): New macro.
2017         * tests/test-frexpl.c (RANDOM): New macro.
2018         * modules/frexp-tests (Files): Add tests/randomd.c.
2019         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
2020         * modules/frexpf-tests (Files): Add tests/randomf.c.
2021         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
2022         * modules/frexpl-tests (Files): Add tests/randoml.c.
2023         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
2024
2025 2012-03-03  Bruno Haible  <bruno@clisp.org>
2026
2027         Support for pseudo-random numbers in tests.
2028         * tests/randomf.c: New file.
2029         * tests/randomd.c: New file.
2030         * tests/randoml.c: New file.
2031         * tests/macros.h (randomf, randomd, randoml): New declarations.
2032
2033 2012-03-03  Bruno Haible  <bruno@clisp.org>
2034
2035         frexp* tests: Refactor.
2036         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
2037         * tests/test-frexp.c: Include and use it.
2038         * tests/test-frexpf.c: Likewise.
2039         * tests/test-frexpl.c: Likewise.
2040         * modules/frexp-tests (Files): Add tests/test-frexp.h.
2041         * modules/frexpf-tests (Files): Likewise.
2042         * modules/frexpl-tests (Files): Likewise.
2043
2044 2012-03-02  Jim Meyering  <meyering@redhat.com>
2045
2046         maint: don't specify XZ_OPT=-9ev in dist-related rule
2047         Using xz's -9 option is warranted only if you have a very large
2048         tarball (see xz's documentation for the sizes vs. presets), and
2049         requires 64MiB of memory at decompression time.
2050         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
2051         Automake's default of just "-e" is fine.  Override on a
2052         per-package basis by setting XZ_OPT e.g., in cfg.mk.
2053
2054 2012-03-01  Eric Blake  <eblake@redhat.com>
2055
2056         maint.mk: allow announcement for non-gnulib project
2057         * maint.mk (announcement): Skip gnulib version if not used.
2058
2059 2012-03-01  Jim Meyering  <meyering@redhat.com>
2060
2061         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
2062         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
2063         envvar settings cannot interfere.  Otherwise, setting envvars like
2064         prohibit=foo require=bar, etc. would cause spurious test failures.
2065
2066 2012-03-01  Eric Blake  <eblake@redhat.com>
2067
2068         maint.mk: add per-line exclusions to prohibitions
2069         * maint.mk (_sc_search_regexp): Add $exclude parameter.
2070         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
2071         (sc_const_long_option): Use it.
2072
2073 2012-03-01  Bruno Haible  <bruno@clisp.org>
2074
2075         Tests for module 'expl-ieee'.
2076         * modules/expl-ieee-tests: New file.
2077         * tests/test-expl-ieee.c: New file.
2078
2079         New module 'expl-ieee'.
2080         * modules/expl-ieee: New file.
2081
2082         Tests for module 'exp-ieee'.
2083         * modules/exp-ieee-tests: New file.
2084         * tests/test-exp-ieee.c: New file.
2085
2086         New module 'exp-ieee'.
2087         * modules/exp-ieee: New file.
2088
2089         Tests for module 'expf-ieee'.
2090         * modules/expf-ieee-tests: New file.
2091         * tests/test-expf-ieee.c: New file.
2092         * tests/test-exp-ieee.h: New file.
2093
2094         New module 'expf-ieee'.
2095         * modules/expf-ieee: New file.
2096
2097 2012-02-29  Bruno Haible  <bruno@clisp.org>
2098
2099         cbrtl-ieee: Work around test failure on IRIX 6.5.
2100         * m4/cbrtl-ieee.m4: New file.
2101         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
2102         test whether cbrtl works with a minus zero argument. Replace it if not.
2103         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
2104         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
2105         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
2106         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
2107         (Depends-on): Update conditions.
2108         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
2109         m4/signbit.m4.
2110         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
2111         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
2112         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
2113
2114         Tests for module 'cbrtl-ieee'.
2115         * modules/cbrtl-ieee-tests: New file.
2116         * tests/test-cbrtl-ieee.c: New file.
2117
2118         New module 'cbrtl-ieee'.
2119         * modules/cbrtl-ieee: New file.
2120
2121         Tests for module 'cbrt-ieee'.
2122         * modules/cbrt-ieee-tests: New file.
2123         * tests/test-cbrt-ieee.c: New file.
2124
2125         New module 'cbrt-ieee'.
2126         * modules/cbrt-ieee: New file.
2127
2128         Tests for module 'cbrtf-ieee'.
2129         * modules/cbrtf-ieee-tests: New file.
2130         * tests/test-cbrtf-ieee.c: New file.
2131         * tests/test-cbrt-ieee.h: New file.
2132
2133         New module 'cbrtf-ieee'.
2134         * modules/cbrtf-ieee: New file.
2135
2136 2012-02-29  Bruno Haible  <bruno@clisp.org>
2137
2138         cbrtf: Work around bug in IRIX 6.5 system function.
2139         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
2140         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
2141         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
2142         work.
2143         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
2144         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
2145         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
2146         (Depends-on): Update conditions.
2147         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
2148
2149 2012-02-29  Bruno Haible  <bruno@clisp.org>
2150
2151         Tests for module 'cbrtl'.
2152         * modules/cbrtl-tests: New file.
2153         * tests/test-cbrtl.c: New file.
2154
2155         New module 'cbrtl'.
2156         * lib/math.in.h (cbrtl): New declaration.
2157         * lib/cbrtl.c: New file.
2158         * m4/cbrtl.m4: New file.
2159         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
2160         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
2161         HAVE_DECL_CBRTL.
2162         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
2163         HAVE_DECL_CBRTL.
2164         * modules/cbrtl: New file.
2165         * tests/test-math-c++.cc: Check the declaration of cbrtl.
2166         * doc/posix-functions/cbrtl.texi: Mention the new module.
2167
2168 2012-02-29  Bruno Haible  <bruno@clisp.org>
2169
2170         Tests for module 'cbrtf'.
2171         * modules/cbrtf-tests: New file.
2172         * tests/test-cbrtf.c: New file.
2173
2174         New module 'cbrtf'.
2175         * lib/math.in.h (cbrtf): New declaration.
2176         * lib/cbrtf.c: New file.
2177         * m4/cbrtf.m4: New file.
2178         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
2179         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
2180         HAVE_DECL_CBRTF.
2181         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
2182         HAVE_DECL_CBRTF.
2183         * modules/cbrtf: New file.
2184         * tests/test-math-c++.cc: Check the declaration of cbrtf.
2185         * doc/posix-functions/cbrtf.texi: Mention the new module.
2186
2187 2012-02-29  Bruno Haible  <bruno@clisp.org>
2188
2189         cbrt: Provide replacement on MSVC and Minix.
2190         * lib/math.in.h (cbrt): New declaration.
2191         * lib/cbrt.c: New file.
2192         * m4/cbrt.m4: New file.
2193         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
2194         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
2195         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
2196         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
2197         (Depends-on): Add dependencies.
2198         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
2199         * tests/test-math-c++.cc: Check the declaration of cbrt.
2200         * doc/posix-functions/cbrt.texi: Mention that the module provides a
2201         replacement.
2202
2203 2012-02-29  Bruno Haible  <bruno@clisp.org>
2204
2205         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
2206         * m4/hypotl-ieee.m4: New file.
2207         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
2208         test whether hypotl works with mixed NaN and Infinity arguments.
2209         Replace it if not.
2210         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
2211         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
2212         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
2213         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
2214         (Depends-on): Update conditions.
2215         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
2216         (Depends-on): Add hypot-ieee.
2217         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
2218         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
2219
2220         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
2221         * m4/hypotf-ieee.m4: New file.
2222         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
2223         test whether hypotf works with mixed NaN and Infinity arguments.
2224         Replace it if not.
2225         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
2226         (Depends-on): Add hypot-ieee.
2227         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
2228         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
2229
2230         hypot-ieee: Work around test failure on OSF/1 and native Windows.
2231         * lib/math.in.h (hypot): New declaration.
2232         * lib/hypot.c: New file.
2233         * m4/hypot-ieee.m4: New file.
2234         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
2235         whether hypot works with mixed NaN and Infinity arguments. Replace it
2236         if not.
2237         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
2238         REPLACE_HYPOT.
2239         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
2240         * modules/hypot (Files): Add lib/hypot.c.
2241         (Depends-on): Add dependencies.
2242         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
2243         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
2244         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
2245         * tests/test-math-c++.cc: Check the declaration of hypot.
2246         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
2247
2248         Tests for module 'hypotl-ieee'.
2249         * modules/hypotl-ieee-tests: New file.
2250         * tests/test-hypotl-ieee.c: New file.
2251
2252         New module 'hypotl-ieee'.
2253         * modules/hypotl-ieee: New file.
2254
2255         Tests for module 'hypot-ieee'.
2256         * modules/hypot-ieee-tests: New file.
2257         * tests/test-hypot-ieee.c: New file.
2258
2259         New module 'hypot-ieee'.
2260         * modules/hypot-ieee: New file.
2261
2262         Tests for module 'hypotf-ieee'.
2263         * modules/hypotf-ieee-tests: New file.
2264         * tests/test-hypotf-ieee.c: New file.
2265         * tests/test-hypot-ieee.h: New file.
2266
2267         New module 'hypotf-ieee'.
2268         * modules/hypotf-ieee: New file.
2269
2270 2012-02-29  Bruno Haible  <bruno@clisp.org>
2271
2272         Remove unused variables.
2273         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
2274         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
2275         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
2276         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
2277
2278 2012-02-29  Eric Blake  <eblake@redhat.com>
2279
2280         termios: fix pid_t always, not just for tcgetsid
2281         * doc/posix-headers/termios.texi (termios.h): Mention problem.
2282         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
2283         just when building tcgetsid.
2284
2285 2012-02-29  Bruno Haible  <bruno@clisp.org>
2286
2287         Tests for module 'hypotl'.
2288         * modules/hypotl-tests: New file.
2289         * tests/test-hypotl.c: New file.
2290
2291         New module 'hypotl'.
2292         * lib/math.in.h (hypotl): New declaration.
2293         * lib/hypotl.c: New file.
2294         * m4/hypotl.m4: New file.
2295         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
2296         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
2297         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
2298         * modules/hypotl: New file.
2299         * tests/test-math-c++.cc: Check the hypotl declaration.
2300         * doc/posix-functions/hypotl.texi: Mention the new module.
2301
2302 2012-02-29  Eric Blake  <eblake@redhat.com>
2303
2304         tcgetsid: fix cygwin header bug
2305         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
2306
2307         docs: update cygwin progress
2308         * doc/posix-functions/llround.texi (llround): Added in cygwin
2309         1.7.8.
2310         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
2311         * doc/glibc-functions/program_invocation_name.texi
2312         (program_invocation_name): Likewise.
2313         * doc/glibc-functions/program_invocation_short_name.texi
2314         (program_invocation_short_name): Likewise.
2315         * doc/glibc-functions/madvise.texi (madvise): Likewise.
2316         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
2317         Likewise.
2318         * doc/posix-functions/pthread_spin_destroy.texi
2319         (pthread_spin_destroy): Added in cygwin 1.7.10.
2320         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
2321         Likewise.
2322         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
2323         Likewise.
2324         * doc/posix-functions/pthread_spin_trylock.texi
2325         (pthread_spin_trylock): Likewise.
2326         * doc/posix-functions/pthread_spin_unlock.texi
2327         (pthread_spin_unlock): Likewise.
2328         * doc/posix-functions/pthread_setschedprio.texi
2329         (pthread_setschedprio): Likewise.
2330         * doc/posix-functions/pthread_attr_getstack.texi
2331         (pthread_attr_getstack): Likewise.
2332         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
2333         (pthread_attr_getstackaddr): Likewise.
2334         * doc/glibc-functions/pthread_getattr_np.texi
2335         (pthread_getattr_np): Likewise.
2336         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
2337         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
2338         * doc/posix-functions/clock_settime.texi (clock_settime):
2339         Likewise.
2340         * doc/posix-functions/pthread_attr_getguardsize.texi
2341         (pthread_attr_getguardsize): Likewise.
2342         * doc/posix-functions/pthread_attr_setguardsize.texi
2343         (pthread_attr_setguardsize): Likewise.
2344         * doc/posix-functions/pthread_attr_setstack.texi
2345         (pthread_attr_setstack): Likewise.
2346         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
2347         (pthread_attr_setstackaddr): Likewise.
2348         * doc/posix-functions/clock_getcpuclockid.texi
2349         (clock_getcpuclockid): Likewise.
2350         * doc/posix-functions/pthread_getcpuclockid.texi
2351         (pthread_getcpuclockid): Likewise.
2352         * doc/glibc-functions/error.texi (error): Likewise.
2353         * doc/glibc-functions/error_at_line.texi (error_at_line):
2354         Likewise.
2355         * doc/glibc-functions/error_message_count.texi
2356         (error_message_count): Likewise.
2357         * doc/glibc-functions/error_one_per_line.texi
2358         (error_one_per_line): Likewise.
2359         * doc/glibc-functions/error_print_progname.texi
2360         (error_print_progname): Likewise.
2361         * doc/posix-functions/pthread_condattr_getclock.texi
2362         (pthread_condattr_getclock): Likewise.
2363         * doc/posix-functions/pthread_condattr_setclock.texi
2364         (pthread_condattr_setclock): Likewise.
2365         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
2366         Likewise.
2367         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
2368         * doc/glibc-functions/getpt.texi (getpt): Likewise.
2369         * doc/glibc-functions/get_current_dir_name.texi
2370         (get_current_dir_name): Likewise.
2371         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
2372         Likewise.
2373         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
2374         wrong return type.
2375         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
2376         1.7.11.
2377
2378 2012-02-29  Bruno Haible  <bruno@clisp.org>
2379
2380         Tests for module 'hypotf'.
2381         * modules/hypotf-tests: New file.
2382         * tests/test-hypotf.c: New file.
2383
2384         New module 'hypotf'.
2385         * lib/math.in.h (hypotf): New declaration.
2386         * lib/hypotf.c: New file.
2387         * m4/hypotf.m4: New file.
2388         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
2389         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
2390         REPLACE_HYPOTF.
2391         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
2392         REPLACE_HYPOTF.
2393         * modules/hypotf: New file.
2394         * tests/test-math-c++.cc: Check the hypotf declaration.
2395         * doc/posix-functions/hypotf.texi: Mention the new module.
2396
2397         hypot: Prepare for hypotf module.
2398         * m4/hypot.m4: New file.
2399         * modules/hypot (Files): Add m4/hypot.m4.
2400         (configure.ac): Invoke gl_FUNC_HYPOT.
2401
2402 2012-02-29  Bruno Haible  <bruno@clisp.org>
2403
2404         hypot tests: More tests.
2405         * tests/test-hypot.c: Include <float.h>.
2406         (main): Add tests about overflow and underflow.
2407
2408 2012-02-29  Bruno Haible  <bruno@clisp.org>
2409
2410         math code: Add comments.
2411         * lib/acosl.c: Add comment about related glibc source files.
2412         * lib/asinl.c: Likewise.
2413         * lib/atanl.c: Likewise.
2414         * lib/expl.c: Likewise.
2415         * lib/logl.c: Likewise.
2416         * lib/sincosl.c: Likewise.
2417         * lib/sinl.c: Likewise.
2418         * lib/tanl.c: Likewise.
2419         * lib/trigl.c: Likewise.
2420         * lib/cosl.c: Likewise. Fix comments.
2421
2422 2012-02-28  Bruno Haible  <bruno@clisp.org>
2423
2424         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
2425         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
2426         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
2427         HUGE_VALL are defined.
2428         (numeric_equald): Renamed from numeric_equal.
2429         (numeric_equalf, numeric_equall): New functions.
2430         (main): Check also HUGE_VALF, HUGE_VALL.
2431         * modules/math-tests (Files): Add tests/macros.h.
2432         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
2433         HUGE_VALL.
2434
2435 2012-02-28  Bruno Haible  <bruno@clisp.org>
2436
2437         doc: Move ISO C11 feature notes into POSIX chapters.
2438         * doc/posix-functions/aligned_alloc.texi: Renamed from
2439         doc/glibc-functions/aligned_alloc.texi.
2440         * doc/posix-functions/quick_exit.texi: Renamed from
2441         doc/glibc-functions/quick_exit.texi.
2442         * doc/posix-headers/uchar.texi: Renamed from
2443         doc/glibc-headers/uchar.texi.
2444         * doc/posix-functions/c16rtomb.texi: Renamed from
2445         doc/glibc-functions/c16rtomb.texi.
2446         * doc/posix-functions/c32rtomb.texi: Renamed from
2447         doc/glibc-functions/c32rtomb.texi.
2448         * doc/posix-functions/mbrtoc16.texi: Renamed from
2449         doc/glibc-functions/mbrtoc16.texi.
2450         * doc/posix-functions/mbrtoc32.texi: Renamed from
2451         doc/glibc-functions/mbrtoc32.texi.
2452         * doc/gnulib.texi: Update.
2453         (Glibc uchar.h): Remove section.
2454         Suggested by Eric Blake.
2455
2456 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
2457
2458         stdnoreturn: port to MSVC better
2459         MSVC standard headers use __declspec(noreturn), so #define noreturn
2460         to empty on that platform.  Reported by Bruno Haible in
2461         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
2462         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
2463         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
2464
2465 2012-02-28  Bruno Haible  <bruno@clisp.org>
2466
2467         doc: Mention new glibc headers and functions.
2468         * doc/glibc-headers/uchar.texi: New file.
2469         * doc/glibc-functions/aligned_alloc.texi: New file.
2470         * doc/glibc-functions/c16rtomb.texi: New file.
2471         * doc/glibc-functions/c32rtomb.texi: New file.
2472         * doc/glibc-functions/clock_adjtime.texi: New file.
2473         * doc/glibc-functions/fanotify_init.texi: New file.
2474         * doc/glibc-functions/fanotify_mark.texi: New file.
2475         * doc/glibc-functions/inet6_opt_append.texi: New file.
2476         * doc/glibc-functions/inet6_opt_find.texi: New file.
2477         * doc/glibc-functions/inet6_opt_finish.texi: New file.
2478         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
2479         * doc/glibc-functions/inet6_opt_init.texi: New file.
2480         * doc/glibc-functions/inet6_opt_next.texi: New file.
2481         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
2482         * doc/glibc-functions/inet6_rth_add.texi: New file.
2483         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
2484         * doc/glibc-functions/inet6_rth_init.texi: New file.
2485         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
2486         * doc/glibc-functions/inet6_rth_segments.texi: New file.
2487         * doc/glibc-functions/inet6_rth_space.texi: New file.
2488         * doc/glibc-functions/login.texi: New file.
2489         * doc/glibc-functions/mbrtoc16.texi: New file.
2490         * doc/glibc-functions/mbrtoc32.texi: New file.
2491         * doc/glibc-functions/name_to_handle_at.texi: New file.
2492         * doc/glibc-functions/ntp_gettimex.texi: New file.
2493         * doc/glibc-functions/open_by_handle_at.texi: New file.
2494         * doc/glibc-functions/prlimit.texi: New file.
2495         * doc/glibc-functions/process_vm_readv.texi: New file.
2496         * doc/glibc-functions/process_vm_writev.texi: New file.
2497         * doc/glibc-functions/recvmmsg.texi: New file.
2498         * doc/glibc-functions/scandirat.texi: New file.
2499         * doc/glibc-functions/sendmmsg.texi: New file.
2500         * doc/glibc-functions/setns.texi: New file.
2501         * doc/glibc-functions/timespec_get.texi: New file.
2502         * doc/gnulib.texi: Include them.
2503         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
2504         sections.
2505         Reported by Eric Blake.
2506
2507 2012-02-28  Bruno Haible  <bruno@clisp.org>
2508
2509         Avoid compilation errors with MSVC option -fp:strict.
2510         * lib/floor.c: Use MSVC specific pragma fenv_access.
2511         * lib/ceil.c: Likewise.
2512         * lib/trunc.c: Likewise.
2513         * lib/round.c: Likewise.
2514         * lib/rint.c: Likewise.
2515         * lib/fma.c: Likewise.
2516         * lib/integer_length.c: Likewise.
2517         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
2518         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
2519         * tests/test-floor2.c: Likewise.
2520         * tests/test-floorf2.c: Likewise.
2521         * tests/test-ceil2.c: Likewise.
2522         * tests/test-ceilf2.c: Likewise.
2523         * tests/test-trunc2.c: Likewise.
2524         * tests/test-truncf2.c: Likewise.
2525         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2526
2527 2012-02-27  Bruno Haible  <bruno@clisp.org>
2528
2529         Tests for module 'sqrtl-ieee'.
2530         * modules/sqrtl-ieee-tests: New file.
2531         * tests/test-sqrtl-ieee.c: New file.
2532
2533         New module 'sqrtl-ieee'.
2534         * modules/sqrtl-ieee: New file.
2535
2536         Tests for module 'sqrt-ieee'.
2537         * modules/sqrt-ieee-tests: New file.
2538         * tests/test-sqrt-ieee.c: New file.
2539
2540         New module 'sqrt-ieee'.
2541         * modules/sqrt-ieee: New file.
2542
2543         Tests for module 'sqrtf-ieee'.
2544         * modules/sqrtf-ieee-tests: New file.
2545         * tests/test-sqrtf-ieee.c: New file.
2546         * tests/test-sqrt-ieee.h: New file.
2547
2548         New module 'sqrtf-ieee'.
2549         * modules/sqrtf-ieee: New file.
2550
2551 2012-02-27  Bruno Haible  <bruno@clisp.org>
2552
2553         remainderl-ieee: Work around test failure on OSF/1.
2554         * m4/remainderl-ieee.m4: New file.
2555         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
2556         present, test whether remainderl works with a zero second argument.
2557         Replace it if not.
2558         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
2559         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
2560         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
2561         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
2562         (Depends-on): Update conditions.
2563         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
2564         (Depends-on): Add remainder-ieee.
2565         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
2566         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
2567         module.
2568
2569         remainderf-ieee: Work around test failure on OSF/1.
2570         * m4/remainderf-ieee.m4: New file.
2571         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
2572         present, test whether remainderf works with a zero second argument.
2573         Replace it if not.
2574         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
2575         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
2576         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
2577         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
2578         (Depends-on): Update conditions.
2579         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
2580         (Depends-on): Add remainder-ieee.
2581         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
2582         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
2583         module.
2584
2585         remainder-ieee: Work around test failure on OSF/1.
2586         * m4/remainder-ieee.m4: New file.
2587         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
2588         present, test whether remainder works with a zero second argument.
2589         Replace it if not.
2590         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
2591         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
2592         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
2593         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
2594         (Depends-on): Update dependencies.
2595         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
2596         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
2597         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
2598
2599         Tests for module 'remainderl-ieee'.
2600         * modules/remainderl-ieee-tests: New file.
2601         * tests/test-remainderl-ieee.c: New file.
2602
2603         New module 'remainderl-ieee'.
2604         * modules/remainderl-ieee: New file.
2605
2606         Tests for module 'remainder-ieee'.
2607         * modules/remainder-ieee-tests: New file.
2608         * tests/test-remainder-ieee.c: New file.
2609
2610         New module 'remainder-ieee'.
2611         * modules/remainder-ieee: New file.
2612
2613         Tests for module 'remainderf-ieee'.
2614         * modules/remainderf-ieee-tests: New file.
2615         * tests/test-remainderf-ieee.c: New file.
2616         * tests/test-remainder-ieee.h: New file.
2617
2618         New module 'remainderf-ieee'.
2619         * modules/remainderf-ieee: New file.
2620
2621 2012-02-27  Bruno Haible  <bruno@clisp.org>
2622
2623         modff, modfl: Fix configure syntax error.
2624         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
2625         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
2626
2627 2012-02-27  Bruno Haible  <bruno@clisp.org>
2628
2629         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
2630         * m4/fmodl-ieee.m4: New file.
2631         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
2632         whether fmodl works with zero arguments. Replace it if not.
2633         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
2634         (Depends-on): Add fmod-ieee.
2635         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
2636         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
2637
2638         fmodf-ieee: Work around test failure on OSF/1.
2639         * m4/fmodf-ieee.m4: New file.
2640         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
2641         whether fmodf works with zero arguments. Replace it if not.
2642         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
2643         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
2644         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
2645         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
2646         (Depends-on): Update dependencies.
2647         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
2648         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
2649         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
2650
2651         fmodf-ieee: Work around test failure on MSVC 9.
2652         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
2653         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
2654
2655         fmod-ieee: Work around test failures on OSF/1, mingw.
2656         * m4/fmod-ieee.m4: New file.
2657         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
2658         whether fmod works with zero arguments. Replace it if not.
2659         * lib/math.in.h (fmod): New declaration.
2660         * lib/fmod.c: New file.
2661         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
2662         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
2663         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
2664         * modules/fmod (Files): Add lib/fmod.c.
2665         (Depends-on): Add math, isinf, trunc, fma.
2666         (configure.ac): Arrange to compile lib/fmod.c if needed.
2667         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
2668         m4/signbit.m4.
2669         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
2670         * tests/test-math-c++.cc: Check the declaration of fmod.
2671         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
2672
2673         fmodl-ieee: Fix test failures.
2674         * lib/fmodl.c (fmodl): Treat Inf specially.
2675         * modules/fmodl (Depends-on): Add isinf.
2676
2677         Tests for module 'fmodl-ieee'.
2678         * modules/fmodl-ieee-tests: New file.
2679         * tests/test-fmodl-ieee.c: New file.
2680
2681         New module 'fmodl-ieee'.
2682         * modules/fmodl-ieee: New file.
2683
2684         Tests for module 'fmod-ieee'.
2685         * modules/fmod-ieee-tests: New file.
2686         * tests/test-fmod-ieee.c: New file.
2687
2688         New module 'fmod-ieee'.
2689         * modules/fmod-ieee: New file.
2690
2691         Tests for module 'fmodf-ieee'.
2692         * modules/fmodf-ieee-tests: New file.
2693         * tests/test-fmodf-ieee.c: New file.
2694         * tests/test-fmod-ieee.h: New file.
2695
2696         New module 'fmodf-ieee'.
2697         * modules/fmodf-ieee: New file.
2698
2699 2012-02-27  Bruno Haible  <bruno@clisp.org>
2700
2701         Tests for module 'rintl-ieee'.
2702         * modules/rintl-ieee-tests: New file.
2703         * tests/test-rintl-ieee.c: New file.
2704
2705         New module 'rintl-ieee'.
2706         * modules/rintl-ieee: New file.
2707
2708         Tests for module 'rint-ieee'.
2709         * modules/rint-ieee-tests: New file.
2710         * tests/test-rint-ieee.c: New file.
2711
2712         New module 'rint-ieee'.
2713         * modules/rint-ieee: New file.
2714
2715         Tests for module 'rintf-ieee'.
2716         * modules/rintf-ieee-tests: New file.
2717         * tests/test-rintf-ieee.c: New file.
2718         * tests/test-rint-ieee.h: New file.
2719
2720         New module 'rintf-ieee'.
2721         * modules/rintf-ieee: New file.
2722
2723 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
2724
2725         regex: re_search etc. should return -2 when memory exhausted
2726         This bug was uncovered when testing 'grep'.  Without the fix,
2727         re_search and friends return -1 when memory is exhausted, but -1
2728         means no match, and this causes grep to falsely report no-match
2729         instead of memory-exhaustion.  See
2730         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
2731         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
2732         trouble; this can occur if re_search_internal ran out of memory.
2733
2734 2012-02-26  Bruno Haible  <bruno@clisp.org>
2735
2736         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
2737         * m4/modfl-ieee.m4: New file.
2738         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
2739         whether modfl works with Inf. Replace it if not.
2740         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
2741         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
2742         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
2743         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
2744         (Depends-on): Update dependencies.
2745         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
2746         m4/signbit.m4.
2747         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
2748         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
2749
2750         modfl-ieee: Fix dependencies.
2751         * modules/modfl-ieee (Depends-on): Add modf-ieee.
2752
2753         modfl-ieee: Fix test failures.
2754         * lib/modfl.c (modfl): Treat NaN and Inf specially.
2755         * modules/modfl (Depends-on): Add isfinite, isinf.
2756
2757         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
2758         * m4/modff-ieee.m4: New file.
2759         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
2760         whether modff works with NaN and Inf. Replace it if not.
2761         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
2762         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
2763         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
2764         * modules/modff (configure.ac): Consider REPLACE_MODFF.
2765         (Depends-on): Update dependencies.
2766         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
2767         m4/signbit.m4.
2768         (Depends-on): Add modf-ieee.
2769         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
2770         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
2771
2772         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
2773         * m4/modf-ieee.m4: New file.
2774         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
2775         whether modf works with NaN and Inf. Replace it if not.
2776         * lib/math.in.h (modf): New declaration.
2777         * lib/modf.c: New file.
2778         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
2779         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
2780         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
2781         * modules/modf (Files): Add lib/modf.c.
2782         (Depends-on): Add math, isfinite, trunc, isinf.
2783         (configure.ac): Addrange to compile lib/modf.c if needed.
2784         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
2785         m4/signbit.m4.
2786         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
2787         * tests/test-math-c++.cc: Check the declaration of modf.
2788         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
2789
2790         Tests for module 'modfl-ieee'.
2791         * modules/modfl-ieee-tests: New file.
2792         * tests/test-modfl-ieee.c: New file.
2793
2794         New module 'modfl-ieee'.
2795         * modules/modfl-ieee: New file.
2796
2797         Tests for module 'modf-ieee'.
2798         * modules/modf-ieee-tests: New file.
2799         * tests/test-modf-ieee.c: New file.
2800
2801         New module 'modf-ieee'.
2802         * modules/modf-ieee: New file.
2803
2804         Tests for module 'modff-ieee'.
2805         * modules/modff-ieee-tests: New file.
2806         * tests/test-modff-ieee.c: New file.
2807         * tests/test-modf-ieee.h: New file.
2808
2809         New module 'modff-ieee'.
2810         * modules/modff-ieee: New file.
2811
2812 2012-02-26  Bruno Haible  <bruno@clisp.org>
2813
2814         Tests for module 'fabsl-ieee'.
2815         * modules/fabsl-ieee-tests: New file.
2816         * tests/test-fabsl-ieee.c: New file.
2817
2818         New module 'fabsl-ieee'.
2819         * modules/fabsl-ieee: New file.
2820
2821         Tests for module 'fabs-ieee'.
2822         * modules/fabs-ieee-tests: New file.
2823         * tests/test-fabs-ieee.c: New file.
2824
2825         New module 'fabs-ieee'.
2826         * modules/fabs-ieee: New file.
2827
2828         Tests for module 'fabsf-ieee'.
2829         * modules/fabsf-ieee-tests: New file.
2830         * tests/test-fabsf-ieee.c: New file.
2831         * tests/test-fabs-ieee.h: New file.
2832
2833         New module 'fabsf-ieee'.
2834         * modules/fabsf-ieee: New file.
2835
2836 2012-02-26  Bruno Haible  <bruno@clisp.org>
2837
2838         Tests for module 'fmal-ieee'.
2839         * modules/fmal-ieee-tests: New file.
2840         * tests/test-fmal-ieee.c: New file.
2841
2842         New module 'fmal-ieee'.
2843         * modules/fmal-ieee: New file.
2844
2845         Tests for module 'fma-ieee'.
2846         * modules/fma-ieee-tests: New file.
2847         * tests/test-fma-ieee.c: New file.
2848
2849         New module 'fma-ieee'.
2850         * modules/fma-ieee: New file.
2851
2852         Tests for module 'fmaf-ieee'.
2853         * modules/fmaf-ieee-tests: New file.
2854         * tests/test-fmaf-ieee.c: New file.
2855         * tests/test-fma-ieee.h: New file.
2856
2857         New module 'fmaf-ieee'.
2858         * modules/fmaf-ieee: New file.
2859
2860 2012-02-26  Bruno Haible  <bruno@clisp.org>
2861
2862         Tests for module 'ldexpl-ieee'.
2863         * modules/ldexpl-ieee-tests: New file.
2864         * tests/test-ldexpl-ieee.c: New file.
2865
2866         New module 'ldexpl-ieee'.
2867         * modules/ldexpl-ieee: New file.
2868
2869         Tests for module 'ldexp-ieee'.
2870         * modules/ldexp-ieee-tests: New file.
2871         * tests/test-ldexp-ieee.c: New file.
2872
2873         New module 'ldexp-ieee'.
2874         * modules/ldexp-ieee: New file.
2875
2876         Tests for module 'ldexpf-ieee'.
2877         * modules/ldexpf-ieee-tests: New file.
2878         * tests/test-ldexpf-ieee.c: New file.
2879         * tests/test-ldexp-ieee.h: New file.
2880
2881         New module 'ldexpf-ieee'.
2882         * modules/ldexpf-ieee: New file.
2883
2884 2012-02-26  Bruno Haible  <bruno@clisp.org>
2885
2886         Refactor frexp*-ieee tests.
2887         * tests/test-frexp-ieee.h: New file.
2888         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
2889         (main): Just call test_function.
2890         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
2891         (main): Just call test_function.
2892         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
2893         (main): Just call test_function.
2894         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
2895         * modules/frexp-ieee-tests (Files): Likewise.
2896         * modules/frexpl-ieee-tests (Files): Likewise.
2897
2898         Tests for module 'frexpl-ieee'.
2899         * modules/frexpl-ieee-tests: New file.
2900         * tests/test-frexpl-ieee.c: New file.
2901
2902         New module 'frexpl-ieee'.
2903         * modules/frexpl-ieee: New file.
2904
2905         Tests for module 'frexp-ieee'.
2906         * modules/frexp-ieee-tests: New file.
2907         * tests/test-frexp-ieee.c: New file.
2908
2909         New module 'frexp-ieee'.
2910         * modules/frexp-ieee: New file.
2911
2912         Tests for module 'frexpf-ieee'.
2913         * modules/frexpf-ieee-tests: New file.
2914         * tests/test-frexpf-ieee.c: New file.
2915
2916         New module 'frexpf-ieee'.
2917         * modules/frexpf-ieee: New file.
2918
2919 2012-02-26  Bruno Haible  <bruno@clisp.org>
2920
2921         roundl-ieee tests: More tests.
2922         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2923         (main): Add tests for [MX] shaded specification in POSIX.
2924         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2925         (Depends-on): Add isnanl-nolibm.
2926
2927         round-ieee tests: More tests.
2928         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2929         (main): Add tests for [MX] shaded specification in POSIX.
2930         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2931         (Depends-on): Add isnand-nolibm.
2932
2933         roundf-ieee tests: More tests.
2934         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2935         (main): Add tests for [MX] shaded specification in POSIX.
2936         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2937         (Depends-on): Add isnanf-nolibm.
2938
2939         truncl-ieee tests: More tests.
2940         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2941         (main): Add tests for [MX] shaded specification in POSIX.
2942         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2943         (Depends-on): Add isnanl-nolibm.
2944
2945         trunc-ieee tests: More tests.
2946         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2947         (main): Add tests for [MX] shaded specification in POSIX.
2948         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2949         (Depends-on): Add isnand-nolibm.
2950
2951         truncf-ieee tests: More tests.
2952         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2953         (main): Add tests for [MX] shaded specification in POSIX.
2954         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2955         (Depends-on): Add isnanf-nolibm.
2956
2957         ceill-ieee tests: More tests.
2958         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2959         (main): Add tests for [MX] shaded specification in POSIX.
2960         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2961         (Depends-on): Add isnanl-nolibm.
2962
2963         ceil-ieee tests: More tests.
2964         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2965         (main): Add tests for [MX] shaded specification in POSIX.
2966         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2967         (Depends-on): Add isnand-nolibm.
2968
2969         ceilf-ieee tests: More tests.
2970         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2971         (main): Add tests for [MX] shaded specification in POSIX.
2972         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2973         (Depends-on): Add isnanf-nolibm.
2974
2975         floorl-ieee tests: More tests.
2976         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2977         (main): Add tests for [MX] shaded specification in POSIX.
2978         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2979         (Depends-on): Add isnanl-nolibm.
2980
2981         floor-ieee tests: More tests.
2982         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2983         (main): Add tests for [MX] shaded specification in POSIX.
2984         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2985         (Depends-on): Add isnand-nolibm.
2986
2987         floorf-ieee tests: More tests.
2988         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2989         (main): Add tests for [MX] shaded specification in POSIX.
2990         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2991         (Depends-on): Add isnanf-nolibm.
2992
2993 2012-02-26  Bruno Haible  <bruno@clisp.org>
2994
2995         fpieee: More comments.
2996         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
2997
2998 2012-02-25  Bruno Haible  <bruno@clisp.org>
2999
3000         Tests for module 'log10l'.
3001         * modules/log10l-tests: New file.
3002         * tests/test-log10l.c: New file.
3003         * tests/test-math-c++.cc: Check the declaration of log10l.
3004
3005         New module 'log10l'.
3006         * lib/math.in.h (log10l): New declaration.
3007         * lib/log10l.c: New file.
3008         * m4/log10l.m4: New file.
3009         * modules/log10l: New file.
3010         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
3011         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
3012         HAVE_DECL_LOG10L.
3013         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
3014         HAVE_DECL_LOG10L.
3015         * doc/posix-functions/log10l.texi: Mention the new module.
3016
3017 2012-02-25  Bruno Haible  <bruno@clisp.org>
3018
3019         fmodl, remainder*: Avoid wrong results due to rounding errors.
3020         * lib/fmodl.c (fmodl): Correct the result if it is not within the
3021         expected bounds.
3022         * lib/remainderf.c (remainderf): Likewise.
3023         * lib/remainder.c (remainder): Likewise.
3024         * lib/remainderl.c (remainderl): Likewise.
3025
3026 2012-02-25  Bruno Haible  <bruno@clisp.org>
3027
3028         Tests for module 'remainderl'.
3029         * modules/remainderl-tests: New file.
3030         * tests/test-remainderl.c: New file.
3031         * tests/test-math-c++.cc: Check the declaration of remainderl.
3032
3033         New module 'remainderl'.
3034         * lib/math.in.h (remainderl): New declaration.
3035         * lib/remainderl.c: New file.
3036         * m4/remainderl.m4: New file.
3037         * modules/remainderl: New file.
3038         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
3039         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
3040         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
3041         HAVE_REMAINDERL.
3042         * doc/posix-functions/remainderl.texi: Mention the new module.
3043
3044 2012-02-25  Bruno Haible  <bruno@clisp.org>
3045
3046         Tests for module 'remainderf'.
3047         * modules/remainderf-tests: New file.
3048         * tests/test-remainderf.c: New file.
3049         * tests/test-math-c++.cc: Check the declaration of remainderf.
3050
3051         New module 'remainderf'.
3052         * lib/math.in.h (remainderf): New declaration.
3053         * lib/remainderf.c: New file.
3054         * m4/remainderf.m4: New file.
3055         * modules/remainderf: New file.
3056         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
3057         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
3058         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
3059         HAVE_REMAINDERF.
3060         * doc/posix-functions/remainderf.texi: Mention the new module.
3061
3062 2012-02-25  Bruno Haible  <bruno@clisp.org>
3063
3064         remainder: Support for MSVC.
3065         * lib/math.in.h (remainder): New declaration.
3066         * lib/remainder.c: New file.
3067         * m4/remainder.m4: New file.
3068         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
3069         (Depends-on): Add math, round, fma.
3070         (configure.ac): Use results of gl_FUNC_REMAINDER.
3071         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
3072         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
3073         HAVE_DECL_REMAINDER.
3074         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
3075         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
3076         * tests/test-math-c++.cc: Check the declaration of remainder.
3077         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
3078         problems are fixed.
3079
3080 2012-02-25  Bruno Haible  <bruno@clisp.org>
3081
3082         Tests for module 'fmodl'.
3083         * modules/fmodl-tests: New file.
3084         * tests/test-fmodl.c: New file.
3085         * tests/test-math-c++.cc: Check the declaration of fmodl.
3086
3087         New module 'fmodl'.
3088         * lib/math.in.h (fmodl): New declaration.
3089         * lib/fmodl.c: New file.
3090         * m4/fmodl.m4: New file.
3091         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
3092         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
3093         REPLACE_FMODL.
3094         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
3095         REPLACE_FMODL.
3096         * modules/fmodl: New file.
3097         * doc/posix-functions/fmodl.texi: Mention the new module.
3098
3099 2012-02-25  Bruno Haible  <bruno@clisp.org>
3100
3101         Tests for module 'modfl'.
3102         * modules/modfl-tests: New file.
3103         * tests/test-modfl.c: New file.
3104         * tests/test-math-c++.cc: Check the declaration of modfl.
3105
3106         New module 'modfl'.
3107         * lib/math.in.h (modfl): New declaration.
3108         * lib/modfl.c: New file.
3109         * m4/modfl.m4: New file.
3110         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
3111         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
3112         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
3113         * modules/modfl: New file.
3114         * doc/posix-functions/modfl.texi: Mention the new module.
3115
3116 2012-02-25  Bruno Haible  <bruno@clisp.org>
3117
3118         Tests for module 'fabsl'.
3119         * modules/fabsl-tests: New file.
3120         * tests/test-fabsl.c: New file.
3121         * tests/test-math-c++.cc: Check the declaration of fabsl.
3122
3123         New module 'fabsl'.
3124         * lib/math.in.h (fabsl): New declaration.
3125         * lib/fabsl.c: New file.
3126         * m4/fabsl.m4: New file.
3127         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
3128         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
3129         REPLACE_FABSL.
3130         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
3131         REPLACE_FABSL.
3132         * modules/fabsl: New file.
3133         * doc/posix-functions/fabsl.texi: Mention the new module.
3134
3135 2012-02-25  Bruno Haible  <bruno@clisp.org>
3136
3137         fabs tests: More tests.
3138         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
3139         (zero): New variable.
3140         (main): Add tests for signed zero.
3141         * modules/fabs-tests (Files): Add tests/minus-zero.h.
3142
3143         fabsf tests: More tests.
3144         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
3145         (zero): New variable.
3146         (main): Add tests for signed zero.
3147         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
3148
3149 2012-02-24  Bruno Haible  <bruno@clisp.org>
3150
3151         atanl: Provide function definition on MSVC.
3152         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
3153         function pointer.
3154         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
3155
3156 2012-02-24  Bruno Haible  <bruno@clisp.org>
3157
3158         acosl: Provide function definition on MSVC.
3159         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
3160         function pointer.
3161         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
3162
3163 2012-02-24  Bruno Haible  <bruno@clisp.org>
3164
3165         asinl: Provide function definition on MSVC.
3166         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
3167         function pointer.
3168         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
3169
3170 2012-02-24  Bruno Haible  <bruno@clisp.org>
3171
3172         tanl: Provide function definition on MSVC.
3173         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
3174         function pointer.
3175         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
3176
3177 2012-02-24  Bruno Haible  <bruno@clisp.org>
3178
3179         cosl: Provide function definition on MSVC.
3180         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
3181         function pointer.
3182         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
3183
3184 2012-02-24  Bruno Haible  <bruno@clisp.org>
3185
3186         sinl: Provide function definition on MSVC.
3187         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
3188         function pointer.
3189         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
3190
3191 2012-02-24  Bruno Haible  <bruno@clisp.org>
3192
3193         logl: Provide function definition on MSVC.
3194         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
3195         function pointer.
3196         * lib/math.in.h (logl): Undefine if it does not exist as a function.
3197
3198 2012-02-24  Bruno Haible  <bruno@clisp.org>
3199
3200         expl: Provide function definition on MSVC.
3201         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
3202         function pointer.
3203         * lib/math.in.h (expl): Undefine if it does not exist as a function.
3204
3205 2012-02-24  Bruno Haible  <bruno@clisp.org>
3206
3207         sqrtl: Provide function definition on MSVC.
3208         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
3209         a function pointer.
3210         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
3211
3212 2012-02-24  Bruno Haible  <bruno@clisp.org>
3213
3214         ceill: Provide function definition on MSVC.
3215         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
3216         used as a function pointer.
3217         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
3218
3219 2012-02-24  Bruno Haible  <bruno@clisp.org>
3220
3221         floorl: Provide function definition on MSVC.
3222         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
3223         used as a function pointer.
3224         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
3225
3226 2012-02-24  Bruno Haible  <bruno@clisp.org>
3227
3228         ceilf: Provide function definition on MSVC.
3229         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
3230         used as a function pointer.
3231         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
3232
3233 2012-02-24  Bruno Haible  <bruno@clisp.org>
3234
3235         floorf: Provide function definition on MSVC.
3236         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
3237         used as a function pointer.
3238         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
3239
3240 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
3241
3242         stdnoreturn: new module
3243         This implements a replacement for C11's <stdnoreturn.h>.
3244         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
3245         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
3246         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
3247         * tests/test-stdnoreturn.c: New files.
3248
3249 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
3250
3251         regex: fix false multibyte matches in some regular expressions
3252         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
3253         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
3254         * lib/regex_internal.c (re_string_skip_chars):
3255         Fix miscomputation of remain_len that may cause incomplete
3256         multi-byte character and false match.
3257
3258 2012-02-24  Jim Meyering  <meyering@redhat.com>
3259
3260         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
3261         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
3262         uses with "==" *before* the call, e.g., 0 == strcmp (...)
3263         Remove now-unnecessary str''cmp obfuscation.
3264         Suggested by Akim Demaille.
3265
3266 2012-02-24  Bruno Haible  <bruno@clisp.org>
3267
3268         streq: Rename macro.
3269         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
3270         * NEWS: Mention the change.
3271         * lib/mbrtowc.c (mbrtowc): Update.
3272         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
3273         * lib/wcwidth.c (wcwidth): Update.
3274         Suggested by Akim Demaille and Jim Meyering.
3275
3276 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
3277
3278         regex: fix typo in definition of MIN
3279         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
3280         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
3281
3282 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
3283             Bruno Haible  <bruno@clisp.org>
3284
3285         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
3286         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
3287         entries into a stack-allocated buffer directly.
3288         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
3289
3290 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
3291             Bruno Haible  <bruno@clisp.org>
3292
3293         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
3294
3295          - There were several instances of this pattern:
3296
3297              for (;;) {
3298                n = acl (f, GETACLCNT, 0, NULL);
3299                [ allocate an array A of size N ]
3300                if (acl (f, GETACL, n, a) == n)
3301                  break;
3302              }
3303
3304            This loop might never terminate if some other process is constantly
3305            manipulating the file's ACL.  The loop should be rewritten to
3306            terminate.
3307
3308          - The acl (... GETACLNT ...) call is merely an optimization; its value
3309            is merely a hint as to how big to make the array.  A better
3310            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
3311            and just guess a reasonably-big size, growing the size and trying
3312            again if it's not large enough.  This guarantees termination, and
3313            saves a system call.
3314
3315         * lib/acl-internal.h: Include <limits.h>.
3316         (MIN, SIZE_MAX): New macros.
3317         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
3318         a stack-allocated buffer, and use malloc if it does not fit. Don't
3319         use GETACLCNT.
3320         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
3321
3322 2012-02-19  Bruno Haible  <bruno@clisp.org>
3323
3324         acl: Fix endless loop on Solaris with vxfs.
3325         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
3326         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
3327         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
3328         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
3329         * tests/test-sameacls.c (main)[Solaris]: Likewise.
3330         Reported by Bill Jones in
3331         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
3332
3333 2012-02-19  Bruno Haible  <bruno@clisp.org>
3334
3335         acl: Fix copy-acl test failure on Solaris 11 2011-11.
3336         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
3337         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
3338         that this function returns 0 in some more cases.
3339
3340 2012-02-19  Bruno Haible  <bruno@clisp.org>
3341
3342         acl: Update doc references.
3343         * doc/acl-resources.txt: Update links to Solaris documentation.
3344
3345 2012-02-19  Bruno Haible  <bruno@clisp.org>
3346
3347         Fix test failure in many locales on Solaris 11.
3348         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
3349         'tr' arguments.
3350         * tests/test-pipe-filter-ii1.c (main): Likewise.
3351         * build-aux/bootstrap (check_versions): Run 'tr' command with range
3352         expressions in the C locale.
3353         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
3354         * m4/host-os.m4 (gl_HOST_OS): Likewise.
3355
3356 2012-02-19  Bruno Haible  <bruno@clisp.org>
3357
3358         gnulib-tool: Improve usage message.
3359         * gnulib-tool (func_usage): Move doc of --help and --version to the
3360         section "Operation modes".
3361
3362 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
3363
3364         README-release: make it easier to execute commands
3365         * top/README-release: break commands out on to separate lines.
3366
3367 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
3368
3369         GNUmakefile: simplify detection of unconfigured trees
3370         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
3371         whether the tree make is being run from is already configured or
3372         not.  Related simplifications.
3373
3374 2012-02-13  Simon Josefsson  <simon@josefsson.org>
3375
3376         * gnulib-tool (func_usage): Document --help and --version.
3377
3378 2012-02-11  Jim Meyering  <meyering@redhat.com>
3379
3380         bootstrap: don't exit 0 upon gnulib-tool failure
3381         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
3382         its exit status, not 0.
3383
3384 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
3385
3386         README-release: various improvements
3387         * top/README-release: Give a command to push changes for the
3388         release.  Add "distcheck" to list of other pre-release checks.
3389         Fix instance of "make stable" which should be "make TYPE".
3390
3391 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
3392
3393         maint: replace FSF snail-mail addresses with URLs
3394         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
3395         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
3396         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
3397         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
3398         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
3399         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
3400         * lib/check-version.c, lib/check-version.h, lib/config.charset:
3401         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
3402         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
3403         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
3404         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
3405         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
3406         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
3407         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
3408         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
3409         * lib/glthread/thread.c, lib/glthread/thread.h:
3410         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
3411         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
3412         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
3413         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
3414         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
3415         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
3416         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
3417         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
3418         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
3419         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
3420         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
3421         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
3422         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
3423         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
3424         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
3425         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
3426         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
3427         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
3428         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
3429         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
3430         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
3431         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
3432         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
3433         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
3434         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
3435         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
3436         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
3437         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
3438         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
3439         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
3440         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
3441         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
3442         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
3443         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
3444         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
3445         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
3446         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
3447         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
3448         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
3449         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
3450         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
3451         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
3452         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
3453         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
3454         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
3455         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
3456         * tests/test-poll.c, tests/test-quotearg-simple.c:
3457         * tests/test-quotearg.c, tests/test-quotearg.h:
3458         * tests/test-round-ieee.c, tests/test-round1.c:
3459         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
3460         * tests/test-roundl-ieee.c, tests/test-roundl.c:
3461         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
3462         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
3463         * tests/test-strerror.c, tests/test-strerror_r.c:
3464         * tests/test-strsignal.c, tests/test-strverscmp.c:
3465         * tests/test-xmemdup0.c:
3466         Replace FSF snail mail addresses with URLs, as per GNU coding
3467         standards.  See glibc bug
3468         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
3469
3470 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
3471
3472         README-release: capitalize a word and split a line
3473         * top/README-release: Fix punctuation and spacing.
3474
3475 2012-02-08  Akim Demaille  <demaille@gostai.com>
3476
3477         fatal-signal: use C prototypes (with explicit void).
3478         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
3479         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
3480
3481 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
3482
3483         regex: spelling fix
3484         * lib/regexec.c: spelling fix
3485
3486         regex: rely on stdint.h for SIZE_MAX
3487         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
3488
3489 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
3490
3491         regex: merge glibc changes
3492
3493         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
3494         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
3495         (init_word_char): Work even if bitset words are not exactly 32 or
3496         64 bits wide.  Don't assume there are no padding bits.
3497         * lib/regex.c [_LIBC]: Do not include <config.h>.
3498         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
3499         and -Wtype-limits.
3500         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
3501         needless disagreement with glibc.  All uses changed.  Define it to
3502         1 only if _GNU_SOURCE, to match glibc.
3503         (_REG_RM_NAME): Remove; no longer needed, since the names in
3504         question are now all protected by __USE_GNU.
3505         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
3506         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
3507         * lib/regex_internal.h (MIN): New macro.
3508
3509         2012-01-03 Ulrich Drepper <drepper@gmail.com>
3510         * lib/regcomp.c (init_word_char): Optimize regex a bit.
3511
3512         2011-12-30 Jakub Jelinek <jakub@redhat.com>
3513         * lib/regex_internal.c (re_string_fetch_byte_case):
3514         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
3515         is miscompiled, and it turns out it is because of an incorrect
3516         attribute on re_string_fetch_byte_case.  Unlike
3517         re_string_peek_byte_case, this one is really not pure, it modifies
3518         memory (increments pstr->cur_idx), and with the pure attribute GCC
3519         assumed it doesn't and it cached the presumed value of
3520         regexp->cur_idx in a variable across the
3521          for (;; ++i)
3522            {
3523              if (i >= BRACKET_NAME_BUF_SIZE)
3524                return REG_EBRACK;
3525              if (token->type == OP_OPEN_CHAR_CLASS)
3526                ch = re_string_fetch_byte_case (regexp);
3527              else
3528                ch = re_string_fetch_byte (regexp);
3529              if (re_string_eoi(regexp))
3530                return REG_EBRACK;
3531              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
3532                break;
3533              elem->opr.name[i] = ch;
3534            }
3535
3536         2011-11-29 Andreas Schwab <schwab@redhat.com>
3537         * lib/regcomp.c (build_equiv_class):
3538         Fix access after end of search string in regex matcher.
3539
3540         2011-11-12 Ulrich Drepper <drepper@redhat.com>
3541         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
3542
3543         2011-10-12 Ulrich Drepper <drepper@redhat.com>
3544         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
3545
3546         2011-10-11 Ulrich Drepper <drepper@redhat.com>
3547         * lib/regcomp.c (parse_branch, parse_sub_exp):
3548         More regex memory leak fixes and tests.
3549         (parse_sub_exp, parse_bracket_exp):
3550         Fix memory leak for some invalid regular expressions.
3551
3552         2011-05-28 Ulrich Drepper <drepper@gmail.com>
3553         * lib/regex_internal.c, lib/regexec.c:
3554         Fix unnecessary overallocation due to incomplete character.  When
3555         incomplete characters are found at the end of a string the code
3556         ran amok and allocated lots of memory.  Stricter limits are now in
3557         place.
3558
3559         2011-05-20 Reuben Thomas <rrt@sc3d.org>
3560         * lib/regex.h: Update documentation.
3561
3562         2011-05-16 Aharon Robbins <arnold@skeeve.com>
3563         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
3564
3565         2010-05-05 Andreas Schwab <schwab@redhat.com>
3566         * lib/regexec.c (find_collation_sequence_value):
3567         Fix lookup of collation sequence value during regexp matching.
3568
3569         2010-01-22 Ulrich Drepper <drepper@redhat.com>
3570         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
3571
3572         2008-01-16 Ulrich Drepper <drepper@redhat.com>
3573         * lib/regex.h: Cleanup namespace.
3574
3575         2007-11-26 Ulrich Drepper <drepper@redhat.com>
3576         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
3577
3578         2007-08-26 Ulrich Drepper <drepper@redhat.com>
3579         * lib/regex_internal.h: Prevent some declarations and definitions
3580         to be seen when used in tests.
3581
3582         2005-05-06 Ulrich Drepper <drepper@redhat.com>
3583         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
3584         __libc_lock_* macros if not _LIBC.
3585         (struct re_dfa_t): Add lock.
3586
3587 2012-02-07  Eric Blake  <eblake@redhat.com>
3588
3589         maint.mk: also prohibit lower-case @var@
3590         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
3591         lower case, like @top_srcdir@.
3592
3593 2012-02-04  Eric Blake  <eblake@redhat.com>
3594
3595         canonicalize: avoid uninitialized memory use
3596         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
3597         random '/' left in dest.
3598         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
3599
3600 2012-02-04  Bruno Haible  <bruno@clisp.org>
3601
3602         isatty: Fix test failure of ptsname_r on native Windows.
3603         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
3604         and don't set errno.
3605         (isatty): Test first whether fd is valid. Set errno when returning 0.
3606
3607 2012-02-04  Bruno Haible  <bruno@clisp.org>
3608
3609         spawn-pipe tests: Fix a NULL program name in a diagnostic.
3610         * tests/test-spawn-pipe-main.c: Include progname.h.
3611         (main): Invoke set_program_name.
3612         * modules/spawn-pipe-tests (Depends-on): Add progname.
3613
3614         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
3615         * tests/test-nonblocking-socket-main.c: Include progname.h.
3616         (main): Invoke set_program_name.
3617         * modules/nonblocking-socket-tests (Depends-on): Add progname.
3618
3619         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
3620         * tests/test-nonblocking-pipe-main.c: Include progname.h.
3621         (main): Invoke set_program_name.
3622         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
3623
3624 2012-02-04  Eric Blake  <eblake@redhat.com>
3625
3626         canonicalize-lgpl: fix // handling
3627         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
3628
3629         canonicalize: fix // handling
3630         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
3631         /// to //, since only // is special.
3632
3633 2012-02-04  Bruno Haible  <bruno@clisp.org>
3634
3635         ioctl: Fix test failure on native Windows.
3636         * lib/ioctl.c: Include msvc-nothrow.h.
3637         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
3638
3639 2012-02-04  Bruno Haible  <bruno@clisp.org>
3640
3641         fsync: Avoid test failure on native Windows.
3642         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
3643         read-only.
3644
3645 2012-02-04  Bruno Haible  <bruno@clisp.org>
3646
3647         sys_select: Avoid syntax error on OpenBSD 5.0.
3648         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
3649         currently being included, just include the system's <sys/select.h>.
3650
3651 2012-02-04  Bruno Haible  <bruno@clisp.org>
3652
3653         sys_select: Avoid syntax error on OpenBSD 5.0.
3654         * lib/sys_select.in.h: Include <signal.h> only after the include_next
3655         <sys/select.h>, not before.
3656         Reported by Jiri B <jirib@devio.us>.
3657
3658 2012-02-04  Bruno Haible  <bruno@clisp.org>
3659
3660         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
3661         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
3662         global variables.
3663         * tests/test-get-rusage-data.c (main): Likewise.
3664         Reported by Jim Meyering.
3665
3666 2012-02-04  Bruno Haible  <bruno@clisp.org>
3667
3668         stdioext: Fix last commit.
3669         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
3670
3671 2012-02-03  Bruno Haible  <bruno@clisp.org>
3672
3673         stdioext: Add tentative support for Plan9.
3674         * lib/stdio-impl.h: Include <errno.h>.
3675         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
3676         * lib/freadable.c (freadable): Likewise.
3677         * lib/fwritable.c (fwritable): Likewise.
3678         * lib/fbufmode.c (fbufmode): Likewise.
3679         * lib/freading.c (freading): Likewise.
3680         * lib/fwriting.c (fwriting): Likewise.
3681         * lib/freadptr.c (freadptr): Likewise.
3682         * lib/freadseek.c (freadptrinc): Likewise.
3683         * lib/freadahead.c (freadahead): Likewise.
3684         * lib/fpurge.c (fpurge): Likewise.
3685         * lib/fseeko.c (rpl_fseeko): Likewise.
3686         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
3687         Reported by Jens Staal <staal1978@gmail.com>.
3688
3689 2012-02-02  Jim Meyering  <meyering@redhat.com>
3690
3691         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
3692         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
3693         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
3694         not even to try to add the attribute.  Instead, add a pragma to suppress
3695         the suggestion/warning.
3696
3697 2012-01-31  Karl Berry  <karl@gnu.org>
3698
3699         setstate doc: typo.
3700         * doc/posix-functions/setstate.texi (setstate): { not (.
3701
3702 2012-01-31  Bruno Haible  <bruno@clisp.org>
3703
3704         popen: Make more robust on Windows.
3705         * lib/popen.c: On native Windows, use the _popen based code even if
3706         HAVE_POPEN is set.
3707         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
3708         environment variable on native Windows.
3709
3710 2012-01-30  Bruno Haible  <bruno@clisp.org>
3711
3712         pclose: Fix typo.
3713         * lib/stdio.in.h (pclose): Fix typo in warning message.
3714
3715 2012-01-30  Bruno Haible  <bruno@clisp.org>
3716
3717         doc about getlogin_r, setstate.
3718         * doc/posix-functions/getlogin_r.texi: List the incompatible
3719         declaration problem under "not fixed by gnulib".
3720         * doc/posix-functions/setstate.texi: Mention incompatible declaration
3721         problem on Solaris 11 and other platforms.
3722
3723 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
3724             Bruno Haible  <bruno@clisp.org>
3725
3726         poll tests: Make test more robust.
3727         * tests/test-poll.c: Include macros.h.
3728         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
3729         return value of various I/O operations.
3730         * modules/poll-tests (Files): Add tests/macros.h.
3731
3732 2012-01-30  Bruno Haible  <bruno@clisp.org>
3733
3734         sys_stat: Fix support for mingw64 and MSVC.
3735         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
3736         header files already do it.
3737         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
3738         stat itself.
3739         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
3740
3741 2012-01-30  Bruno Haible  <bruno@clisp.org>
3742
3743         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
3744         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
3745         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
3746
3747 2012-01-29  Bruno Haible  <bruno@clisp.org>
3748
3749         quotearg: Fix test failure on MacOS X 10.5.
3750         * tests/test-quotearg-simple.c: Include localcharset.h.
3751         (main): If the locale encoding is not ASCII, bypass the tests of
3752         locale_quoting_style and clocale_quoting_style.
3753         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
3754
3755 2012-01-29  Jim Meyering  <meyering@redhat.com>
3756
3757         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
3758         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
3759         detect uses of canonicalize_file_name.
3760
3761 2012-01-28  Bruno Haible  <bruno@clisp.org>
3762
3763         test-framework-sh: Fix test failure with AIX 7.1 diff.
3764         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
3765         in column 1, like 'diff -c' does.
3766         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
3767         whether 'diff -u' is used. Instead, test whether the output contains
3768         some '@' character.
3769
3770 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
3771
3772         strtoimax: eliminate need for stdint.h, inttypes.h checks
3773         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
3774         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
3775         the prerequisites for a recently-introduced strtoimax test.
3776         I guess this might cause strtoimax to be replaced when not
3777         strictly necessary on older hosts, but this shouldn't introduce
3778         any bugs and it should make Emacs 'configure' faster on typical
3779         modern hosts.  Problem discovered when importing the latest gnulib
3780         to an Emacs test version.
3781         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
3782
3783 2012-01-28  Bruno Haible  <bruno@clisp.org>
3784
3785         sys_time: Override 'struct timeval' on some native Windows platforms.
3786         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
3787         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
3788         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
3789         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
3790         needs to be overridden.
3791         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
3792         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
3793         * tests/test-sys_select.c: Check that the tv_sec member has the same
3794         size as a 'time_t'.
3795         * tests/test-sys_time.c: Likewise.
3796         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
3797         is set, set also REPLACE_GETTIMEOFDAY.
3798         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
3799         convert the resulting 'struct timeval' before returning.
3800         * lib/select.c: Include <sys/time.h>.
3801         (select, timeval): Undefine at the right place.
3802         * modules/select (Depends-on): Add sys_time.
3803         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
3804         some Windows platforms.
3805         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
3806
3807 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
3808
3809         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
3810         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
3811         an integer.
3812         * lib/fcntl.c (dupfd): Likewise.
3813         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
3814
3815 2012-01-28  Bruno Haible  <bruno@clisp.org>
3816
3817         fcntl: Avoid compilation error on native Windows.
3818         * modules/fcntl (Depends-on): Add 'close'.
3819
3820 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
3821
3822         select, poll, isatty: Avoid warnings on x86_64 mingw64.
3823         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
3824         pointer to an integer.
3825         * lib/poll.c (IsConsoleHandle): Likewise.
3826         * lib/isatty.c (IsConsoleHandle): Likewise.
3827
3828 2012-01-28  Jim Meyering  <meyering@redhat.com>
3829
3830         doc: clarify README-release
3831         * top/README-release: Clarify: you should make a point to have
3832         the latest stable versions of build tools in your PATH, and the
3833         reference to buildreq is solely for its list of tool names, not
3834         for its minimal-functional version numbers.
3835         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
3836
3837         maint.mk: use more readable (yet functionally equivalent) quoting
3838         It is common to quote a single quote in a single quoted string like
3839         this:  '...'\''...'.  Unless you know the idiom, that looks like
3840         gibberish, so prefer to double-quote the string when possible.
3841         Then you can use a more readable, lone single quote: "...'..."
3842         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
3843         "don't" is more readable than the equivalent 'don'\''t'.
3844         (sc_cast_of_x_alloc_return_value): Likewise.
3845         (sc_cast_of_alloca_return_value): Likewise.
3846         (sc_makefile_path_separator_check): Similar: use ":" in '...',
3847         rather than '\'':'\''.
3848
3849 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
3850
3851         stdalign: relax _Alignof and tighten _Alignas test
3852         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
3853         as it was too strict: alignof must divide offsetof, but it need
3854         not equal offsetof.  Inspired by Joseph S. Myers's comment
3855         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
3856         Conversely, tighten the _Alignas test a bit, as the resulting
3857         alignment must be exactly 8.
3858
3859 2012-01-27  Bruno Haible  <bruno@clisp.org>
3860
3861         stdalign: Document the last change.
3862         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
3863
3864 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
3865
3866         stdalign: check that alignof and offsetof are consistent
3867         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
3868         Problem reported for gnulib by Richard W.M. Jones in
3869         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
3870
3871 2012-01-27  Jim Meyering  <meyering@redhat.com>
3872
3873         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
3874         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
3875         convert a sequence with gaps to the minimal containing range.
3876         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
3877         * tests/test-update-copyright.sh: Test for this.
3878         The FSF confirmed it is ok to do this, assuming there is at
3879         least one significant change per year in the affected range:
3880         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
3881
3882 2012-01-26  Bruno Haible  <bruno@clisp.org>
3883
3884         pipe2: refine doc about thread-safety
3885         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
3886         multithread-safety problem.
3887         * doc/glibc-functions/accept4.texi: Likewise.
3888
3889 2012-01-26  Bruno Haible  <bruno@clisp.org>
3890
3891         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
3892         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
3893         In the test program, include <fcntl.h>, for O_RDONLY.
3894
3895 2012-01-26  Eric Blake  <eblake@redhat.com>
3896
3897         pipe2: document lack of thread-safety in replacement
3898         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
3899         issue in replacement.
3900         * doc/glibc-functions/accept4.texi (accept4): Likewise.
3901         Based on a report by Eric Wong.
3902
3903 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
3904             Bruno Haible  <bruno@clisp.org>
3905
3906         malloca: Avoid warnings on x86_64 mingw64.
3907         * lib/malloca.c: Include <stdint.h>.
3908         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
3909         * modules/malloca (Depends-on): Add stdint.
3910         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
3911
3912 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
3913
3914         obstack: remove __STDC__ conditionals
3915         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
3916         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
3917         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
3918         m4/include_next.m4 as the only gnulib-maintained places that still
3919         refer to __STDC__.
3920
3921 2012-01-24  Bruno Haible  <bruno@clisp.org>
3922
3923         havelib: Modern quoting.
3924         * build-aux/config.rpath: Quote 'like this', not `like this', as per
3925         the recent change to the GNU coding standards.
3926
3927 2012-01-24  Bruno Haible  <bruno@clisp.org>
3928
3929         stdint: Improve support for Android.
3930         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
3931         Reported by Simon Josefsson <simon@josefsson.org>.
3932
3933 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
3934
3935         doc: omit trailing empty lines from INSTALL etc.
3936         * doc/Makefile (INSTALL): Omit trailing empty lines.
3937         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
3938         omit trailing empty lines.  This simplifies the build procedure.
3939
3940 2012-01-23  Jim Meyering  <meyering@redhat.com>
3941
3942         tests: avoid spurious warnings about gl_sockets_startup
3943         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
3944         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
3945         reporting a "statement with no effect".
3946         * tests/test-accept.c (main): Mark as "(void)".
3947         * tests/test-accept4.c (main): Likewise.
3948         * tests/test-bind.c (main): Likewise.
3949         * tests/test-connect.c (main): Likewise.
3950         * tests/test-getpeername.c (main): Likewise.
3951         * tests/test-getsockname.c (main): Likewise.
3952         * tests/test-getsockopt.c (main): Likewise.
3953         * tests/test-listen.c (main): Likewise.
3954         * tests/test-recv.c (main): Likewise.
3955         * tests/test-recvfrom.c (main): Likewise.
3956         * tests/test-send.c (main): Likewise.
3957         * tests/test-sendto.c (main): Likewise.
3958         * tests/test-setsockopt.c (main): Likewise.
3959         * tests/test-shutdown.c (main): Likewise.
3960
3961 2012-01-21  Bruno Haible  <bruno@clisp.org>
3962
3963         locale-fr.m4: Fix for Android.
3964         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
3965         failure of the test program on Bionic libc.
3966
3967 2012-01-21  Jim Meyering  <meyering@redhat.com>
3968
3969         bootstrap: fail when bootstrap_post_import_hook fails
3970         Otherwise, it's far too easy to miss diagnostics emitted
3971         between gnulib-tool's output and that of running configure.
3972         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
3973
3974 2012-01-17  Jim Meyering  <meyering@redhat.com>
3975
3976         maint: enable sc_trailing_blank
3977         * build-aux/pmccabe.css: Remove trailing blanks.
3978         * doc/acl-cygwin.txt: Likewise.
3979         * doc/gnu-oids.texi: Likewise
3980         * cfg.mk: Enable sc_trailing_blank.
3981         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
3982
3983 2012-01-17  Jim Meyering  <meyering@redhat.com>
3984
3985         maint: enable sc_prohibit_openat_without_use
3986         * cfg.mk: Enable sc_prohibit_openat_without_use.
3987         Exempt lib/selinux-at.c.
3988
3989 2012-01-17  Jim Meyering  <meyering@redhat.com>
3990
3991         maint: enable sc_prohibit_cloexec_without_use
3992         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
3993         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
3994
3995 2012-01-17  Jim Meyering  <meyering@redhat.com>
3996
3997         maint: enable sc_prohibit_intprops_without_use
3998         * cfg.mk: Enable sc_prohibit_intprops_without_use
3999         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
4000
4001 2012-01-17  Jim Meyering  <meyering@redhat.com>
4002
4003         maint: enable sc_prohibit_hash_pjw_without_use
4004         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
4005         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
4006         to match any use of \<hash_pjw\>, i.e., not necessarily with a
4007         following " (".
4008
4009 2012-01-17  Jim Meyering  <meyering@redhat.com>
4010
4011         maint: enable double-word-prohibiting rule
4012         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
4013         Exempt three files.
4014
4015 2012-01-17  Jim Meyering  <meyering@redhat.com>
4016
4017         maint: remove empty lines at EOF, but excluding modules/*
4018         Apply syntax rules at home as well as abroad.  Most changes
4019         were induced by running this:
4020           make srcdir=. _build-aux=build-aux -f top/maint.mk \
4021             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
4022             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
4023         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
4024         Exempt modules/* and two binary files.
4025         Also exempt doc/INSTALL*, per request from Bruno Haible.
4026         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
4027         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
4028         * doc/Copyright/request-assign.future: Likewise.
4029         * doc/Copyright/request-disclaim.changes: Likewise.
4030         * doc/INSTALL: Likewise.
4031         * doc/INSTALL.ISO: Likewise.
4032         * doc/INSTALL.UTF-8: Likewise.
4033         * doc/acl-cygwin.txt: Likewise.
4034         * doc/acl-resources.txt: Likewise.
4035         * doc/fdl-1.2.texi: Likewise.
4036         * doc/fdl-1.3.texi: Likewise.
4037         * doc/fdl.texi: Likewise.
4038         * lib/argp-pin.c: Likewise.
4039         * lib/round.c: Likewise.
4040         * lib/unicase/u16-totitle.c: Likewise.
4041         * lib/unictype/block_test.c: Likewise.
4042         * lib/uninorm/canonical-decomposition.c: Likewise.
4043         * m4/README: Likewise.
4044         * m4/relocatable-lib.m4: Likewise.
4045         * tests/test-isnand-nolibm.c: Likewise.
4046         * tests/test-isnand.c: Likewise.
4047         * tests/uninorm/NormalizationTest.txt: Likewise.
4048
4049 2012-01-17  Jim Meyering  <meyering@redhat.com>
4050
4051         maint: add framework to run syntax-check rules against gnulib sources
4052         * cfg.mk: New file, to disable all currently-failing tests.
4053         We'll enable them one by one, as they are made to pass.
4054         * Makefile (sc_maint): New rule.
4055
4056 2012-01-21  Bruno Haible  <bruno@clisp.org>
4057
4058         stdint: Add support for Android.
4059         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
4060         include the system's <stdint.h>.
4061         Reported by Simon Josefsson <simon@josefsson.org>.
4062
4063 2012-01-19  Jim Meyering  <meyering@redhat.com>
4064
4065         bootstrap: add bootstrap_post_import_hook
4066         Bison does still need something like the gnulib_mk_hook whose
4067         invocation I had to remove along with slurp in commit 767ccd40.
4068         Technically, we could get along without it, but doing so would
4069         have required living with a warning and a mandatory post-bootstrap
4070         automake rerun.
4071         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
4072         (bootstrap_post_import_hook): New function.
4073         Invoke it after gnulib-tool --import and before autoreconf.
4074
4075 2012-01-18  Jim Meyering  <meyering@redhat.com>
4076
4077         gitlog-to-changelog: don't use "no_"-prefixed variable name
4078         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
4079         to enable both --cluster and --no-cluster.  Change variable name,
4080         s/\$no_cluster/$cluster/, and reverse usage to match.
4081
4082         gitlog-to-changelog: use "||", not "or" in expressions
4083         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
4084         expressions.
4085
4086 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
4087
4088         gitlog-to-changelog: new option --no-cluster
4089         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
4090         clustering of adjacent commit messages.
4091
4092 2012-01-17  Jim Meyering  <meyering@redhat.com>
4093
4094         maint: spell file systems with two words, not one
4095         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
4096         two words, not one.
4097
4098 2012-01-16  Jim Meyering  <meyering@redhat.com>
4099
4100         bootstrap: add a FIXME comment to ensure we eventually remove the hack
4101         * build-aux/bootstrap (gnulib_tool_options): Add comment.
4102
4103 2012-01-16  Eric Blake  <eblake@redhat.com>
4104
4105         bootstrap: cater to autoconf 2.59
4106         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
4107         is not available.
4108
4109         bootstrap: properly check for libtool
4110         * build-aux/bootstrap (libtoolize): Also run libtool when older
4111         usage is detected.
4112
4113 2012-01-15  Bruno Haible  <bruno@clisp.org>
4114
4115         Improve support for MSVC 9.
4116         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
4117         clashes on MSVC.
4118         * lib/fcntl.in.h: Likewise.
4119         * lib/stdlib.in.h: Likewise.
4120         * lib/sys_stat.in.h: Likewise.
4121
4122 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
4123
4124         gnupload: we hold the master copy of this script now
4125         For motivation and more information, see:
4126         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
4127         * build-aux/gnupload: Make it clear in the heading comments that the
4128         master copy of this file is maintained by gnulib.  Since we are at
4129         it, bump its copyright year and ...
4130         ($scriptversion): ... the date in its version.
4131         ($usage): Patches and bug reports should be sent to the gnulib list,
4132         not the automake one.
4133         * config/srclist.txt: Don't try to sync 'gnupload' from automake
4134         anymore.
4135
4136 2012-01-15  Bruno Haible  <bruno@clisp.org>
4137
4138         Fix module 'random'.
4139         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
4140         initstate, setstate are declared.
4141
4142 2012-01-14  Bruno Haible  <bruno@clisp.org>
4143
4144         Tests for module 'random'.
4145         * modules/random-tests: New file.
4146         * tests/test-random.c: New file, based on tests/test-random_r.c.
4147
4148         New module 'random'.
4149         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
4150         declarations.
4151         * lib/random.c: New file, based on glibc/stdlib/random.c.
4152         * m4/random.m4: New file.
4153         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
4154         HAVE_RANDOM.
4155         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
4156         * modules/random: New file.
4157         * config/srclist.txt: Add an entry for random.c.
4158         * doc/posix-functions/random.texi: Mention the 'random' module.
4159         * doc/posix-functions/initstate.texi: Likewise.
4160         * doc/posix-functions/setstate.texi: Likewise.
4161         * doc/posix-functions/srandom.texi: Likewise.
4162
4163 2012-01-12  Bruno Haible  <bruno@clisp.org>
4164
4165         random_r: Use common idioms.
4166         * lib/random_r.c: Include <stdlib.h> first.
4167
4168         random_r: Override incompatible API on AIX, OSF/1.
4169         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
4170         Override the system function if REPLACE_RANDOM_R is 1.
4171         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
4172         and OSF/1, set REPLACE_RANDOM_R.
4173         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
4174         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
4175         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
4176         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
4177         * doc/glibc-functions/random_r.texi: Likewise.
4178         * doc/glibc-functions/setstate_r.texi: Likewise.
4179
4180         random_r: Support for MSVC 9.
4181         * lib/random_r.c: Include stdint.h, not inttypes.h.
4182
4183 2012-01-12  Eric Blake  <eblake@redhat.com>
4184
4185         inet_ntop: guard extra work by IF_LINT
4186         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
4187         better code generation when not checking for warnings.
4188         Suggested by Paul Eggert and Jim Meyering.
4189
4190         strptime: fix regression on mingw
4191         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
4192         Fix regression.  Reported by Bruno Haible.
4193
4194 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
4195             Bruno Haible  <bruno@clisp.org>
4196
4197         copy-file: add error-code-returning variant.
4198         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
4199         (qcopy_file_preserving): New declaration.
4200         * lib/copy-file.c (qcopy_file_preserving): Renamed from
4201         copy_file_preserving. Change return type to 'int'. Don't emit an error
4202         message here.
4203         (copy_file_preserving): New function.
4204         * tests/test-copy-file.c: Include <stdlib.h>.
4205         (main): Test qcopy_file_preserving if the environment variable
4206         NO_STDERR_OUTPUT is set.
4207         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
4208         with NO_STDERR_OUTPUT
4209         * tests/test-copy-file-2.sh: Likewise.
4210
4211 2012-01-10  Bruno Haible  <bruno@clisp.org>
4212
4213         copy-file: Use 'quote' module consistently.
4214         * lib/copy-file.c (copy_file_preserving): Use quote().
4215
4216         copy-file: Refactor.
4217         * lib/copy-file.c: Include quote.h.
4218         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
4219         message here.
4220         * modules/copy-file (Depends-on): Add quote.
4221
4222         acl: Export qcopy_acl.
4223         * lib/acl.h (qcopy_acl): New declaration.
4224         * lib/copy-acl.c (qcopy_acl): Make non-static.
4225
4226         acl: Rename a local variable.
4227         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
4228
4229         acl: Align return values of copy_acl and qcopy_acl.
4230         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
4231         maybe < -1.
4232
4233 2012-01-11  Eric Blake  <eblake@redhat.com>
4234
4235         strptime: silence gcc warnings
4236         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
4237         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
4238         Reported by Daniel P. Berrange.
4239
4240         inet_ntop: silence gcc warning
4241         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
4242         Reported by Daniel P. Berrange.
4243
4244 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
4245
4246         getloadavg test: skip the test on GNU/Linux without /proc mounted
4247         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
4248         file.  When /proc is not mounted, it always fails with ENOENT.
4249         * tests/test-getloadavg.c (main): Treat ENOENT return code from
4250         getloadavg(3) the same way as ENOSYS and ENOTSUP.
4251
4252 2012-01-10  Bruno Haible  <bruno@clisp.org>
4253
4254         regex: Avoid link error on MSVC 9.
4255         * modules/regex (Depends-on): Add wctype.
4256
4257 2012-01-10  Bruno Haible  <bruno@clisp.org>
4258
4259         doc: Mention --with-tests option.
4260         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
4261         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
4262         --with-tests.
4263         Reported by Reuben Thomas.
4264
4265 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
4266
4267         users.txt: order package names lexicographically.
4268         * users.txt: Order package names lexicographically.
4269
4270 2012-01-10  Jim Meyering  <meyering@redhat.com>
4271
4272         maint.mk: fix description in comment
4273         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
4274
4275         ignore-value: remove deprecated ignore_ptr function
4276         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
4277         * NEWS: Note this.
4278
4279 2012-01-09  Jim Meyering  <meyering@redhat.com>
4280
4281         test-init.sh: avoid a subshell
4282         * tests/test-init.sh: Remove protective subshell.
4283         Suggested by Bernhard Voelker.  While a subshell is normally
4284         required to protect against older shells (Solaris, FreeBSD) that
4285         warn about a missing program before performing redirection, the
4286         shell-selection tests performed by init.sh probably exclude any
4287         offending shell.
4288
4289 2012-01-08  Bruno Haible  <bruno@clisp.org>
4290
4291         setlocale tests: Avoid test failure on Solaris 11 2011-11.
4292         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
4293         variable.
4294
4295 2012-01-08  Bruno Haible  <bruno@clisp.org>
4296
4297         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
4298         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4299         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
4300         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
4301         macro.
4302         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
4303         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
4304         * lib/spawn_faction_addopen.c: Add workaround implementation if
4305         HAVE_WORKING_POSIX_SPAWN.
4306         * modules/spawn (Makefile): Substitute
4307         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
4308         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
4309         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
4310         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
4311         (Depends-on): Update conditions.
4312         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
4313         the Solaris 11 bug.
4314
4315 2012-01-08  Bruno Haible  <bruno@clisp.org>
4316
4317         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
4318         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4319         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
4320         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
4321         macro.
4322         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
4323         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
4324         * lib/spawn_faction_adddup2.c: Add workaround implementation if
4325         HAVE_WORKING_POSIX_SPAWN.
4326         * modules/spawn (Makefile): Substitute
4327         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
4328         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
4329         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
4330         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
4331         (Depends-on): Update conditions.
4332         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
4333         the Solaris 11 bug.
4334
4335 2012-01-08  Bruno Haible  <bruno@clisp.org>
4336
4337         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
4338         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4339         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
4340         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
4341         HAVE_WORKING_POSIX_SPAWN.
4342         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
4343         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
4344         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
4345         * lib/spawn_faction_addclose.c: Add workaround implementation if
4346         HAVE_WORKING_POSIX_SPAWN.
4347         * modules/spawn (Makefile): Substitute
4348         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
4349         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
4350         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
4351         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
4352         (Depends-on): Update conditions.
4353         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
4354         the Solaris 11 bug.
4355
4356 2012-01-08  Bruno Haible  <bruno@clisp.org>
4357
4358         doc: Update for Solaris 11 2011-11.
4359         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
4360         * m4/printf.m4: Update comments.
4361
4362 2012-01-08  Bruno Haible  <bruno@clisp.org>
4363
4364         mktime: Avoid compilation error on Solaris 11.
4365         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
4366
4367 2012-01-08  Bruno Haible  <bruno@clisp.org>
4368
4369         doc: Small fix.
4370         * doc/posix-headers/nl_types.texi: Correct platforms list.
4371
4372 2012-01-08  Simon Josefsson  <simon@josefsson.org>
4373
4374         Add lgpl-3.0 module.
4375         * MODULES.html.sh (Support for building documentation): Add
4376         lgpl-3.0.
4377         * modules/lgpl-3.0: New file.
4378
4379 2012-01-08  Jim Meyering  <meyering@redhat.com>
4380
4381         select.c: indent with spaces, not TABs
4382         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
4383
4384 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4385
4386         quotearg: do not use grave accent for left quote
4387         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
4388         locale_quoting_style.
4389         (quotearg_buffer_restyled): Fix example.
4390         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
4391
4392 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4393
4394         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
4395         Most programs do not have translation catalogs for English and much
4396         less separate catalogs for British and American English.  Drop the
4397         suggestion to translators about these two, and provide it
4398         automatically for Unicode locales.  Like most programs, even those
4399         using American English, we use single quotation marks.  This conflicts
4400         with the American typographic convention, but works better when you
4401         cite the entire error message within double quotes.  It also tries not
4402         to clash with established practice and with what non-gnulib programs
4403         will usually do.
4404         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
4405         using an UTF-8 or GB-18030 locale.  The list of other locales with
4406         quotes was provided by Bruno Haible.
4407         (quotearg_buffer_restyled): Adjust instructions to translators.
4408         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
4409         text, since this would be wrong when using Unicode.
4410         * modules/quotearg: Depend on c-strcaseeq.
4411
4412 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4413
4414         quotearg: fix Wikipedia link
4415         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
4416
4417 2012-01-07  Simon Josefsson  <simon@josefsson.org>
4418
4419         Fix for mingw with MSVC9.
4420         * m4/ld-version-script.m4: Check that compiler rejects version
4421         scripts with syntax errors.  Reported by Bruno Haible
4422         <bruno@clisp.org>.
4423
4424 2012-01-06  Bruno Haible  <bruno@clisp.org>
4425
4426         Talk about "native Windows API", not "Woe32".
4427         * lib/accept4.c: Update comments to mention native Windows.
4428         * lib/execute.c: Likewise.
4429         * lib/fatal-signal.c: Likewise.
4430         * lib/localcharset.c: Likewise.
4431         * lib/nanosleep.c: Likewise.
4432         * lib/nl_langinfo.c: Likewise.
4433         * lib/pclose.c: Likewise.
4434         * lib/pipe-filter-gi.c: Likewise.
4435         * lib/pipe-filter-ii.c: Likewise.
4436         * lib/pipe.c: Likewise.
4437         * lib/pipe2.c: Likewise.
4438         * lib/popen.c: Likewise.
4439         * lib/progreloc.c: Likewise.
4440         * lib/relocatable.c: Likewise.
4441         * lib/sigaction.c: Likewise.
4442         * lib/sigprocmask.c: Likewise.
4443         * lib/spawn-pipe.h: Likewise.
4444         * lib/spawn-pipe.c: Likewise.
4445         * lib/spawni.c: Likewise.
4446         * lib/stat-time.h: Likewise.
4447         * lib/w32spawn.h: Likewise.
4448         * tests/test-isatty.c: Likewise.
4449         * lib/config.charset: More comments.
4450         * doc/gnulib-intro.texi: Mention native Windows.
4451         * doc/posix-functions/_Exit_C99.texi: Likewise.
4452         * doc/posix-headers/fcntl.texi: Likewise.
4453
4454 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
4455
4456         argp: Avoid crash if translator uses % characters in a translation.
4457         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
4458         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
4459
4460 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
4461
4462         doc: C11 and C++11 are now official
4463         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
4464         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
4465         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
4466         * modules/stdalign:
4467         Replace references to draft C1X to C11, and to draft C++0X to C++11.
4468
4469 2012-01-06  Bruno Haible  <bruno@clisp.org>
4470
4471         uc-is-grapheme-break tests: Tweak.
4472         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
4473         message.
4474
4475 2012-01-06  Bruno Haible  <bruno@clisp.org>
4476
4477         test-init.sh: correct the test for diff -u
4478         * tests/test-init.sh: Also redirect stdout to /dev/null.
4479
4480 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
4481
4482         Use ', not `, for quoting output.
4483         * build-aux/announce-gen (usage, sizes, print_news_deltas)
4484         (print_changelog_deltas, get_tool_versions, main program):
4485         * build-aux/git-version-gen:
4486         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
4487         * build-aux/move-if-change (help):
4488         * build-aux/useless-if-before-free (usage, main program):
4489         * check-module (parse_module_file, usage)
4490         (find_included_lib_files, check_module):
4491         * lib/argmatch.c (main) [TEST]:
4492         * lib/argp-help.c (_help):
4493         * lib/getopt1.c (main) [TEST]:
4494         * lib/git-merge-changelog.c (usage):
4495         * lib/xstrtol-error.c (xstrtol_error):
4496         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
4497         * m4/argz.m4 (gl_FUNC_ARGZ):
4498         * m4/bison.m4 (gl_BISON):
4499         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
4500         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
4501         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
4502         * m4/fpending.m4 (gl_PREREQ_FPENDING):
4503         * m4/gc-random.m4 (gl_GC_RANDOM):
4504         * m4/intl.m4 (gt_CHECK_DECL):
4505         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
4506         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
4507         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
4508         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
4509         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
4510         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
4511         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
4512         * tests/test-dirname.c (main):
4513         * tests/test-getpass.c (main):
4514         * tests/test-iconvme.c (main):
4515         * tests/test-parse-datetime.c (LOG):
4516         * tests/test-xstrtoimax.sh:
4517         * tests/test-xstrtol.sh:
4518         * tests/test-xstrtoll.sh:
4519         * tests/test-xstrtoumax.sh:
4520         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
4521         * top/GNUmakefile (abort-due-to-no-makefile):
4522         Quote 'like this', not `like this', as per the recent change to
4523         the GNU coding standards.
4524
4525 2012-01-05  Bruno Haible  <bruno@clisp.org>
4526
4527         strtoimax: Don't force a replacement on systems where intmax_t is int.
4528         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
4529         'intmax_t' is not larger than 'int'.
4530         Reported by Pádraig Brady <P@draigBrady.com>.
4531
4532 2012-01-05  Bruno Haible  <bruno@clisp.org>
4533
4534         doc: Mention NetBSD bugs.
4535         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
4536         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
4537
4538 2012-01-05  Bruno Haible  <bruno@clisp.org>
4539
4540         strtoumax tests: Enhance tests.
4541         * tests/test-strtoumax.c (main): Add tests for large values.
4542
4543 2012-01-05  Bruno Haible  <bruno@clisp.org>
4544
4545         strtoimax: Work around AIX 5.1 bug.
4546         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
4547         definition.
4548         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
4549         Set HAVE_STRTOIMAX.
4550         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
4551         REPLACE_STRTOIMAX.
4552         * modules/inttypes-incomplete (Makefile.am): Substitute
4553         REPLACE_STRTOIMAX.
4554         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
4555         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
4556         (Depends-on): Update conditions.
4557         * tests/test-strtoimax.c (main): Add tests for large values.
4558         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
4559
4560 2012-01-05  Bruno Haible  <bruno@clisp.org>
4561
4562         inttypes: Modernize.
4563         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
4564         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
4565         (Makefile.am): Update inttypes.h rule.
4566
4567 2012-01-05  Jim Meyering  <meyering@redhat.com>
4568
4569         init.sh: don't waste a subshell just to redirect stderr
4570         * tests/init.sh: In testing for diff -u and diff -c, use a
4571         stderr-redirecting exec inside `...` rather than a subshell.
4572
4573         test-init.sh: avoid failure on HP-UX 11.00
4574         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
4575         resolves to diff -c or cmp.  Reported by Bruno Haible.
4576
4577 2012-01-05  Bruno Haible  <bruno@clisp.org>
4578
4579         Tests for module 'strtoull'.
4580         * modules/strtoull-tests: New file.
4581         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
4582
4583 2012-01-05  Bruno Haible  <bruno@clisp.org>
4584
4585         Tests for module 'strtoll'.
4586         * modules/strtoll-tests: New file.
4587         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
4588
4589 2012-01-05  Bruno Haible  <bruno@clisp.org>
4590
4591         Tests for module 'strtoul'.
4592         * modules/strtoul-tests: New file.
4593         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
4594
4595 2012-01-05  Bruno Haible  <bruno@clisp.org>
4596
4597         Tests for module 'strtol'.
4598         * modules/strtol-tests: New file.
4599         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
4600
4601 2012-01-04  Jim Meyering  <meyering@redhat.com>
4602
4603         test-init.sh: accommodate Solaris 5.10's different diff -u output
4604         * tests/test-init.sh: Also exempt @@ lines from the comparison
4605         of diff output, since Solaris 5.10 and GNU diff formats differ.
4606         Reported by Stefano Lattarini.
4607
4608 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
4609
4610         test-posixtm: don't assume signed integer wraparound
4611         * tests/test-posixtm.c (main): Don't assume wraparound semantics
4612         after signed integer overflow.  Inspired by (though it may not
4613         fix) Bruno Haible's bug report in
4614         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
4615
4616         Spell out "Windows 9x" and "Windows XP".
4617         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
4618         "Windows 9x" and "WinXP" with "Windows XP".
4619
4620 2012-01-04  Jim Meyering  <meyering@redhat.com>
4621
4622         test-vc-list-files-cvs.sh: remove obsolete comment
4623         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
4624         double exit.  Now that's all encapsulated via skip_ and Exit.
4625
4626 2012-01-04  Bruno Haible  <bruno@clisp.org>
4627
4628         Talk about "native Windows API", not "Win32".
4629         * lib/classpath.c: Update comments to mention native Windows.
4630         * lib/csharpexec.c: Likewise.
4631         * lib/dup2.c: Likewise.
4632         * lib/error.c: Likewise.
4633         * lib/fcntl.c: Likewise.
4634         * lib/filename.h: Likewise.
4635         * lib/findprog.c: Likewise.
4636         * lib/get-rusage-as.c: Likewise.
4637         * lib/get-rusage-data.c: Likewise.
4638         * lib/getpagesize.c: Likewise.
4639         * lib/javaexec.c: Likewise.
4640         * lib/msvc-inval.c: Likewise.
4641         * lib/msvc-nothrow.c: Likewise.
4642         * lib/nanosleep.c: Likewise.
4643         * lib/nonblocking.c: Likewise.
4644         * lib/printf-parse.c: Likewise.
4645         * lib/setlocale.c: Likewise.
4646         * lib/sigaction.c: Likewise.
4647         * lib/strerror_r.c: Likewise.
4648         * lib/tmpdir.c: Likewise.
4649         * lib/vasnprintf.c: Likewise.
4650         * lib/w32spawn.h: Likewise.
4651         * lib/waitpid.c: Likewise.
4652         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
4653         * m4/locale-ar.m4: Likewise.
4654         * m4/locale-fr.m4: Likewise.
4655         * m4/locale-ja.m4: Likewise.
4656         * m4/locale-tr.m4: Likewise.
4657         * m4/locale-zh.m4: Likewise.
4658         * m4/printf.m4: Likewise.
4659         * tests/test-cloexec.c: Likewise.
4660         * tests/test-copy-acl.sh: Likewise.
4661         * tests/test-copy-file.sh: Likewise.
4662         * tests/test-file-has-acl.sh: Likewise.
4663         * tests/test-set-mode-acl.sh: Likewise.
4664         * tests/test-dup-safer.c: Likewise.
4665         * tests/test-dup2.c: Likewise.
4666         * tests/test-dup3.c: Likewise.
4667         * tests/test-fcntl.c: Likewise.
4668         * tests/test-nonblocking-pipe.h: Likewise.
4669         * tests/test-nonblocking-socket.h: Likewise.
4670         * tests/test-pipe.c: Likewise.
4671         * tests/test-pipe2.c: Likewise.
4672         * tests/test-spawn-pipe-child.c: Likewise.
4673         * doc/acl-resources.txt: Likewise.
4674         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
4675         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
4676         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
4677         * lib/localcharset.c: Update comments to mention native Windows.
4678         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
4679         * lib/localename.c: Likewise.
4680         * lib/progreloc.c: Likewise.
4681         * lib/relocatable.c: Likewise.
4682         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
4683         (windows_compute_revents): Renamed from win32_compute_revents.
4684         (windows_compute_revents_socket): Renamed from
4685         win32_compute_revents_socket.
4686         * lib/select.c: Update comments to mention native Windows.
4687         (windows_poll_handle): Renamed from win32_poll_handle.
4688         * m4/threadlib.m4: Update comments to mention native Windows.
4689         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
4690         --enable-threads=windows instead of --enable-threads=win32. Set
4691         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
4692         * lib/glthread/lock.h: Update comments to mention native Windows.
4693         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
4694         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
4695         USE_WIN32_THREADS.
4696         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
4697         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
4698         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
4699         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
4700         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
4701         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
4702         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
4703         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
4704         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
4705         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
4706         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
4707         * tests/test-tls.c: Likewise.
4708         Rationale:
4709         Microsoft renamed the "Win32 API" to "Windows API", as it is available
4710         on both 32-bit and 64-bit Windows systems.
4711         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
4712         line of distinction is between "native Windows" on one side and Unix/
4713         POSIX systems on the other side. More details in
4714         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
4715         Suggested by Paul Eggert.
4716
4717 2012-01-03  Bruno Haible  <bruno@clisp.org>
4718
4719         isatty: Support for MSVC 9.
4720         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
4721         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
4722         (_isatty_nothrow): New function.
4723         (isatty): Use it instead of _isatty.
4724         (IsConsoleHandle): Add comment, from Paolo Bonzini.
4725         * lib/poll.c (IsConsoleHandle): Likewise.
4726         * lib/select.c (IsConsoleHandle): Likewise.
4727         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
4728         (gl_PREREQ_ISATTY): New macro.
4729         * modules/isatty (Depends-on): Add msvc-inval.
4730         (configure.ac): Invoke gl_PREREQ_ISATTY.
4731
4732 2012-01-03  Jim Meyering  <meyering@redhat.com>
4733
4734         maint.mk: remove temporary transition aid from over 1.5 years ago
4735         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
4736         purpose was to aid in the transition (avoiding silent malfunction)
4737         from that old name to the new _sc_search_regexp.  This shim was
4738         added by commit 219c504b.
4739
4740         init.sh: do not try to accommodate compare arguments starting with "-"
4741         * tests/init.sh (compare_dev_null_): Do not try to accommodate
4742         compare arguments that start with "-".  Besides, we do not worry
4743         about this when invoking diff or cmp; why start now with sed?
4744         Using "--" to separate options from argument would trigger sed
4745         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
4746         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
4747
4748 2012-01-02  Bruno Haible  <bruno@clisp.org>
4749
4750         Enhance tests for module 'isatty'.
4751         * modules/isatty-tests (Depends-on): Add pipe-posix.
4752         * tests/test-isatty.c: Include <fcntl.h>.
4753         (DEV_NULL): New macro.
4754         (main): Test the resut of isatty() also on regular files, pipes, and
4755         /dev/null.
4756
4757         New module 'isatty'.
4758         * lib/unistd.in.h (isatty): New declaration.
4759         * lib/isatty.c: New file, based on an idea of
4760         Bastien Roucariès <roucaries.bastien@gmail.com>.
4761         * m4/isatty.m4: New file.
4762         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
4763         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
4764         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
4765         REPLACE_ISATTY.
4766         * modules/isatty: New file.
4767         * doc/posix-functions/isatty.texi: Mention the new module.
4768         Suggested by Paolo Bonzini.
4769
4770 2012-01-02  Bruno Haible  <bruno@clisp.org>
4771
4772         canonicalize: Tweak 2011-12-29 commit.
4773         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
4774         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
4775
4776 2012-01-02  Jim Meyering  <meyering@redhat.com>
4777
4778         gitlog-to-changelog: describe input syntax in --help output
4779         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
4780
4781         gitlog-to-changelog: fix typo in --help: show backslash before email @
4782         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
4783         in sources, but not in actual output.
4784
4785 2011-12-30  Jim Meyering  <meyering@redhat.com>
4786
4787         gitlog-to-changelog: don't malfunction when name contains %-directive
4788         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
4789         in a name string cause trouble.  E.g., with a user name of "%s",
4790         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
4791
4792 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
4793
4794         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
4795         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
4796         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
4797         the "  (tiny change)" notation that is appended to the standard
4798         ChangeLog "date  name  email" header line.
4799
4800 2012-01-01  Jim Meyering  <meyering@redhat.com>
4801
4802         test-framework-sh: init.sh: fix "make dist" failure
4803         When using gnulib-tool's --with-tests option and any module that
4804         depends on test-framework-sh, "make dist" would fail due to the
4805         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
4806         in the gltests directory, and not in the gllib/ directory.
4807         One way to work around that is to move the EXTRA_DIST += init.sh
4808         from the primary module to the -tests one:
4809         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
4810         * modules/test-framework-sh (Makefile.am): ...not here.
4811         Reported by Tom G. Christensen in
4812         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
4813
4814         version-etc: update copyright year reported by --version
4815         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
4816
4817 2011-12-31  Pádraig Brady  <P@draigBrady.com>
4818
4819         canonicalize: only stat() if required
4820         * lib/canonicalize.c (canonicalize_filename_mode):
4821         Avoid calling l?stat() when both CAN_MISSING,
4822         and CAN_NOLINKS are set, as we neither need
4823         to resolve symlinks or test component existence.
4824
4825 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
4826
4827         doc: cover st_ino issues once; add OpenVMS etc.
4828         * doc/posix-functions/stat.texi (stat):
4829         * doc/posix-functions/lstat.texi (lstat):
4830         * doc/posix-functions/fstatat.texi (fstatat):
4831         * doc/posix-functions/fstat.texi (fstat):
4832         Move general 'struct stat' stuff to sys_stat.texi,
4833         leaving behind a pointer.
4834         * doc/posix-headers/sys_stat.texi (sys/stat.h):
4835         Merge duplicate info about 'struct stat' problems into here.
4836         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
4837         and suggest partial workarounds.
4838
4839         same-inode: port to OpenVMS
4840         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
4841         three st_ino values.
4842
4843 2011-12-30  Pádraig Brady  <P@draigBrady.com>
4844
4845         canonicalize: fix references to stat() and lstat()
4846         * lib/canonicalize.c (canonicalize_filename_mode):
4847         Ensure references always resolve to a replacement
4848         function if required (even via a macro).
4849
4850 2011-12-30  Jim Meyering  <meyering@redhat.com>
4851
4852         gitlog-to-changelog: remove a little duplication
4853         * build-aux/gitlog-to-changelog (main): Grep @lines once,
4854         rather than twice.
4855
4856 2011-12-29  Pádraig Brady  <P@draigBrady.com>
4857
4858         canonicalize: add support for not resolving symlinks
4859         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
4860         indicate we don't want to follow symlinks.  Also
4861         provide CAN_MODE_MASK to aid setting these existing
4862         mutually exclusive values.
4863         * lib/canonicalize.c (canonicalize_filename_mode):
4864         Extract the flags from can_mode parameter, which
4865         are currently just used to select between stat()
4866         and lstat().  Also ensure that mutually exclusive
4867         values are flagged immediately as invalid.
4868         * tests/test-canonicalize.c: Verify symlinks are
4869         not followed, and that invalid flag combinations
4870         are diagnosed.
4871
4872 2011-12-25  Jim Meyering  <meyering@redhat.com>
4873
4874         gitlog-to-changelog: do not clump multi-paragraph entries
4875         Identical header lines (date,name,email+coauthors) are suppressed,
4876         thus putting all entries with those same characteristics under
4877         a single header.  However, when a log entry consists of two or
4878         more paragraphs, it may not be clear where it starts and ends.
4879         This change makes it so that such an entry is always separated
4880         from others by a header line, even when that header would
4881         otherwise be suppressed.
4882         * build-aux/gitlog-to-changelog: Implement the above.
4883         Inspired by a related request from Stefano Lattarini in
4884         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
4885
4886 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
4887
4888         announce-gen: fix `cmd' typo in diagnostic
4889         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
4890         diagnostic: a missing '$' meant that the command was not output.
4891
4892 2011-12-23  Jim Meyering  <meyering@redhat.com>
4893
4894         test-framework-sh: distribute init.sh
4895         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
4896         Otherwise, "make -C gnulib-tests check" (at least in grep) would
4897         fail due to the lack of init.sh.
4898
4899         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
4900         * modules/atexit-tests: Rather than listing tests/init.sh,
4901         now that there's a module for it, simply depend on that new module.
4902         * modules/closein-tests: Likewise.
4903         * modules/exclude-tests: Likewise.
4904         * modules/getcwd-tests: Likewise.
4905         * modules/perror-tests: Likewise.
4906         * modules/pread-tests: Likewise.
4907         * modules/pwrite-tests: Likewise.
4908         * modules/vc-list-files-tests: Likewise.
4909         * modules/verify-tests: Likewise.
4910         * modules/xalloc-die-tests: Likewise.
4911         * modules/xstrtoimax-tests: Likewise.
4912         * modules/xstrtol-tests: Likewise.
4913         * modules/xstrtoll-tests: Likewise.
4914         * modules/xstrtoumax-tests: Likewise.
4915         * modules/yesno-tests: Likewise.
4916
4917 2011-12-22  Jim Meyering  <meyering@redhat.com>
4918
4919         test-framework-sh: add minimal tests of init.sh's compare function
4920         * modules/test-framework-sh-tests: New file.
4921         * tests/test-init.sh: New file.
4922
4923         test-framework-sh: new module
4924         * modules/test-framework-sh: New file.
4925         * MODULES.html.sh (Support for maintaining and releasing projects):
4926         List it.
4927
4928         init.sh: do not emit simulated diff output to stderr
4929         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
4930
4931 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
4932
4933         .gitignore: ignore gnulib.dvi and regex.info
4934         * doc/.gitignore:add gnulib.dvi and regex.info
4935
4936 2011-12-22  Jim Meyering  <meyering@redhat.com>
4937
4938         init.sh: correct previous change
4939         * tests/init.sh (compare): My previous change was wrong.
4940         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
4941
4942         init.sh: avoid unwarranted test failure when using "set -e"
4943         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
4944         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
4945         a use like "compare exp out" would get evoke an unconditional failure.
4946
4947 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
4948
4949         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
4950         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
4951         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
4952         autoreconf that did not.
4953         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
4954         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
4955
4956 2011-12-17  Jim Meyering  <meyering@redhat.com>
4957
4958         bootstrap: remove some now-unneeded code
4959         This script arose back when gnulib-tool was young.
4960         Since then, it has seen improvements that render much of this
4961         script unnecessary.  In particular, it can now make symlinks
4962         to the files it uses.  Also, I no longer see as much value in
4963         marking files as read-only via comments.
4964         If you relied on the symlink-creation feature of the preceding
4965         version of this script, you can get most of that functionality
4966         by adding the --symlink option to the definition of
4967         gnulib_tool_option_extras in your bootstrap.conf file.
4968         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
4969         Run autopoint and libtoolize *before* gnulib-tool.
4970         After it, run an abbreviated autoreconf, rather than a loop around
4971         all tools.
4972         (slirp, bt_mark_as_generated): Remove functions.
4973
4974 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
4975
4976         ftoastr: fix typo
4977         * lib/ftoastr.h: Fix misspelling in comment.
4978
4979 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
4980
4981         * top/README-release: fix punctuation.
4982
4983 2011-12-17  Jim Meyering  <meyering@redhat.com>
4984
4985         bootstrap: correct the recent buildreq change
4986         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
4987         had no effect.
4988         * build-aux/bootstrap (buildreq): Bracket each search term with
4989         "*...*", so that the shell "case" statement works as intended.
4990         Add comments.
4991
4992 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
4993
4994         build: let bootstrap resort to wget when downloading .po files
4995         * build-aux/bootstrap (download_po_files): Fallback to wget when
4996         downloading the .po files via rsync fails.  This is necessary to
4997         bootstrap from behind a strict firewall.
4998
4999 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
5000
5001         stdint: don't assume C++11 when compiling with g++
5002         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
5003         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
5004         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
5005         work also in C++ before C++11, as that improperly inhibits
5006         generating a substitute stdint.h for that case.
5007
5008 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
5009
5010         alloca: protect comment from gnulib-tool
5011         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
5012         that gnulib-tool doesn't think it's a license, and munge it to
5013         say "GCC version 3".
5014
5015 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
5016
5017         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
5018         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
5019         $(abs_top_builddir) instead of $(top_builddir).
5020
5021 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
5022
5023         strftime-tests: also test nanoseconds
5024         * tests/test-strftime.c (T): Add a test of %N.
5025
5026 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
5027
5028         inttypes, stdint: add C++11 support
5029         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
5030         when including inttypes.h and stdint.h.  Support this change to
5031         the standard.
5032         * doc/posix-headers/inttypes.texi (inttypes.h):
5033         * doc/posix-headers/stdint.texi (stdint.h): Document this.
5034         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
5035         Define if not defined already, for the benefit of pre-C++11 hosts.
5036         Define the standard format macros (e.g., PRId8) always.
5037         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
5038         Likewise, if __cpluspus.  Define the standard constant and limit
5039         macros (e.g., INT8_C, INT8_MAX) always.
5040         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
5041         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
5042         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
5043         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
5044         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
5045         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
5046         Likewise.
5047
5048 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
5049
5050         nonblocking tests: Fix test failure on Linux/PPC.
5051         Suggested by Prerna Saxena in
5052         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
5053         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
5054         Set to 1100000.
5055
5056 2011-12-12  Jim Meyering  <meyering@redhat.com>
5057
5058         argmatch: don't hard-code `' when listing valid option arguments
5059         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
5060         use the quote function to add quotes.  Use fputs rather than
5061         fprintf for the format string with no format directive.
5062
5063 2011-12-07  Eric Blake  <eblake@redhat.com>
5064
5065         bootstrap: detect tools required by gnulib-tool
5066         * build-aux/bootstrap (buildreq): Provide minimum implicit
5067         dependencies.
5068         * DEPENDENCIES: Mention patch as a prereq.
5069
5070 2011-12-04  Bruno Haible  <bruno@clisp.org>
5071
5072         sethostname: Port to Windows platforms.
5073         * lib/sethostname.c: Provide an alternate implementation for Windows
5074         platforms.
5075         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
5076         (main): Skip the test if sethostname() fails with EPERM. On Windows
5077         platforms, don't check the result of gethostname().
5078
5079 2011-12-04  Bruno Haible  <bruno@clisp.org>
5080             Jim Meyering  <meyering@redhat.com>
5081
5082         tests: Avoid spurious error message on platforms without mktemp program.
5083         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
5084
5085 2011-12-04  Bruno Haible  <bruno@clisp.org>
5086
5087         sethostname: Fix documentation.
5088         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
5089         "not fixed" section.
5090
5091 2011-12-03  Bruno Haible  <bruno@clisp.org>
5092
5093         gnulib-tool: Verify that the License field is present and non-empty.
5094         * gnulib-tool (func_get_license_raw): New function, extracted from
5095         func_get_license.
5096         (func_get_license): Use it. Warn if the module is not a test module and
5097         has no license.
5098         Suggested by Jim Meyering.
5099
5100 2011-12-03  Bruno Haible  <bruno@clisp.org>
5101
5102         sethostname tests: Fix link error on mingw.
5103         * tests/test-sethostname1.c: New file, extracted from
5104         tests/test-sethostname.c.
5105         * tests/test-sethostname2.c: New file, extracted from
5106         tests/test-sethostname.c.
5107         * tests/test-sethostname.c: Remove file.
5108         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
5109         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
5110         (Depends-on): Add gethostname.
5111         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
5112         Link the latter with $(GETHOSTNAME_LIB).
5113
5114         sethostname tests: Fix compilation error on mingw.
5115         * tests/test-sethostname.c: Don't include <sys/types.h>.
5116         (geteuid): Use a dummy value without uid_t.
5117         * modules/sethostname-tests (Depends-on): Remove sys_types.
5118
5119         sethostname tests: Avoid a gcc warning.
5120         * tests/test-sethostname.c (main): Remove an unused variable.
5121
5122         Tweak last commit.
5123         * modules/sethostname-tests (Files): Sort by decreasing importance.
5124         (configure.ac): Check for geteuid.
5125         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
5126         the test when there's nothing to test. Drop an unnecessary cast.
5127         Improve an error message. Verify that the final sethostname() call
5128         succeeds.
5129
5130 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5131
5132         Add a test suite for the sethostname module.
5133         * modules/sethostname-tests: New file.  A test program
5134         for the sethostname module.
5135         * tests/test-sethostname.c: Likewise.
5136
5137 2011-12-03  Bruno Haible  <bruno@clisp.org>
5138
5139         Tweak last commit.
5140         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
5141         Fix preprocessor directives indentation. Fix typos.
5142         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
5143         * modules/unistd (Makefile): Likewise.
5144
5145 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5146
5147         Integrate the sethostname module into unistd.
5148         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
5149         into the unistd.h header.
5150         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
5151         preprocessor directives.
5152         * modules/unistd: Setup the Makefile substitutions of the
5153         SETHOSTNAME preprocessor directives.
5154
5155 2011-12-03  Bruno Haible  <bruno@clisp.org>
5156
5157         Tweak last commit.
5158         * lib/sethostname.c: Don't include <string.h>.
5159         (sethostname): No need to copy the argument string to the stack. Don't
5160         call clearerr. Preserve errno when fprintf failed.
5161         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
5162         Don't invoke AC_REPLACE_FUNCS.
5163         * modules/sethostname (Link): Remove empty section.
5164         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
5165         failure problem.
5166
5167 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5168
5169         New module 'sethostname'.
5170         * lib/sethostname.c (sethostname): New file.  Provide sethostname
5171         for systems that lack it.
5172         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
5173         sethostname declaration and function.
5174         * modules/sethostname: New file.  Define the sethostname module.
5175
5176 2011-12-03  Bruno Haible  <bruno@clisp.org>
5177
5178         Tweak last commit.
5179         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
5180
5181 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5182
5183         Split the HOST_NAME_MAX detection into a separate m4 macro.
5184         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
5185         macro so it can be used by the pending sethostname module.
5186
5187 2011-12-03  Bruno Haible  <bruno@clisp.org>
5188
5189         Fix module descriptions syntax.
5190         * modules/argv-iter (License): Fix syntax.
5191         * modules/di-set (License): Likewise.
5192         * modules/ino-map (License): Likewise.
5193         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
5194
5195 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
5196
5197         stdalign: port to Clang 3.0
5198         Problem reported by Simon Josefsson in
5199         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
5200         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
5201         which has <stdalign.h> but which does not define alignof.
5202         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
5203
5204 2011-12-01  Eric Blake  <eblake@redhat.com>
5205
5206         mktempd: silence dd usage
5207         * build-aux/mktempd (rand_bytes): Silence dd.
5208
5209 2011-11-30  Simon Josefsson  <simon@josefsson.org>
5210
5211         manywarnings: Don't mention gcc version in docstring.
5212         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
5213         Jim Meyering <meyering@redhat.com>.
5214
5215 2011-11-30  Jim Meyering  <meyering@redhat.com>
5216
5217         hash: mark a few floating point constants with "f" suffix
5218         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
5219         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
5220         floating point constants with "f", since they're destined to be
5221         saved/used as "float"s.
5222
5223 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
5224
5225         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
5226         * tests/test-float.c (test_long_double): Correct and re-enable the
5227         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
5228
5229 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
5230
5231         Avoid subtracting two pointers that don't point into the same block.
5232         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
5233         only pointers into the same memory block are subtracted. We cannot
5234         assume that sizeof (ptrdiff_t) == sizeof (void *).
5235
5236 2011-11-29  Eric Blake  <eblake@redhat.com>
5237
5238         maint.mk: add syntax check for use of compare from init.sh
5239         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
5240         moved here from coreutils.
5241
5242         manywarnings: drop -Wunsuffixed-float-constants
5243         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
5244         '1.0D', which is the only way to silence this warning for 'double'.
5245
5246 2011-11-29  Jim Meyering  <meyering@redhat.com>
5247
5248         hash: mark compute_bucket_size with the pure attribute
5249         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
5250
5251         quotearg, propername: correct pragma guard expression
5252         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
5253         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
5254
5255 2011-11-28  Jim Meyering  <meyering@redhat.com>
5256
5257         propername: do not mark proper_name with the const attribute
5258         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
5259         since it examines data pointed to by its parameter.
5260         * lib/propername.c (proper_name): Instead, add a pragma to suppress
5261         the suggestion from -Wsuggest-attribute=const.
5262
5263         propername: mark one more function as const
5264         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
5265
5266 2011-11-27  Jim Meyering  <meyering@redhat.com>
5267
5268         mark functions with const and pure attributes
5269
5270         Mark functions per suggestions from gcc-4.6 when using these options:
5271         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
5272         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
5273         Follow these guidelines: when possible, apply the attribute to
5274         an extern declaration, not to its definition.  Apply it to the
5275         definition only when the definition is static.
5276         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
5277         * lib/argv-iter.h (argv_iter_n_args): Likewise.
5278         * lib/base64.h (isbase64): Likewise.
5279         * lib/basename-lgpl.c (last_component, base_len): Likewise.
5280         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
5281         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
5282         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
5283         (c_tolower, c_toupper): Likewise.
5284         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
5285         * lib/chdir-long.c (find_non_slash): Likewise.
5286         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
5287         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
5288         * lib/file-type.h (file_type): Likewise.
5289         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
5290         * lib/filevercmp.c (verrevcmp): Likewise.
5291         * lib/freadahead.h (freadahead): Likewise.
5292         * lib/fts.c (fts_maxarglen): Likewise.
5293         * lib/hash-pjw.h (hash_pjw): Likewise.
5294         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
5295         * lib/hash.c (is_prime, next_prime): Likewise.
5296         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
5297         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
5298         (hash_table_ok, hash_get_first, hash_string): Likewise.
5299         (compute_bucket_size): Likewise.
5300         * lib/i-ring.h (i_ring_empty): Likewise.
5301         * lib/isnan.c (isnanl): Likewise.
5302         * lib/math.h (isnanl, rpl_isnanl): Likewise.
5303         * lib/memcasecmp.h (memcasecmp): Likewise.
5304         * lib/memchr2.h (memchr2): Likewise.
5305         * lib/memcmp2.h (memcmp2): Likewise.
5306         * lib/parse-datetime.y (lookup_zone): Likewise.
5307         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
5308         [!WINDOWS_SOCKETS]: Likewise.
5309         * lib/strnlen1.h (strnlen1): Likewise.
5310         * lib/uniwidth.in.h (uc_width): Likewise.
5311         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
5312         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
5313         (quoting_options_from_style): Add a comment.
5314         * lib/propername.h (proper_name): Add a comment.
5315
5316 2011-11-27  Bruno Haible  <bruno@clisp.org>
5317
5318         Remove unused macros from !_LIBC code in glibc-borrowed files.
5319         * lib/fnmatch.c (STRCOLL): Remove macro.
5320         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
5321         * lib/glob.c (__stat, __readdir64): Remove macros.
5322         * lib/tempname.c (__open64, __xstat64): Remove macros.
5323         Suggested by Paul Eggert.
5324
5325 2011-11-27  Bruno Haible  <bruno@clisp.org>
5326
5327         getcwd: Fix link error on MSVC 9.
5328         * modules/getcwd (Depends-on): Add readdir, rewinddir.
5329
5330 2011-11-27  Bruno Haible  <bruno@clisp.org>
5331
5332         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
5333         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
5334         HAVE_OPENDIR is 0.
5335         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
5336         HAVE_CLOSEDIR is 0.
5337         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
5338         is 0.
5339         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
5340
5341 2011-11-27  Bruno Haible  <bruno@clisp.org>
5342
5343         getcwd: Fix bug from 2011-08-17.
5344         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
5345         platforms that need it.
5346         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
5347         code of 4 to be a failure, not a success. This ensures that
5348         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
5349
5350 2011-11-27  Bruno Haible  <bruno@clisp.org>
5351
5352         binary-io tests: Avoid test failure on mingw when libtool is used.
5353         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
5354         Don't verify the size of t-bin-out1.tmp here.
5355         * tests/test-binary-io.sh: Verify it here.
5356         Reported by Simon Josefsson.
5357
5358 2011-11-26  Bruno Haible  <bruno@clisp.org>
5359
5360         Fix conflict between two instantiations of module 'unistd'.
5361         * gnulib-tool (func_emit_autoconf_snippet): Substitute
5362         ${include_guard_prefix} also in the autoconf snippet.
5363         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
5364         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
5365         GNULIB_UNISTD_H_GETOPT.
5366         * modules/getopt-posix (configure.ac): Set the
5367         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
5368         * modules/getopt-gnu (configure.ac): Likewise.
5369         * modules/unistd (Makefile.am): Change the substitution value of
5370         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
5371         Reported by Simon Josefsson.
5372
5373 2011-11-25  Bruno Haible  <bruno@clisp.org>
5374
5375         pagealign_alloc: Doc and comments.
5376         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
5377         module.
5378         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
5379
5380 2011-11-25  Jim Meyering  <meyering@redhat.com>
5381
5382         test-update-copyright.sh: avoid false-positive failure
5383         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
5384         around false positive failure on Cygwin/Windows.  The latter was
5385         matching erroneously-created files with names like
5386         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
5387
5388 2011-11-25  Simon Josefsson  <simon@josefsson.org>
5389
5390         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
5391         * m4/valgrind-tests.m4: Check that the parameters that will be
5392         used works, not just a subset of them.  Reported by Bruno Haible
5393         <bruno@clisp.org>.
5394
5395 2011-11-24  Jim Meyering  <meyering@redhat.com>
5396
5397         test-stdalign.c: comment out long double tests
5398         * tests/test-stdalign.c: Don't try to reduce alignment of long double
5399         variables.  That provokes errors like this from gcc-4.7.0 20111124:
5400         error: '_Alignas' specifiers cannot reduce alignment of \
5401         'static_longdouble_alignas'.
5402
5403 2011-11-22  Jim Meyering  <meyering@redhat.com>
5404
5405         init.sh: make "compare /dev/null FILE" output more readable
5406         * tests/init.sh (compare_): Document the preferred order of arguments.
5407         (emit_diff_u_header_): New function.
5408         (compare_dev_null_): Emit a simulated diff, rather than just the
5409         contents of the unexpected file.  Suggestion from Bruno Haible.
5410
5411 2011-11-21  Jim Meyering  <meyering@redhat.com>
5412             Eric Blake  <eblake@redhat.com>
5413
5414         init.sh: work around OSF/1 5.1's mishandling of /dev/null
5415         * tests/init.sh: Make our compare function slightly more portable.
5416         Reported by Bruno Haible in
5417         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
5418
5419 2011-11-21  Simon Josefsson  <simon@josefsson.org>
5420
5421         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
5422         before using it, in code that ends up in config.h.
5423
5424 2011-11-20  Bruno Haible  <bruno@clisp.org>
5425
5426         getcwd: Work around getcwd bug on AIX 5..7.
5427         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
5428         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
5429         Use a different value for gl_cv_func_getcwd_path_max. Move the
5430         definition of HAVE_PARTLY_WORKING_GETCWD from here...
5431         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
5432         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
5433         Define HAVE_MINIMALLY_WORKING_GETCWD.
5434         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
5435         where it is not even minimally working, that is, on AIX.
5436         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
5437         m4/getcwd-path-max.m4.
5438         (main): Update exit code computation.
5439         * doc/posix-functions/getcwd.texi: Mention list of platforms where
5440         getcwd does not handle long file names.
5441
5442 2011-11-20  Bruno Haible  <bruno@clisp.org>
5443
5444         getcwd: Fix bug from 2009-09-10.
5445         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
5446         like "no".
5447
5448 2011-11-20  Simon Josefsson  <simon@josefsson.org>
5449
5450         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
5451
5452 2011-11-20  Bruno Haible  <bruno@clisp.org>
5453
5454         fma tests: Avoid shadowing local variables.
5455         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
5456         expected.
5457
5458 2011-11-20  Bruno Haible  <bruno@clisp.org>
5459
5460         copysignf tests: Fix.
5461         * tests/test-copysignf.c: Fix signature check.
5462
5463 2011-11-20  Bruno Haible  <bruno@clisp.org>
5464
5465         fma: Remove unused code.
5466         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
5467         unused macros.
5468
5469 2011-11-20  Bruno Haible  <bruno@clisp.org>
5470
5471         sethostname: Fix doc about AIX.
5472         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
5473         sethostname; it has it.
5474
5475         sethostname: Mention more portability problems.
5476         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
5477         problem.
5478         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
5479
5480 2011-11-19  Bruno Haible  <bruno@clisp.org>
5481
5482         Depend on module fcntl-h when AT_FDCWD is used.
5483         * modules/utimens (Depends-on): Add fcntl-h.
5484         * modules/areadlinkat (Depends-on): Likewise.
5485         * modules/areadlinkat-with-size (Depends-on): Likewise.
5486         * modules/faccessat (Depends-on): Likewise.
5487         * modules/fchmodat (Depends-on): Likewise.
5488         * modules/fchownat (Depends-on): Likewise.
5489         * modules/getcwd (Depends-on): Likewise.
5490         * modules/mkdirat (Depends-on): Likewise.
5491         * modules/mkfifoat (Depends-on): Likewise.
5492         * modules/readlinkat (Depends-on): Likewise.
5493         * modules/symlinkat (Depends-on): Likewise.
5494         * modules/dup2-tests (Depends-on): Likewise.
5495         * modules/fdutimensat-tests (Depends-on): Likewise.
5496         * modules/futimens-tests (Depends-on): Likewise.
5497
5498 2011-11-19  Bruno Haible  <bruno@clisp.org>
5499
5500         euidaccess: Update a comment.
5501         * lib/euidaccess.c: Update comment about platforms with faccessat.
5502
5503 2011-11-19  Bruno Haible  <bruno@clisp.org>
5504
5505         openat: Fix file list.
5506         * modules/openat (Files): Remove lib/at-func.c.
5507
5508 2011-11-19  Bruno Haible  <bruno@clisp.org>
5509
5510         fstatat: Simplify.
5511         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
5512         gnulib should define rpl_fstatat, there is a
5513         "#define fstatat rpl_fstatat" in <sys/stat.h>.
5514
5515 2011-11-19  Bruno Haible  <bruno@clisp.org>
5516
5517         Ensure 'inline' can be used in tests/test-utimens-common.h.
5518         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
5519         * modules/futimens-tests (configure.ac): Likewise.
5520         * modules/utimens-tests (configure.ac): Likewise.
5521         * modules/utimensat-tests (configure.ac): Likewise.
5522
5523 2011-11-19  Simon Josefsson  <simon@josefsson.org>
5524
5525         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
5526         not hash_insert0.
5527         (hash_insert_if_absent): Doc fix.
5528
5529 2011-11-19  Simon Josefsson  <simon@josefsson.org>
5530
5531         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
5532
5533 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
5534
5535         test-getcwd: disambiguate exit status
5536         * tests/test-getcwd.c (test_long_name): Return 0..7.
5537         (main): Exit with an unambiguous exit status.  The old
5538         code yielded a mysterious mixture of two failure codes.
5539
5540         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
5541         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
5542         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
5543         rpl_fstatat or fstatat.  This should fix the other problem
5544         reported by Kai Habel in
5545         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
5546         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
5547         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
5548         and I reproduced it on a Solaris 8 host we still have in production.
5549
5550 2011-11-18  Jim Meyering  <meyering@redhat.com>
5551
5552         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
5553         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
5554         Add a sentence to the comment.
5555         (hash_insert0): New function that simply calls hash_insert_if_absent.
5556         * lib/hash.h (hash_insert_if_absent): Declare it.
5557         (hash_insert0): Add deprecation attribute.
5558         (_GL_ATTRIBUTE_DEPRECATED): Define.
5559         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
5560         not hash_insert0.
5561         * NEWS: Mention it, even though it's not really an incompatible change.
5562
5563 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
5564
5565         openat: avoid compilation failure due to lack of <errno.h> inclusion
5566         * lib/openat.c: Include <errno.h>.
5567
5568 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
5569
5570         * modules/getcwd (Depends-on): Add fdopendir.
5571         This fixes one of the two problems reported by Kai Habel in
5572         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
5573
5574         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
5575         stdalign problem reported by Ian Beckwith in
5576         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
5577         * modules/crypto/gc-arcfour (Depends-on):
5578         Depend conditionally on crypto/arcfour.
5579         * modules/crypto/gc-arctwo (Depends-on):
5580         Depend conditionally on crypto/arctwo.
5581         * modules/crypto/gc-des (Depends-on):
5582         Depend conditionally on crypto/des.
5583         * modules/crypto/gc-hmac-md5 (Depends-on):
5584         Depend conditionally on crypto/hmac-md5.
5585         * modules/crypto/gc-hmac-sha1 (Depends-on):
5586         Depend conditionally on crypto/hmac-sha1.
5587         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
5588         * modules/crypto/gc-md4 (Depends-on):
5589         Depend conditionally on crypto/md4.
5590         * modules/crypto/gc-md5 (Depends-on):
5591         Depend conditionally on crypto/md5.
5592         * modules/crypto/gc-rijndael (Depends-on):
5593         Depend conditionally on crypto/rijndael.
5594         * modules/crypto/gc-sha1 (Depends-on):
5595         Depend conditionally on crypto/sha1.
5596         * modules/crypto/gc-arcfour:
5597         * modules/crypto/gc-arctwo:
5598         * modules/crypto/gc-des:
5599         * modules/crypto/gc-hmac-md5:
5600         * modules/crypto/gc-hmac-sha1:
5601         * modules/crypto/gc-md2:
5602         * modules/crypto/gc-md4:
5603         * modules/crypto/gc-md5:
5604         * modules/crypto/gc-rijndael:
5605         * modules/crypto/gc-sha1:
5606         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
5607         now that the conditional dependencies do the work for us.
5608
5609 2011-11-17  Jim Meyering  <meyering@redhat.com>
5610
5611         tests: factor st_ctime-comparison out of two headers
5612         * tests/test-utimens-common.h (ctime_compare): Define.
5613         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
5614         * tests/test-lutimens.h (test_lutimens): Likewise.
5615         * tests/test-utimens.h (test_utimens): Likewise.
5616
5617         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
5618         Invoke the test program via an init.sh-using wrapper.
5619         * tests/test-getcwd.sh: New file.
5620         * modules/getcwd-tests (Files): Add it.
5621         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
5622
5623 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
5624
5625         gitlog-to-changelog: support multi-author commits.
5626         The FSF cares about keeping track of all authors of patches to its
5627         projects, but Git doesn't provide obvious support for multi-author
5628         changesets. Consensus seems to be forming around the use of extra
5629         Signed-off-by inspired lines in the log message formatted as
5630         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
5631         multi-author commits between version control systems.
5632         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
5633         log message and output in standard ChangeLog multi-author format.
5634         Reported by Peter Rosin <peda@lysator.liu.se>
5635
5636 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
5637             Bruno Haible  <bruno@clisp.org>
5638
5639         Fix some modules' file list.
5640         * modules/fstatat (Files): Add m4/lstat.m4.
5641         * modules/openat (Files): Likewise.
5642         * modules/unlinkat (Files): Likewise.
5643
5644 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
5645
5646         maint.mk: fix tight-scope.mk generation in VPATH builds.
5647         * top/maint.mk (tight-scope.mk): Make sure to prefix file
5648         reference with $(srcdir) so that the file is found correctly even
5649         when running `make syntax-check' in a VPATH build.
5650
5651 2011-11-13  Bruno Haible  <bruno@clisp.org>
5652             Jim Meyering  <meyering@redhat.com>
5653
5654         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
5655         * tests/init.sh (compare): Remove "No differences encountered" or
5656         synonymous output from the 'diff' program.
5657
5658 2011-11-13  Bruno Haible  <bruno@clisp.org>
5659
5660         Makefile: Tweak indentation.
5661         * Makefile: Use tab as first character in every line that contains rule
5662         commands.
5663
5664 2011-11-13  Bruno Haible  <bruno@clisp.org>
5665
5666         Syntax check for copyright statements.
5667         * check-copyright: New file.
5668         * Makefile (sc_check_copyright): New rule.
5669
5670 2011-11-13  Simon Josefsson  <simon@josefsson.org>
5671
5672         * build-aux/git-version-gen: Add --prefix to configure the tag
5673         match string.
5674
5675 2011-11-13  Simon Josefsson  <simon@josefsson.org>
5676
5677         * build-aux/git-version-gen: Add --help and --version.
5678
5679 2011-11-12  Jim Meyering  <meyering@redhat.com>
5680
5681         revamp the other test-exclude?.sh scripts to use init.sh, too
5682         * tests/test-exclude1.sh: Use init.sh.
5683         * tests/test-exclude2.sh: Likewise.
5684         * tests/test-exclude3.sh: Likewise.
5685         * tests/test-exclude4.sh: Likewise.
5686         * tests/test-exclude5.sh: Likewise.
5687         * tests/test-exclude6.sh: Likewise.
5688         * tests/test-exclude7.sh: Likewise.
5689         * tests/test-exclude8.sh: Likewise.
5690         * modules/exclude-tests (Files): List init.sh.
5691
5692         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
5693         These shell scripts ignored failure of the binary test-exclude,
5694         so making the latter return 77 didn't cause them to be skipped.
5695         * tests/test-exclude5.sh: Exit with test-exclude's error status
5696         when that program fails.  Revamp to use init.sh.
5697         * tests/test-exclude2.sh: Likewise.
5698
5699         test-exclude: fix a typo
5700         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
5701
5702 2011-11-11  Bruno Haible  <bruno@clisp.org>
5703
5704         obstack: Fix compilation error on MSVC 9.
5705         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
5706
5707 2011-11-11  Jim Meyering  <meyering@redhat.com>
5708
5709         test-exclude: skip tests rather than failing on deficient systems
5710         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
5711         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
5712         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
5713         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
5714
5715 2011-11-10  Bruno Haible  <bruno@clisp.org>
5716
5717         ptsname_r test: Avoid gcc warning on glibc systems.
5718         * tests/test-ptsname_r.c (null_ptr): New function.
5719         (test_errors): Use it.
5720
5721 2011-11-10  Bruno Haible  <bruno@clisp.org>
5722
5723         ptsname_r: Avoid compilation error on OSF/1 5.1.
5724         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
5725         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
5726         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
5727         function is not declared or incompatibly declared.
5728         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
5729         * modules/ptsname_r (Depends-on, configure.ac): Update.
5730         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
5731
5732 2011-11-10  Bruno Haible  <bruno@clisp.org>
5733
5734         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
5735         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
5736         When cross-compiling, guess yes on all platforms except AIX.
5737         Reported by Ludovic Courtès <ludo@gnu.org>.
5738
5739 2011-11-09  Bruno Haible  <bruno@clisp.org>
5740
5741         ptsname_r tests: Fix bugs.
5742         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
5743         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
5744
5745 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
5746
5747         fstatat: work with cross-compilation
5748         Problem reported by Ludovic Courtès in
5749         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
5750         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
5751         "cross-compiling" and assume the bug is present.  Replace
5752         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
5753         an inverted sense, to be more conservative about our assumptions.
5754         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
5755
5756 2011-11-09  Bruno Haible  <bruno@clisp.org>
5757
5758         Improve MODULES.html output.
5759         * modules/mkfifoat (Description): Use the word "function".
5760         * modules/readlinkat (Description): Likewise.
5761         * modules/symlinkat (Description): Likewise.
5762
5763 2011-11-09  Eric Blake  <eblake@redhat.com>
5764
5765         ptsname_r-tests: new test module
5766         * modules/ptsname_r-tests: New module.
5767         * tests/test-ptsname_r.c: New file.
5768
5769         ptsname_r: new module
5770         * modules/ptsname_r: New module.
5771         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
5772         * lib/ptsname.c (__ptsname_r): Split...
5773         * lib/ptsname_r.c: ...into new file.
5774         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
5775         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
5776         * modules/stdlib (Makefile.am): Substitute witnesses.
5777         * lib/stdlib.in.h (ptsname_r): Declare it.
5778         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
5779         * MODULES.html.sh (Misc): Likewise.
5780         * modules/ptsname (Depends-on): Alter dependency.
5781         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
5782
5783 2011-11-09  Jim Meyering  <meyering@redhat.com>
5784
5785         announce-gen: be more concise when there's only one URL+tarball
5786         * build-aux/announce-gen (get_tool_versions): When you distribute
5787         only one type of tarball, combine the first two "Here are..."
5788         sections and make the key-checking grammar independent of
5789         how many tarballs there are.
5790
5791 2011-11-09  Eric Blake  <eblake@redhat.com>
5792
5793         openpty: provide a stub on mingw
5794         * lib/pty.in.h (includes): Provide forward declarations.
5795         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
5796
5797         raise: fix mingw handling of SIGPIPE
5798         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
5799
5800 2011-11-08  Bruno Haible  <bruno@clisp.org>
5801
5802         More conditional dependencies.
5803         * modules/faccessat (Depends-on): Add conditions.
5804         * modules/fchmodat (Depends-on): Likewise.
5805         * modules/fchownat (Depends-on): Likewise.
5806         * modules/fstatat (Depends-on): Likewise.
5807         * modules/mkfifoat (Depends-on): Likewise.
5808         * modules/readlinkat (Depends-on): Likewise.
5809         * modules/symlinkat (Depends-on): Likewise.
5810         * modules/unlinkat (Depends-on): Likewise.
5811         * modules/utimensat (Depends-on): Likewise.
5812         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
5813         * modules/linkat (Depends-on): Refine the conditions.
5814         * modules/renameat (Depends-on): Likewise.
5815
5816 2011-11-08  Bruno Haible  <bruno@clisp.org>
5817
5818         faccessat: Move AC_LIBOBJ invocation to module description.
5819         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
5820         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
5821         invocation from here...
5822         * modules/faccessat (configure.ac): ... to here. Invoke
5823         gl_PREREQ_FACCESSAT.
5824
5825 2011-11-08  Bruno Haible  <bruno@clisp.org>
5826
5827         faccessat: Simplify autoconf macro.
5828         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
5829         gl_FUNC_EUIDACCESS.
5830
5831 2011-11-08  Bruno Haible  <bruno@clisp.org>
5832
5833         renameat: Fix dependencies.
5834         * modules/renameat (Depends-on): Add stdbool.
5835
5836 2011-11-08  Bruno Haible  <bruno@clisp.org>
5837
5838         mkfifoat: Fix module description.
5839         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
5840         not gl_UNISTD_MODULE_INDICATOR.
5841
5842 2011-11-08  Bruno Haible  <bruno@clisp.org>
5843
5844         fstatat: Remove unused dependency.
5845         * modules/fstatat (Depends-on): Remove fstat.
5846
5847 2011-11-08  Simon Josefsson  <simon@josefsson.org>
5848
5849         GNUmakefile: behave when Makefile is missing.
5850         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
5851
5852 2011-11-08  Bruno Haible  <bruno@clisp.org>
5853
5854         openat: Conditionalize dependencies.
5855         * lib/openat.c: Reduce the scope of some #includes.
5856         * modules/openat (Depends-on): Add conditions.
5857
5858 2011-11-07  Jim Meyering  <meyering@redhat.com>
5859
5860         maint.mk: extract GPG key ID without using a temporary file
5861         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
5862         without using a temporary file.  Based on a suggestion from Werner Koch
5863         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
5864
5865 2011-11-07  Eric Blake  <eblake@redhat.com>
5866
5867         grantpt: fix typo
5868         * lib/stdlib.in.h (grantpt): Check correct function.
5869
5870         maint.mk: silence new syntax check
5871         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
5872
5873 2011-11-06  Bruno Haible  <bruno@clisp.org>
5874
5875         Doc about floating-point and math API.
5876         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
5877         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
5878
5879 2011-11-06  Bruno Haible  <bruno@clisp.org>
5880
5881         stdalign tests: Skip the test when compiled by Sun C.
5882         * tests/test-stdalign.c (main): Skip the test on Sun C.
5883
5884 2011-11-06  Bruno Haible  <bruno@clisp.org>
5885
5886         ansi-c++-opt: Complete the 2011-06-05 change.
5887         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
5888         does not support namespaces, set the variable to "no", not to ":".
5889
5890 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
5891
5892         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
5893
5894 2011-11-06  Bruno Haible  <bruno@clisp.org>
5895
5896         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
5897         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
5898         (minus_zerol) [HP-UX]: New macro.
5899         (unary_minus) [HP-UX]: New function.
5900         (copysignl) [HP-UX]: Use unary_minus function.
5901
5902 2011-11-06  Bruno Haible  <bruno@clisp.org>
5903
5904         ldexp, ldexpf, ldexpl: Enhance tests.
5905         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
5906         and tests/test-ldexpl.c.
5907         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
5908         LDEXP, MIN_EXP, MAX_EXP): New macros.
5909         Include test-ldexp.h.
5910         (main): Just call test_function.
5911         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
5912         infinity.h, nan.h.
5913         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
5914         MAX_EXP): New macros.
5915         Include test-ldexp.h.
5916         (x, y): Remove variables.
5917         (main): Just call test_function.
5918         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
5919         infinity.h, nan.h.
5920         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
5921         MAX_EXP): New macros.
5922         Include test-ldexp.h.
5923         (x, y): Remove variables.
5924         (main): Just call test_function.
5925         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
5926         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
5927         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
5928         (Depends-on): Add isnand-nolibm, signbit, float.
5929         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
5930         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
5931         (Depends-on): Add isnanf-nolibm, signbit, float.
5932
5933 2011-11-06  Bruno Haible  <bruno@clisp.org>
5934
5935         math tests: Cosmetics.
5936         * tests/test-math-c++.cc: Reorder declarations.
5937
5938 2011-11-05  Bruno Haible  <bruno@clisp.org>
5939
5940         fma*: Simplify test.
5941         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
5942         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
5943
5944         Tests for module 'fmal'.
5945         * modules/fmal-tests: New file.
5946         * tests/test-fmal1.c: New file.
5947         * tests/test-fmal2.c: New file.
5948
5949         New module 'fmal'.
5950         * lib/math.in.h (fmal): New declaration.
5951         * lib/fmal.c: New file.
5952         * m4/fmal.m4: New file.
5953         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
5954         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
5955         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
5956         REPLACE_FMAL.
5957         * modules/fmal: New file.
5958         * doc/posix-functions/fmal.texi: Mention the new module and the various
5959         bugs.
5960
5961         Tests for module 'fmaf'.
5962         * modules/fmaf-tests: New file.
5963         * tests/test-fmaf1.c: New file.
5964         * tests/test-fmaf2.c: New file.
5965
5966         New module 'fmaf'.
5967         * lib/math.in.h (fmaf): New declaration.
5968         * lib/fmaf.c: New file.
5969         * m4/fmaf.m4: New file.
5970         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
5971         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
5972         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
5973         REPLACE_FMAF.
5974         * modules/fmaf: New file.
5975         * doc/posix-functions/fmaf.texi: Mention the new module and the various
5976         bugs.
5977
5978         Tests for module 'fma'.
5979         * modules/fma-tests: New file.
5980         * tests/test-fma1.c: New file.
5981         * tests/test-fma1.h: New file.
5982         * tests/test-fma2.c: New file.
5983         * tests/test-fma2.h: New file.
5984
5985         New module 'fma'.
5986         * lib/math.in.h (fma): New declaration.
5987         * lib/fma.c: New file.
5988         * m4/fma.m4: New file.
5989         * m4/fegetround.m4: New file.
5990         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
5991         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
5992         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
5993         REPLACE_FMA.
5994         * modules/fma: New file.
5995         * doc/posix-functions/fma.texi: Mention the new module and the various
5996         bugs.
5997
5998         Extend gl_MATHFUNC.
5999         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
6000         Support 'void' as argument type.
6001         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
6002
6003 2011-11-05  Jim Meyering  <meyering@redhat.com>
6004
6005         maint.mk: also prohibit inclusion of dirent.h without use
6006         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
6007
6008 2011-11-05  Bruno Haible  <bruno@clisp.org>
6009
6010         ldexpl tests: Avoid test failure on MSVC 9.
6011         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
6012         value. Needed in order to enforce the conversion from a value greater
6013         than LDBL_MAX to Infinity.
6014
6015 2011-11-05  Bruno Haible  <bruno@clisp.org>
6016
6017         New modules 'at-internal', 'openat-h', split off from module 'openat'.
6018         * modules/at-internal: New file, extracted from modules/openat.
6019         * modules/openat-h: New file.
6020         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
6021         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
6022         * modules/openat (Description): Add reference to POSIX function.
6023         (Files): Remove lib/openat.h, lib/openat-proc.c.
6024         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
6025         intprops, unistd.
6026         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
6027         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
6028         gl_FCNTL_MODULE_INDICATOR.
6029         (Include): Remove unistd.h, openat.h.
6030         * modules/areadlinkat (Files): Add lib/at-func.c.
6031         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6032         openat-die, openat-h, save-cwd.
6033         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
6034         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6035         openat-die, openat-h, save-cwd, unistd.
6036         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
6037         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6038         openat-h, save-cwd. Remove fcntl-h, openat.
6039         * modules/fchmodat (Files): Remove lib/openat.h.
6040         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6041         openat, stdbool, unistd.
6042         * modules/fchownat (Files): Remove lib/openat.h.
6043         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6044         openat, stdbool, sys_stat.
6045         * modules/fdopendir (Files): Remove lib/openat-priv.h,
6046         lib/openat-proc.c.
6047         (Depends-on): Add at-internal.
6048         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
6049         * modules/fstatat (Files): Remove lib/openat.h.
6050         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
6051         stdbool, unistd.
6052         * modules/fts (Depends-on): Add openat-h.
6053         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
6054         openat.
6055         * modules/mkdirat (Files): Remove lib/openat.h.
6056         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6057         openat, stdbool, sys_stat.
6058         * modules/mkfifoat (Files): Add lib/at-func.c.
6059         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6060         openat-h, save-cwd. Remove fcntl-h, openat.
6061         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
6062         * modules/readlinkat (Files): Add lib/at-func.c.
6063         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6064         openat-h, save-cwd. Remove fcntl-h, openat.
6065         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
6066         openat.
6067         * modules/selinux-at (Files): Add lib/at-func.c.
6068         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6069         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
6070         * modules/symlinkat (Files): Add lib/at-func.c.
6071         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6072         openat-h, save-cwd. Remove fcntl-h, openat.
6073         * modules/unlinkat (Files): Remove lib/openat.h.
6074         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
6075         stdbool.
6076         * modules/utimensat (Files): Add lib/at-func.c.
6077         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
6078         openat-die, openat-h, save-cwd.
6079         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
6080         * modules/fdutimensat-tests (Depends-on): Add openat.
6081         * modules/fstatat-tests (Depends-on): Add openat-h.
6082         * modules/readlinkat-tests (Depends-on): Add openat.
6083         * modules/symlinkat-tests (Depends-on): Add openat.
6084
6085 2011-11-05  Bruno Haible  <bruno@clisp.org>
6086
6087         openat: Include <stdbool.h>.
6088         * lib/openat.c: Include <stdbool.h>.
6089
6090 2011-11-04  Bruno Haible  <bruno@clisp.org>
6091
6092         fchownat, renameat, unlinkat: Fix dependencies.
6093         * modules/fchownat (Depends-on): Add fstatat.
6094         * modules/renameat (Depends-on): Likewise.
6095         * modules/unlinkat (Depends-on): Likewise.
6096
6097 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
6098
6099         openat: remove direct dependency on dirent
6100         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
6101         and hasn't been needed ever since fdopendir was split into its own
6102         module on 2009-08-31.
6103         * modules/openat (Depends-on): Remove dirent.
6104
6105 2011-11-04  Bruno Haible  <bruno@clisp.org>
6106
6107         renameat: Optimize code size.
6108         * modules/renameat (configure.ac): Don't compile at-func2.c if
6109         REPLACE_RENAMEAT is 1.
6110
6111 2011-11-04  Bruno Haible  <bruno@clisp.org>
6112
6113         openat tests: Fix file list.
6114         * modules/openat-tests (Files): Add tests/test-open.h.
6115
6116 2011-11-04  Bruno Haible  <bruno@clisp.org>
6117
6118         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
6119         * modules/fchmodat (Depends-on): Add openat-die.
6120         * modules/fchownat (Depends-on): Likewise.
6121         * modules/linkat (Depends-on): Likewise.
6122         * modules/renameat (Depends-on): Likewise.
6123         * modules/openat (Depends-on): Add dirent.
6124
6125 2011-11-04  Jim Meyering  <meyering@redhat.com>
6126
6127         at-func*.c: fix comments
6128         * lib/at-func2.c: Correct/improve first-line comment.
6129         * lib/at-func.c: Correct grammar in first-line comment.
6130
6131 2011-11-04  Bruno Haible  <bruno@clisp.org>
6132
6133         New module 'mkdirat', split off from module 'openat'.
6134         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
6135         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
6136         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
6137         * modules/mkdirat: New file, extracted from modules/openat.
6138         * modules/openat (Files): Remove lib/mkdirat.c.
6139         (Depends-on): Remove mkdir.
6140         (configure.ac): Remove AC_LIBOBJ of mkdirat.
6141         (Include): Remove <sys/stat.h>.
6142         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
6143         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
6144         tests/test-mkdir.h.
6145         (Depends-on): Remove ignore-value.
6146         (Makefile.am): Remove rules for test-mkdirat.
6147         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
6148         of module 'openat'.
6149         * NEWS: Mention the change.
6150
6151 2011-11-04  Bruno Haible  <bruno@clisp.org>
6152
6153         closedir: Avoid warning on mingw.
6154         * lib/closedir.c: Include <unistd.h>.
6155
6156 2011-11-04  Bruno Haible  <bruno@clisp.org>
6157
6158         New module 'fstatat', split off from module 'openat'.
6159         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
6160         defined.
6161         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
6162         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
6163         gl_FUNC_FSTATAT.
6164         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
6165         * modules/fstatat: New file, extracted from modules/openat.
6166         * modules/openat (Files): Remove lib/fstatat.c.
6167         (Depends-on): Remove lstat.
6168         (configure.ac): Remove AC_LIBOBJ of fstatat.
6169         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
6170         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
6171         tests/test-lstat.h, tests/test-stat.h.
6172         (Depends-on): Remove getcwd-lgpl.
6173         (Makefile.am): Remove rules for test-fstatat.
6174         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
6175         of module 'openat'.
6176         * NEWS: Mention the change.
6177         * modules/getcwd (Depends-on): Add fstatat.
6178         * modules/linkat (Depends-on): Likewise.
6179         * modules/mkfifoat-tests (Depends-on): Likewise.
6180         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
6181
6182 2011-11-03  Bruno Haible  <bruno@clisp.org>
6183
6184         New module 'unlinkat', split off from module 'openat'.
6185         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
6186         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
6187         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
6188         * modules/unlinkat: New file, extracted from modules/openat. Correct
6189         the dependency conditions.
6190         * modules/openat (Files): Remove lib/unlinkat.c.
6191         (Depends-on): Remove rmdir, unlink.
6192         (configure.ac): Remove AC_LIBOBJ of unlinkat.
6193         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
6194         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
6195         tests/test-rmdir.h, tests/test-unlink.h.
6196         (Depends-on): Remove unlinkdir.
6197         (Makefile.am): Remove rules for test-unlinkat.
6198         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
6199         of module 'openat'.
6200         * NEWS: Mention the change.
6201         * modules/linkat-tests (Depends-on): Add unlinkat.
6202         * modules/mkfifoat-tests (Depends-on): Likewise.
6203         * modules/readlinkat-tests (Depends-on): Likewise.
6204
6205 2011-11-02  Bruno Haible  <bruno@clisp.org>
6206
6207         New module 'fchmodat', split off from module 'openat'.
6208         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
6209         defined.
6210         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
6211         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
6212         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
6213         * modules/fchmodat: New file, extracted from modules/openat.
6214         * modules/openat (Files): Remove lib/fchmodat.c.
6215         (configure.ac): Remove AC_LIBOBJ of fchmodat.
6216         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
6217         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
6218         (Makefile.am): Remove rules for test-fchmodat.
6219         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
6220         of module 'openat'.
6221         * NEWS: Mention the change.
6222
6223 2011-11-02  Jim Meyering  <meyering@redhat.com>
6224
6225         putenv: indent #definition of "environ" to placate cppi
6226         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
6227
6228         gitlog-to-changelog: provide a ChangeLog-repair mechanism
6229         Git logs are often treated as immutable, because editing them
6230         changes the SHA1 checksums of all descendants.  Thus, errors in
6231         git logs tend to stay there forever.  However, when we generate
6232         a ChangeLog file -- typically for distribution -- from that git log,
6233         we can actually make corrections in the generated file.  The key
6234         lies in recording in machine-readable/applicable form the desired
6235         corrections.  See --help for description and an example.
6236         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
6237         (usage): Describe it; alphabetize option descriptions.
6238         (main): Honor the new option, carefully.
6239
6240 2011-11-01  Jim Meyering  <meyering@redhat.com>
6241
6242         gitlog-to-changelog: avoid an infloop
6243         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
6244         that ends up being empty.
6245
6246 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
6247
6248         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
6249         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
6250         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
6251         contains (possibly-quoted) backslashes.  This should avoid
6252         all-too-common shell bugs if COMPLICATED contains backslashes in
6253         the "wrong" places.  Reported by David Evans in
6254         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
6255         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
6256         because we want ASCII ranges.  Is there some reason we don't use
6257         the C locale everywhere in this script?
6258         (func_module, top level): Avoid unwanted pathname expansion when
6259         $repo_url_prefix or $repo_url_suffix_repl contain shell
6260         metacharacters like '?' and '*'.
6261
6262 2011-11-01  Bruno Haible  <bruno@clisp.org>
6263
6264         fchownat: Improve description.
6265         * modules/fchownat (Description): Add link to function.
6266
6267 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
6268
6269         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
6270         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
6271         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
6272         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
6273
6274 2011-11-01  Bruno Haible  <bruno@clisp.org>
6275
6276         alignof: Avoid collision with stdalign module.
6277         * lib/alignof.h (alignof): Remove macro.
6278         * NEWS: Mention the change.
6279         Reported by Paul Eggert.
6280
6281 2011-11-01  Bruno Haible  <bruno@clisp.org>
6282
6283         New module 'fchownat', split off from module 'openat'.
6284         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
6285         defined.
6286         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
6287         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
6288         invoke gl_FUNC_FCHOWNAT.
6289         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
6290         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
6291         * modules/fchownat: New file, extracted from modules/openat.
6292         * modules/openat (Files): Remove lib/fchownat.c.
6293         (Depends-on): Remove lchown.
6294         (configure.ac): Remove AC_LIBOBJ of fchownat.
6295         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
6296         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
6297         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
6298         (Depends-on): Remove mgetgroups, usleep, stat-time.
6299         (configure.ac): Remove test for getegid.
6300         (Makefile.am): Remove rules for test-fchownat.
6301         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
6302         of module 'openat'.
6303         * NEWS: Mention the change.
6304
6305 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
6306
6307         stdalign: port better to MSVC and to Sun C 5.11
6308         This fixes some of the problems reported by Bruno Haible in
6309         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
6310         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
6311         shortcomings of MSVC and of Sun C 5.11.
6312         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
6313         around __declspec arg.
6314         * modules/stdalign-tests (Files): Add tests/macros.h.
6315         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
6316         Include macros.h, for ASSERT.
6317         (DECLARE_ALIGNED): Remove.
6318         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
6319         to catch bug), and to 1 if not (simplifies the rest of the code).
6320         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
6321         (CHECK_AUTO): Remove.
6322         (CHECK_ALIGNED): Check only the alignment of the static vars,
6323         since auto var alignment isn't supported by Sun C 5.11.
6324         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
6325         ASSERT failures are easier to diagnose.
6326
6327 2011-10-31  Bruno Haible  <bruno@clisp.org>
6328
6329         doc about some IRIX 5.3 problems.
6330         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
6331         on IRIX 5.3.
6332         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
6333         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
6334         5.3.
6335         * doc/posix-functions/grantpt.texi: Likewise.
6336         * doc/posix-functions/unlockpt.texi: Likewise.
6337         * doc/posix-functions/lgamma.texi: Likewise.
6338         * doc/posix-functions/nextafter.texi: Likewise.
6339         * doc/posix-functions/remainder.texi: Likewise.
6340         * doc/posix-functions/select.texi: Mention misplaced declaration on
6341         IRIX 5.3.
6342         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6343
6344 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
6345
6346         gitlog-to-changelog: fix git-log invocation.
6347         git-log mishandles date strings before 1970-01-01 UTC, and there is
6348         no use to specify --since=1970-01-01 by default anyway.
6349         * build-aux/gitlog-to-changelog: By default, when no --since option
6350         was given, do not specify explicit --since option to git-log.
6351
6352 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
6353
6354         gitlog-to-changelog: new option --append-dot.
6355         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
6356         first non-blank line of each commit message terminated with a dot.
6357
6358 2011-10-30  Bruno Haible  <bruno@clisp.org>
6359
6360         ffsl, ffsll: Avoid compilation error due to 'restrict'.
6361         * lib/ffsl.h: Include <config.h>.
6362         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
6363
6364 2011-10-30  Jim Meyering  <meyering@redhat.com>
6365
6366         GNUmakefile: reenable "make syntax-check" for most projects
6367         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
6368         build-aux variable", "syntax-check" would do nothing but succeed with
6369         the "No version control files detected..." diagnostic (unless you
6370         happened to override _build-aux via cfg.mk).
6371         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
6372         to precede inclusion of maint.mk.  Otherwise, these variables would
6373         be used undefined in any project that does not override the default.
6374
6375 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
6376
6377         gitlog-to-changelog: treat a message with only blank lines as empty.
6378         * build-aux/gitlog-to-changelog: Move the code that removes leading and
6379         trailing blank lines before the code that issues a warning about an
6380         empty commit message.
6381
6382 2011-10-30  Jim Meyering  <meyering@redhat.com>
6383
6384         test-parse-datetime.c: avoid new DST-related false positive test failure
6385         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
6386         based on the time/date we'll convert, not the current time.
6387         Otherwise, the moment we cross a DST boundary like today's in
6388         Europe, (CEST to CET), that offset ends up being one hour off.
6389
6390 2011-10-27  Bruno Haible  <bruno@clisp.org>
6391
6392         fstat: Tweak documentation.
6393         * modules/fstat (Description): More precise description.
6394
6395 2011-10-27  Bruno Haible  <bruno@clisp.org>
6396
6397         Update documentation regarding 'largefile' module.
6398         * doc/posix-functions/fstat.texi: Tweak wording.
6399         * doc/posix-functions/opendir.texi: Mention that the module fixes the
6400         problems with huge directories and/or small ino_t types.
6401         * doc/posix-functions/readdir.texi: Likewise.
6402         * doc/posix-functions/rewinddir.texi: Likewise.
6403
6404 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
6405
6406         maint.mk: don't maintain a second build-aux variable.
6407         * maint.mk (build_aux): Removed.  The maintainer-makefile module
6408         depends on GNUmakefile, which already maintains a cfg.mk
6409         overridable $(_build-aux) for projects with a non-standard
6410         build-aux directory location, although without the $(srcdir)
6411         prefix.  Use that variable consistently instead of introducing a
6412         second one.  Adjust all call sites.
6413
6414 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
6415
6416         Add stdalign module and use it in other modules.
6417         This is based on a previous proposal by Bruno Haible
6418         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
6419
6420         stdalign: new module
6421         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
6422         * modules/stdalign: New files.
6423         * MODULES.html.sh (c1x_core_properties): Add stdalign.
6424         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
6425
6426         stdalign-tests: new module
6427         * modules/stdalign-tests, tests/test-stdalign.c: New files.
6428
6429         argp: use stdalign
6430         * lib/argp-parse.c: Include <stdalign.h>.
6431         (alignof): Remove.
6432         * modules/argp (Depends-on): Add stdalign.
6433
6434         crypto libraries: use stdalign
6435         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
6436         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
6437         Do not include <stdlib.h> twice, in md4.c.
6438         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
6439         because we are accessing a pointer's bit-pattern, not a size.
6440         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
6441         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
6442         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
6443         * modules/crypto/sha512: Likewise.
6444
6445         sys_socket: use stdalign, not alignof
6446         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
6447         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
6448
6449 2011-10-27  Bruno Haible  <bruno@clisp.org>
6450
6451         raise test: Avoid a test failure on Linux/MIPS.
6452         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
6453         because 99 is a valid signal on Linux/MIPS.
6454
6455 2011-10-27  Bruno Haible  <bruno@clisp.org>
6456
6457         nonblocking tests: Fix test failure on Linux/MIPS.
6458         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
6459         Set to 270000.
6460
6461 2011-10-27  Bruno Haible  <bruno@clisp.org>
6462
6463         utimensat: Work around problem on Linux/hppa.
6464         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
6465         values.
6466         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
6467
6468 2011-10-25  Jim Meyering  <meyering@redhat.com>
6469
6470         maint.mk: fix a bug in sc_prohibit_stddef_without_use
6471         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
6472         after symbols like NULL, size_t, etc.
6473         Reported by Alfred M. Szmidt.
6474
6475         maint.mk: exempt ENODATA from a syntax-check rule
6476         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
6477         from the sc_prohibit_always-defined_macros syntax-check rule.
6478         Add a comment.  See this for more details:
6479         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
6480
6481 2011-10-23  Jim Meyering  <meyering@redhat.com>
6482
6483         fts: close parent dir FD before returning from post-traversal fts_read
6484         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
6485         unlink A, even though an FD open on A remained.  This is suboptimal
6486         (holding a file descriptor open longer than needed), but otherwise not
6487         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
6488         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
6489         that represents a real problem: it causes the removal of A to fail
6490         with e.g., "rm: cannot remove `A': Device or resource busy"
6491
6492         fts visits each directory twice and keeps a cache (fts_fd_ring) of
6493         directory file descriptors.  After completing the final, FTS_DP,
6494         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
6495         cache, but then proceeded to add a new FD to it via the subsequent
6496         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
6497         final file descriptor would be closed only via fts_close's call to
6498         fd_ring_clear.  Now, it is usually closed earlier, via the final
6499         FTS_DP-returning fts_read call.
6500         * lib/fts.c (restore_initial_cwd): New function, converted from
6501         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
6502         Update callers.
6503         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
6504         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
6505
6506 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
6507             Bruno Haible  <bruno@clisp.org>
6508             Jim Meyering  <jim@meyering.net>
6509
6510         readme-release: improve safety of release prep instructions.
6511         * README-release: Don't git pull all branches when only master
6512         is needed for the release process.
6513         Run make maintainer-clean before changing trees and merging.
6514         Don't try to run ./configure right after git pull in case files
6515         that influence the bootstrap process have changed, move the
6516         ./configure step to after running ./bootstrap.
6517         Don't bootstrap "one last time"... it's the first time!
6518
6519 2011-10-22  Bruno Haible  <bruno@clisp.org>
6520
6521         errno, strerror-override: Support for MSVC 10.
6522         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
6523         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
6524         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
6525         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
6526         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
6527         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
6528         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
6529         Assign values compatible with MSVC 10.
6530         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
6531         New macros.
6532         (GNULIB_defined_EWINSOCK): New macro.
6533         * lib/strerror-override.c (strerror_override): Update accordingly.
6534         * lib/strerror-override.h: Likewise.
6535         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
6536         longer equal to the corresponding errno value.
6537         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6538
6539 2011-10-22  Bruno Haible  <bruno@clisp.org>
6540
6541         perror: Recognize when test program crashes.
6542         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
6543         strerror, set gl_cv_func_perror_works to no.
6544         Reported by Daniel Richard G. <skunk@iskunk.org>.
6545
6546         perror: Fix indentation.
6547         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
6548
6549 2011-10-22  Bruno Haible  <bruno@clisp.org>
6550
6551         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
6552         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
6553         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
6554         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
6555         functions, not as a macro.
6556         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
6557         macros.
6558         (isfinite, isinf, isnan, signbit): Check overloaded functions and
6559         absence of macro.
6560         Suggested by Eric Blake.
6561         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6562
6563 2011-10-21  Bruno Haible  <bruno@clisp.org>
6564
6565         relocatable-prog-wrapper: Don't leave object files behind.
6566         * build-aux/install-reloc: Re-synchronize list of .o files to be
6567         removed with list of compilation units.
6568
6569 2011-10-20  Bruno Haible  <bruno@clisp.org>
6570
6571         openpty, posix_openpt: Remove code duplication.
6572         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
6573         * lib/openpty.c: Include <stdlib.h>.
6574         (openpty): Use posix_openpt on all platforms except IRIX.
6575         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
6576
6577 2011-10-20  Bruno Haible  <bruno@clisp.org>
6578
6579         unlockpt: Detect invalid argument.
6580         * lib/unlockpt.c: Include <fcntl.h>.
6581         (unlockpt): Check whether fd is valid, using fcntl().
6582         * modules/unlockpt (Depends-on): Add fcntl-h.
6583
6584 2011-10-20  Bruno Haible  <bruno@clisp.org>
6585
6586         openpty: Avoid compilation error on AIX 6.1.
6587         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
6588
6589 2011-10-20  Bruno Haible  <bruno@clisp.org>
6590
6591         posix_openpt: Support for OpenBSD.
6592         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
6593         (posix_openpt) [OpenBSD]: New code.
6594         * lib/grantpt.c: Include <fcntl.h>.
6595         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
6596         * modules/grantpt (Depends-on): Add fcntl-h.
6597
6598 2011-10-20  Bruno Haible  <bruno@clisp.org>
6599
6600         posix_openpt test: Coding style.
6601         * tests/test-posix_openpt.c: Use GNU coding style.
6602
6603 2011-10-20  Bruno Haible  <bruno@clisp.org>
6604
6605         grantpt: Support --avoid=pt_chown.
6606         * modules/grantpt (Files): Add lib/pty-private.h.
6607
6608 2011-10-20  Bruno Haible  <bruno@clisp.org>
6609
6610         posix_openpt: Fix autoconf macro.
6611         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
6612         unneeded check for _getpty.
6613
6614 2011-10-20  Bruno Haible  <bruno@clisp.org>
6615
6616         openpty: Update comments.
6617         * lib/openpty.c: Add comments about Minix.
6618
6619 2011-10-19  Eric Blake  <eblake@redhat.com>
6620
6621         openpty: relax license
6622         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
6623
6624         pt_chown: use configmake to simplify build
6625         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
6626
6627         ptsname and others: relax license
6628         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
6629         * modules/unlockpt (License): Likewise.
6630         * modules/pt_chown (License): Likewise.
6631         * modules/ptsname (License): Likewise.
6632         * modules/ttyname_r (License): Likewise.
6633
6634 2011-10-19  Jim Meyering  <meyering@redhat.com>
6635
6636         posix_openpt: remove spurious #endif
6637         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
6638
6639 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
6640
6641         maint.mk: Respect $(build_aux) in web-manual rule.
6642         * top/maint.mk (web-manual): Find gen-announce script in user's
6643         $(build_aux) directory instead of hard-coding 'build-aux'.
6644
6645 2011-10-19  Bruno Haible  <bruno@clisp.org>
6646
6647         posix_openpt: Fix compilation error.
6648         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
6649         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
6650         Mention the openpty module as an alternative.
6651
6652 2011-10-19  Bruno Haible  <bruno@clisp.org>
6653
6654         Support for old NeXTstep 3.3 frexp().
6655         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
6656         execution time of the test to 5 seconds.
6657         Reported by Daniel Richard G. <skunk@iskunk.org>.
6658
6659 2011-10-19  Bruno Haible  <bruno@clisp.org>
6660
6661         Support for old NeXTstep 3.3 sed.
6662         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
6663         part, use /.../, not \|...|. Escape periods in the header file name.
6664         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
6665         Reported by Daniel Richard G. <skunk@iskunk.org>.
6666
6667 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
6668
6669         Support for old NeXTstep 3.3 gcc.
6670         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
6671         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
6672         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
6673         * lib/spawn.in.h (_Restrict_arr_): Likewise.
6674         * lib/regex.h (_Restrict_arr_): Likewise.
6675         * lib/regex_internal.h (re_token_t): Likewise.
6676         * lib/regexec.c (check_node_accept_bytes): Likewise.
6677         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
6678
6679 2011-10-18  Eric Blake  <eblake@redhat.com>
6680
6681         posix_openpt: new module
6682         * modules/posix_openpt: New module.
6683         * m4/posix_openpt.m4: New file.
6684         * lib/posix_openpt.c: Likewise.
6685         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
6686         (gl_STDLIB_H_DEFAULTS): Set defaults.
6687         * modules/stdlib (Makefile.am): Substitute macros.
6688         * lib/stdlib.in.h (posix_openpt): Declare.
6689         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
6690         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
6691         * modules/posix_openpt-tests: New test module.
6692         * tests/test-posix_openpt.c: New test.
6693
6694 2011-10-15  Bruno Haible  <bruno@clisp.org>
6695
6696         xstrtoll: Fix compilation failure.
6697         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
6698         from lib/strtol.c.
6699         * doc/posix-headers/limits.texi: Mention missing numerical limits on
6700         some platforms.
6701         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6702
6703 2011-10-15  Bruno Haible  <bruno@clisp.org>
6704
6705         vasnprintf: Optimize bit search operation.
6706         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
6707         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
6708         gl_DOUBLE_EXPONENT_LOCATION.
6709         * modules/vasnprintf (Files): Add m4/exponentd.m4.
6710         * modules/unistdio/u8-vasnprintf (Files): Likewise.
6711         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
6712         * modules/unistdio/u16-vasnprintf (Files): Likewise.
6713         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
6714         * modules/unistdio/u32-vasnprintf (Files): Likewise.
6715         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
6716         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
6717         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
6718
6719 2011-10-15  Bruno Haible  <bruno@clisp.org>
6720
6721         vasnprintf: Fix comments.
6722         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
6723
6724 2011-10-14  Bruno Haible  <bruno@clisp.org>
6725
6726         Tests for module 'integer_length_ll'.
6727         * modules/integer_length_ll-tests: New file.
6728         * tests/test-integer_length_ll.c: New file.
6729
6730         New module 'integer_length_ll'.
6731         * lib/integer_length_ll.c: New file.
6732         * modules/integer_length_ll: New file.
6733
6734 2011-10-14  Bruno Haible  <bruno@clisp.org>
6735
6736         Tests for module 'integer_length_l'.
6737         * modules/integer_length_l-tests: New file.
6738         * tests/test-integer_length_l.c: New file.
6739
6740         New module 'integer_length_l'.
6741         * lib/integer_length_l.c: New file.
6742         * modules/integer_length_l: New file.
6743
6744 2011-10-14  Bruno Haible  <bruno@clisp.org>
6745
6746         Tests for module 'integer_length'.
6747         * modules/integer_length-tests: New file.
6748         * tests/test-integer_length.c: New file.
6749
6750         New module 'integer_length'.
6751         * lib/integer_length.h: New file.
6752         * lib/integer_length.c: New file.
6753         * modules/integer_length: New file.
6754
6755 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
6756
6757         popen: Fix dependency conditions.
6758         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
6759
6760 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
6761
6762         perror: Fix autoconf test.
6763         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
6764         <stdlib.h> and <string.h>.
6765
6766 2011-10-14  Bruno Haible  <bruno@clisp.org>
6767
6768         ffsl: Optimize on 64-bit platforms.
6769         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
6770         unrolling.
6771
6772 2011-10-13  Bruno Haible  <bruno@clisp.org>
6773
6774         ffsl: Optimize on 32-bit platforms.
6775         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
6776         use ffs() without a loop.
6777
6778         ffsl, ffsll: Optimize for GCC.
6779         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
6780         * lib/ffsl.c (GCC_BUILTIN): New macro.
6781         * lib/ffsll.c (GCC_BUILTIN): Likewise.
6782
6783 2011-10-13  Bruno Haible  <bruno@clisp.org>
6784
6785         ffs, bcopy, memset: Support symbol renaming via config.h.
6786         * lib/ffs.c: Include <config.h>.
6787         * lib/bcopy.c: Likewise.
6788         * lib/memset.c: Likewise.
6789
6790 2011-10-10  Bruno Haible  <bruno@clisp.org>
6791
6792         atanl: Simplify for platforms where 'long double' == 'double'.
6793         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6794         alternative implementation.
6795         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6796         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6797         * modules/atanl (Depends-on): Add atan. Update conditions.
6798
6799 2011-10-10  Bruno Haible  <bruno@clisp.org>
6800
6801         acosl: Simplify for platforms where 'long double' == 'double'.
6802         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6803         alternative implementation.
6804         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6805         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6806         * modules/acosl (Depends-on): Add acos. Update conditions.
6807
6808 2011-10-10  Bruno Haible  <bruno@clisp.org>
6809
6810         asinl: Simplify for platforms where 'long double' == 'double'.
6811         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6812         alternative implementation.
6813         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6814         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6815         * modules/asinl (Depends-on): Add asin. Update conditions.
6816
6817 2011-10-10  Bruno Haible  <bruno@clisp.org>
6818
6819         tanl: Simplify for platforms where 'long double' == 'double'.
6820         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6821         implementation.
6822         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6823         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6824         * modules/tanl (Depends-on): Add tan. Update conditions.
6825         (configure.ac): Don't compile trigl.c if
6826         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6827
6828 2011-10-10  Bruno Haible  <bruno@clisp.org>
6829
6830         cosl: Simplify for platforms where 'long double' == 'double'.
6831         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6832         implementation.
6833         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6834         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6835         * modules/cosl (Depends-on): Add cos. Update conditions.
6836         (configure.ac): Don't compile sincosl.c and trigl.c if
6837         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6838
6839 2011-10-10  Bruno Haible  <bruno@clisp.org>
6840
6841         sinl: Simplify for platforms where 'long double' == 'double'.
6842         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6843         implementation.
6844         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6845         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6846         * modules/sinl (Depends-on): Add sin. Update conditions.
6847         (configure.ac): Don't compile sincosl.c and trigl.c if
6848         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6849
6850 2011-10-10  Bruno Haible  <bruno@clisp.org>
6851
6852         logl: Simplify for platforms where 'long double' == 'double'.
6853         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6854         implementation.
6855         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6856         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6857         * modules/logl (Depends-on): Add log. Update conditions.
6858
6859 2011-10-10  Bruno Haible  <bruno@clisp.org>
6860
6861         expl: Simplify for platforms where 'long double' == 'double'.
6862         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6863         implementation.
6864         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6865         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6866         * modules/expl (Depends-on): Add exp. Update conditions.
6867
6868 2011-10-10  Bruno Haible  <bruno@clisp.org>
6869
6870         sqrtl: Simplify for platforms where 'long double' == 'double'.
6871         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6872         alternative implementation.
6873         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6874         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6875         * modules/sqrtl (Depends-on): Update conditions.
6876
6877 2011-10-10  Bruno Haible  <bruno@clisp.org>
6878
6879         ldexpl: Simplify for platforms where 'long double' == 'double'.
6880         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6881         alternative implementation.
6882         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6883         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6884         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
6885
6886 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
6887
6888         ffsll: set correct witness
6889         * modules/ffsll (configure.ac): Fix typo.
6890
6891 2011-10-10  Bruno Haible  <bruno@clisp.org>
6892
6893         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
6894         * lib/printf-frexpl.c: Include <config.h>.
6895         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6896         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
6897         second time.
6898         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
6899         gl_LONG_DOUBLE_VS_DOUBLE.
6900         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
6901         conditions.
6902
6903 2011-10-10  Bruno Haible  <bruno@clisp.org>
6904
6905         frexpl: Simplify for platforms where 'long double' == 'double'.
6906         * lib/frexpl.c: Include <config.h>.
6907         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6908         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6909         time.
6910         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6911         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6912         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
6913         * modules/frexpl (Depends-on): Add frexp. Update conditions.
6914         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
6915         conditions.
6916
6917 2011-10-10  Jim Meyering  <meyering@redhat.com>
6918
6919         test-renameat: don't leave behind a temporary file
6920         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
6921           ERROR: files left in build directory after distclean:
6922           ./gltests/test-renameat.too
6923           make[1]: *** [distcleancheck] Error 1
6924         Reported by Tom G. Christensen.
6925
6926 2011-10-09  Bruno Haible  <bruno@clisp.org>
6927
6928         rint: Determine RINT_LIBM correctly on AIX 7.
6929         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
6930         directly, not only through a function pointer. Also accept an optional
6931         4th argument with extra code.
6932         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
6933         rintf() call by gcc when optimizing.
6934
6935         mathfunc.m4: Refactor.
6936         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
6937         m4 variable.
6938
6939 2011-10-09  Bruno Haible  <bruno@clisp.org>
6940
6941         rintl: Simplify for platforms where 'long double' == 'double'.
6942         * lib/rintl.c: Include <config.h>.
6943         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6944         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6945         time.
6946         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6947         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6948         * modules/rintl (Depends-on): Add rint. Update conditions.
6949
6950 2011-10-09  Bruno Haible  <bruno@clisp.org>
6951
6952         roundl: Simplify for platforms where 'long double' == 'double'.
6953         * lib/roundl.c: Include <config.h>.
6954         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6955         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6956         time.
6957         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6958         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6959         * modules/roundl (Depends-on): Add round. Update conditions.
6960
6961 2011-10-09  Bruno Haible  <bruno@clisp.org>
6962
6963         truncl: Simplify for platforms where 'long double' == 'double'.
6964         * lib/truncl.c: Include <config.h>.
6965         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6966         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6967         time.
6968         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6969         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6970         * modules/truncl (Depends-on): Add trunc. Update conditions.
6971
6972 2011-10-09  Bruno Haible  <bruno@clisp.org>
6973
6974         ceill: Simplify for platforms where 'long double' == 'double'.
6975         * lib/ceill.c: Include <config.h>.
6976         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6977         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6978         time.
6979         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6980         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6981         * modules/ceill (Depends-on): Add ceil. Update conditions.
6982
6983 2011-10-09  Bruno Haible  <bruno@clisp.org>
6984
6985         floorl: Simplify for platforms where 'long double' == 'double'.
6986         * lib/floorl.c: Include <config.h>.
6987         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6988         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6989         time.
6990         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6991         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6992         * modules/floorl (Depends-on): Add floor. Update conditions.
6993
6994 2011-10-09  Bruno Haible  <bruno@clisp.org>
6995
6996         rint: Fix ordering constraints.
6997         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
6998         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
6999         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
7000
7001 2011-10-09  Bruno Haible  <bruno@clisp.org>
7002
7003         copysignl: Simplify for platforms where 'long double' == 'double'.
7004         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7005         alternative.
7006         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7007         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7008         * modules/copysignl (Depends-on): Add copysign. Update conditions.
7009
7010 2011-10-09  Bruno Haible  <bruno@clisp.org>
7011
7012         Tests for module 'rintl'.
7013         * modules/rintl-tests: New file.
7014         * tests/test-rintl.c: New file.
7015
7016         New module 'rintl'.
7017         * lib/math.in.h (rintl): New declaration.
7018         * lib/rintl.c: New file.
7019         * m4/rintl.m4: New file.
7020         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
7021         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
7022         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
7023         * modules/rintl: New file.
7024         * tests/test-math-c++.cc: Check the declaration of rintl.
7025         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7026         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
7027         * doc/posix-functions/rintl.texi: Mention the new module.
7028
7029 2011-10-09  Bruno Haible  <bruno@clisp.org>
7030
7031         Tests for module 'rintf'.
7032         * modules/rintf-tests: New file.
7033         * tests/test-rintf.c: New file.
7034
7035         New module 'rintf'.
7036         * lib/math.in.h (rintf): New declaration.
7037         * lib/rintf.c: New file.
7038         * m4/rintf.m4: New file.
7039         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
7040         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
7041         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
7042         * modules/rintf: New file.
7043         * tests/test-math-c++.cc: Check the declaration of rintf.
7044         * doc/posix-functions/rintf.texi: Mention the new module.
7045
7046 2011-10-09  Bruno Haible  <bruno@clisp.org>
7047
7048         rint: Support for MSVC.
7049         * lib/math.in.h (rint): New declaration.
7050         * lib/rint.c: New file.
7051         * m4/rint.m4: New file.
7052         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
7053         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
7054         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
7055         * modules/rint (Description): Fix.
7056         (Files): Add lib/rint.c, m4/rint.m4.
7057         (Depends-on): Add math.
7058         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
7059         gl_MATH_MODULE_INDICATOR.
7060         * tests/test-math-c++.cc: Check the declaration of rint.
7061         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7062         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
7063         * doc/posix-functions/rint.texi: Mention the replacement provided by
7064         the module.
7065
7066         rint tests: More tests.
7067         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
7068         minus-zero.h, infinity.h, nan.h.
7069         (main): Skip the test if the current rounding mode is not standard. Add
7070         tests for negative numbers, minus zero, infinity, NaN.
7071         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
7072         tests/nan.h.
7073         (Depends-on): Add isnand-nolibm.
7074
7075 2011-10-09  Bruno Haible  <bruno@clisp.org>
7076
7077         Tests for module 'copysignl'.
7078         * modules/copysignl-tests: New file.
7079         * tests/test-copysignl.c: New file.
7080
7081         New module 'copysignl'.
7082         * lib/math.in.h (copysignl): New declaration.
7083         * lib/copysignl.c: New file.
7084         * m4/copysignl.m4: New file.
7085         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
7086         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
7087         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
7088         HAVE_COPYSIGNL.
7089         * modules/copysignl: New file.
7090         * tests/test-math-c++.cc: Check the declaration of copysignl.
7091         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7092         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
7093         * doc/posix-functions/copysignl.texi: Mention the new module.
7094
7095 2011-10-09  Bruno Haible  <bruno@clisp.org>
7096
7097         Tests for module 'copysignf'.
7098         * modules/copysignf-tests: New file.
7099         * tests/test-copysignf.c: New file.
7100
7101         New module 'copysignf'.
7102         * lib/math.in.h (copysignf): New declaration.
7103         * lib/copysignf.c: New file.
7104         * m4/copysignf.m4: New file.
7105         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
7106         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
7107         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
7108         HAVE_COPYSIGNF.
7109         * modules/copysignf: New file.
7110         * tests/test-math-c++.cc: Check the declaration of copysignf.
7111         * doc/posix-functions/copysignf.texi: Mention the new module.
7112
7113 2011-10-09  Bruno Haible  <bruno@clisp.org>
7114
7115         Ensure that HAVE_* variables are set to 1 before they are set to 0.
7116         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
7117         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
7118         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
7119         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
7120         gl_SIGNAL_H_DEFAULTS.
7121
7122 2011-10-09  Bruno Haible  <bruno@clisp.org>
7123
7124         poll: Make macro safer.
7125         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
7126         ac_cv_header_poll_h is not set.
7127
7128 2011-10-09  Bruno Haible  <bruno@clisp.org>
7129
7130         copysign: Provide replacement.
7131         * lib/math.in.h (copysign): New declaration.
7132         * lib/copysign.c: New file.
7133         * m4/copysign.m4: New file.
7134         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
7135         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
7136         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
7137         HAVE_COPYSIGN.
7138         * modules/copysign (Description): Clarify.
7139         (Files): Add lib/copysign.c, m4/copysign.m4.
7140         (Depends-on): Add math, signbit.
7141         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
7142         gl_MATH_MODULE_INDICATOR.
7143         * tests/test-math-c++.cc: Check the declaration of copysign.
7144         * doc/posix-functions/copysign.texi: Mention the effects of the module
7145         on Minix and MSVC.
7146
7147 2011-10-09  Bruno Haible  <bruno@clisp.org>
7148
7149         isinf: Ensure macro on AIX 5.1.
7150         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
7151         macro.
7152         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
7153
7154 2011-10-09  Bruno Haible  <bruno@clisp.org>
7155
7156         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
7157         * modules/snprintf-posix-tests (configure.ac): Require
7158         gl_LONG_DOUBLE_VS_DOUBLE.
7159         * modules/sprintf-posix-tests (configure.ac): Likewise.
7160         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
7161         * modules/vasprintf-posix-tests (configure.ac): Likewise.
7162         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
7163         * modules/vsprintf-posix-tests (configure.ac): Likewise.
7164         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
7165         tests on platforms where 'long double' is the same as 'double'.
7166         * tests/test-sprintf-posix.h (test_function): Likewise.
7167         * tests/test-vasnprintf-posix.c (test_function): Likewise.
7168         * tests/test-vasprintf-posix.c (test_function): Likewise.
7169
7170         *printf: Fix for platforms where 'long double' == 'double'.
7171         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
7172         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
7173         * modules/dprintf-posix (Files): Add m4/math_h.m4.
7174         * modules/fprintf-posix (Files): Likewise.
7175         * modules/obstack-printf-posix (Files): Likewise.
7176         * modules/snprintf-posix (Files): Likewise.
7177         * modules/sprintf-posix (Files): Likewise.
7178         * modules/vasnprintf (Files): Likewise.
7179         * modules/vasnprintf-posix (Files): Likewise.
7180         * modules/vasprintf-posix (Files): Likewise.
7181         * modules/vdprintf-posix (Files): Likewise.
7182         * modules/vfprintf-posix (Files): Likewise.
7183         * modules/vsnprintf-posix (Files): Likewise.
7184         * modules/vsprintf-posix (Files): Likewise.
7185         * modules/unistdio/u8-vasnprintf (Files): Likewise.
7186         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
7187         * modules/unistdio/u16-vasnprintf (Files): Likewise.
7188         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
7189         * modules/unistdio/u32-vasnprintf (Files): Likewise.
7190         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
7191         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
7192
7193         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
7194         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
7195         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7196         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
7197         'long double'.
7198         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
7199
7200         isinf: Fix for platforms where 'long double' == 'double'.
7201         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
7202         Don't blindly assume 80-bit 'long double'.
7203
7204         isfinite: Fix for platforms where 'long double' == 'double'.
7205         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
7206         Don't blindly assume 80-bit 'long double'.
7207
7208         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
7209         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
7210         * modules/isfinite-tests (configure.ac): Require
7211         gl_LONG_DOUBLE_VS_DOUBLE.
7212         * modules/isinf-tests (configure.ac): Likewise.
7213         * modules/isnan-tests (configure.ac): Likewise.
7214         * modules/isnanl-tests (configure.ac): Likewise.
7215         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
7216         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
7217         tests on platforms where 'long double' is the same as 'double'.
7218         * tests/test-isinf.c (test_isinfl): Likewise.
7219         * tests/test-isnan.c (test_long_double): Likewise.
7220         * tests/test-isnanl.h (main): Likewise.
7221
7222 2011-10-08  Bruno Haible  <bruno@clisp.org>
7223
7224         Tests for module 'tanhf'.
7225         * modules/tanhf-tests: New file.
7226         * tests/test-tanhf.c: New file.
7227
7228         New module 'tanhf'.
7229         * lib/math.in.h (tanhf): New declaration.
7230         * lib/tanhf.c: New file.
7231         * m4/tanhf.m4: New file.
7232         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
7233         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
7234         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
7235         * modules/tanhf: New file.
7236         * tests/test-math-c++.cc: Check the declaration of tanhf.
7237         * doc/posix-functions/tanhf.texi: Mention the new module.
7238
7239         tanh: Use a .m4 file.
7240         * m4/tanh.m4: New file.
7241         * modules/tanh (Files): Add it.
7242         (configure.ac): Just invoke gl_FUNC_TANH.
7243
7244 2011-10-08  Bruno Haible  <bruno@clisp.org>
7245
7246         Tests for module 'coshf'.
7247         * modules/coshf-tests: New file.
7248         * tests/test-coshf.c: New file.
7249
7250         New module 'coshf'.
7251         * lib/math.in.h (coshf): New declaration.
7252         * lib/coshf.c: New file.
7253         * m4/coshf.m4: New file.
7254         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
7255         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
7256         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
7257         * modules/coshf: New file.
7258         * tests/test-math-c++.cc: Check the declaration of coshf.
7259         * doc/posix-functions/coshf.texi: Mention the new module.
7260
7261         cosh: Use a .m4 file.
7262         * m4/cosh.m4: New file.
7263         * modules/cosh (Files): Add it.
7264         (configure.ac): Just invoke gl_FUNC_COSH.
7265
7266 2011-10-08  Bruno Haible  <bruno@clisp.org>
7267
7268         Tests for module 'sinhf'.
7269         * modules/sinhf-tests: New file.
7270         * tests/test-sinhf.c: New file.
7271
7272         New module 'sinhf'.
7273         * lib/math.in.h (sinhf): New declaration.
7274         * lib/sinhf.c: New file.
7275         * m4/sinhf.m4: New file.
7276         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
7277         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
7278         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
7279         * modules/sinhf: New file.
7280         * tests/test-math-c++.cc: Check the declaration of sinhf.
7281         * doc/posix-functions/sinhf.texi: Mention the new module.
7282
7283         sinh: Use a .m4 file.
7284         * m4/sinh.m4: New file.
7285         * modules/sinh (Files): Add it.
7286         (configure.ac): Just invoke gl_FUNC_SINH.
7287
7288 2011-10-08  Bruno Haible  <bruno@clisp.org>
7289
7290         Tests for module 'atan2f'.
7291         * modules/atan2f-tests: New file.
7292         * tests/test-atan2f.c: New file.
7293
7294         New module 'atan2f'.
7295         * lib/math.in.h (atan2f): New declaration.
7296         * lib/atan2f.c: New file.
7297         * m4/atan2f.m4: New file.
7298         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
7299         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
7300         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
7301         * modules/atan2f: New file.
7302         * tests/test-math-c++.cc: Check the declaration of atan2f.
7303         * doc/posix-functions/atan2f.texi: Mention the new module.
7304
7305         atan2: Use a .m4 file.
7306         * m4/atan2.m4: New file.
7307         * modules/atan2 (Files): Add it.
7308         (configure.ac): Just invoke gl_FUNC_ATAN2.
7309
7310 2011-10-08  Bruno Haible  <bruno@clisp.org>
7311
7312         Tests for module 'atanf'.
7313         * modules/atanf-tests: New file.
7314         * tests/test-atanf.c: New file.
7315
7316         New module 'atanf'.
7317         * lib/math.in.h (atanf): New declaration.
7318         * lib/atanf.c: New file.
7319         * m4/atanf.m4: New file.
7320         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
7321         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
7322         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
7323         * modules/atanf: New file.
7324         * tests/test-math-c++.cc: Check the declaration of atanf.
7325         * doc/posix-functions/atanf.texi: Mention the new module.
7326
7327         atan: Use a .m4 file.
7328         * m4/atan.m4: New file.
7329         * modules/atan (Files): Add it.
7330         (configure.ac): Just invoke gl_FUNC_ATAN.
7331
7332 2011-10-08  Bruno Haible  <bruno@clisp.org>
7333
7334         Tests for module 'acosf'.
7335         * modules/acosf-tests: New file.
7336         * tests/test-acosf.c: New file.
7337
7338         New module 'acosf'.
7339         * lib/math.in.h (acosf): New declaration.
7340         * lib/acosf.c: New file.
7341         * m4/acosf.m4: New file.
7342         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
7343         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
7344         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
7345         * modules/acosf: New file.
7346         * tests/test-math-c++.cc: Check the declaration of acosf.
7347         * doc/posix-functions/acosf.texi: Mention the new module.
7348
7349         acos: Use a .m4 file.
7350         * m4/acos.m4: New file.
7351         * modules/acos (Files): Add it.
7352         (configure.ac): Just invoke gl_FUNC_ACOS.
7353
7354 2011-10-08  Bruno Haible  <bruno@clisp.org>
7355
7356         Tests for module 'asinf'.
7357         * modules/asinf-tests: New file.
7358         * tests/test-asinf.c: New file.
7359
7360         New module 'asinf'.
7361         * lib/math.in.h (asinf): New declaration.
7362         * lib/asinf.c: New file.
7363         * m4/asinf.m4: New file.
7364         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
7365         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
7366         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
7367         * modules/asinf: New file.
7368         * tests/test-math-c++.cc: Check the declaration of asinf.
7369         * doc/posix-functions/asinf.texi: Mention the new module.
7370
7371         asin: Use a .m4 file.
7372         * m4/asin.m4: New file.
7373         * modules/asin (Files): Add it.
7374         (configure.ac): Just invoke gl_FUNC_ASIN.
7375
7376 2011-10-08  Bruno Haible  <bruno@clisp.org>
7377
7378         Tests for module 'tanf'.
7379         * modules/tanf-tests: New file.
7380         * tests/test-tanf.c: New file.
7381
7382         New module 'tanf'.
7383         * lib/math.in.h (tanf): New declaration.
7384         * lib/tanf.c: New file.
7385         * m4/tanf.m4: New file.
7386         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
7387         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
7388         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
7389         * modules/tanf: New file.
7390         * tests/test-math-c++.cc: Check the declaration of tanf.
7391         * doc/posix-functions/tanf.texi: Mention the new module.
7392
7393         tan: Use a .m4 file.
7394         * m4/tan.m4: New file.
7395         * modules/tan (Files): Add it.
7396         (configure.ac): Just invoke gl_FUNC_TAN.
7397
7398 2011-10-08  Bruno Haible  <bruno@clisp.org>
7399
7400         Tests for module 'cosf'.
7401         * modules/cosf-tests: New file.
7402         * tests/test-cosf.c: New file.
7403
7404         New module 'cosf'.
7405         * lib/math.in.h (cosf): New declaration.
7406         * lib/cosf.c: New file.
7407         * m4/cosf.m4: New file.
7408         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
7409         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
7410         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
7411         * modules/cosf: New file.
7412         * tests/test-math-c++.cc: Check the declaration of cosf.
7413         * doc/posix-functions/cosf.texi: Mention the new module.
7414
7415         cos: Use a .m4 file.
7416         * m4/cos.m4: New file.
7417         * modules/cos (Files): Add it.
7418         (configure.ac): Just invoke gl_FUNC_COS.
7419
7420 2011-10-08  Bruno Haible  <bruno@clisp.org>
7421
7422         Tests for module 'sinf'.
7423         * modules/sinf-tests: New file.
7424         * tests/test-sinf.c: New file.
7425
7426         New module 'sinf'.
7427         * lib/math.in.h (sinf): New declaration.
7428         * lib/sinf.c: New file.
7429         * m4/sinf.m4: New file.
7430         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
7431         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
7432         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
7433         * modules/sinf: New file.
7434         * tests/test-math-c++.cc: Check the declaration of sinf.
7435         * doc/posix-functions/sinf.texi: Mention the new module.
7436
7437         sin: Use a .m4 file.
7438         * m4/sin.m4: New file.
7439         * modules/sin (Files): Add it.
7440         (configure.ac): Just invoke gl_FUNC_SIN.
7441
7442 2011-10-08  Bruno Haible  <bruno@clisp.org>
7443
7444         Tests for module 'powf'.
7445         * modules/powf-tests: New file.
7446         * tests/test-powf.c: New file.
7447
7448         New module 'powf'.
7449         * lib/math.in.h (powf): New declaration.
7450         * lib/powf.c: New file.
7451         * m4/powf.m4: New file.
7452         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
7453         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
7454         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
7455         * modules/powf: New file.
7456         * tests/test-math-c++.cc: Check the declaration of powf.
7457         * doc/posix-functions/powf.texi: Mention the new module.
7458
7459         pow: Use a .m4 file.
7460         * m4/pow.m4: New file.
7461         * modules/pow (Files): Add it.
7462         (configure.ac): Just invoke gl_FUNC_POW.
7463
7464 2011-10-08  Bruno Haible  <bruno@clisp.org>
7465
7466         Tests for module 'log10f'.
7467         * modules/log10f-tests: New file.
7468         * tests/test-log10f.c: New file.
7469
7470         New module 'log10f'.
7471         * lib/math.in.h (log10f): New declaration.
7472         * lib/log10f.c: New file.
7473         * m4/log10f.m4: New file.
7474         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
7475         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
7476         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
7477         * modules/log10f: New file.
7478         * tests/test-math-c++.cc: Check the declaration of log10f.
7479         * doc/posix-functions/log10f.texi: Mention the new module.
7480
7481         log10: Use a .m4 file.
7482         * m4/log10.m4: New file.
7483         * modules/log10 (Files): Add it.
7484         (configure.ac): Just invoke gl_FUNC_LOG10.
7485
7486 2011-10-08  Bruno Haible  <bruno@clisp.org>
7487
7488         Tests for module 'logf'.
7489         * modules/logf-tests: New file.
7490         * tests/test-logf.c: New file.
7491
7492         New module 'logf'.
7493         * lib/math.in.h (logf): New declaration.
7494         * lib/logf.c: New file.
7495         * m4/logf.m4: New file.
7496         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
7497         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
7498         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
7499         * modules/logf: New file.
7500         * tests/test-math-c++.cc: Check the declaration of logf.
7501         * doc/posix-functions/logf.texi: Mention the new module.
7502
7503         log: Use a .m4 file.
7504         * m4/log.m4: New file.
7505         * modules/log (Files): Add it.
7506         (configure.ac): Just invoke gl_FUNC_LOG.
7507
7508 2011-10-08  Bruno Haible  <bruno@clisp.org>
7509
7510         Tests for module 'expf'.
7511         * modules/expf-tests: New file.
7512         * tests/test-expf.c: New file.
7513
7514         New module 'expf'.
7515         * lib/math.in.h (expf): New declaration.
7516         * lib/expf.c: New file.
7517         * m4/expf.m4: New file.
7518         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
7519         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
7520         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
7521         * modules/expf: New file.
7522         * tests/test-math-c++.cc: Check the declaration of expf.
7523         * doc/posix-functions/expf.texi: Mention the new module.
7524
7525         exp: Use a .m4 file.
7526         * m4/exp.m4: New file.
7527         * modules/exp (Files): Add it.
7528         (configure.ac): Just invoke gl_FUNC_EXP.
7529
7530 2011-10-08  Bruno Haible  <bruno@clisp.org>
7531
7532         Tests for module 'sqrtf'.
7533         * modules/sqrtf-tests: New file.
7534         * tests/test-sqrtf.c: New file.
7535
7536         New module 'sqrtf'.
7537         * lib/math.in.h (sqrtf): New declaration.
7538         * lib/sqrtf.c: New file.
7539         * m4/sqrtf.m4: New file.
7540         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
7541         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
7542         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
7543         * modules/sqrtf: New file.
7544         * tests/test-math-c++.cc: Check the declaration of sqrtf.
7545         * doc/posix-functions/sqrtf.texi: Mention the new module.
7546
7547 2011-10-08  Bruno Haible  <bruno@clisp.org>
7548
7549         Tests: Avoid link failures w.r.t. libintl.
7550         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
7551         $(LIBINTL).
7552         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
7553         $(LIBINTL).
7554         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
7555         against $(LIBINTL).
7556         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
7557         $(LIBINTL).
7558         * modules/openat-tests (Makefile.am): Link test-fchmodat against
7559         $(LIBINTL).
7560         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
7561
7562 2011-10-08  Bruno Haible  <bruno@clisp.org>
7563
7564         pow tests: Defeat compiler optimizations.
7565         * tests/test-pow.c (main): Assign arguments to x and y before use.
7566
7567 2011-10-08  Bruno Haible  <bruno@clisp.org>
7568
7569         gnulib-tool: Improve last commit.
7570         * gnulib-tool (func_modules_transitive_closure): Simplify code.
7571         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
7572         ignore dependencies that are not among the modules list.
7573
7574 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
7575
7576         gnulib-tool: don't follow dependencies to avoided modules
7577         This fixes a bug that is related to the previous one.
7578         * gnulib-tool (func_modules_transitive_closure)
7579         (func_emit_autoconf_snippets):
7580         Check whether a dependency is acceptable before using it.
7581         (--extract-dependencies): Report an error if --avoid is also used,
7582         since this combination of options is not yet supported.
7583
7584         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
7585         Problem reported by Peter Dyballa in
7586         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
7587         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
7588         when echoing "$condition".
7589
7590 2011-10-07  Bruno Haible  <bruno@clisp.org>
7591
7592         Fix documentation about math functions on MacOS X.
7593         * doc/posix-functions/exp2.texi: Don't say the function is missing on
7594         MacOS X 10.5.
7595         * doc/posix-functions/fdim.texi: Likewise.
7596         * doc/posix-functions/feclearexcept.texi: Likewise.
7597         * doc/posix-functions/fegetenv.texi: Likewise.
7598         * doc/posix-functions/fegetround.texi: Likewise.
7599         * doc/posix-functions/feholdexcept.texi: Likewise.
7600         * doc/posix-functions/feraiseexcept.texi: Likewise.
7601         * doc/posix-functions/fesetenv.texi: Likewise.
7602         * doc/posix-functions/fesetround.texi: Likewise.
7603         * doc/posix-functions/fetestexcept.texi: Likewise.
7604         * doc/posix-functions/feupdateenv.texi: Likewise.
7605         * doc/posix-functions/fmax.texi: Likewise.
7606         * doc/posix-functions/fmin.texi: Likewise.
7607         * doc/posix-functions/log2.texi: Likewise.
7608         * doc/posix-functions/modff.texi: Likewise.
7609         * doc/posix-functions/nan.texi: Likewise.
7610         * doc/posix-functions/nanf.texi: Likewise.
7611         * doc/posix-functions/nextafterf.texi: Likewise.
7612         * doc/posix-functions/remquo.texi: Likewise.
7613
7614 2011-10-07  Bruno Haible  <bruno@clisp.org>
7615
7616         modff: Drop assumption about library that defines modff.
7617         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
7618         AC_CHECK_FUNCS.
7619         * modules/modff (Files): Add m4/mathfunc.m4.
7620
7621 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
7622
7623         raise tests: Avoid a GCC warning.
7624         * tests/test-raise.c (handler): Use _Noreturn.
7625
7626 2011-10-07  Bruno Haible  <bruno@clisp.org>
7627
7628         Tests for module 'ldexpf'.
7629         * modules/ldexpf-tests: New file.
7630         * tests/test-ldexpf.c: New file.
7631
7632         New module 'ldexpf'.
7633         * lib/math.in.h (ldexpf): New declaration.
7634         * lib/ldexpf.c: New file.
7635         * m4/ldexpf.m4: New file.
7636         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
7637         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
7638         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
7639         * modules/ldexpf: New file.
7640         * tests/test-math-c++.cc: Check the declaration of ldexpf.
7641         * doc/posix-functions/ldexpf.texi: Mention the new module.
7642
7643 2011-10-06  Bruno Haible  <bruno@clisp.org>
7644
7645         frexpf: Work around problems on IRIX and mingw.
7646         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
7647         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
7648         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
7649         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
7650         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
7651         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
7652         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
7653
7654 2011-10-06  Bruno Haible  <bruno@clisp.org>
7655
7656         fabsf: Drop assumption about library that defines fabsf.
7657         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
7658         AC_CHECK_FUNCS.
7659         * modules/fabsf (Files): Add m4/mathfunc.m4.
7660
7661 2011-10-06  Bruno Haible  <bruno@clisp.org>
7662
7663         frexpf: Drop assumption about library that defines frexpf.
7664         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
7665         'int *', 'float *', 'long double *', 'float', 'long double'.
7666         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
7667         AC_CHECK_FUNCS.
7668         * modules/frexpf (Files): Add m4/mathfunc.m4.
7669
7670         Tests for module 'frexpf'.
7671         * modules/frexpf-tests: New file.
7672         * tests/test-frexpf.c: New file.
7673
7674         New module 'frexpf'.
7675         * lib/math.in.h (frexpf): New declaration.
7676         * lib/frexpf.c: New file.
7677         * m4/frexpf.m4: New file.
7678         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
7679         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
7680         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
7681         * modules/frexpf: New file.
7682         * tests/test-math-c++.cc: Check the declaration of frexpf.
7683         * doc/posix-functions/frexpf.texi: Mention the new module.
7684
7685 2011-10-06  Bruno Haible  <bruno@clisp.org>
7686
7687         math: Sort function declarations of math.in.h.
7688         * lib/math.in.h (frexp, logb): Move declarations.
7689
7690 2011-10-05  Bruno Haible  <bruno@clisp.org>
7691
7692         Tests for module 'modff'.
7693         * modules/modff-tests: New file.
7694         * tests/test-modff.c: New file.
7695
7696         New module 'modff'.
7697         * lib/math.in.h (modff): New declaration.
7698         * lib/modff.c: New file.
7699         * m4/modff.m4: New file.
7700         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
7701         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
7702         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
7703         * modules/modff: New file.
7704         * tests/test-math-c++.cc: Check the declaration of modff.
7705         * doc/posix-functions/modff.texi: Mention the new module.
7706
7707         modf tests: Make test sharper.
7708         * tests/test-modf.c (main): Strengthen upper bound.
7709
7710         modf: Use a .m4 file.
7711         * m4/modf.m4: New file.
7712         * modules/modf (Files): Add it.
7713         (configure.ac): Just invoke gl_FUNC_MODF.
7714
7715 2011-10-05  Bruno Haible  <bruno@clisp.org>
7716
7717         Tests for module 'fmodf'.
7718         * modules/fmodf-tests: New file.
7719         * tests/test-fmodf.c: New file.
7720
7721         New module 'fmodf'.
7722         * lib/math.in.h (fmodf): New declaration.
7723         * lib/fmodf.c: New file.
7724         * m4/fmodf.m4: New file.
7725         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
7726         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
7727         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
7728         * modules/fmodf: New file.
7729         * tests/test-math-c++.cc: Check the declaration of fmodf.
7730         * doc/posix-functions/fmodf.texi: Mention the new module.
7731
7732         fmod: Use a .m4 file.
7733         * m4/fmod.m4: New file.
7734         * modules/fmod (Files): Add it.
7735         (configure.ac): Just invoke gl_FUNC_FMOD.
7736
7737 2011-10-05  Bruno Haible  <bruno@clisp.org>
7738
7739         Tests for module 'fabsf'.
7740         * modules/fabsf-tests: New file.
7741         * tests/test-fabsf.c: New file.
7742
7743         New module 'fabsf'.
7744         * lib/math.in.h (fabsf): New declaration.
7745         * lib/fabsf.c: New file.
7746         * m4/fabsf.m4: New file.
7747         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
7748         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
7749         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
7750         * modules/fabsf: New file.
7751         * tests/test-math-c++.cc: Check the declaration of fabsf.
7752         * doc/posix-functions/fabsf.texi: Mention the new module.
7753
7754         fabs: Use a .m4 file.
7755         * m4/fabs.m4: New file.
7756         * modules/fabs (Files): Add it.
7757         (configure.ac): Just invoke gl_FUNC_FABS.
7758
7759 2011-10-05  Jim Meyering  <meyering@redhat.com>
7760
7761         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
7762         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
7763         ls -lL regression introduced in coreutils-8.12, it does so at the
7764         cost of an additional stat call in the common case.  Besides, now
7765         that the kernel change that prompted commit 95f7c57f has been reverted
7766         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
7767         we have no use for commit 95f7c57f, "file-has-acl: use
7768         acl_extended_file_nofollow if available".
7769
7770 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
7771
7772         file-has-acl: revert unintended change in behavior of ls -L
7773         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
7774         derived from...
7775         (file_has_acl): ...code here.  Call it.
7776         This problem was introduced with 2011-07-22 commit 95f7c57f,
7777         "file-has-acl: use acl_extended_file_nofollow if available".
7778         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
7779
7780 2011-10-03  Bruno Haible  <bruno@clisp.org>
7781
7782         poll: Avoid link errors on MSVC.
7783         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
7784         * modules/poll (Depends-on): Add sockets.
7785         (Link): New section.
7786         * NEWS: Mention the change.
7787         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
7788         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
7789         $(LIB_POLL) instead of $(LIBSOCKET).
7790
7791 2011-10-03  Bruno Haible  <bruno@clisp.org>
7792
7793         sys_select tests: Fix link error on MSVC 9.
7794         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
7795         with $(LIB_SELECT) instead of $(LIBSOCKET).
7796
7797 2011-10-03  Bruno Haible  <bruno@clisp.org>
7798
7799         sys_select: Fix compilation error on mingw.
7800         * lib/sys_select.in.h: On native Windows, include <io.h>.
7801
7802 2011-10-03  Bruno Haible  <bruno@clisp.org>
7803
7804         wmemset: Support for MSVC.
7805         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
7806         whether wmemset() exists.
7807
7808 2011-10-03  Bruno Haible  <bruno@clisp.org>
7809
7810         wmemmove: Support for MSVC.
7811         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
7812         whether wmemmove() exists.
7813
7814 2011-10-03  Bruno Haible  <bruno@clisp.org>
7815
7816         wmemcpy: Support for MSVC.
7817         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
7818         whether wmemcpy() exists.
7819
7820 2011-10-03  Bruno Haible  <bruno@clisp.org>
7821
7822         wmemcmp: Support for MSVC.
7823         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
7824         whether wmemcmp() exists.
7825
7826 2011-10-03  Bruno Haible  <bruno@clisp.org>
7827
7828         wmemchr: Support for MSVC.
7829         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
7830         whether wmemchr() exists.
7831
7832 2011-10-03  Bruno Haible  <bruno@clisp.org>
7833
7834         glthread/*, strsignal: Support for MSVC.
7835         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
7836         including <winsock.h> on MSVC 9.
7837         * lib/glthread/lock.h: Likewise.
7838         * lib/glthread/thread.h: Likewise.
7839         * lib/glthread/tls.h: Likewise.
7840         * lib/glthread/yield.h: Likewise.
7841         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
7842         if HAVE_UNISTD_H is false.
7843         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
7844
7845 2011-10-03  Bruno Haible  <bruno@clisp.org>
7846
7847         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
7848         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
7849         Set to 100000.
7850
7851 2011-10-03  Bruno Haible  <bruno@clisp.org>
7852
7853         acl: Fix specification.
7854         * lib/file-has-acl.c (file_has_acl): Fix specification.
7855
7856 2011-10-03  Bruno Haible  <bruno@clisp.org>
7857
7858         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
7859         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
7860         (compute_curr_prefix, shared_library_fullname,
7861         find_shared_library_fullname, get_shared_library_fullname, relocate):
7862         Use it together with PIC && INSTALLDIR.
7863         Reported by <jojelino@gmail.com>
7864         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
7865
7866 2011-10-01  Jim Meyering  <meyering@redhat.com>
7867
7868         maint.mk: adjust a release-related rule not to require use of gzip
7869         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
7870         Instead, check each file in $(DIST_ARCHIVES).  This is better for
7871         projects that build only .tar.xz files.  Also fix an erroneous test.
7872
7873         test-linkat: don't leave behind a temporary file
7874         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
7875         Otherwise, coreutils' "make distcheck" would fail with this:
7876           Only in /c/cu/tests/torture/coreutils/test/\
7877             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
7878           make[2]: *** [my-distcheck] Error 1
7879
7880         float, math: add omitted file
7881         * lib/itold.c: Add file, required for yesterday's float change.
7882
7883 2011-10-01  Bruno Haible  <bruno@clisp.org>
7884
7885         isinf: Fix for OpenBSD/x86.
7886         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
7887         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
7888         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
7889
7890 2011-10-01  Bruno Haible  <bruno@clisp.org>
7891
7892         isfinite: Fix syntax error in configure test.
7893         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
7894
7895         isfinite: Fix typo.
7896         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
7897         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
7898
7899 2011-10-01  Bruno Haible  <bruno@clisp.org>
7900
7901         nonblocking tests: Fix test failure on Linux/IA-64.
7902         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
7903         Set to 270000.
7904
7905 2011-10-01  Bruno Haible  <bruno@clisp.org>
7906
7907         mkfifoat tests: Fix a test failure on mingw.
7908         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
7909         with error ENOSYS.
7910
7911 2011-09-30  Bruno Haible  <bruno@clisp.org>
7912
7913         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
7914         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
7915         'long double'. Set REPLACE_ITOLD.
7916         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
7917         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
7918         * lib/itold.c: New file.
7919         * modules/float (Files): Add lib/itold.c.
7920         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
7921         (Makefile.am): Substitute REPLACE_ITOLD.
7922         * modules/math (Depends-on): Add float.
7923         (Makefile.am): Substitute REPLACE_ITOLD.
7924         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
7925         * doc/posix-headers/math.texi: Likewise.
7926         * doc/posix-functions/logl.texi: Likewise.
7927
7928 2011-09-30  Bruno Haible  <bruno@clisp.org>
7929
7930         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
7931         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
7932         Set to 140000.
7933
7934 2011-09-30  Bruno Haible  <bruno@clisp.org>
7935
7936         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
7937         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
7938         invocation, say "right after AC_PROG_CC_STDC", not "right after
7939         AC_PROG_CC".
7940         Reported by Gary V. Vaughan <gary@gnu.org>.
7941
7942 2011-09-30  Bruno Haible  <bruno@clisp.org>
7943
7944         Centralize C99 requirement.
7945         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
7946         * modules/stdarg (configure.ac-early): Invoke it instead of
7947         AC_PROG_CC_STDC.
7948         Reported by Gary V. Vaughan and Paul Eggert.
7949
7950 2011-09-29  Bruno Haible  <bruno@clisp.org>
7951
7952         float: Fix LDBL_MAX value on Linux/PowerPC.
7953         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
7954         on Linux/PowerPC.
7955         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
7956         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
7957         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
7958         platform.
7959         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
7960
7961 2011-09-29  Bruno Haible  <bruno@clisp.org>
7962
7963         doc: Improve doc about gl_EARLY.
7964         * doc/gnulib-tool.texi (Initial import): Mention where to place an
7965         AC_PROG_CC_STDC invocation.
7966         Reported by Gary V. Vaughan <gary@gnu.org>.
7967
7968 2011-09-28  Bruno Haible  <bruno@clisp.org>
7969
7970         fgetc, fputc, fread, fwrite tests: Fix link error.
7971         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
7972         on non-MSVC platforms.
7973         * tests/test-fputc.c (main): Likewise.
7974         * tests/test-fread.c (main): Likewise.
7975         * tests/test-fwrite.c (main): Likewise.
7976         Reported by Jim Meyering.
7977
7978 2011-09-27  Bruno Haible  <bruno@clisp.org>
7979
7980         fputc, fwrite tests: Avoid test failure on MSVC.
7981         * tests/test-fgetc.c: Include msvc-inval.h.
7982         (main): Invoke gl_msvc_inval_ensure_handler.
7983         * tests/test-fputc.c: Include msvc-inval.h.
7984         (main): Invoke gl_msvc_inval_ensure_handler.
7985         * tests/test-fread.c: Include msvc-inval.h.
7986         (main): Invoke gl_msvc_inval_ensure_handler.
7987         * tests/test-fwrite.c: Include msvc-inval.h.
7988         (main): Invoke gl_msvc_inval_ensure_handler.
7989         * modules/fgetc-tests (Depends-on): Add msvc-inval.
7990         * modules/fputc-tests (Depends-on): Likewise.
7991         * modules/fread-tests (Depends-on): Likewise.
7992         * modules/fwrite-tests (Depends-on): Likewise.
7993
7994 2011-09-27  Bruno Haible  <bruno@clisp.org>
7995
7996         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
7997         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
7998         (raise): Remove older, duplicated declaration.
7999         (_gl_raise_SIGPIPE): New declaration.
8000         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
8001         (rpl_raise): Remove function.
8002         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
8003         a gnulib-defined SIGPIPE here.
8004         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
8005         'sigprocmask' has detected missing signal-blocking and the module
8006         'sigpipe' is enabled.
8007         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
8008
8009 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
8010
8011         base64-tests: avoid memory leak
8012         * tests/test-base64.c (main): Plug memory leak.
8013
8014         base32: new module
8015         * modules/base32: New module.
8016         * lib/base32.c: New file.
8017         * lib/base32.h: Likewise.
8018         * m4/base32.m4: Likewise.
8019         * modules/base32-tests: New test.
8020         * tests/test-base32.c: Likewise.
8021         * MODULES.html.sh (Misc): Mention it.
8022
8023 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
8024
8025         gnulib: use more-standard license notice wording
8026         * gnulib-tool (func_emit_copyright_notice): When emitting a
8027         license notice into a file, use the standard wording as suggested
8028         by the current information for GNU maintainers, except say "file"
8029         rather than "program".  The new wording gives a license version
8030         number, which addresses an issue raised by Glenn Morris in
8031         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
8032         * m4/onceonly.m4: Use that same wording here, too.
8033
8034         dup2: minor simplification
8035         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
8036         as lib/dup2.c no longer uses 'inline'.
8037
8038 2011-09-25  Bruno Haible  <bruno@clisp.org>
8039
8040         strings: Fix compilation error on MSVC.
8041         * lib/strings.in.h: Include <stddef.h> for size_t.
8042
8043 2011-09-25  Bruno Haible  <bruno@clisp.org>
8044
8045         fflush et al.: Document limitation on MSVC.
8046         * doc/posix-functions/fflush.texi: Document possible crash in handling
8047         mode other than DEFAULT_HANDLING.
8048         * doc/posix-functions/fgetc.texi: Likewise.
8049         * doc/posix-functions/fputc.texi: Likewise.
8050         * doc/posix-functions/fread.texi: Likewise.
8051         * doc/posix-functions/fwrite.texi: Likewise.
8052
8053 2011-09-25  Bruno Haible  <bruno@clisp.org>
8054
8055         msvc-inval: Allow three invalid parameter handling modes.
8056         * lib/msvc-inval.h: Don't include <stdlib.h> here.
8057         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
8058         macros.
8059         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
8060         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
8061         SANE_LIBRARY_HANDLING as a no-op.
8062         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
8063         <stdlib.h>.
8064         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
8065
8066 2011-09-25  Bruno Haible  <bruno@clisp.org>
8067
8068         msvc-inval: Make handler multithread-safe.
8069         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
8070         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
8071         declarations.
8072         (gl_msvc_inval_current): New declaration.
8073         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
8074         Operate on the structure returned by gl_msvc_inval_current().
8075         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
8076         Remove varaiables.
8077         (tls_index, tls_initialized): New variables.
8078         (not_per_thread): New variable.
8079         (gl_msvc_inval_current): New function.
8080         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
8081         returned by gl_msvc_inval_current().
8082
8083 2011-09-25  Bruno Haible  <bruno@clisp.org>
8084
8085         msvc-inval: Install handler globally.
8086         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
8087         !_MSC_VER.
8088         (gl_msvc_invalid_parameter_handler): Remove declaration.
8089         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
8090         declarations.
8091         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
8092         Install the handler globally, don't uninstall it.
8093         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
8094         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
8095         currently valid, call RaiseException instead.
8096         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
8097         for !_MSC_VER.
8098
8099 2011-09-25  Bruno Haible  <bruno@clisp.org>
8100
8101         strerror_r-posix: Fix for MSVC 9.
8102         * lib/strerror_r.c (local_snprintf): New function.
8103         (snprintf): Define to local_snprintf, not to _snprintf.
8104
8105 2011-09-25  Bruno Haible  <bruno@clisp.org>
8106
8107         ftruncate: Support for MSVC 9.
8108         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
8109         (chsize_nothrow): New function.
8110         (chsize): Redefine as a macro.
8111         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
8112         * modules/ftruncate (Depends-on): Add msvc-inval.
8113
8114 2011-09-25  Bruno Haible  <bruno@clisp.org>
8115
8116         New module 'fstat'.
8117         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
8118         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
8119         * lib/fchdir.c (rpl_fstat): Remove function.
8120         * m4/fstat.m4: New file.
8121         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
8122         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
8123         declared.
8124         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
8125         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
8126         * modules/fstat: New file.
8127         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
8128         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
8129         is set.
8130         * doc/posix-functions/fstat.texi: Mention the new module and the
8131         problem on MSVC.
8132         * NEWS: Mention the change.
8133         * modules/acl (Depends-on): Add fstat.
8134         * modules/chdir-safer (Depends-on): Likewise.
8135         * modules/chown (Depends-on): Likewise.
8136         * modules/copy-file (Depends-on): Likewise.
8137         * modules/fchdir (Depends-on): Likewise.
8138         * modules/fdopendir (Depends-on): Likewise.
8139         * modules/fopen (Depends-on): Likewise.
8140         * modules/fts (Depends-on): Likewise.
8141         * modules/getcwd (Depends-on): Likewise.
8142         * modules/isapipe (Depends-on): Likewise.
8143         * modules/linkat (Depends-on): Likewise.
8144         * modules/lseek (Depends-on): Likewise.
8145         * modules/mkdir-p (Depends-on): Likewise.
8146         * modules/open (Depends-on): Likewise.
8147         * modules/openat (Depends-on): Likewise.
8148         * modules/read-file (Depends-on): Likewise.
8149         * modules/renameat (Depends-on): Likewise.
8150         * modules/utimens (Depends-on): Likewise.
8151
8152 2011-09-25  Bruno Haible  <bruno@clisp.org>
8153
8154         linkat: Fix compilation on MSVC 9.
8155         * lib/linkat.c: Don't include <stdint.h>.
8156
8157 2011-09-25  Bruno Haible  <bruno@clisp.org>
8158
8159         fclose: Support for MSVC 9.
8160         * lib/fclose.c: Include msvc-inval.h.
8161         (fclose_nothrow): New function.
8162         (rpl_fclose): Use it.
8163         * modules/fclose (Depends-on): Add msvc-inval.
8164         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
8165
8166 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
8167
8168         dup2: minor simplifications
8169         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
8170         that it's a performance win.
8171         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
8172         ! defined __CYGWIN__)" to "ifdef F_GETFL".
8173
8174 2011-09-24  Jim Meyering  <meyering@redhat.com>
8175
8176         test-futimens: avoid a warning from gcc -Wshadow
8177         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
8178         to avoid a shadowing warning.
8179
8180 2011-09-24  Bruno Haible  <bruno@clisp.org>
8181
8182         fdopen: Support for MSVC 9.
8183         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
8184         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
8185         * lib/fdopen.c: Include msvc-inval.h.
8186         (fdopen_nothrow): New function.
8187         (rpl_fdopen): Use it.
8188         * modules/fdopen (Depends-on): Add msvc-inval.
8189         * modules/fclose-tests (Depends-on): Add fdopen.
8190         * modules/fflush-tests (Depends-on): Likewise.
8191         * modules/fgetc-tests (Depends-on): Likewise.
8192         * modules/fputc-tests (Depends-on): Likewise.
8193         * modules/fread-tests (Depends-on): Likewise.
8194         * modules/freopen-tests (Depends-on): Likewise.
8195         * modules/fseeko-tests (Depends-on): Likewise.
8196         * modules/ftello-tests (Depends-on): Likewise.
8197         * modules/fwrite-tests  (Depends-on): Likewise.
8198         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
8199
8200 2011-09-24  Bruno Haible  <bruno@clisp.org>
8201
8202         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
8203         * modules/fgetc-tests (Depends-on): Add unistd.
8204         * modules/fputc-tests (Depends-on): Likewise.
8205         * modules/fread-tests (Depends-on): Likewise.
8206         * modules/fwrite-tests (Depends-on): Likewise.
8207
8208 2011-09-24  Bruno Haible  <bruno@clisp.org>
8209
8210         dup: Simplify autoconf test.
8211         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
8212         on gl_MSVC_INVAL's result.
8213
8214 2011-09-24  Bruno Haible  <bruno@clisp.org>
8215
8216         Tests for function fwrite().
8217         * modules/fwrite-tests: New file.
8218         * tests/test-fwrite.c: New file.
8219         * modules/stdio-tests (Depends-on): Add fwrite-tests.
8220
8221         Tests for function fread().
8222         * modules/fread-tests: New file.
8223         * tests/test-fread.c: New file.
8224         * modules/stdio-tests (Depends-on): Add fread-tests.
8225
8226         Activate fputc tests.
8227         * modules/stdio-tests (Depends-on): Add fputc-tests.
8228
8229         Enhance fgetc, fputc tests.
8230         * tests/test-fgetc.c (main): Also test the stream's error indicator.
8231         * tests/test-fputc.c (main): Likewise.
8232
8233 2011-09-24  Bruno Haible  <bruno@clisp.org>
8234
8235         write: Support for MSVC 9.
8236         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
8237         is not 1.
8238         * lib/write.c (write_nothrow): New function.
8239         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
8240         not 1. Use write_nothrow.
8241         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
8242         invalid parameter handler.
8243         (gl_PREREQ_WRITE): New macro.
8244         * modules/write (Depends-on): Add msvc-inval.
8245         (configure.ac): Invoke gl_PREREQ_WRITE.
8246         * doc/posix-functions/write.texi: Mention the problem on MSVC.
8247
8248 2011-09-24  Bruno Haible  <bruno@clisp.org>
8249
8250         read: Fix last commit.
8251         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
8252
8253 2011-09-24  Bruno Haible  <bruno@clisp.org>
8254
8255         dup2: Fix last commit.
8256         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
8257         (rpl_dup2): Disable fcntl workaround on native Windows.
8258
8259         sigprocmask: Make code safer.
8260         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
8261         section that changes macro definitions for this compilation unit.
8262
8263 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
8264
8265         dup2: clarify by coalescing Windows-specific material
8266         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
8267         "msvc-nothrow.h"' to the Windows-specific section, so that the
8268         Emacs source need not contain these include files.
8269         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
8270         Windows-specific fixes into this function rather than just the
8271         nothrow fix, as this shortens and clarifies the code.  Always
8272         define as a function, as that's a bit cleaner than having it be
8273         sometimes a function and sometimes a macro.
8274         (rpl_dup2): Move the Windows-specific stuff out of here and into
8275         ms_windows_dup2.  Don't protect the Haiku-related fix with
8276         "#if !defined __linux__", as the same code also works around
8277         a Linux kernel bug, and it doesn't add any system calls on any
8278         platform.  Add comment about FreeBSD 6.1.
8279
8280         sigprocmask: move #include directive
8281         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
8282         Windows-specific section, so that the Emacs source need not
8283         contain msvc-inval.h.
8284
8285 2011-09-23  Bruno Haible  <bruno@clisp.org>
8286
8287         read: Support for MSVC 9.
8288         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
8289         is not 1.
8290         * lib/read.c (read_nothrow): New function.
8291         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
8292         read_nothrow.
8293         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
8294         invalid parameter handler.
8295         (gl_PREREQ_READ): New macro.
8296         * modules/read (Depends-on): Add msvc-inval.
8297         (configure.ac): Invoke gl_PREREQ_READ.
8298         * doc/posix-functions/read.texi: Mention the problem on MSVC.
8299
8300 2011-09-23  Bruno Haible  <bruno@clisp.org>
8301
8302         close: Support for MSVC 9.
8303         * lib/close.c: Include <errno.h>, msvc-inval.h.
8304         (close_nothrow): New function.
8305         (rpl_close): Use it.
8306         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
8307         invalid parameter handler.
8308         * modules/close (Depends-on): Add msvc-inval.
8309         * modules/dup2-tests (Depends-on): Add close.
8310         * modules/dup3-tests (Depends-on): Likewise.
8311         * modules/fcntl-tests (Depends-on): Likewise.
8312         * modules/spawn-pipe-tests (Depends-on): Likewise.
8313         * modules/unistd-safer-tests (Depends-on): Likewise.
8314         * doc/posix-functions/close.texi: Mention the problem on MSVC.
8315
8316 2011-09-23  Bruno Haible  <bruno@clisp.org>
8317
8318         New module 'dup'.
8319         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
8320         Allow replacement.
8321         * lib/dup.c: New file.
8322         * lib/fchdir.c (rpl_dup): Remove function.
8323         * m4/dup.m4: New file.
8324         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
8325         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
8326         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
8327         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
8328         * modules/dup: New file.
8329         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
8330         'dup' module is in use.
8331         * modules/fdopendir (Depends-on): Add dup.
8332         * modules/fdutimensat-tests (Depends-on): Likewise.
8333         * modules/fts (Depends-on): Likewise.
8334         * modules/futimens-tests (Depends-on): Likewise.
8335         * modules/posix_spawnp-tests (Depends-on): Likewise.
8336         * modules/unistd-safer-tests (Depends-on): Likewise.
8337         * modules/utimens-tests (Depends-on): Likewise.
8338         * doc/posix-functions/dup.texi: Mention the new module and the problem
8339         on MSVC.
8340
8341 2011-09-23  Bruno Haible  <bruno@clisp.org>
8342
8343         getdtablesize: Support for MSVC 9.
8344         * lib/getdtablesize.c: Include msvc-inval.h.
8345         (_setmaxstdio_nothrow): New function.
8346         (_setmaxstdio): Redefine it.
8347         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
8348         * modules/getdtablesize (Depends-on): Add msvc-inval.
8349         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
8350
8351 2011-09-23  Bruno Haible  <bruno@clisp.org>
8352
8353         signal-h: Rename from signal.
8354         * modules/signal-h: Renamed from modules/signal.
8355         * modules/pthread_sigmask (Depends-on): Update.
8356         * modules/raise (Depends-on): Likewise.
8357         * modules/sigaction (Depends-on): Likewise.
8358         * modules/sigpipe (Depends-on): Likewise.
8359         * modules/sigprocmask (Depends-on): Likewise.
8360         * modules/sys_select (Depends-on): Likewise.
8361         * modules/signal-h-tests: Renamed from modules/signal-tests.
8362         (Files, Depends-on, Makefile.am): Update.
8363         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
8364         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
8365         (Files, Makefile.am): Update.
8366         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
8367         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
8368         * modules/signal: New placeholder file.
8369         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
8370         * doc/posix-headers/signal.texi: Update.
8371         * NEWS: Mention the change.
8372
8373 2011-09-23  Bruno Haible  <bruno@clisp.org>
8374
8375         sigprocmask: Avoid crashes through signal() on MSVC 9.
8376         * lib/sigprocmask.c: Include msvc-inval.h.
8377         (signal_nothrow): New function.
8378         (signal): Redefine it.
8379         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
8380         * modules/sigprocmask (Depends-on): Add msvc-inval.
8381         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
8382
8383 2011-09-23  Bruno Haible  <bruno@clisp.org>
8384
8385         Tests for module 'raise'.
8386         * modules/raise-tests: New file.
8387         * tests/test-raise.c: New file.
8388
8389         raise: Support for MSVC.
8390         * lib/signal.in.h (raise): New declaration.
8391         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
8392         for native Windows platforms.
8393         * m4/raise.m4: New file.
8394         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
8395         HAVE_RAISE, REPLACE_RAISE.
8396         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
8397         REPLACE_RAISE.
8398         * modules/raise (Status, Notice): Remove fields.
8399         (Files): Add m4/raise.m4.
8400         (Depends-on): Add signal, msvc-inval.
8401         (configure.ac): Use the common idioms.
8402         (Maintainer): Add me.
8403         * tests/test-signal-c++.cc: Check the signature of raise.
8404         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
8405
8406 2011-09-23  Bruno Haible  <bruno@clisp.org>
8407
8408         pipe2: Fix compilation on pre-C99 compilers.
8409         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
8410
8411 2011-09-23  Bruno Haible  <bruno@clisp.org>
8412
8413         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
8414         * lib/msvc-nothrow.h: New file.
8415         * lib/msvc-nothrow.c: New file.
8416         * m4/msvc-nothrow.m4: New file.
8417         * modules/msvc-nothrow: New file.
8418         * lib/dup2.c: Include msvc-nothrow.h.
8419         (rpl_dup2): No need to protect _get_osfhandle call here.
8420         * lib/accept4.c: Include msvc-nothrow.h.
8421         * lib/error.c: Likewise.
8422         * lib/fcntl.c: Likewise.
8423         * lib/lseek.c: Likewise.
8424         * lib/nonblocking.c: Likewise.
8425         * lib/poll.c: Likewise.
8426         * lib/read.c: Likewise.
8427         * lib/select.c: Likewise.
8428         * lib/sockets.h: Likewise.
8429         * lib/sockets.c: Likewise.
8430         * lib/stdio-read.c: Likewise.
8431         * lib/stdio-write.c: Likewise.
8432         * lib/write.c: Likewise.
8433         * lib/w32sock.h: Likewise.
8434         * lib/w32spawn.h: Likewise.
8435         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
8436         * lib/fsync.c: Likewise.
8437         * lib/isapipe.c: Likewise.
8438         * modules/dup2 (Depends-on): Add msvc-nothrow.
8439         * modules/accept4 (Depends-on): Likewise.
8440         * modules/error (Depends-on): Likewise.
8441         * modules/fcntl (Depends-on): Likewise.
8442         * modules/lseek (Depends-on): Likewise.
8443         * modules/nonblocking (Depends-on): Likewise.
8444         * modules/poll (Depends-on): Likewise.
8445         * modules/read (Depends-on): Likewise.
8446         * modules/select (Depends-on): Likewise.
8447         * modules/sockets (Depends-on): Likewise.
8448         * modules/sigpipe (Depends-on): Likewise.
8449         * modules/write (Depends-on): Likewise.
8450         * modules/accept (Depends-on): Likewise.
8451         * modules/bind (Depends-on): Likewise.
8452         * modules/connect (Depends-on): Likewise.
8453         * modules/gethostname (Depends-on): Likewise.
8454         * modules/getpeername (Depends-on): Likewise.
8455         * modules/getsockname (Depends-on): Likewise.
8456         * modules/getsockopt (Depends-on): Likewise.
8457         * modules/ioctl (Depends-on): Likewise.
8458         * modules/listen (Depends-on): Likewise.
8459         * modules/recv (Depends-on): Likewise.
8460         * modules/recvfrom (Depends-on): Likewise.
8461         * modules/send (Depends-on): Likewise.
8462         * modules/sendto (Depends-on): Likewise.
8463         * modules/setsockopt (Depends-on): Likewise.
8464         * modules/shutdown (Depends-on): Likewise.
8465         * modules/socket (Depends-on): Likewise.
8466         * modules/execute (Depends-on): Likewise.
8467         * modules/spawn-pipe (Depends-on): Likewise.
8468         * modules/flock (Depends-on): Likewise.
8469         * modules/fsync (Depends-on): Likewise.
8470         * modules/isapipe (Depends-on): Likewise.
8471         * tests/test-cloexec.c: Include msvc-nothrow.h.
8472         * tests/test-dup-safer.c: Likewise.
8473         * tests/test-dup2.c: Likewise.
8474         * tests/test-dup3.c: Likewise.
8475         * tests/test-fcntl.c: Likewise.
8476         * tests/test-pipe.c: Likewise.
8477         * tests/test-pipe2.c: Likewise.
8478         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
8479         * modules/unistd-safer-tests (Depends-on): Likewise.
8480         * modules/dup2-tests (Depends-on): Likewise.
8481         * modules/dup3-tests (Depends-on): Likewise.
8482         * modules/fcntl-tests (Depends-on): Likewise.
8483         * modules/pipe-posix-tests (Depends-on): Likewise.
8484         * modules/pipe2-tests (Depends-on): Likewise.
8485
8486 2011-09-23  Bruno Haible  <bruno@clisp.org>
8487
8488         dup2: Make code more maintainable.
8489         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
8490         (rpl_dup2): Use it.
8491         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
8492         * modules/dup2 (configure.ac): Invoke it.
8493         Reported by Paul Eggert.
8494
8495 2011-09-23  Bruno Haible  <bruno@clisp.org>
8496
8497         msvc-inval: Fix compilation error.
8498         * lib/msvc-inval.h: Include <excpt.h>.
8499
8500 2011-09-23  Bruno Haible  <bruno@clisp.org>
8501
8502         mkdir: Tweak for MSVC 9.
8503         * lib/sys_stat.in.h: Update comments.
8504         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
8505
8506         Tests for module 'chdir'.
8507         * modules/chdir-tests: New file.
8508         * tests/test-chdir.c: New file.
8509
8510         New module 'chdir'.
8511         * modules/chdir: New file.
8512         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
8513         (chdir): New declaration.
8514         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
8515         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
8516         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
8517         * tests/test-unistd-c++.cc: Check signature of chdir.
8518         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
8519         * modules/chdir-long (Depends-on): Add chdir.
8520         * modules/fchdir (Depends-on): Likewise.
8521         * modules/rename (Depends-on): Likewise.
8522         * modules/savewd (Depends-on): Likewise.
8523
8524         rmdir: Support for mingw, MSVC 9.
8525         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
8526         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
8527
8528         getcwd: Tweak for MSVC 9.
8529         * lib/unistd.in.h: Update comments.
8530         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
8531
8532 2011-09-22  Bruno Haible  <bruno@clisp.org>
8533
8534         strerror_r-posix: Avoid a link error on MSVC.
8535         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
8536         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
8537
8538 2011-09-22  Bruno Haible  <bruno@clisp.org>
8539
8540         select: Avoid link errors on MSVC.
8541         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
8542         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
8543         * modules/pselect (Link): Likewise.
8544         * NEWS: Mention the change.
8545         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
8546         test-select-stdin against $(LIB_SELECT).
8547         * modules/pselect-tests (Makefile.am): Link test-pselect against
8548         $(LIB_SELECT).
8549
8550 2011-09-22  Bruno Haible  <bruno@clisp.org>
8551
8552         select: Avoid compilation error on MSVC.
8553         * lib/select.c: Don't include <stdbool.h>.
8554
8555 2011-09-21  Bruno Haible  <bruno@clisp.org>
8556
8557         Consolidate all uses of PATH_MAX in *.m4 files.
8558         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
8559         macros.
8560         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
8561         and gl_PATHMAX_SNIPPET.
8562         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
8563         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
8564         * modules/chdir-long (Files): Add m4/pathmax.m4.
8565         * modules/getcwd (Files): Likewise.
8566
8567 2011-09-21  Bruno Haible  <bruno@clisp.org>
8568
8569         ftruncate: Un-deprecate, concentrate on Win32 support.
8570         * modules/ftruncate (Status, Notice): Remove sections.
8571         (Depends-on): Add largefile.
8572         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
8573         non-mingw platforms.
8574         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
8575         include <io.h>.
8576         * modules/perror-tests (Depends-on): Add ftruncate.
8577         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
8578         'ftruncate' module.
8579
8580 2011-09-21  Bruno Haible  <bruno@clisp.org>
8581
8582         Add dependencies to new dirent related modules.
8583         * modules/opendir (Depends-on): Add closedir.
8584         * modules/getcwd (Depends-on): Add opendir, closedir.
8585         * modules/dirent-safer-tests (Depends-on): Likewise.
8586         * modules/fdopendir-tests (Depends-on): Likewise.
8587         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
8588         * modules/renameat-tests (Depends-on): Likewise.
8589
8590 2011-09-21  Bruno Haible  <bruno@clisp.org>
8591
8592         opendir: Avoid compilation error on mingw.
8593         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
8594         * modules/opendir (Depends-on): Add unistd.
8595
8596 2011-09-21  Bruno Haible  <bruno@clisp.org>
8597
8598         ftruncate tests: Avoid a test failure on mingw.
8599         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
8600
8601 2011-09-21  Bruno Haible  <bruno@clisp.org>
8602
8603         select tests: Avoid test failures on OSF/1 5.1 and mingw.
8604         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
8605         native Windows.
8606
8607 2011-09-21  Bruno Haible  <bruno@clisp.org>
8608
8609         New module 'fdopen'.
8610         * lib/stdio.in.h (fdopen): New declaration.
8611         * lib/fdopen.c: New file.
8612         * m4/fdopen.m4: New file.
8613         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
8614         REPLACE_FDOPEN.
8615         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
8616         REPLACE_FDOPEN.
8617         * modules/fdopen: New file.
8618         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
8619         * tests/test-stdio-c++.cc: Check signature of fdopen.
8620         * doc/posix-functions/fdopen.texi: Mention the new module.
8621
8622 2011-09-21  Bruno Haible  <bruno@clisp.org>
8623
8624         unlockpt tests: Avoid test failure on NetBSD 5.1.
8625         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
8626         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
8627
8628 2011-09-21  Bruno Haible  <bruno@clisp.org>
8629
8630         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
8631         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
8632         * tests/test-getlogin_r.c (main): Likewise.
8633
8634 2011-09-20  Bruno Haible  <bruno@clisp.org>
8635
8636         time tests: Don't require pid_t.
8637         * doc/posix-headers/time.texi: Revert last change.
8638         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
8639         * tests/test-time.c: Comment out the check for pid_t.
8640
8641 2011-09-20  Bruno Haible  <bruno@clisp.org>
8642
8643         fsync tests: Avoid a test failure on mingw.
8644         * tests/test-fsync.c (main): Allow a failure with EIO.
8645
8646 2011-09-20  Bruno Haible  <bruno@clisp.org>
8647
8648         euidaccess: Update comments.
8649         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
8650
8651 2011-09-20  Bruno Haible  <bruno@clisp.org>
8652
8653         Ensure EBADF returns for socket functions on mingw.
8654         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
8655         descriptor is invalid.
8656         * lib/bind.c (rpl_bind): Likewise.
8657         * lib/connect.c (rpl_connect): Likewise.
8658         * lib/getpeername.c (rpl_getpeername): Likewise.
8659         * lib/getsockname.c (rpl_getsockname): Likewise.
8660         * lib/getsockopt.c (rpl_getsockopt): Likewise.
8661         * lib/listen.c (rpl_listen): Likewise.
8662         * lib/recv.c (rpl_recv): Likewise.
8663         * lib/recvfrom.c (rpl_recvfrom): Likewise.
8664         * lib/send.c (rpl_send): Likewise.
8665         * lib/sendto.c (rpl_sendto): Likewise.
8666         * lib/setsockopt.c (rpl_setsockopt): Likewise.
8667         * lib/shutdown.c (rpl_shutdown): Likewise.
8668
8669 2011-09-20  Bruno Haible  <bruno@clisp.org>
8670
8671         select tests: EBADF tests.
8672         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
8673         test_bad_fd): New functions.
8674         (test_function): Invoke also test_bad_fd.
8675
8676 2011-09-20  Bruno Haible  <bruno@clisp.org>
8677
8678         Tests for module 'posix_spawn_file_actions_addopen.
8679         * modules/posix_spawn_file_actions_addopen-tests: New file.
8680         * tests/test-posix_spawn_file_actions_addopen.c: New file.
8681
8682         Tests for module 'posix_spawn_file_actions_adddup2'.
8683         * modules/posix_spawn_file_actions_adddup2-tests: New file.
8684         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
8685
8686         Tests for module 'posix_spawn_file_actions_addclose'.
8687         * modules/posix_spawn_file_actions_addclose-tests: New file.
8688         * tests/test-posix_spawn_file_actions_addclose.c: New file.
8689
8690 2011-09-20  Bruno Haible  <bruno@clisp.org>
8691
8692         Tests for module 'unlockpt'.
8693         * modules/unlockpt-tests: New file.
8694         * tests/test-unlockpt.c: New file.
8695         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
8696
8697         Tests for module 'grantpt'.
8698         * modules/grantpt-tests: New file.
8699         * tests/test-grantpt.c: New file.
8700         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
8701
8702 2011-09-20  Bruno Haible  <bruno@clisp.org>
8703
8704         freopen tests: EBADF tests.
8705         * tests/test-freopen.c: Include errno.h, unistd.h.
8706         (main): Add tests for EBADF, commented out for the moment.
8707
8708         fclose tests: EBADF tests.
8709         * tests/test-fclose.c (main): Add tests for EBADF.
8710
8711         fflush tests: EBADF tests.
8712         * tests/test-fflush.c: Include errno.h, macros.h.
8713         (main): Add tests for EBADF.
8714
8715         ftello tests: EBADF tests.
8716         * tests/test-ftello4.sh: New file.
8717         * tests/test-ftello4.c: New file.
8718         * modules/ftello-tests (Files): Add them.
8719         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
8720
8721         fseeko tests: EBADF tests.
8722         * tests/test-fseeko4.sh: New file.
8723         * tests/test-fseeko4.c: New file.
8724         * modules/fseeko-tests (Files): Add them.
8725         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
8726
8727         Tests for function fputc().
8728         * modules/fputc-tests: New file.
8729         * tests/test-fputc.c: New file.
8730         * modules/stdio-tests (Depends-on): Add fputc-tests.
8731
8732         Tests for function fgetc().
8733         * modules/fgetc-tests: New file.
8734         * tests/test-fgetc.c: New file.
8735         * modules/stdio-tests (Depends-on): Add fgetc-tests.
8736
8737         Tests for function fdopen().
8738         * modules/fdopen-tests: New file.
8739         * tests/test-fdopen.c: New file.
8740         * modules/stdio-tests (Depends-on): Add fdopen-tests.
8741
8742         Tests for module 'vdprintf'.
8743         * modules/vdprintf-tests: New file.
8744         * tests/test-vdprintf.c: New file.
8745
8746         Tests for module 'dprintf'.
8747         * modules/dprintf-tests: New file.
8748         * tests/test-dprintf.c: New file.
8749
8750 2011-09-20  Bruno Haible  <bruno@clisp.org>
8751
8752         Tests for module 'ioctl'.
8753         * modules/ioctl-tests: New file.
8754         * tests/test-ioctl.c: New file.
8755
8756 2011-09-20  Bruno Haible  <bruno@clisp.org>
8757
8758         fcntl tests: EBADF tests.
8759         * tests/test-fcntl.c (main): Add more tests for EBADF.
8760
8761 2011-09-20  Bruno Haible  <bruno@clisp.org>
8762
8763         utimensat tests: EBADF tests.
8764         * tests/test-utimensat.c (main): Add tests for EBADF.
8765
8766         renameat tests: EBADF tests.
8767         * tests/test-renameat.c (main): Add tests for EBADF.
8768
8769         mkfifoat tests: EBADF tests.
8770         * tests/test-mkfifoat.c (main): Add tests for EBADF.
8771
8772         readlinkat tests: EBADF tests.
8773         * tests/test-readlinkat.c (main): Add tests for EBADF.
8774
8775         symlinkat tests: EBADF tests.
8776         * tests/test-symlinkat.c (main): Add tests for EBADF.
8777
8778         linkat tests: EBADF tests.
8779         * tests/test-linkat.c (main): Add tests for EBADF.
8780
8781         Tests for module 'faccessat'.
8782         * modules/faccessat-tests: New file.
8783         * tests/test-faccessat.c: New file.
8784
8785         fdopendir tests: EBADF tests.
8786         * tests/test-fdopendir.c (main): Add more tests for EBADF.
8787
8788         openat tests: EBADF tests.
8789         * tests/test-fchownat.c (main): Add tests for EBADF.
8790         * tests/test-fstatat.c (main): Likewise.
8791         * tests/test-mkdirat.c (main): Likewise.
8792         * tests/test-openat.c (main): Likewise.
8793         * tests/test-unlinkat.c (main): Likewise.
8794         * tests/test-fchmodat.c: New file.
8795         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
8796         (Makefile.am): Also run 'test-fchmodat'.
8797
8798 2011-09-20  Bruno Haible  <bruno@clisp.org>
8799
8800         utimens, futimens, fdutimensat tests: EBADF tests.
8801         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
8802
8803         Tests for function fstat().
8804         * modules/fstat-tests: New file.
8805         * tests/test-fstat.c: New file.
8806         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
8807
8808 2011-09-20  Bruno Haible  <bruno@clisp.org>
8809
8810         test-ttyname_r tests: EBADF tests.
8811         * tests/test-ttyname_r.c (main): Add tests for EBADF.
8812
8813         Tests for module 'isatty'.
8814         * modules/isatty-tests: New file.
8815         * tests/test-isatty.c: New file.
8816
8817         Tests for module 'write'.
8818         * modules/write-tests: New file.
8819         * tests/test-write.c: New file.
8820
8821         Tests for module 'read'.
8822         * modules/read-tests: New file.
8823         * tests/test-read.c: New file.
8824
8825         pwrite tests: EBADF tests.
8826         * tests/test-pwrite.c (main): Add tests for EBADF.
8827
8828         pread tests: EBADF tests.
8829         * tests/test-pread.c (main): Add tests for EBADF.
8830
8831         lseek tests: EBADF tests.
8832         * tests/test-lseek.c (main): Add more tests for EBADF.
8833
8834         Tests for module 'ftruncate'.
8835         * modules/ftruncate-tests: New file.
8836         * tests/test-ftruncate.sh: New file.
8837         * tests/test-ftruncate.c: New file.
8838
8839         fsync tests: EBADF tests.
8840         * tests/test-fsync.c (main): Add more tests for EBADF.
8841
8842         fdatasync tests: EBADF tests.
8843         * tests/test-fdatasync.c (main): Add more tests for EBADF.
8844
8845         Tests for module 'fchown'.
8846         * modules/fchown-tests: New file.
8847         * tests/test-fchown.c: New file.
8848
8849         Tests for module 'fchmod'.
8850         * modules/fchmod-tests: New file.
8851         * tests/test-fchmod.c: New file.
8852
8853         fchdir tests: EBADF tests.
8854         * tests/test-fchdir.c (main): Add more tests for EBADF.
8855
8856         dup2 tests: EBADF tests.
8857         * tests/test-dup2.c (main): Add more tests for EBADF.
8858
8859         Tests for module 'dup'.
8860         * modules/dup-tests: New file.
8861         * tests/test-dup.c: New file.
8862
8863         Tests for module 'close'.
8864         * modules/close-tests: New file.
8865         * tests/test-close.c: New file.
8866
8867 2011-09-20  Bruno Haible  <bruno@clisp.org>
8868
8869         Tests for module 'shutdown'.
8870         * modules/shutdown-tests: New file.
8871         * tests/test-shutdown.c: New file.
8872
8873         Tests for module 'setsockopt'.
8874         * modules/setsockopt-tests: New file.
8875         * tests/test-setsockopt.c: New file.
8876
8877         Tests for module 'sendto'.
8878         * modules/sendto-tests: New file.
8879         * tests/test-sendto.c: New file.
8880
8881         Tests for module 'send'.
8882         * modules/send-tests: New file.
8883         * tests/test-send.c: New file.
8884
8885         Tests for module 'recvfrom'.
8886         * modules/recvfrom-tests: New file.
8887         * tests/test-recvfrom.c: New file.
8888
8889         Tests for module 'recv'.
8890         * modules/recv-tests: New file.
8891         * tests/test-recv.c: New file.
8892
8893         Tests for module 'listen'.
8894         * modules/listen-tests: New file.
8895         * tests/test-listen.c: New file.
8896
8897         Tests for module 'getsockopt'.
8898         * modules/getsockopt-tests: New file.
8899         * tests/test-getsockopt.c: New file.
8900
8901         Tests for module 'getsockname'.
8902         * modules/getsockname-tests: New file.
8903         * tests/test-getsockname.c: New file.
8904
8905         Tests for module 'getpeername'.
8906         * modules/getpeername-tests: New file.
8907         * tests/test-getpeername.c: New file.
8908
8909         Tests for module 'connect'.
8910         * modules/connect-tests: New file.
8911         * tests/test-connect.c: New file.
8912
8913         Tests for module 'bind'.
8914         * modules/bind-tests: New file.
8915         * tests/test-bind.c: New file.
8916
8917         accept4 tests: Fix for native Windows.
8918         * tests/test-accept4.c: Include sockets.h.
8919         (main): Invoke gl_sockets_startup.
8920         * modules/accept4-tests (Depends-on): Add sockets.
8921
8922         accept tests: Fix for native Windows.
8923         * tests/test-accept.c: Include sockets.h.
8924         (main): Invoke gl_sockets_startup.
8925         * modules/accept-tests (Depends-on): Add sockets.
8926
8927 2011-09-19  Bruno Haible  <bruno@clisp.org>
8928
8929         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
8930         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
8931         do...while(0).
8932         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
8933         Suggested by Paul Eggert.
8934
8935 2011-09-19  Bruno Haible  <bruno@clisp.org>
8936
8937         sched: Ensure pid_t is defined.
8938         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
8939         not define pid_t.
8940         * lib/sched.in.h: Include <sys/types.h>.
8941         * doc/posix-headers/sched.texi: Mention the pid_t problem.
8942         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8943
8944 2011-09-19  Bruno Haible  <bruno@clisp.org>
8945
8946         msvc-inval: Ensure the entire expansion is a single statement.
8947         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
8948         of braces.
8949
8950 2011-09-19  Jim Meyering  <meyering@redhat.com>
8951
8952         tests: use printf, not echo in init.sh's warn_ function
8953         * tests/init.sh (warn_): Use printf, not echo.  The latter would
8954         misbehave when given strings containing a backslash or starting
8955         with e.g., -n.  James Youngman suggested setting IFS.
8956
8957 2011-09-19  Eric Blake  <eblake@redhat.com>
8958
8959         futimens: enhance test
8960         * tests/test-futimens.h (test_futimens): Also check for EBADF on
8961         closed non-negative fd.
8962
8963         date: accept 'hence' as opposite of 'ago'
8964         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
8965         * tests/test-parse-datetime.c (main): Enhance test.
8966         Suggested by Jesse Wilson.
8967
8968 2011-09-19  Jim Meyering  <meyering@redhat.com>
8969
8970         getcwd: don't fail in a deep directory on a system without openat
8971         Before this change, getcwd would fail when called from a directory
8972         of depth PATH_MAX / 3 or greater.  That was due to the fact that
8973         the non-openat implementation used "..", "../..", "../../..", etc.
8974         to access ancestor directories.  With too many, that string would
8975         be longer than PATH_MAX.
8976         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
8977         using gnulib's openat replacement.
8978         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
8979         we're using the replacement function.
8980
8981 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
8982
8983         maint.mk: avoid warnings from perl about missing files
8984         * top/maint.mk (def_sym_regex): Ignore files listed in
8985         $(gl_other_headers_) that do not exist, say because a project
8986         does not use a corresponding module.
8987
8988 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
8989
8990         stat: use pathmax.h only if needed
8991         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
8992         This is better for Emacs, which does not have a mingw port and
8993         therefore can avoid the pathmax module.
8994
8995         utimens: remove dependency on dup2
8996         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
8997         to work around the Linux kernel bug.
8998         * modules/utimens (Depends-on): Remove dup2.
8999
9000 2011-09-18  Bruno Haible  <bruno@clisp.org>
9001
9002         inet_ntop, inet_pton: Look for it also in libresolv.
9003         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
9004         libnsl, search for it in libresolv.
9005         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
9006         Needed on Solaris 7.
9007
9008 2011-09-18  Bruno Haible  <bruno@clisp.org>
9009
9010         accept, accept4 tests: Avoid link error on Solaris.
9011         * modules/accept-tests (Makefile.am): Link test-accept against
9012         $(LIBSOCKET).
9013         * modules/accept4-tests (Makefile.am): Link test-accept4 against
9014         $(LIBSOCKET).
9015
9016         accept4: Avoid link error on Solaris.
9017         * modules/accept4 (Link): New section.
9018
9019         socket functions: Avoid link errors on Solaris.
9020         * modules/accept (Depends-on): Add socketlib.
9021         (Link): New section.
9022         * modules/bind (Depends-on): Add socketlib.
9023         (Link): New section.
9024         * modules/connect (Depends-on): Add socketlib.
9025         (Link): New section.
9026         * modules/getpeername (Depends-on): Add socketlib.
9027         (Link): New section.
9028         * modules/getsockname (Depends-on): Add socketlib.
9029         (Link): New section.
9030         * modules/getsockopt (Depends-on): Add socketlib.
9031         (Link): New section.
9032         * modules/listen (Depends-on): Add socketlib.
9033         (Link): New section.
9034         * modules/recv (Depends-on): Add socketlib.
9035         (Link): New section.
9036         * modules/recvfrom (Depends-on): Add socketlib.
9037         (Link): New section.
9038         * modules/send (Depends-on): Add socketlib.
9039         (Link): New section.
9040         * modules/sendto (Depends-on): Add socketlib.
9041         (Link): New section.
9042         * modules/setsockopt (Depends-on): Add socketlib.
9043         (Link): New section.
9044         * modules/shutdown (Depends-on): Add socketlib.
9045         (Link): New section.
9046         * modules/socket (Depends-on): Add socketlib.
9047         (Link): New section.
9048
9049 2011-09-18  Bruno Haible  <bruno@clisp.org>
9050
9051         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
9052         * tests/test-ptsname.c (main): Terminate the test if it takes longer
9053         than 5 seconds.
9054         * modules/ptsname-tests (configure.ac): Test for alarm.
9055
9056 2011-09-18  Bruno Haible  <bruno@clisp.org>
9057
9058         posix_spawn_file_actions_add*: Fix module dependencies.
9059         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
9060         posix_spawn_file_actions_init.
9061         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
9062         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
9063
9064 2011-09-18  Bruno Haible  <bruno@clisp.org>
9065
9066         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
9067         * tests/test-rename.h (test_rename): Allow error code EEXIST.
9068         * tests/test-renameat.c (main): Likewise.
9069
9070 2011-09-18  Bruno Haible  <bruno@clisp.org>
9071
9072         Tests for module 'accept4'.
9073         * modules/accept4-tests: New file.
9074         * tests/test-accept4.c: New file.
9075
9076 2011-09-18  Bruno Haible  <bruno@clisp.org>
9077
9078         Tests for module 'accept'.
9079         * modules/accept-tests: New file.
9080         * tests/test-accept.c: New file.
9081
9082 2011-09-18  Bruno Haible  <bruno@clisp.org>
9083
9084         dup2: Support for MSVC.
9085         * lib/dup2.c: Include msvc-inval.h.
9086         (rpl_dup2): Handle invalid parameter notifications during dup2 and
9087         _get_osfhandle calls.
9088         * modules/dup2 (Depends-on): Add msvc-inval.
9089         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
9090
9091         New module 'msvc-inval'.
9092         * lib/msvc-inval.h: New file.
9093         * lib/msvc-inval.c: New file.
9094         * m4/msvc-inval.m4: New file.
9095         * modules/msvc-inval: New file.
9096
9097 2011-09-17  Bruno Haible  <bruno@clisp.org>
9098
9099         Tests for module 'pclose'.
9100         * modules/pclose-tests: New file.
9101
9102         New module 'pclose'.
9103         * lib/stdio.in.h (pclose): New declaration.
9104         * lib/pclose.c: New file.
9105         * m4/pclose.m4: New file.
9106         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
9107         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
9108         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
9109         * modules/pclose: New file.
9110         * modules/popen-tests (Depends-on): Add pclose.
9111         * modules/popen-safer-tests (Depends-on): Likewise.
9112         * doc/posix-functions/pclose.texi: Mention the new module.
9113
9114 2011-09-17  Bruno Haible  <bruno@clisp.org>
9115
9116         popen: Support for MSVC.
9117         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
9118         * lib/popen.c (popen): Provide alternate definition for native Windows.
9119         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
9120         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
9121         * modules/popen (Depends-on, configure.ac): Update condition.
9122         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
9123         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
9124         fixed.
9125
9126 2011-09-17  Bruno Haible  <bruno@clisp.org>
9127
9128         isnanl, isnand, isnanf: Work around MSVC bug.
9129         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
9130
9131 2011-09-17  Bruno Haible  <bruno@clisp.org>
9132
9133         sys_socket tests: Fix recent mistake.
9134         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
9135
9136 2011-09-17  Bruno Haible  <bruno@clisp.org>
9137
9138         putenv: Support for MSVC.
9139         * modules/putenv (Depends-on): Add environ.
9140         * lib/putenv.c (environ): Disable declaration.
9141         * lib/unistd.in.h: Update comment.
9142
9143 2011-09-17  Bruno Haible  <bruno@clisp.org>
9144
9145         math: Avoid macro redefinition warnings on MSVC.
9146         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
9147         Undefine before redefining.
9148
9149 2011-09-17  Bruno Haible  <bruno@clisp.org>
9150
9151         doc: Mention functions which are declared as macros.
9152         * doc/posix-functions/*[fl].texi: Mention that some functions are
9153         defined as macros with arguments only.
9154
9155 2011-09-17  Bruno Haible  <bruno@clisp.org>
9156
9157         Add dependencies to new dirent related modules.
9158         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
9159         * modules/fts (Depends-on): Likewise.
9160         * modules/glob (Depends-on): Likewise.
9161         * modules/savedir (Depends-on): Likewise.
9162         * modules/scandir (Depends-on): Likewise.
9163         * modules/dirent-safer (Depends-on): Add opendir, closedir.
9164         * modules/fdopendir (Depends-on): Add opendir.
9165
9166 2011-09-17  Bruno Haible  <bruno@clisp.org>
9167
9168         inet_pton: Support for MSVC on Windows Vista or newer.
9169         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
9170         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
9171         HAVE_DECL_INET_PTON is defined.
9172         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
9173         On platforms with <winsock2.h>, test whether inet_pton is declared in
9174         <ws2tcpip.h>. If so, arrange to replace it.
9175         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
9176         REPLACE_INET_PTON.
9177         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
9178         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
9179         (Depends-on, configure.ac): Update condition.
9180         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
9181
9182 2011-09-17  Bruno Haible  <bruno@clisp.org>
9183
9184         inet_ntop: Support for MSVC on Windows Vista or newer.
9185         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
9186         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
9187         HAVE_DECL_INET_NTOP is defined.
9188         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
9189         On platforms with <winsock2.h>, test whether inet_ntop is declared in
9190         <ws2tcpip.h>. If so, arrange to replace it.
9191         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
9192         REPLACE_INET_NTOP.
9193         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
9194         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
9195         (Depends-on, configure.ac): Update condition.
9196         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
9197
9198 2011-09-16  Eric Blake  <eblake@redhat.com>
9199
9200         test-fsync: yet another enhancement
9201         * tests/test-fsync.c (main): Also test behavior on read-only text
9202         file.
9203
9204 2011-09-16  Bruno Haible  <bruno@clisp.org>
9205
9206         Enhance fsync, fdatasync tests.
9207         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
9208         * tests/test-fdatasync.c (main): Likewise.
9209
9210 2011-09-16  Bruno Haible  <bruno@clisp.org>
9211
9212         Support for MSVC compiler: Ensure mode_t gets defined.
9213         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
9214         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9215         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
9216         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
9217         * tests/test-fcntl-h.c: Check that mode_t is defined.
9218         * tests/test-sys_stat.c: Likewise.
9219         * tests/test-sys_types.c: Likewise.
9220         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
9221         * doc/posix-headers/sys_stat.texi: Likewise.
9222         * doc/posix-headers/sys_types.texi: Likewise.
9223
9224 2011-09-16  Bruno Haible  <bruno@clisp.org>
9225
9226         sys_stat: Support for MSVC.
9227         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
9228         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
9229         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
9230         MSVC.
9231
9232 2011-09-16  Bruno Haible  <bruno@clisp.org>
9233
9234         Support for MSVC compiler: Ensure off_t gets defined.
9235         * lib/unistd.in.h: Include <sys/types.h>.
9236         * tests/test-fcntl-h.c: Check that off_t is defined.
9237         * tests/test-sys_stat.c: Likewise.
9238         * tests/test-sys_types.c: Likewise.
9239
9240 2011-09-16  Eric Blake  <eblake@redhat.com>
9241
9242         fdatasync: port to Solaris
9243         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
9244         * modules/fdatasync (Link): Document it.
9245         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
9246
9247         fdatasync: port to MacOS X 10.7
9248         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
9249         declared.
9250         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
9251         * modules/unistd (Makefile.am): Substitute it.
9252         * lib/unistd.in.h (fdatasync): Declare on MacOS.
9253         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
9254
9255         fdatasync: minor improvements
9256         * modules/fdatasync (Depends-on): Add condition for fsync.
9257         * lib/fdatasync.c (fdatasync): Add comment.
9258         * tests/test-unistd-c++.cc: Test fdatasync.
9259
9260         unistd: update refs to newer POSIX
9261         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
9262         Suggested by Bruno Haible.
9263
9264         fdatasync: new module
9265         * modules/fsync (Description): Document difference to fdatasync.
9266         * modules/fdatasync: New module.
9267         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
9268         * lib/fdatasync.c (fdatasync): Likewise.
9269         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
9270         defaults.
9271         * modules/unistd (Makefile.am): Set witnesses.
9272         * lib/unistd.in.h (fdatasync): Declare.
9273         * MODULES.html.sh: Document it.
9274         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
9275         * modules/fdatasync-tests: New test.
9276         * tests/test-fdatasync.c: Likewise.
9277
9278 2011-09-16  Eric Blake  <eblake@redhat.com>
9279
9280         test-fsync: enhance tests
9281         * modules/fsync-tests (Depends-on): Add errno, for mingw.
9282         * tests/test-fsync.c (main): Enhance test.
9283
9284 2011-09-15  Bruno Haible  <bruno@clisp.org>
9285
9286         Support for MSVC compiler: Ensure ssize_t gets defined.
9287         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
9288         * doc/posix-headers/stdio.texi: Likewise.
9289         * modules/stdio (Depends-on): Add ssize_t.
9290         * modules/sys_socket (Depends-on): Likewise.
9291         * modules/sys_types (Depends-on): Likewise.
9292         * modules/sys_uio (Depends-on): Likewise.
9293         * modules/unistd (Depends-on): Likewise.
9294         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
9295         * tests/test-sys_types.c: Check that ssize_t is defined.
9296
9297 2011-09-14  Bruno Haible  <bruno@clisp.org>
9298
9299         Avoid using #, the m4 comment starter character, near brackets.
9300         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
9301         delimiter character in sed expressions.
9302         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
9303         Suggested by Eric Blake.
9304
9305         Properly quote AC_CHECK_DECLS' 4th argument.
9306         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
9307         argument.
9308         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
9309         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
9310         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
9311         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
9312         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
9313         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
9314         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
9315         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
9316         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
9317         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
9318         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
9319         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
9320         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
9321         * m4/isinf.m4 (gl_ISINF): Likewise.
9322         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
9323         * m4/readutmp.m4 (gl_READUTMP): Likewise.
9324         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
9325         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
9326         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
9327         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
9328         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
9329         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
9330         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
9331         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
9332         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
9333         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9334         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
9335         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
9336         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
9337         Reported by Eric Blake.
9338
9339         Properly quote AC_CHECK_DECL's 4th argument.
9340         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
9341         argument.
9342         * m4/argp.m4 (gl_ARGP): Likewise.
9343         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
9344         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
9345         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
9346         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
9347         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
9348         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
9349         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
9350         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
9351         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
9352         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
9353         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
9354         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
9355         Reported by Eric Blake.
9356
9357 2011-09-14  Eric Blake  <eblake@redhat.com>
9358
9359         opendir: avoid compile warning
9360         * lib/opendir.c (includes): Always include errno.h.
9361         Reported by Tatsuro MATSUOKA.
9362
9363 2011-09-14  Jim Meyering  <meyering@redhat.com>
9364
9365         maint.mk: sc_tight_scope: propagate failure from sub-make
9366         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
9367         Reported by Martin von Gagern.
9368
9369 2011-09-13  Bruno Haible  <bruno@clisp.org>
9370
9371         tempname: Support for MSVC.
9372         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
9373         MSVC.
9374         * modules/tempname (Depends-on): Add fcntl-h.
9375
9376 2011-09-13  Bruno Haible  <bruno@clisp.org>
9377
9378         sys_time: Support for MSVC.
9379         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
9380         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
9381         include <winsock2.h>.
9382         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
9383         function declarations that collide with POSIX.
9384         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
9385         (Makefile.am): Substitute HAVE_WINSOCK2_H.
9386
9387 2011-09-13  Bruno Haible  <bruno@clisp.org>
9388
9389         stat: Support for MSVC.
9390         * lib/stat.c: Include pathmax.h.
9391         * modules/stat (Depends-on): Add pathmax.
9392
9393         pathmax: Support for native Windows.
9394         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
9395
9396 2011-09-12  Bruno Haible  <bruno@clisp.org>
9397
9398         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
9399         * lib/dirent.in.h (struct dirent): New type.
9400         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
9401         DT_WHT): New macros.
9402         (DIR): New type.
9403         (opendir, closedir): Declare only if the module 'opendir' is enabled.
9404         (readdir, rewinddir): New declarations.
9405         * lib/dirent-private.h: New file.
9406         * lib/opendir.c: New file.
9407         * lib/readdir.c: New file.
9408         * lib/rewinddir.c: New file.
9409         * lib/closedir.c: New file.
9410         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
9411         * m4/opendir.m4: New file.
9412         * m4/readdir.m4: New file.
9413         * m4/rewinddir.m4: New file.
9414         * m4/closedir.m4: New file.
9415         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
9416         REPLACE_CLOSEDIR here.
9417         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
9418         readdir, rewinddir are declared.
9419         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
9420         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
9421         HAVE_REWINDDIR, HAVE_CLOSEDIR.
9422         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
9423         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
9424         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
9425         * modules/opendir: New file.
9426         * modules/readdir: New file.
9427         * modules/rewinddir: New file.
9428         * modules/closedir: New file.
9429         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
9430         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
9431         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
9432         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
9433         * NEWS: Mention the 'fchdir' change.
9434
9435 2011-09-11  Bruno Haible  <bruno@clisp.org>
9436
9437         asm-underscore.m4: Support for MSVC.
9438         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
9439         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
9440
9441 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
9442
9443         Doc about crypt functions.
9444         * doc/posix-functions/crypt.texi: Expand range of glibc versions
9445         needing for _GNU_SOURCE to get crypt.
9446         * doc/posix-functions/encrypt.texi: Likewise.
9447         * doc/posix-functions/setkey.texi: Likewise.
9448
9449 2011-09-11  Bruno Haible  <bruno@clisp.org>
9450
9451         doc: Update regarding MSVC 9.
9452         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
9453         tested".
9454         * doc/posix-functions/*.texi: Update with info about MSVC 9.
9455         * doc/posix-headers/*.texi: Likewise.
9456         * doc/pastposix-functions/*.texi: Likewise.
9457         * doc/glibc-functions/*.texi: Likewise.
9458         * doc/glibc-headers/*.texi: Likewise.
9459
9460 2011-09-11  Bruno Haible  <bruno@clisp.org>
9461
9462         unistd et al.: Don't assume <unistd.h> exists.
9463         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
9464         does not exist.
9465         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
9466         exist. But include <stdlib.h>.
9467         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
9468         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
9469         symlink() does not exist.
9470         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
9471         include <io.h> instead.
9472         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
9473         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
9474         include <direct.h> instead.
9475         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
9476         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
9477         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
9478         <io.h> instead.
9479         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
9480         correctly if the system does not have hard links.
9481         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
9482         <direct.h> instead.
9483         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
9484         it when looking for function declarations.
9485         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
9486         <direct.h> and <io.h> instead.
9487         * doc/posix-headers/unistd.texi: More details about MSVC problem.
9488
9489 2011-09-11  Bruno Haible  <bruno@clisp.org>
9490
9491         strcase: Support for MSVC.
9492         * modules/strcase (Status, Notice): Remove obsoletion mark.
9493         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
9494         * doc/posix-functions/strncasecmp.texi: Likewise.
9495
9496         strings: Don't assume <strings.h> exists.
9497         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
9498         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
9499         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
9500         * doc/posix-headers/strings.texi: Mention the MSVC problem.
9501
9502 2011-09-11  Bruno Haible  <bruno@clisp.org>
9503
9504         dirent: Don't assume <dirent.h> exists.
9505         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
9506         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
9507         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
9508         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
9509
9510 2011-09-11  Bruno Haible  <bruno@clisp.org>
9511
9512         Fix wint_t on MSVC.
9513         * lib/wchar.in.h (wint_t): On MSVC, override it.
9514         * lib/wctype.in.h (wint_t): Likewise.
9515         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
9516         MSVC.
9517         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
9518         * doc/posix-headers/wctype.texi: Likewise.
9519
9520 2011-09-11  Bruno Haible  <bruno@clisp.org>
9521
9522         sys_types: Fix typo.
9523         * lib/sys_types.in.h: Fix typo in comment.
9524         Reported by Paul Eggert.
9525
9526         Support for MSVC compiler: Ensure size_t gets defined.
9527         * modules/strings (Depends-on): Add 'sys_types'.
9528         * modules/sys_uio (Depends-on): Likewise.
9529         * lib/sys_uio.in.h: Update comment.
9530
9531         C++ tests for module 'sys_types'.
9532         * modules/sys_types-c++-tests: New file.
9533         * tests/test-sys_types-c++.cc: New file.
9534
9535         Tests for module 'sys_types'.
9536         * modules/sys_types-tests: New file.
9537         * tests/test-sys_types.c: New file.
9538
9539         New module 'sys_types'.
9540         * lib/sys_types.in.h: New file.
9541         * m4/sys_types_h.m4: New file.
9542         * modules/sys_types: New file.
9543         * doc/posix-headers/sys_types.texi: Mention the new module and the
9544         size_t problem on MSVC 9.
9545
9546 2011-09-11  Bruno Haible  <bruno@clisp.org>
9547
9548         Support for MSVC compiler: Avoid division by a literal 0.
9549         * lib/math.in.h (NAN): Define through a function call also on MSVC.
9550         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
9551         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
9552         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
9553         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
9554         * tests/infinity.h: New file.
9555         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
9556         on MSVC.
9557         * tests/test-ceilf1.c: Include infinity.h.
9558         (main): Use Infinityf.
9559         * tests/test-ceil1.c: Include infinity.h.
9560         (main): Use Infinityd.
9561         * tests/test-ceill.c: Include infinity.h.
9562         (main): Use Infinityl.
9563         * tests/test-dprintf-posix.c: Include infinity.h.
9564         (test_function): Use Infinityd.
9565         * tests/test-floorf1.c: Include infinity.h.
9566         (main): Use Infinityf.
9567         * tests/test-floor1.c: Include infinity.h.
9568         (main): Use Infinityd.
9569         * tests/test-floorl.c: Include infinity.h.
9570         (main): Use Infinityl.
9571         * tests/test-fprintf-posix.c: Include infinity.h.
9572         (test_function): Use Infinityd.
9573         * tests/test-frexp.c: Include infinity.h.
9574         (main): Use Infinityd.
9575         * tests/test-frexpl.c: Include infinity.h.
9576         (main): Use Infinityl.
9577         * tests/test-isfinite.c: Include infinity.h.
9578         (test_isfinitef): Use Infinityf.
9579         (test_isfinited): Use Infinityd.
9580         (test_isfinitel): Use Infinityl.
9581         * tests/test-isinf.c: Include infinity.h.
9582         (test_isinff): Use Infinityf.
9583         (test_isinfd): Use Infinityd.
9584         (test_isinfl): Use Infinityl.
9585         * tests/test-isnan.c: Include infinity.h.
9586         (test_float): Use Infinityf.
9587         (test_double): Use Infinityd.
9588         (test_long_double): Use Infinityl.
9589         * tests/test-isnanf.h: Include infinity.h.
9590         (main): Use Infinityf.
9591         * tests/test-isnand.h: Include infinity.h.
9592         (main): Use Infinityd.
9593         * tests/test-isnanl.h: Include infinity.h.
9594         (main): Use Infinityl.
9595         * tests/test-ldexpl.c: Include infinity.h.
9596         (main): Use Infinityl.
9597         * tests/test-printf-posix.h: Include infinity.h.
9598         (test_function): Use Infinityd.
9599         * tests/test-roundf1.c: Include infinity.h.
9600         (main): Use Infinityf.
9601         * tests/test-round1.c: Include infinity.h.
9602         (main): Use Infinityd.
9603         * tests/test-roundl.c: Include infinity.h.
9604         (main): Use Infinityl.
9605         * tests/test-signbit.c: Include infinity.h.
9606         (test_signbitf): Use Infinityf.
9607         (test_signbitd): Use Infinityd.
9608         (test_signbitl): Use Infinityl.
9609         * tests/test-snprintf-posix.h: Include infinity.h.
9610         (test_function): Use Infinityd, Infinityl.
9611         * tests/test-sprintf-posix.h: Include infinity.h.
9612         (test_function): Use Infinityd, Infinityl.
9613         * tests/test-truncf1.c: Include infinity.h.
9614         (main): Use Infinityf.
9615         * tests/test-trunc1.c: Include infinity.h.
9616         (main): Use Infinityd.
9617         * tests/test-truncl.c: Include infinity.h.
9618         (main): Use Infinityl.
9619         * tests/test-vasnprintf-posix.c: Include infinity.h.
9620         (test_function): Use Infinityd, Infinityl.
9621         * tests/test-vasprintf-posix.c: Include infinity.h.
9622         (test_function): Use Infinityd, Infinityl.
9623         * modules/ceilf-tests (Files): Add tests/infinity.h.
9624         * modules/ceil-tests (Files): Likewise.
9625         * modules/ceill-tests (Files): Likewise.
9626         * modules/dprintf-posix-tests (Files): Likewise.
9627         * modules/floorf-tests (Files): Likewise.
9628         * modules/floor-tests (Files): Likewise.
9629         * modules/floorl-tests (Files): Likewise.
9630         * modules/fprintf-posix-tests (Files): Likewise.
9631         * modules/frexp-tests (Files): Likewise.
9632         * modules/frexp-nolibm-tests (Files): Likewise.
9633         * modules/frexpl-tests (Files): Likewise.
9634         * modules/frexpl-nolibm-tests (Files): Likewise.
9635         * modules/isfinite-tests (Files): Likewise.
9636         * modules/isinf-tests (Files): Likewise.
9637         * modules/isnan-tests (Files): Likewise.
9638         * modules/isnanf-tests (Files): Likewise.
9639         * modules/isnanf-nolibm-tests (Files): Likewise.
9640         * modules/isnand-tests (Files): Likewise.
9641         * modules/isnand-nolibm-tests (Files): Likewise.
9642         * modules/isnanl-tests (Files): Likewise.
9643         * modules/isnanl-nolibm-tests (Files): Likewise.
9644         * modules/ldexpl-tests (Files): Likewise.
9645         * modules/printf-posix-tests (Files): Likewise.
9646         * modules/roundf-tests (Files): Likewise.
9647         * modules/round-tests (Files): Likewise.
9648         * modules/roundl-tests (Files): Likewise.
9649         * modules/signbit-tests (Files): Likewise.
9650         * modules/snprintf-posix-tests (Files): Likewise.
9651         * modules/sprintf-posix-tests (Files): Likewise.
9652         * modules/truncf-tests (Files): Likewise.
9653         * modules/trunc-tests (Files): Likewise.
9654         * modules/truncl-tests (Files): Likewise.
9655         * modules/vasnprintf-posix-tests (Files): Likewise.
9656         * modules/vasprintf-posix-tests (Files): Likewise.
9657         * modules/vdprintf-posix-tests (Files): Likewise.
9658         * modules/vfprintf-posix-tests (Files): Likewise.
9659         * modules/vprintf-posix-tests (Files): Likewise.
9660         * modules/vsnprintf-posix-tests (Files): Likewise.
9661         * modules/vsprintf-posix-tests (Files): Likewise.
9662         * modules/xprintf-posix-tests (Files): Likewise.
9663
9664 2011-09-11  Bruno Haible  <bruno@clisp.org>
9665
9666         Ensure pid_t gets defined.
9667         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
9668         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
9669         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
9670         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9671         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
9672         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
9673         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
9674         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9675         * tests/test-fcntl-h.c: Check that pid_t is defined.
9676         * tests/test-sched.c: Likewise.
9677         * tests/test-termios.c: Likewise.
9678         * tests/test-time.c: Likewise.
9679         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
9680         * doc/posix-headers/signal.texi: Likewise.
9681         * doc/posix-headers/sys_types.texi: Likewise.
9682         * doc/posix-headers/time.texi: Likewise.
9683
9684 2011-09-11  Bruno Haible  <bruno@clisp.org>
9685
9686         acl: Fix compilation on Solaris 10 (older version).
9687         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
9688         of ACE_EVERYONE.
9689         * lib/set-mode-acl.c (qset_acl): Likewise.
9690         Reported by Christian Jullien <eligis@orange.fr>.
9691
9692 2011-09-10  Bruno Haible  <bruno@clisp.org>
9693
9694         iconv, unsetenv: Add support for MSVC compiler.
9695         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
9696         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
9697
9698 2011-09-10  Bruno Haible  <bruno@clisp.org>
9699
9700         *printf: Add support for MSVC compiler.
9701         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
9702         handles the exception caused by the %n directive. When cross-compiling,
9703         guess no on native Windows.
9704         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
9705         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
9706         emulate it through vsnprintf.
9707         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
9708         * doc/posix-functions/dprintf.texi: Update documentation regarding
9709         MSVC 9.
9710         * doc/posix-functions/fprintf.texi: Likewise.
9711         * doc/posix-functions/printf.texi: Likewise.
9712         * doc/posix-functions/snprintf.texi: Likewise.
9713         * doc/posix-functions/sprintf.texi: Likewise.
9714         * doc/posix-functions/swprintf.texi: Likewise.
9715         * doc/posix-functions/vdprintf.texi: Likewise.
9716         * doc/posix-functions/vfprintf.texi: Likewise.
9717         * doc/posix-functions/vprintf.texi: Likewise.
9718         * doc/posix-functions/vsnprintf.texi: Likewise.
9719         * doc/posix-functions/vsprintf.texi: Likewise.
9720         * doc/glibc-functions/asprintf.texi: Likewise.
9721         * doc/glibc-functions/obstack_printf.texi: Likewise.
9722         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
9723         * doc/glibc-functions/vasprintf.texi: Likewise.
9724
9725 2011-09-10  Bruno Haible  <bruno@clisp.org>
9726
9727         nocrash: Add support for native Windows.
9728         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
9729
9730 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
9731             Bruno Haible  <bruno@clisp.org>
9732
9733         absolute-header, include-next: Add support for MSVC compiler.
9734         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
9735         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
9736         directory separator in #line directives.
9737         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
9738         recognize also backslash as directory separator in #line directives.
9739
9740 2011-09-08  Jim Meyering  <meyering@redhat.com>
9741
9742         maint.mk: mark the post-release commit log with "maint: " prefix
9743         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
9744         one-line commit-log summary.
9745
9746 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
9747             Bruno Haible  <bruno@clisp.org>
9748
9749         Doc about crypt functions.
9750         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
9751         systems.
9752         * doc/posix-functions/encrypt.texi: Likewise.
9753         * doc/posix-functions/setkey.texi: Likewise.
9754
9755 2011-09-08  Simon Josefsson  <simon@josefsson.org>
9756
9757         * lib/gc.h: Fix copyright header.
9758
9759 2011-09-07  Bruno Haible  <bruno@clisp.org>
9760
9761         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
9762         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
9763         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
9764
9765 2011-09-07  Bruno Haible  <bruno@clisp.org>
9766
9767         openat: Work around compilation error with OSF/1 5.1 DTK cc.
9768         * lib/fopen.c: Use different syntax for include of <stdio.h>.
9769         * lib/freopen.c: Likewise.
9770         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
9771         * lib/lstat.c: Likewise.
9772         * lib/stat.c: Likewise.
9773         * lib/open.c: Use different syntax for include of <fcntl.h>.
9774         * lib/openat.c: Include fcntl.h again, explicitly.
9775
9776 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
9777
9778         parse-datetime: document the newly accepted format
9779         * doc/parse-datetime.texi (Combined date and time of day items):
9780         New section.
9781
9782 2011-09-06  Bruno Haible  <bruno@clisp.org>
9783
9784         acl: Fix a test failure on newer Solaris 10 with ZFS.
9785         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
9786         ENOSYS as no ACL.
9787         Reported by Jim Meyering.
9788
9789 2011-09-06  Bruno Haible  <bruno@clisp.org>
9790
9791         acl: Update for AIX >= 5.3 with NFS.
9792         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
9793         ENOSYS as no ACL.
9794
9795         acl: Fix a test failure on AIX >= 5.3 with NFS.
9796         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
9797         as no ACL.
9798
9799 2011-09-06  Bruno Haible  <bruno@clisp.org>
9800
9801         acl: Fix a test failure on IRIX 6.5 with NFS.
9802         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
9803         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
9804         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
9805         * lib/copy-acl.c (qcopy_acl): Likewise.
9806
9807 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
9808
9809         openat: port to AIX 7.1 with large files
9810         AIX 7.1 does a "#define openat open64at" if large files are in use,
9811         so we can't simply #undef openat.  Use the orig_openat trick (similar
9812         to orig_open in lib/open.c) to work around the problem.  Problem
9813         reported by Kevin Brott for GNU tar, in the thread containing
9814         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
9815         * lib/openat.c (__need_system_fcntl_h): Define first.
9816         Include <fcntl.h> and <sys/types.h> before undefining.
9817         (orig_openat) [HAVE_OPENAT]: New inline function.
9818         (openat) [HAVE_OPENAT]: Do not undef.
9819         (rpl_openat): Use orig_openat, not openat.
9820
9821 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
9822             Bruno Haible  <bruno@clisp.org>
9823
9824         acl: Avoid errors on NonStop Kernel.
9825         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
9826         ENOTSUP errors.
9827
9828 2011-09-05  Bruno Haible  <bruno@clisp.org>
9829
9830         acl: Clean up Solaris code.
9831         * lib/acl-internal.h: Remove no-op #if.
9832         * lib/file-has-acl.c: Likewise.
9833         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
9834         * lib/copy-acl.c (qcopy_acl): Likewise.
9835
9836 2011-09-05  Bruno Haible  <bruno@clisp.org>
9837
9838         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
9839         binaries built on the original Solaris 10.
9840         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
9841         trivial.
9842
9843 2011-09-05  Bruno Haible  <bruno@clisp.org>
9844
9845         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
9846         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
9847         10.
9848         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
9849         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
9850         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
9851         instead of acl_get, facl_get, acl_set, facl_set.
9852
9853 2011-09-05  Bruno Haible  <bruno@clisp.org>
9854
9855         copy-file: Try unit tests on more file systems.
9856         * tests/test-copy-file-1.sh: New file.
9857         * tests/test-copy-file-2.sh: New file.
9858         * modules/copy-file-tests (Files): Add them.
9859         (Makefile.am): Add them to TESTS.
9860
9861         acl: Try unit tests on more file systems.
9862         * tests/test-file-has-acl-1.sh: New file.
9863         * tests/test-file-has-acl-2.sh: New file.
9864         * tests/test-set-mode-acl-1.sh: New file.
9865         * tests/test-set-mode-acl-2.sh: New file.
9866         * tests/test-copy-acl-1.sh: New file.
9867         * tests/test-copy-acl-2.sh: New file.
9868         * modules/acl-tests (Files): Add them.
9869         (Makefile.am): Add them to TESTS.
9870
9871 2011-09-04  Bruno Haible  <bruno@clisp.org>
9872
9873         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
9874         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
9875         10.
9876         (OLD_ALLOW, OLD_DENY): New macros.
9877         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
9878         ACE_ACCESS_ALLOWED_ACE_TYPE.
9879         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
9880         ACE_ACCESS_DENIED_ACE_TYPE.
9881         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
9882         (NEW_ACE_EXECUTE): Fix value.
9883         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
9884         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
9885         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
9886         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
9887         NEW_ACE_SYNCHRONIZE): New macros.
9888         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
9889         instead of acl_fromtext, acl_set, facl_set.
9890         Fixes a coreutils/tests/cp/perm failure.
9891
9892 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
9893
9894         openat: test for fstatat (..., 0) bug
9895         Further testing with tar suggests that fstatat (..., 0)
9896         does not work in general, on AIX 7.1; see
9897         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
9898         So, give up entirely on AIX 7.1's fstatat, and fall back on our
9899         replacement fstatat (which is what older AIX releases were using
9900         anyway).
9901         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
9902         use is now changed to orig_fstatat.  This was probably the right
9903         thing to do anyway.
9904         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
9905         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
9906         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
9907         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
9908         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
9909         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
9910         if the bug is found.
9911
9912         openat: test for fstatat (AT_FDCWD, ..., 0) bug
9913         This tests for another fstatat bug on AIX 7.1:
9914         fstatat (AT_FDCWD, ..., 0) does not work.  See
9915         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
9916         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
9917         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
9918         (rpl_fstatat): Adjust so that it works around either (or both)
9919         bugs if present.
9920         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
9921
9922 2011-09-03  Karl Berry  <karl@gnu.org>
9923
9924         * doc/regex.texi (Character Class Operators): Avoid literal ":"
9925         in index entries.
9926
9927 2011-09-02  Bruno Haible  <bruno@clisp.org>
9928
9929         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
9930         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
9931         values of AR, ARFLAGS, RANLIB.
9932         Reported by John W. Eaton <jwe@gnu.org> for Octave.
9933
9934 2011-09-02  Bruno Haible  <bruno@clisp.org>
9935
9936         Find 'ar' program that fits with --host argument.
9937         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
9938
9939 2011-09-02  Bruno Haible  <bruno@clisp.org>
9940
9941         tests: init.sh: Support any non-GNU diff.
9942         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
9943         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
9944         Solaris 8.
9945
9946 2011-09-02  Bruno Haible  <bruno@clisp.org>
9947
9948         tests: init.sh: work also with any non-GNU diff that supports -u
9949         * tests/init.sh: Relax check for diff -u support.
9950         Rather than checking for GNU diff via --version, simply check
9951         for support for -u itself.  Useful at least on OpenBSD 4.9,
9952         AIX 7.1, IRIX 6.5, and Solaris 10.
9953
9954 2011-09-01  Bruno Haible  <bruno@clisp.org>
9955
9956         strtoimax, strtoumax: Document problem on HP-UX 11.
9957         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
9958         * doc/posix-functions/strtoumax.texi: Likewise.
9959
9960 2011-09-01  Bruno Haible  <bruno@clisp.org>
9961
9962         strtoumax: Avoid link error on OSF/1 with DTK cc.
9963         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
9964         defined as a function.
9965         * modules/strtoumax (Depends-on, configure.ac): Test only whether
9966         strtoumax is defined, not whether it is declared.
9967
9968 2011-09-01  Bruno Haible  <bruno@clisp.org>
9969
9970         strtoimax: Avoid link error on OSF/1 with DTK cc.
9971         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
9972         defined as a function.
9973         * modules/strtoimax (Depends-on, configure.ac): Test only whether
9974         strtoimax is defined, not whether it is declared.
9975
9976 2011-09-01  Bruno Haible  <bruno@clisp.org>
9977
9978         imaxdiv: Avoid link error on OSF/1 with DTK cc.
9979         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
9980         as a function.
9981         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
9982         whether it is declared.
9983
9984 2011-09-01  Bruno Haible  <bruno@clisp.org>
9985
9986         imaxabs: Avoid link error on OSF/1 with DTK cc.
9987         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
9988         as a function.
9989         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
9990         whether it is declared.
9991
9992 2011-09-01  Bruno Haible  <bruno@clisp.org>
9993
9994         Tests for module 'strtoumax'.
9995         * modules/strtoumax-tests: New file.
9996         * tests/test-strtoumax.c: New file.
9997
9998         Tests for module 'strtoimax'.
9999         * modules/strtoimax-tests: New file.
10000         * tests/test-strtoimax.c: New file.
10001
10002         Tests for module 'imaxdiv'.
10003         * modules/imaxdiv-tests: New file.
10004         * tests/test-imaxdiv.c: New file.
10005
10006         Tests for module 'imaxabs'.
10007         * modules/imaxabs-tests: New file.
10008         * tests/test-imaxabs.c: New file.
10009
10010 2011-09-01  Bruno Haible  <bruno@clisp.org>
10011
10012         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
10013         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
10014         pthread_create.
10015
10016 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
10017
10018         openat: work around AIX 7.1 fstatat issue
10019         This should fix the problem that was not properly fixed
10020         in the previous change, dated 2011-08-30.
10021         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
10022         __need_system_stat_h defined.
10023         (orig_fstatat) [HAVE_FSTATAT]: New function.
10024         (rpl_fstatat): Go back to the old way of doing things,
10025         except call orig_fstatat instead of fstatat.
10026         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
10027         Remove unnecessary check whether fstatat fills in st_size etc.
10028
10029 2011-09-01  Bruno Haible  <bruno@clisp.org>
10030
10031         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
10032         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
10033         just include the system's header.
10034
10035 2011-08-31  Jim Meyering  <meyering@redhat.com>
10036
10037         tests: avoid spurious assertion failure in test-float.c on ppc64
10038         * tests/test-float.c (test_long_double): Comment out an assertion,
10039         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
10040         with gcc-4.4.4.
10041
10042         maint: indent with spaces, not TABs
10043         I need to get in the habit of running gnulib's "make check".
10044         Both of these would have been caught.
10045         * m4/largefile.m4: Indent with spaces, not TABs.
10046         * lib/parse-datetime.y (iso_8601_time): Likewise.
10047         Spotted by Pádraig Brady.
10048
10049         test-parse-datetime.c: accommodate a relatively strict gcc warning
10050         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
10051         to avoid a warning from gcc's -Werror=missing-declarations.
10052         Insert a few spaces-before-funcall-parenthesis.
10053
10054 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
10055
10056         parse-datetime: accept ISO 8601 date and time rep with "T" separator
10057         The parser now accepts ISO 8601 date-time strings with "T" as the
10058         separator.  It has long parsed dates like "2004-02-29 16:21:42"
10059         with a space between the date and time strings.  Now it also parses
10060         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
10061         variants like "2004-02-29T16:21:42.333-07:00"
10062         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
10063         of day representation using the 'T' separator character.
10064         * doc/parse-datetime.texi (General date syntax): replace use of
10065         deprecated --iso-8601 option with --rfc-3339 in example of date
10066         command output formats that can be parsed.
10067         * tests/test-parse-datetime.c (tm_diff): New function, taken from
10068         lib/parse-datetime.y.
10069         (gmt_offset): New function.
10070         (main): Add additional test cases to validate ISO8601 extended
10071         date and time of day parsing.
10072
10073 2011-08-31  Bruno Haible  <bruno@clisp.org>
10074
10075         freopen: Documentation.
10076         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
10077         name.
10078         Reported by Claudio Bley <claudio.bley@gmail.com>.
10079
10080 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
10081
10082         freopen: Don't crash if the filename argument is NULL.
10083         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
10084         NULL.
10085
10086 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
10087
10088         openat: work around AIX 7.1 fstatat bug
10089         Problem reported by Kevin Brott for GNU tar, in the thread containing
10090         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
10091         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
10092         FSTATAT_ST_SIZE_ETC_BROKEN.
10093         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
10094         rpl_fstatat.
10095         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
10096         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
10097         AC_CHECK_FUNCS_ONCE for fstatat.
10098         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
10099         fchmodat, mkdirat, openat and unlinkat.
10100
10101 2011-08-30  Bruno Haible  <bruno@clisp.org>
10102
10103         Avoid endless recursions if config.h includes some header files.
10104         * lib/fopen.c (__need_FILE): Define already before including config.h.
10105         * lib/freopen.c (__need_FILE): Likewise.
10106         * lib/open.c (__need_system_fcntl_h): Likewise.
10107         * lib/stat.c (__need_system_sys_stat_h): Likewise.
10108         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
10109         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
10110
10111 2011-08-25  Karl Berry  <karl@gnu.org>
10112
10113         * config/srclist.txt (ylwrap): new try.
10114         * build-aux/ylwrap: new file.
10115
10116 2011-08-23  Bruno Haible  <bruno@clisp.org>
10117
10118         tmpdir: Use a good default directory on native Windows.
10119         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
10120         (P_tmpdir): Default to _P_tmpdir on native Windows.
10121         (path_search): On native Windows, try the value returned by GetTempPath
10122         before trying P_tmpdir.
10123         * modules/tmpdir (Depends-on): Add pathmax.
10124         Suggested by John Darrington <john@darrington.wattle.id.au>.
10125
10126 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
10127
10128         doc: fix typo in README-release
10129         * top/README-release: Capitalize first word of a sentence.
10130
10131 2011-08-19  Jim Meyering  <meyering@redhat.com>
10132
10133         fts: do not exhaust memory when processing million-entry directories
10134         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
10135         directory would require about 256*N bytes of memory.  Thus, it was
10136         easy to construct a directory too large to be processed by any of
10137         those tools.  With this change, fts' maximum memory utilization is
10138         now limited to around 30MB.
10139         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
10140         (fts_read): When we've processed the final entry (i.e., when
10141         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
10142         using the parent entry to read any remaining entries.  Dispatch
10143         depending on what fts_build returns:
10144         - NULL+stop, aka failure: stop
10145         - NULL otherwise: move up in the dir hierarchy
10146         - non-NULL: handle this new entry
10147         (fts_build): Declare and use new local, continue_readdir.
10148         Prepare to be called from fts_read, when the entries
10149         from a partially-read directory have just been exhausted.
10150         In that case, we'll skip the opendir and instead use the parent's
10151         fts_dirp and derive dir_fd from that.
10152         Finally, in the readdir loop, if we read max_entries entries,
10153         exit the loop ensuring *not* to call closedir.  This is required
10154         so that fts_dirp can be reused on a subsequent call.
10155         Prompted by Ben England's report of memory exhaustion in find
10156         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
10157
10158         maint: fts: move decl of `dp' down into while loop; split a long line
10159         * lib/fts.c (fts_build): No semantic change.
10160
10161         fts: add/use new struct member, fts_dirp
10162         We are about to use this to manage any directory with
10163         too many entries to read all of them into memory at once.
10164         To do that, we'll need to save the DIR* pointer in each
10165         affected FTSENT struct.
10166         * lib/fts_.h: Include <dirent.h>.
10167         (struct FTSENT) [fts_dirp]: New member.
10168         * lib/fts.c (closedir_and_clear): Define.
10169         Use it in place of closedir so that we are sure to
10170         clear the new fts_dirp member when done with it.
10171         (fts_alloc): Initialize the new member.
10172         (fts_lfree): Free, if needed.
10173
10174         maint: fts: give __opendir2 a new parameter and rename
10175         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
10176         than surreptitiously using sole caller's "dir_fd".
10177         (fts_opendir): Rename from __opendir2.
10178
10179         maint: fts.c: remove __opendir2's now-unused parameter, oflag
10180         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
10181
10182         maint: fts.c: correct off-by-one indentation
10183         * lib/fts.c (fts_build): Correct indentation, change style
10184         of a couple of block comments, and bracing style.
10185
10186         maint: fts.c: move __opendir2 #define "up" out of function body
10187         * lib/fts.c (__opendir2): Move "up".  No semantic change.
10188
10189         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
10190         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
10191         out for a long time and besides was useful only on BSD systems.
10192
10193 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
10194
10195         regex: port to Stratus OpenVOS
10196         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
10197         define to empty, rather than attempting nonportable optimizations.
10198         Problem reported by Paul Green in:
10199         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
10200         and fix suggested by Eric Blake in:
10201         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
10202
10203 2011-08-17  Eric Blake  <eblake@redhat.com>
10204
10205         getcwd: fix test failures on mingw
10206         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
10207         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
10208         test if long directory cannot be created, and allow mingw errno.
10209
10210         getcwd-lgpl: fix m4 to match relaxed test for BSD
10211         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
10212         (gl_FUNC_GETCWD_SIGNATURE): New macro.
10213         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
10214         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
10215         signature problem.
10216
10217         getcwd: fix compilation on mingw64
10218         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
10219         getcwd.
10220         Reported by Marc-André Lureau.
10221
10222         pipe2: silence compiler warning
10223         * lib/pipe2.c (pipe2): Hide label if it is not used.
10224
10225 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
10226
10227         relocatable-prog: fix link error
10228         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
10229         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
10230         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
10231         into modules/relocatable-lib without noticing that
10232         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
10233         also needs to build relocatable.c.
10234
10235 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
10236
10237         getaddrinfo: fix sh typo in gai_strerrorA decl checking
10238         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
10239         shell code: it contained a 'break' that was not in a loop.
10240         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
10241         via a shell-language loop; this may have been true in old Autoconf
10242         versions, but it's not true in Autoconf 2.68.  I found this bug
10243         when testing coreutils git on Solaris 8, whose shell complains
10244         about the syntax error.
10245
10246 2011-08-12  Simon Josefsson  <simon@josefsson.org>
10247
10248         * lib/base64.c: Fix comment to reference RFC 4648.
10249         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
10250         <gvtulder@gmail.com>.
10251
10252 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
10253
10254         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
10255
10256         po/Makefile.in.in: fix make -q problem
10257         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
10258         rule, since there's no file named 'check-macro-version' and its
10259         use as a file breaks make -q.
10260         (all): Don't depend on check-macro-version.
10261         (CHECK_MACRO_VERSION): New macro.
10262         (stamp-po): Use it.
10263
10264         configmake: fix make -q problem
10265         * modules/configmake (configmake.h): Update configmake.h's time stamp
10266         even if the file does not change.  Otherwise, 'make -q' fails.
10267         Problem reported by Simon Josefsson in
10268         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
10269
10270 2011-08-11  Jim Meyering  <meyering@redhat.com>
10271
10272         git-version-gen: correct the advice in a comment
10273         * build-aux/git-version-gen: Correct comment.
10274         Don't recommend to list .tarball-version in .gitignore.
10275
10276 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
10277
10278         base64: fix off-by-one buffer size bug
10279         Problem and (trivial) fix reported by Gijs van Tulder in
10280         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
10281         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
10282         * tests/test-base64.c (main): Catch the bug.
10283
10284 2011-08-10  Eric Blake  <eblake@redhat.com>
10285
10286         closein: correct comments
10287         * lib/closein.c (close_stdin): Improve comments.
10288
10289 2011-08-09  Bruno Haible  <bruno@clisp.org>
10290
10291         More tests for 'fseeko'.
10292         * tests/test-fseeko3.c: New file, from Eric Blake.
10293         * tests/test-fseeko3.sh: New file.
10294         * modules/fseeko-tests (Files): Add them.
10295         (TESTS): Add test-fseeko3.sh.
10296         (check_PROGRAMS): Add test-fseeko3.
10297
10298 2011-08-09  Eric Blake  <eblake@redhat.com>
10299
10300         fseeko: remove unneeded hack
10301         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
10302
10303         fseeko: fix bug on glibc
10304         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
10305         Reported by John W. Eaton.
10306
10307 2011-08-08  Bruno Haible  <bruno@clisp.org>
10308
10309         unictype/base: Fix interoperability with preinstalled libunistring.
10310         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
10311         Reported by Simon Josefsson.
10312
10313 2011-08-08  Bruno Haible  <bruno@clisp.org>
10314
10315         iswblank: Detect declaration correctly.
10316         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
10317         AC_CHECK_DECLS invocation.
10318
10319 2011-08-08  Bruno Haible  <bruno@clisp.org>
10320
10321         tcgetsid: Detect declaration correctly.
10322         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
10323         AC_CHECK_DECLS invocation.
10324         Reported by Simon Josefsson.
10325
10326 2011-08-08  Eric Blake  <eblake@redhat.com>
10327
10328         largefile: fix typo that regressed large file support
10329         * modules/largefile (configure.ac-early): Fix section name.
10330
10331 2011-08-06  Karl Berry  <karl@gnu.org>
10332
10333         * MODULES.html.sh (func_all_files): _Noreturn is no longer
10334         a separate module.
10335
10336 2011-08-05  Simon Josefsson  <simon@josefsson.org>
10337
10338         openat: Fix warnings and commens when building unlinkat.c on Hurd.
10339         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
10340         get prototype for free.
10341
10342 2011-08-04  Bruno Haible  <bruno@clisp.org>
10343
10344         Tests for module 'pathmax'.
10345         * modules/pathmax-tests: New file.
10346         * tests/test-pathmax.c: New file.
10347
10348         canonicalize-lgpl: Support larger filenames on the Hurd.
10349         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
10350         Reported by Paul Eggert.
10351
10352         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
10353         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
10354         * lib/chdir-long.h: Include pathmax.h.
10355         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
10356         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
10357         (PATH_MAX): Remove code that is done by pathmax.h.
10358         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
10359         * lib/tmpfile.c: Add a comment.
10360         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
10361         * modules/chdir-long (Depends-on): Add pathmax.
10362         * modules/getcwd (Depends-on): Add pathmax.
10363         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
10364         is not defined.
10365         * doc/posix-headers/limits.texi: Mention the pathmax module.
10366         * NEWS: Mention the change.
10367
10368 2011-08-02  Bruno Haible  <bruno@clisp.org>
10369
10370         pthread_sigmask: Actually use results of gl_THREADLIB.
10371         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
10372         gl_THREADLIB, not gl_[]THREADLIB.
10373         Reported by Eric Blake.
10374
10375 2011-08-02  Jim Meyering  <meyering@redhat.com>
10376
10377         maint.mk: relax the default _gl_TS_function_match regexp
10378         * top/maint.mk (_gl_TS_function_match): Don't require at least one
10379         space between function name and "(" in an "extern" declaration.
10380         That would fail to match a decl with no space there: extern void foo();
10381
10382 2011-07-31  Iain Nicol  <iain@thenicols.net>
10383
10384         git-version-gen: document that EXTRA_DIST must include .version
10385         * build-aux/git-version-gen: In the how-to-use comment, document
10386         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
10387         will fail when run from an unpacked distribution tarball.
10388
10389 2011-08-01  Bruno Haible  <bruno@clisp.org>
10390
10391         wctype-h: Fix last change.
10392         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
10393         REPLACE_TOWLOWER to 0.
10394         Reported by Sam Steingold <sds@gnu.org>.
10395
10396 2011-07-31  Bruno Haible  <bruno@clisp.org>
10397
10398         frexpl: Update autoconf test.
10399         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
10400         according to changes of 2011-06-20.
10401
10402 2011-07-31  Bruno Haible  <bruno@clisp.org>
10403
10404         sys_utsname: Add support for Minix.
10405         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
10406         <sys/utsname.h>.
10407         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
10408         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
10409
10410 2011-07-31  Bruno Haible  <bruno@clisp.org>
10411
10412         strings: Add support for Minix.
10413         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
10414         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
10415         * doc/posix-headers/strings.texi: Document the Minix problem.
10416
10417 2011-07-31  Bruno Haible  <bruno@clisp.org>
10418
10419         wctype-h: Add support for Minix.
10420         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
10421         REPLACE_TOWLOWER.
10422         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
10423         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
10424         REPLACE_ISWCNTRL.
10425
10426 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
10427
10428         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
10429         This is a performance improvement for 64-bit hosts: it causes the
10430         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
10431
10432 2011-07-31  Bruno Haible  <bruno@clisp.org>
10433
10434         stdioext: Add support for Minix.
10435         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
10436         * lib/fpurge.c (fpurge): Likewise.
10437         * lib/freadahead.c (freadahead): Likewise.
10438         * lib/freadable.c (freadable): Likewise.
10439         * lib/freading.c (freading): Likewise.
10440         * lib/freadptr.c (freadptr): Likewise.
10441         * lib/freadseek.c (freadptrinc): Likewise.
10442         * lib/fseeko.c (rpl_fseeko): Likewise.
10443         * lib/fseterr.c (fseterr): Likewise.
10444         * lib/fwritable.c (fwritable): Likewise.
10445         * lib/fwriting.c (fwriting): Likewise.
10446         * lib/fflush.c (clear_ungetc_buffer): Update comment.
10447         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
10448
10449 2011-07-31  Bruno Haible  <bruno@clisp.org>
10450
10451         errno: Port to Minix.
10452         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
10453         ECONNABORTED are defined.
10454         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
10455         GNULIB_defined_ECONNABORTED): New macros.
10456         * lib/strerror-override.h (strerror_override): Test also
10457         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
10458         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
10459         ECONNABORTED.
10460         * doc/posix-headers/errno.texi: Mention the Minix problem.
10461
10462 2011-07-31  Bruno Haible  <bruno@clisp.org>
10463
10464         Work around declaration collisions on Minix.
10465         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
10466         defined, set REPLACE_MBSINIT.
10467         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
10468         defined, set REPLACE_MBRTOWC.
10469         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
10470         set REPLACE_MBRLEN.
10471         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
10472         defined, set REPLACE_MBSRTOWCS.
10473         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
10474         defined, set REPLACE_WCRTOMB.
10475         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
10476         defined, set REPLACE_WCSRTOMBS.
10477
10478 2011-07-31  Bruno Haible  <bruno@clisp.org>
10479
10480         Add support for Minix with ACK compiler.
10481         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
10482         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
10483         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
10484
10485 2011-07-31  Bruno Haible  <bruno@clisp.org>
10486
10487         Documentation about Minix.
10488         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
10489         * doc/glibc-headers/*.texi: Likewise.
10490         * doc/posix-functions/*.texi: Likewise.
10491         * doc/glibc-functions/*.texi: Likewise.
10492
10493 2011-07-31  Bruno Haible  <bruno@clisp.org>
10494
10495         snippet/warn-on-use: Fix indentation.
10496         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
10497
10498 2011-07-25  Jim Meyering  <meyering@redhat.com>
10499
10500         tests: test-update-copyright.sh: remove unnecessary "rm" commands
10501         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
10502         commands.
10503
10504 2011-07-27  Jim Meyering  <meyering@redhat.com>
10505
10506         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
10507         * top/maint.mk (gl_extract_significant_defines_): Now that
10508         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
10509         gnulib/lib/signal.in.h, and now that we recommend to
10510         define-if-undefined those two symbols in application code,
10511         we must filter them out of the "significant" list.
10512         This avoids a "make syntax-check" failure in coreutils.
10513
10514 2011-07-26  Eric Blake  <eblake@redhat.com>
10515
10516         warnings: add comments about previous patch
10517         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
10518         * m4/include_next.m4: Likewise.
10519         * m4/warn-on-use.m4: Likewise.
10520         * m4/warnings.m4: Likewise, and simplify use.
10521         Suggested by Stefano Lattarini.
10522
10523         include-next, warnings: support older autoconf
10524         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
10525         AS_VAR_PUSHDEF in a way that works with older autoconf.
10526         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
10527         Reported by Daniel P. Berrange.
10528
10529 2011-07-25  Bruno Haible  <bruno@clisp.org>
10530
10531         fseek, ftell: Fix doc.
10532         * doc/posix-functions/fseek.texi: Reword statement about
10533         AC_SYS_LARGEFILE.
10534         * doc/posix-functions/ftell.texi: Likewise.
10535
10536 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
10537             Bruno Haible  <bruno@clisp.org>
10538
10539         Add dependencies to the 'largefile' module.
10540         * modules/fopen (Depends-on): Add 'largefile'.
10541         * modules/freopen (Depends-on): Likewise.
10542         * modules/fseeko (Depends-on): Likewise.
10543         * modules/ftello (Depends-on): Likewise.
10544         * modules/glob (Depends-on): Likewise.
10545         * modules/lseek (Depends-on): Likewise.
10546         * modules/lstat (Depends-on): Likewise.
10547         * modules/mkostemp (Depends-on): Likewise.
10548         * modules/mkostemps (Depends-on): Likewise.
10549         * modules/mkstemp (Depends-on): Likewise.
10550         * modules/mkstemps (Depends-on): Likewise.
10551         * modules/open (Depends-on): Likewise.
10552         * modules/openat (Depends-on): Likewise.
10553         * modules/pread (Depends-on): Likewise.
10554         * modules/pwrite (Depends-on): Likewise.
10555         * modules/scandir (Depends-on): Likewise.
10556         * modules/stat (Depends-on): Likewise.
10557         * modules/tmpfile (Depends-on): Likewise.
10558         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
10559         since the containing module now depends on the largefile module.
10560         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
10561         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
10562         off_t is fixed by gnulib.
10563         * doc/posix-functions/freopen.texi: Likewise.
10564         * doc/posix-functions/fseeko.texi: Likewise.
10565         * doc/posix-functions/fstatat.texi: Likewise.
10566         * doc/posix-functions/ftello.texi: Likewise.
10567         * doc/posix-functions/glob.texi: Likewise.
10568         * doc/posix-functions/lseek.texi: Likewise.
10569         * doc/posix-functions/lstat.texi: Likewise.
10570         * doc/posix-functions/mkstemp.texi: Likewise.
10571         * doc/posix-functions/open.texi: Likewise.
10572         * doc/posix-functions/openat.texi: Likewise.
10573         * doc/posix-functions/pread.texi: Likewise.
10574         * doc/posix-functions/pwrite.texi: Likewise.
10575         * doc/posix-functions/scandir.texi: Likewise.
10576         * doc/posix-functions/stat.texi: Likewise.
10577         * doc/posix-functions/tmpfile.texi: Likewise.
10578         * doc/glibc-functions/mkostemp.texi: Likewise.
10579         * doc/glibc-functions/mkostemps.texi: Likewise.
10580         * doc/glibc-functions/mkstemps.texi: Likewise.
10581
10582 2011-07-25  Bruno Haible  <bruno@clisp.org>
10583
10584         fcntl: Move AC_LIBOBJ invocation to module description.
10585         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
10586         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
10587
10588         fcntl: Remove call-in from fchdir.m4.
10589         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
10590         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
10591
10592         dup3: Remove potential call-in from fchdir.m4.
10593         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
10594         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
10595
10596         dup2: Move AC_LIBOBJ invocation to module description.
10597         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
10598         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
10599         Don't invoke AC_LIBOBJ.
10600         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
10601
10602         dup2: Remove call-in from fchdir.m4.
10603         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
10604         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
10605
10606         fclose: Move AC_LIBOBJ invocation to module description.
10607         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
10608         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
10609         to 1.
10610         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
10611
10612         fclose: Remove call-in from close.m4.
10613         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
10614         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
10615
10616         close: Move AC_LIBOBJ invocation to module description.
10617         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
10618         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
10619         1.
10620         * modules/close (configure.ac): Invoke AC_LIBOBJ.
10621
10622         close: Remove call-in from fchdir.m4.
10623         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
10624         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
10625
10626         open: Move AC_LIBOBJ invocation to module description.
10627         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
10628         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
10629         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
10630
10631         open: Remove call-in from fchdir.m4.
10632         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
10633         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
10634
10635         fchdir: Start to remove gl_REPLACE_* idiom.
10636         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
10637         (gl_FUNC_FCHDIR): Invoke it.
10638
10639 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
10640
10641         * lib/ftell.c (ftell): Comment out cast.
10642
10643         close: use gl_REPLACE_FCLOSE only if defined
10644         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
10645         is defined.  The close module doesn't depend on the fclose module
10646         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
10647         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
10648         I reproduced the problem with "./gnulib-tool --test close sys_socket".
10649
10650 2011-07-24  Jim Meyering  <meyering@redhat.com>
10651
10652         test-select.h: avoid warning when using gcc's -Wmissing-declarations
10653         * tests/test-select.h (test_function): Declare as "static".
10654
10655 2011-07-24  Bruno Haible  <bruno@clisp.org>
10656
10657         doc: Mention the effects of AC_SYS_LARGEFILE.
10658         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
10659         on this function.
10660         * doc/posix-functions/aio_error.texi: Likewise.
10661         * doc/posix-functions/aio_fsync.texi: Likewise.
10662         * doc/posix-functions/aio_read.texi: Likewise.
10663         * doc/posix-functions/aio_return.texi: Likewise.
10664         * doc/posix-functions/aio_suspend.texi: Likewise.
10665         * doc/posix-functions/aio_write.texi: Likewise.
10666         * doc/posix-functions/fgetpos.texi: Likewise.
10667         * doc/posix-functions/fopen.texi: Likewise.
10668         * doc/posix-functions/freopen.texi: Likewise.
10669         * doc/posix-functions/fsetpos.texi: Likewise.
10670         * doc/posix-functions/fstatvfs.texi: Likewise.
10671         * doc/posix-functions/ftruncate.texi: Likewise.
10672         * doc/posix-functions/ftw.texi: Likewise.
10673         * doc/posix-functions/getrlimit.texi: Likewise.
10674         * doc/posix-functions/glob.texi: Likewise.
10675         * doc/posix-functions/lio_listio.texi: Likewise.
10676         * doc/posix-functions/lockf.texi: Likewise.
10677         * doc/posix-functions/mkstemp.texi: Likewise.
10678         * doc/posix-functions/mmap.texi: Likewise.
10679         * doc/posix-functions/nftw.texi: Likewise.
10680         * doc/posix-functions/openat.texi: Likewise.
10681         * doc/posix-functions/opendir.texi: Likewise.
10682         * doc/posix-functions/posix_fadvise.texi: Likewise.
10683         * doc/posix-functions/posix_fallocate.texi: Likewise.
10684         * doc/posix-functions/pread.texi: Likewise.
10685         * doc/posix-functions/pwrite.texi: Likewise.
10686         * doc/posix-functions/readdir.texi: Likewise.
10687         * doc/posix-functions/readdir_r.texi: Likewise.
10688         * doc/posix-functions/rewinddir.texi: Likewise.
10689         * doc/posix-functions/scandir.texi: Likewise.
10690         * doc/posix-functions/seekdir.texi: Likewise.
10691         * doc/posix-functions/setrlimit.texi: Likewise.
10692         * doc/posix-functions/statvfs.texi: Likewise.
10693         * doc/posix-functions/telldir.texi: Likewise.
10694         * doc/posix-functions/tmpfile.texi: Likewise.
10695         * doc/posix-functions/truncate.texi: Likewise.
10696         * doc/glibc-functions/fallocate.texi: Likewise.
10697         * doc/glibc-functions/fstatfs.texi: Likewise.
10698         * doc/glibc-functions/fts_children.texi: Likewise.
10699         * doc/glibc-functions/fts_read.texi: Likewise.
10700         * doc/glibc-functions/getdirentries.texi: Likewise.
10701         * doc/glibc-functions/mkostemp.texi: Likewise.
10702         * doc/glibc-functions/mkostemps.texi: Likewise.
10703         * doc/glibc-functions/mkstemps.texi: Likewise.
10704         * doc/glibc-functions/preadv.texi: Likewise.
10705         * doc/glibc-functions/pwritev.texi: Likewise.
10706         * doc/glibc-functions/sendfile.texi: Likewise.
10707         * doc/glibc-functions/statfs.texi: Likewise.
10708
10709 2011-07-24  Bruno Haible  <bruno@clisp.org>
10710
10711         doc: Fix typo.
10712         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
10713
10714 2011-07-24  Bruno Haible  <bruno@clisp.org>
10715
10716         doc: Mention fsusage.
10717         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
10718
10719 2011-07-24  Bruno Haible  <bruno@clisp.org>
10720
10721         doc: Mention new glibc headers and functions.
10722         * doc/glibc-headers/gshadow.texi: New file.
10723         * doc/glibc-functions/endsgent.texi: New file.
10724         * doc/glibc-functions/fgetsgent.texi: New file.
10725         * doc/glibc-functions/fgetsgent_r.texi: New file.
10726         * doc/glibc-functions/getsgent.texi: New file.
10727         * doc/glibc-functions/getsgent_r.texi: New file.
10728         * doc/glibc-functions/getsgnam.texi: New file.
10729         * doc/glibc-functions/getsgnam_r.texi: New file.
10730         * doc/glibc-functions/putsgent.texi: New file.
10731         * doc/glibc-functions/setsgent.texi: New file.
10732         * doc/glibc-functions/sgetsgent.texi: New file.
10733         * doc/glibc-functions/sgetsgent_r.texi: New file.
10734         * doc/glibc-functions/malloc_info.texi: New file.
10735         * doc/glibc-functions/preadv.texi: New file.
10736         * doc/glibc-functions/pwritev.texi: New file.
10737         * doc/glibc-functions/register_printf_modifier.texi: New file.
10738         * doc/glibc-functions/register_printf_specifier.texi: New file.
10739         * doc/glibc-functions/register_printf_type.texi: New file.
10740         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
10741         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
10742         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
10743         * doc/glibc-functions/pthread_getname_np.texi: New file.
10744         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
10745         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
10746         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
10747         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
10748         * doc/glibc-functions/pthread_setname_np.texi: New file.
10749         * doc/glibc-functions/pthread_sigqueue.texi: New file.
10750         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
10751         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
10752         * doc/glibc-functions/qsort_r.texi: New file.
10753         * doc/glibc-functions/quick_exit.texi: New file.
10754         * doc/glibc-functions/syncfs.texi: New file.
10755         * doc/gnulib.texi: Include them.
10756         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
10757         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
10758         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
10759         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
10760         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
10761         * doc/glibc-functions/execvpe.texi: Likewise.
10762
10763 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
10764
10765         ftell: don't include <unistd.h>
10766         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
10767         guaranteed to define off_t, and the ftell module depends on the
10768         stdio module.
10769
10770         ftell: do not assume wraparound signed arithmetic
10771         * lib/ftell.c: Include <limits.h>.
10772         (ftell): Don't assume wraparound signed arithmetic.
10773
10774 2011-07-24  Bruno Haible  <bruno@clisp.org>
10775
10776         close: No longer depend on module 'fclose'.
10777         * modules/close (Depends-on): Remove fclose.
10778         * NEWS: Mention the change.
10779         Suggested by Sam Steingold <sds@gnu.org>.
10780
10781 2011-07-24  Bruno Haible  <bruno@clisp.org>
10782
10783         fsusage: Enable large volume support on AIX >= 5.2.
10784         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
10785         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
10786         instead of STAT_STATVFS.
10787         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
10788
10789         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
10790         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
10791         f_blocks field only on MacOS X.
10792
10793         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
10794         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
10795         * modules/fsusage (Depends-on): Add largefile.
10796
10797 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
10798
10799         * README: Modernize discussion of signed integers.
10800         Assuming overflow wraparound is no longer safe.
10801         Mention ones' complement and signed magnitude.
10802
10803 2011-07-22  Bruno Haible  <bruno@clisp.org>
10804
10805         select tests, pselect tests: Refactor.
10806         * tests/test-select.h: New file, extracted from tests/test-select.c.
10807         (select_fn): New type.
10808         (test, do_select, do_select_nowait, do_select_wait, test_tty,
10809         test_connect_first, test_accept_first, test_pair, test_socket_pair,
10810         test_pipe): Add my_select argument.
10811         (test_function): Renamed from main. Add my_select argument.
10812         * tests/test-select.c: Move most code to tests/test-select.h. Include
10813         test-select.h.
10814         * modules/select-tests (Files): Add tests/test-select.h.
10815         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
10816         (my_select, main): New functions.
10817         * modules/pselect-tests (Files): Add tests/test-select.h,
10818         tests/macros.h, tests/signature.h.
10819         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
10820         (configure.ac): Check for <sys/wait.h>.
10821
10822 2011-07-22  Bruno Haible  <bruno@clisp.org>
10823
10824         sys_select tests: Check the signature of FD_*.
10825         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
10826         signature tests from here...
10827         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
10828         here.
10829         * modules/sys_select-tests (Files): Add tests/signature.h.
10830
10831 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
10832
10833         largefile: new module, replacing large-inode
10834         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
10835         * MODULES.html.sh: Add largefile, remove large-inode.
10836         * modules/largefile, m4/largefile.m4: New files.
10837         * modules/large-inode, m4/large-inode.m4: Remove.
10838
10839         fsusage: port to MacOS X 10.7 with 4 TiB file systems
10840         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
10841         implementations that use only 32 bits to count blocks.
10842         On typical hosts with 1024-byte blocks, this fails with file
10843         systems as small as 4 TiB.  Problem reported by Herb Wartens
10844         <http://debbugs.gnu.org/9140> and this should also fix a similar
10845         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
10846
10847         large-inode: New module
10848         * MODULES.html.sh: Add it.
10849         * modules/large-inode, m4/large-inode.m4: New files.
10850
10851         extensions: Enable extensions on MacOS X 10.5 and later.
10852         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
10853
10854 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
10855
10856         file-has-acl: use acl_extended_file_nofollow if available
10857         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
10858         (acl_extended_file): New macro.
10859         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
10860         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
10861
10862 2011-07-21  Bruno Haible  <bruno@clisp.org>
10863
10864         Declare system functions in a way that works with C++.
10865         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
10866         declare fdopendir as extern "C".
10867         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
10868         declare frexpl as extern "C".
10869         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
10870         declare gai_strerror as extern "C".
10871         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
10872         programs, declare gai_strerror as extern "C".
10873         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
10874         declare getlogin_r as extern "C".
10875         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
10876         as extern "C".
10877         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
10878         declare ldexpl as extern "C".
10879         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
10880         as extern "C".
10881         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
10882         program, declare getmntinfo as extern "C".
10883         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
10884         stpncpy as extern "C".
10885         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
10886         program, declare __xpg_strerror_r as extern "C".
10887         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
10888         strndup as extern "C".
10889         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
10890         declare memset and bzero as extern "C".
10891         Reported by Sam Steingold <sds@gnu.org>.
10892
10893 2011-07-12  Jim Meyering  <meyering@redhat.com>
10894
10895         maint.mk: prohibit inclusion of "verify.h" without use
10896         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
10897
10898 2011-07-19  Pádraig Brady  <P@draigBrady.com>
10899
10900         timer-time: A new module to check for timer_settime()
10901         * m4/timer_time.m4: Check for the posix function.
10902         * modules/timer-time: Add the new module.
10903         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
10904         Mention it.
10905
10906 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
10907             Bruno Haible  <bruno@clisp.org>
10908
10909         pthread_sigmask: assume POSIX threads if --avoid=threadlib
10910         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
10911         not defined, assume POSIX threads and look for pthread_sigmask in
10912         $LIBS, without changing $CPPFLAGS.
10913
10914 2011-07-19  Bruno Haible  <bruno@clisp.org>
10915
10916         strstr: Update cross-compilation guess.
10917         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
10918         CPUs, guess no, in view of glibc
10919         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
10920         Suggested by Eric Blake. Reported by Reuben Thomas.
10921
10922 2011-07-19  Pádraig Brady  <P@draigBrady.com>
10923
10924         getopt-gnu: suppress core dumps from detection code
10925         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
10926         to suppress core dumps that may well occur on glibc systems.
10927         * modules/getopt-gnu: Depend on nocrash.
10928
10929 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
10930
10931         pthread_sigmask: ensure usleep is declared
10932         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
10933         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
10934
10935 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
10936
10937         doc: Document NonStop portability issues.
10938         * doc/posix-functions/sigaction.texi (sigaction):
10939         * doc/posix-headers/signal.texi (signal.h):
10940         Document NonStop.  See Joachim Schmitz in
10941         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
10942
10943 2011-07-15  Bruno Haible  <bruno@clisp.org>
10944
10945         ffsl, ffsll: Avoid unportable behaviour.
10946         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
10947
10948 2011-07-15  Bruno Haible  <bruno@clisp.org>
10949
10950         ffs: More tests.
10951         * tests/test-ffs.c (NBITS): New macro.
10952         (main): Add more tests.
10953         * tests/test-ffsl.c (NBITS): New macro.
10954         (main): Add more tests.
10955         * tests/test-ffsll.c (NBITS): New macro.
10956         (main): Add more tests.
10957
10958 2011-07-15  Eric Blake  <eblake@redhat.com>
10959
10960         ffsl, ffsll: new modules
10961         * modules/ffsl: New file.
10962         * modules/ffsll: Likewise.
10963         * m4/ffsl.m4: Likewise.
10964         * m4/ffsll.m4: Likewise.
10965         * lib/ffsl.c: Likewise.
10966         * lib/ffsl.h: Likewise.
10967         * lib/ffsll.c: Likewise.
10968         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
10969         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
10970         * modules/string (Makefile.am): Substitute witnesses.
10971         * lib/strings.in.h (ffsl, ffsll): Declare.
10972         * modules/ffsl-tests: New test file.
10973         * modules/ffsll-tests: Likewise.
10974         * tests/test-ffsl.c: Likewise.
10975         * tests/test-ffsll.c: Likewise.
10976         * MODULES.html.sh (Integer arithmetic functions): Mention it.
10977         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
10978         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
10979
10980         ffs: fix m4 prerequisite
10981         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
10982
10983         ffs: avoid undefined behavior
10984         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
10985         * tests/test-ffs.c (naive, main): Avoid signed shifts.
10986         Reported by Bruno Haible.
10987
10988 2011-07-12  Bruno Haible  <bruno@clisp.org>
10989
10990         pthread_sigmask: Rely on module 'threadlib'.
10991         * modules/pthread_sigmask (Depends-on): Add threadlib.
10992         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
10993         is defined.
10994
10995 2011-07-12  Bruno Haible  <bruno@clisp.org>
10996
10997         regex: Depend on module 'strcase'.
10998         * modules/regex (Depends-on): Add strcase, for strcasecmp().
10999
11000 2011-07-12  Jim Meyering  <meyering@redhat.com>
11001
11002         warn-on-use: fix typo in file name
11003         * modules/snippet/warn-on-use (Files): Correct file name:
11004         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
11005
11006 2011-07-12  Bruno Haible  <bruno@clisp.org>
11007
11008         strings: Document module.
11009         * doc/posix-headers/strings.texi: Mention module 'strings'.
11010
11011 2011-07-12  Bruno Haible  <bruno@clisp.org>
11012
11013         Rename module '_Noreturn' to 'snippet/_Noreturn'.
11014         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
11015         (Files, Makefile.am): Update.
11016         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
11017         * modules/stdlib (Depends-on): Update.
11018
11019 2011-07-12  Bruno Haible  <bruno@clisp.org>
11020
11021         * NEWS: Mention the changes.
11022
11023         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
11024         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
11025         (Files, Makefile.am): Update.
11026         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
11027         * modules/arpa_inet (Depends-on): Update.
11028         * modules/ctype (Depends-on): Update.
11029         * modules/dirent (Depends-on): Update.
11030         * modules/fcntl-h (Depends-on): Update.
11031         * modules/glob (Depends-on): Update.
11032         * modules/iconv-h (Depends-on): Update.
11033         * modules/inttypes-incomplete (Depends-on): Update.
11034         * modules/langinfo (Depends-on): Update.
11035         * modules/locale (Depends-on): Update.
11036         * modules/math (Depends-on): Update.
11037         * modules/netdb (Depends-on): Update.
11038         * modules/poll-h (Depends-on): Update.
11039         * modules/pty (Depends-on): Update.
11040         * modules/search (Depends-on): Update.
11041         * modules/signal (Depends-on): Update.
11042         * modules/spawn (Depends-on): Update.
11043         * modules/stdio (Depends-on): Update.
11044         * modules/stdlib (Depends-on): Update.
11045         * modules/string (Depends-on): Update.
11046         * modules/strings (Depends-on): Update.
11047         * modules/sys_file (Depends-on): Update.
11048         * modules/sys_ioctl (Depends-on): Update.
11049         * modules/sys_select (Depends-on): Update.
11050         * modules/sys_socket (Depends-on): Update.
11051         * modules/sys_stat (Depends-on): Update.
11052         * modules/sys_time (Depends-on): Update.
11053         * modules/sys_times (Depends-on): Update.
11054         * modules/sys_utsname (Depends-on): Update.
11055         * modules/sys_wait (Depends-on): Update.
11056         * modules/termios (Depends-on): Update.
11057         * modules/time (Depends-on): Update.
11058         * modules/unistd (Depends-on): Update.
11059         * modules/wchar (Depends-on): Update.
11060         * modules/wctype-h (Depends-on): Update.
11061         * MODULES.html.sh (Support for building libraries and executables):
11062         Update.
11063
11064         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
11065         * modules/snippet/unused-parameter: Renamed from
11066         modules/unused-parameter.
11067         (Files, Makefile.am): Update.
11068         * build-aux/snippet/unused-parameter.h: Renamed from
11069         build-aux/unused-parameter.h.
11070         * modules/selinux-h (Depends-on): Update.
11071         * modules/unistr/base (Depends-on): Update.
11072         * MODULES.html.sh (Core language properties): Update.
11073
11074         Rename module 'link-warning' to 'snippet/link-warning'.
11075         * modules/snippet/link-warning: Renamed from modules/link-warning.
11076         (Files, Makefile.am): Update.
11077         * build-aux/snippet/link-warning.h: Renamed from
11078         build-aux/link-warning.h.
11079         * MODULES.html.sh (Support for building libraries and executables):
11080         Update.
11081
11082         Rename module 'c++defs' to 'snippet/c++defs'.
11083         * modules/snippet/c++defs: Renamed from modules/c++defs.
11084         (Files, Makefile.am): Update.
11085         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
11086         * modules/arpa_inet (Depends-on): Update.
11087         * modules/ctype (Depends-on): Update.
11088         * modules/dirent (Depends-on): Update.
11089         * modules/fcntl-h (Depends-on): Update.
11090         * modules/glob (Depends-on): Update.
11091         * modules/iconv-h (Depends-on): Update.
11092         * modules/langinfo (Depends-on): Update.
11093         * modules/locale (Depends-on): Update.
11094         * modules/math (Depends-on): Update.
11095         * modules/netdb (Depends-on): Update.
11096         * modules/poll-h (Depends-on): Update.
11097         * modules/pty (Depends-on): Update.
11098         * modules/search (Depends-on): Update.
11099         * modules/signal (Depends-on): Update.
11100         * modules/spawn (Depends-on): Update.
11101         * modules/stdio (Depends-on): Update.
11102         * modules/stdlib (Depends-on): Update.
11103         * modules/string (Depends-on): Update.
11104         * modules/strings (Depends-on): Update.
11105         * modules/sys_ioctl (Depends-on): Update.
11106         * modules/sys_select (Depends-on): Update.
11107         * modules/sys_socket (Depends-on): Update.
11108         * modules/sys_stat (Depends-on): Update.
11109         * modules/sys_time (Depends-on): Update.
11110         * modules/sys_wait (Depends-on): Update.
11111         * modules/termios (Depends-on): Update.
11112         * modules/time (Depends-on): Update.
11113         * modules/unistd (Depends-on): Update.
11114         * modules/wchar (Depends-on): Update.
11115         * modules/wctype-h (Depends-on): Update.
11116
11117         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
11118         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
11119         (Files, Makefile.am): Update.
11120         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
11121         * modules/argv-iter (Depends-on): Update.
11122         * modules/arpa_inet (Depends-on): Update.
11123         * modules/dirent (Depends-on): Update.
11124         * modules/fcntl-h (Depends-on): Update.
11125         * modules/fnmatch (Depends-on): Update.
11126         * modules/getopt-posix (Depends-on): Update.
11127         * modules/glob (Depends-on): Update.
11128         * modules/iconv-h (Depends-on): Update.
11129         * modules/inttypes-incomplete (Depends-on): Update.
11130         * modules/locale (Depends-on): Update.
11131         * modules/math (Depends-on): Update.
11132         * modules/netdb (Depends-on): Update.
11133         * modules/search (Depends-on): Update.
11134         * modules/signal (Depends-on): Update.
11135         * modules/spawn (Depends-on): Update.
11136         * modules/stdio (Depends-on): Update.
11137         * modules/stdlib (Depends-on): Update.
11138         * modules/string (Depends-on): Update.
11139         * modules/strings (Depends-on): Update.
11140         * modules/sys_socket (Depends-on): Update.
11141         * modules/sys_stat (Depends-on): Update.
11142         * modules/sys_time (Depends-on): Update.
11143         * modules/sys_times (Depends-on): Update.
11144         * modules/sys_utsname (Depends-on): Update.
11145         * modules/time (Depends-on): Update.
11146         * modules/unistd (Depends-on): Update.
11147         * modules/wchar (Depends-on): Update.
11148         * MODULES.html.sh (Support for building libraries and executables):
11149         Update.
11150
11151 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
11152
11153         Improvements on _Noreturn and related modules.
11154
11155         modules/_Exit-tests: test _Noreturn too
11156         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
11157         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
11158         (main): Use them.
11159
11160         stdnoreturn, stdnoreturn-tests: remove modules
11161         They're not needed here and a bit premature for use elsewhere.  See
11162         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
11163         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
11164         * tests/test-stdnoreturn.c: Remove files.
11165         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
11166         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
11167         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
11168         and using noreturn.
11169         * modules/openat, modules/sigpipe-die, modules/xalloc:
11170         * modules/xmemdup0, modules/xstrtol:
11171         Remove dependency on stdnoreturn.
11172
11173         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
11174         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
11175         Reparenthesize to avoid GCC warning.
11176         Support Microsoft's syntax.
11177         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
11178
11179         _Noreturn-tests: remove module
11180         * modules/_Noreturn-tests: Remove.
11181         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
11182         * tests/test-_Noreturn.c: Remove.
11183         * tests/test-stdnoreturn.c: Merge from the old
11184         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
11185
11186 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
11187
11188         _Noreturn, stdnoreturn, and related modules.
11189
11190         * top/maint.mk: Adjust to new noreturn support.
11191         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
11192         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
11193
11194         xalloc: use stdnoreturn.h
11195         * lib/xalloc.h: Include <stdnoreturn.h>.
11196         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11197         * modules/xalloc (Depends-on): Add stdnoreturn.
11198
11199         xstrtol: use stdnoreturn.h
11200         * lib/xstrtol.h: Include <stdnoreturn.h>.
11201         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11202         * modules/xstrtol (Depends-on): Add stdnoreturn.
11203
11204         xmemdup0: use stdnoreturn.h
11205         * lib/xmemdup0.h: Include <stdnoreturn.h>.
11206         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11207         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
11208
11209         sigpipe-die: use stdnoreturn.h
11210         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
11211         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11212         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
11213
11214         openat: use stdnoreturn.h
11215         * lib/openat.h: Include <stdnoreturn.h>.
11216         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11217         * modules/openat (Depends-on): Add stdnoreturn.
11218
11219         * lib/openat-die.c (openat_save_fail): Modernize comment.
11220
11221         * lib/xalloc-die.c (xalloc_die): Modernize comment.
11222
11223         * lib/glthread/thread.h: Modernize comment.
11224
11225         obstack: use _Noreturn
11226         * lib/obstack.c (__attribute__): Remove macro.
11227         (print_and_abort): Use _Noreturn.
11228
11229         c-stack: use _Noreturn
11230         * lib/c-stack.c (die, overflow_handler, segv_handler):
11231         Use _Noreturn rather than __attribute__((noreturn)).
11232
11233         argmatch-tests, exclude_tests: use _Noreturn
11234         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
11235         Remove.
11236         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
11237
11238         stdlib: use _Noreturn
11239         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
11240         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
11241         * modules/stdlib (Depends-on): Add _Noreturn.
11242         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
11243
11244         stdnoreturn-tests: new module
11245         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
11246
11247         stdnoreturn: new module
11248         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
11249         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
11250
11251         _Noreturn-tests: new module
11252         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
11253
11254         _Noreturn: new module
11255         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
11256         New section, mentioning it.
11257         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
11258
11259         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
11260
11261 2011-07-11  Eric Blake  <eblake@redhat.com>
11262
11263         ffs: new module
11264         * modules/ffs: New file.
11265         * m4/ffs.m4: Likewise.
11266         * lib/ffs.c: Likewise.
11267         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
11268         * modules/strings (Makefile.am): Substitute witness.
11269         (Depends-on): Add c++defs.
11270         * lib/strings.in.h (ffs): Declare.
11271         * modules/ffs-tests: New test file.
11272         * tests/test-ffs.c: Test new module.
11273         * MODULES.html.sh (Integer arithmetic functions): Mention it.
11274         * doc/posix-functions/ffs.texi (ffs): Likewise.
11275
11276         regex: avoid compiler warning
11277         * lib/regex.c (includes): Include <strings.h>, for use of
11278         strcasecmp in regcomp.c.
11279         Reported by Joachim Schmitz.
11280
11281 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
11282
11283         stdint: respect system's intmax_t if INTMAX_MAX
11284         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
11285         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
11286         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
11287         long but int64_t is long long, and where we will clash with the
11288         system intmax_t if we override it.  See
11289         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
11290         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
11291         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
11292         similarly for UINTMAX_C.
11293
11294 2011-07-08  Bruno Haible  <bruno@clisp.org>
11295
11296         pthread_sigmask tests: Avoid a compiler warning.
11297         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
11298         non-zero.
11299
11300         sigprocmask tests: A better way to avoid a compiler warning.
11301         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
11302         (main): Complain if system() returns non-zero.
11303         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
11304
11305 2011-07-08  Bruno Haible  <bruno@clisp.org>
11306
11307         pthread_sigmask: Work around IRIX bug.
11308         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
11309         bug.
11310         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
11311         there may be unblocked pending signals.
11312         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
11313
11314 2011-07-08  Bruno Haible  <bruno@clisp.org>
11315
11316         pthread_sigmask: Work around Cygwin bug.
11317         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
11318         bug.
11319         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
11320         the system's pthread_sigmask function.
11321         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
11322
11323 2011-07-08  Bruno Haible  <bruno@clisp.org>
11324
11325         pthread_sigmask: Work around bug in single-threaded implementation.
11326         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
11327         FreeBSD, HP-UX, Solaris bug.
11328         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
11329         * lib/pthread_sigmask.c: Include <stddef.h>.
11330         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
11331         the system's pthread_sigmask function.
11332         * modules/pthread_sigmask (configure.ac): Invoke
11333         gl_PREREQ_PTHREAD_SIGMASK.
11334         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
11335         HP-UX, Solaris.
11336
11337 2011-07-08  Eric Blake  <eblake@redhat.com>
11338
11339         test-sigprocmask: avoid compiler warning
11340         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
11341         * tests/test-sigprocmask.c (main): Use it to silence warning.
11342         Reported by Jim Meyering.
11343
11344         test-snprintf: avoid compiler warning
11345         * tests/test-snprintf.c (main): Avoid shadowed declaration.
11346         * tests/test-vsnprintf.c (main): Likewise.
11347         Reported by Jim Meyering.
11348
11349 2011-07-08  Bruno Haible  <bruno@clisp.org>
11350
11351         Tests for module 'pthread_sigmask'.
11352         * modules/pthread_sigmask-tests: New file.
11353         * tests/test-pthread_sigmask1.c: New file, based on
11354         tests/test-sigprocmask.c.
11355         * tests/test-pthread_sigmask2.c: New file.
11356
11357 2011-07-08  Jim Meyering  <meyering@redhat.com>
11358
11359         test-getopt.h: avoid warning about an unused variable
11360         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
11361
11362 2011-07-07  Jim Meyering  <meyering@redhat.com>
11363
11364         maint: reduce list of files exempt from sc_prohibit_leading_TABs
11365         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
11366         now that it no longer contains leading TABs.
11367         Remove unused "url=FIXME" statement.
11368
11369 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
11370
11371         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
11372         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
11373         When gl_THREADLIB is not in use, assume that the POSIX sematics
11374         are desired.  This is better for Emacs, which uses POSIX semantics
11375         on GNUish and/or POSIXish platforms, and does not use threads at
11376         all otherwise.
11377
11378         pthread_sigmask: fix typo when testing for libraries
11379         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
11380         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
11381
11382 2011-07-08  Eric Blake  <eblake@redhat.com>
11383
11384         fts: introduce FTS_NOATIME
11385         * lib/fts_.h (FTS_NOATIME): New bit flag.
11386         (FTS_OPTIONMASK): Adjust.
11387         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
11388         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
11389
11390 2011-07-08  Bruno Haible  <bruno@clisp.org>
11391
11392         Tests for module 'thread'.
11393         * modules/thread-tests: New file.
11394         * tests/test-thread_self.c: New file.
11395         * tests/test-thread_create.cc: New file.
11396
11397 2011-07-08  Bruno Haible  <bruno@clisp.org>
11398
11399         thread: Avoid gcc warnings when using gl_thread_self().
11400         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
11401         'void *'.
11402         (gl_thread_self_pointer): Update.
11403
11404 2011-07-07  Bruno Haible  <bruno@clisp.org>
11405
11406         signal-c++-tests: Check declaration of pthread_sigmask.
11407         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
11408         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
11409         $(LIB_PTHREAD_SIGMASK).
11410
11411 2011-07-07  Bruno Haible  <bruno@clisp.org>
11412
11413         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
11414         * lib/signal.in.h (pthread_sigmask): Override if
11415         REPLACE_PTHREAD_SIGMASK is 1.
11416         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
11417         REPLACE_PTHREAD_SIGMASK.
11418         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
11419         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
11420         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
11421         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
11422         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
11423
11424 2011-07-07  Bruno Haible  <bruno@clisp.org>
11425
11426         pthread_sigmask: Ensure declaration in <signal.h>.
11427         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
11428         include <pthread.h>.
11429         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
11430         problem.
11431
11432 2011-07-07  Bruno Haible  <bruno@clisp.org>
11433
11434         pthread_sigmask: Document the module.
11435         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
11436
11437 2011-07-07  Bruno Haible  <bruno@clisp.org>
11438
11439         pthread_sigmask: Follow gnulib conventions.
11440         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
11441         gl_PTHREAD_SIGMASK.
11442         * modules/pthread_sigmask (configure.ac): Update.
11443
11444 2011-07-07  Bruno Haible  <bruno@clisp.org>
11445
11446         pthread_sigmask: Make declaration C++ safe.
11447         * lib/signal.in.h: In two special conditions, just do an #include_next.
11448         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
11449         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
11450         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
11451         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
11452         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
11453         not REPLACE_PTHREAD_MASK.
11454         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
11455         not REPLACE_PTHREAD_MASK.
11456         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
11457
11458 2011-07-07  Bruno Haible  <bruno@clisp.org>
11459
11460         pthread_sigmask: Fix return value.
11461         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
11462         * lib/pthread_sigmask.c: New file.
11463         * modules/pthread_sigmask (Files): Add it.
11464         (configure.ac): Invoke AC_LIBOBJ.
11465
11466 2011-07-07  Eric Blake  <eblake@redhat.com>
11467
11468         getopt: more portable argv creation
11469         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
11470         const, use char arrays rather than strings.
11471         Suggested by Paul Eggert.
11472
11473 2011-07-07  Bruno Haible  <bruno@clisp.org>
11474
11475         Tests for module 'sigprocmask'.
11476         * modules/sigprocmask-tests: New file.
11477         * tests/test-sigprocmask.c: New file.
11478
11479 2011-07-07  Bruno Haible  <bruno@clisp.org>
11480
11481         float tests: Tweak.
11482         * tests/test-float.c (main): Tweak skip message.
11483
11484 2011-07-07  Eric Blake  <eblake@redhat.com>
11485
11486         getopt: avoid compiler warning during configure
11487         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
11488         assigning string literals to non-const pointer.
11489
11490         getopt-gnu: avoid crash in glibc getopt
11491         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
11492         * tests/test-getopt.h (test_getopt): Enhance test.
11493         * tests/test-getopt_long.h (test_getopt_long): Likewise.
11494         * doc/posix-functions/getopt.texi (getopt): Document it.
11495         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
11496         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11497         Likewise.
11498
11499 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
11500
11501         getopt: handle W; without long options in getopt [BZ #12922]
11502         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
11503         but no long options are defined, just return 'W'.
11504
11505 2011-07-07  Bruno Haible  <bruno@clisp.org>
11506
11507         Avoid literal tabs.
11508         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
11509         variable containing a tab instead of a literal tab.
11510         Reported by Jim Meyering.
11511
11512 2011-07-07  Bruno Haible  <bruno@clisp.org>
11513
11514         Comments.
11515         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
11516
11517 2011-07-06  Bruno Haible  <bruno@clisp.org>
11518
11519         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
11520         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
11521         <winsock2.h>.
11522         (rpl_fd_isset, FD_ISSET): New definitions, copied from
11523         lib/sys_socket.in.h.
11524         (close, gethostname): Hide declarations from <winsock2.h>.
11525         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
11526         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
11527         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
11528         (select): Don't override if gnulib's <sys/select.h> was already
11529         included.
11530         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
11531         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
11532         setsockopt, shutdown, select): Tweak indentation.
11533
11534 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
11535
11536         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
11537         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
11538         in an application that does not use the sys_select module.
11539
11540 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
11541
11542         poll: do not return 0 on timeout=-1
11543         * lib/poll.c: Loop with yield if no events occured
11544
11545 2011-07-06  Eric Blake  <eblake@redhat.com>
11546
11547         pthread_sigmask: always replace when not using pthread
11548         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
11549         replacement when using some threading other than pthread.  Fix
11550         logic bug.
11551
11552 2011-07-06  Bruno Haible  <bruno@clisp.org>
11553
11554         Comments.
11555         * m4/printf.m4: Update comments about mingw.
11556
11557 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
11558
11559         sys_select: define sigset_t more portably
11560         * lib/sys_select.in.h: Always include <sys/types.h>, since
11561         we now need sigset_t and mingw defines it there.
11562         Include <signal.h> before split inclusion guard, to avoid
11563         mishaps on Solaris, whose <signal.h> eventually includes us.
11564         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
11565         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
11566         which come from ...
11567         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
11568         gl_CHECK_TYPE_SIGSET_T.
11569         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
11570         does the real work.
11571         * modules/sys_select (Depends-on): Add 'signal'.
11572
11573         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
11574         Suggested by Bruno Haible.
11575
11576         pselect: Use pthread_sigmask, not sigprocmask.
11577         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
11578         multithreaded apps better than sigprocmask does.
11579         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
11580         sigprocmask directly.
11581
11582 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
11583
11584         * lib/pselect.c (pselect): Use plain name, without "rpl_".
11585         Don't #undef,  since we don't need any underlying pselect.
11586         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
11587         (Depends-on): Add select.
11588         (Link): Add $(LIBSOCKET).
11589         These changes suggested by Bruno Haible.
11590
11591         pselect: document better
11592         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
11593         * doc/posix-functions/pselect.texi (pselect): Document new module.
11594
11595         pthread_sigmask: new module
11596         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
11597         * doc/posix-functions/pthread_sigmask.texi: Document new module.
11598         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
11599         This is done only as a macro; I don't know how well that'll
11600         work for C++.  Move <sys/types.h> include before the include_next,
11601         to avoid mishap on Solaris.
11602         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
11603         * modules/signal (Makefile.am): Substitute the check's results.
11604         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
11605
11606         test-pselect: new module
11607         * modules/pselect-tests, tests/test-pselect.c: New files.
11608         * tests/test-select.c, tests/test-sys_select-c++.cc:
11609         If TEST_PSELECT is defined, test pselect instead of testing select.
11610
11611         * tests/test-sys_select.c (sigset_t): Test for it, too.
11612         Suggested by Bruno Haible.
11613
11614 2011-07-05  Eric Blake  <eblake@redhat.com>
11615
11616         snprintf: guarantee %1$d, for libintl
11617         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
11618         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
11619         * doc/posix-functions/snprintf.texi (snprintf): Update.
11620         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
11621         * tests/test-snprintf.c (main): Enhance test.
11622         * tests/test-vsnprintf.c (main): Likewise.
11623
11624 2011-07-05  Jim Meyering  <meyering@redhat.com>
11625
11626         maint: exempt stdio-read.c and stdio-write.c from the cppi check
11627         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
11628         per Bruno's request, to accommodate this idiom (no space after "#")
11629         even when the function is inside an #if block:
11630         char *
11631         gets (char *s)
11632         #undef gets
11633         {
11634           ...
11635         }
11636
11637 2011-07-04  Jim Meyering  <meyering@redhat.com>
11638
11639         maint: indent with spaces, not TABs, and add a rule to check this
11640         * tests/test-userspec.c: Indent with spaces, not TABs.
11641         * tests/test-argp.c: Likewise.
11642         * tests/test-c-stack2.sh: Likewise.
11643         * tests/test-parse-duration.sh: Likewise
11644         * m4/strtod.m4: Likewise.
11645         * m4/alloca.m4: Likewise.
11646         * m4/pselect.m4: Likewise.
11647         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
11648
11649 2011-07-03  Jim Meyering  <meyering@redhat.com>
11650
11651         maint.mk: correct omissions in prohibit_argmatch_without_use check
11652         This rule would mistakenly report that argmatch.h is included without
11653         use even when both the argmatch and invalid_arg macro were used.
11654         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
11655         of argmatch and invalid_arg.
11656
11657 2011-07-03  Bruno Haible  <bruno@clisp.org>
11658
11659         Comments about EINTR.
11660         * lib/safe-read.h: Explain the purpose of this module.
11661         * lib/safe-write.h: Likewise.
11662         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
11663         module.
11664         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
11665         module.
11666         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11667
11668 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
11669
11670         xnanosleep: Rewrite to use new dtotimespec module.
11671         It has the conversion code that used to be in xnanosleep.
11672         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
11673         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
11674         (TIME_T_MAX): Remove.
11675         (xnanosleep): Rewrite in terms of dtotimespec.
11676         * modules/xnanosleep (Depends-on): Add dtotimespec.
11677         Remove intprops, stdbool.
11678
11679         timespec-add, timespec-sub: new modules
11680         * lib/timespec.h (timespec_add, timespec_sub): New decls.
11681         * lib/timespec-add.c, lib/timespec-sub.c:
11682         * modules/timespec-add, modules/timespec-sub: New files.
11683
11684         dtotimespec: new module
11685         * lib/timespec.h (dtotimespec): New decl.
11686         * lib/dtotimespec.c, modules/dtotimespec: New files.
11687
11688         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
11689
11690         pselect: new module
11691         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
11692         (pselect): New decls.
11693         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
11694         since the standard pselect decl uses 'restrict'.
11695         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
11696         HAVE_PSELECT, REPLACE_PSELECT.
11697         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
11698         HAVE_PSELECT, REPLACE_PSELECT.
11699         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
11700
11701         sys_select: don't depend on sys_socket
11702         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
11703         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
11704         This fix works on GNU and GNU-like platforms, but has not been tested
11705         on native Windows.
11706         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
11707         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
11708         gl_HEADER_SYS_SOCKET.
11709         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
11710         gl_PREREQ_SYS_H_WINSOCK2.
11711
11712 2011-06-29  Eric Blake  <eblake@redhat.com>
11713
11714         pipe2: fix C89 compile problem
11715         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
11716         Reported by Bruno Haible.
11717
11718         pipe, pipe2: don't corrupt fd on error
11719         * lib/pipe.c (pipe): Leave fd unchanged on error.
11720         * lib/pipe2.c (pipe2): Likewise.
11721         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
11722         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
11723
11724 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
11725
11726         mmap-anon: do not use regular expressions inadvertently
11727         * m4/mmap-anon.m4: Remove trailing period from strings sought
11728         in the output.
11729
11730 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
11731
11732         nanosleep: fix integer overflow problem
11733         * lib/nanosleep.c (my_usleep): Don't assume signed integer
11734         arithmetic wraps around on overflow.
11735
11736         nanosleep: simplify carrying
11737         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
11738         first call to the underyling nanosleep, not for the last one.
11739         This doesn't fix any bugs, but it simplifies the computation of
11740         the remaining delay.  Found while auditing integer overflow issues.
11741
11742         dup2: remove test for existence of fcntl
11743         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
11744         "#if HAVE_FCNTL", in the configure-time test program.
11745         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
11746         and therefore speeds up "configure" a bit.  Found while
11747         adding the dup2 module to Emacs.
11748
11749 2011-06-24  Eric Blake  <eblake@redhat.com>
11750
11751         maint.mk: enhance useless header checks
11752         * top/maint.mk (_sc_header_without_use): Check both include
11753         styles.
11754         (sc_prohibit_assert_without_use)
11755         (sc_prohibit_close_stream_without_use)
11756         (sc_prohibit_getopt_without_use)
11757         (sc_prohibit_quotearg_without_use)
11758         (sc_prohibit_quote_without_use)
11759         (sc_prohibit_long_options_without_use)
11760         (sc_prohibit_inttostr_without_use)
11761         (sc_prohibit_ignore_value_without_use)
11762         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
11763         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
11764         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
11765         (sc_prohibit_hash_pjw_without_use)
11766         (sc_prohibit_safe_read_without_use)
11767         (sc_prohibit_argmatch_without_use)
11768         (sc_prohibit_canonicalize_without_use)
11769         (sc_prohibit_root_dev_ino_without_use)
11770         (sc_prohibit_openat_without_use)
11771         (sc_prohibit_c_ctype_without_use)
11772         (sc_prohibit_signal_without_use)
11773         (sc_prohibit_stdio--_without_use)
11774         (sc_prohibit_stdio-safer_without_use)
11775         (sc_prohibit_strings_without_use)
11776         (sc_prohibit_intprops_without_use)
11777         (sc_prohibit_stddef_without_use)
11778         (sc_prohibit_xfreopen_without_use): Update clients.
11779
11780 2011-06-24  Jim Meyering  <meyering@redhat.com>
11781
11782         syntax-check: keep one maint.mk rule in sync with its header
11783         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
11784         of the bug Eric has just fixed, with today's commit 25e4c2ec.
11785         I prefer to avoid temporary files here, so use <(...), but that
11786         is not supported by /bin/sh, so...
11787         (SHELL): Define to /bin/bash.
11788
11789 2011-06-24  Eric Blake  <eblake@redhat.com>
11790
11791         maint.mk: update sc_prohibit_intprops_without_use
11792         * top/maint.mk (_intprops_names): Match recent changes.
11793
11794 2011-06-24  Bruno Haible  <bruno@clisp.org>
11795
11796         strerror-override: No-op tweak.
11797         * lib/strerror-override.h (strerror_override): Reorder conditions,
11798         for consistency with lib/strerror-override.c.
11799
11800 2011-06-23  Eric Blake  <eblake@redhat.com>
11801
11802         maint.mk: test further PATH_MAX issues
11803         * top/maint.mk (sc_prohibit_path_max_array): Rename...
11804         (sc_prohibit_path_max_allocation): ...and also test alloca.
11805         Suggested by Jim Meyering.
11806
11807 2011-06-22  Eric Blake  <eblake@redhat.com>
11808
11809         maint.mk: add syntax-check to avoid char[PATH_MAX]
11810         * top/maint.mk (sc_prohibit_path_max_array): New rule.
11811
11812         stat: be robust to PATH_MAX definition
11813         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
11814         * modules/stat (Depends-on): Add verify.
11815
11816         link: work around IRIX bug
11817         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
11818         * lib/link.c (rpl_link): Work around it.
11819         * tests/test-link.h (test_link): Enhance test.
11820         * doc/posix-functions/link.texi (link): Document the bug.
11821
11822         getopt: silence clang warning
11823         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
11824         dereference.
11825         Reported by Gustavo Martin Domato.
11826
11827 2011-06-22  Jim Meyering  <meyering@redhat.com>
11828
11829         bootstrap: do not insert a blank line into each .gitignore file
11830         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
11831
11832 2011-06-21  Eric Blake  <eblake@redhat.com>
11833
11834         perror: test for output mismatch
11835         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
11836         perror on IRIX.
11837
11838         strerror_r: fix OpenBSD behavior on out-of-range
11839         * lib/strerror_r.c (strerror_r): Always use maximal string.
11840         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
11841
11842         strerror_r: fix OpenBSD behavior on 0
11843         * lib/strerror-override.c (strerror_override): Also override 0
11844         when needed.
11845         * lib/strerror-override.h (strerror_override): Likewise.
11846         * lib/strerror.c (strerror): Simplify, now that 0 override is done
11847         earlier.
11848         * lib/strerror_r.c (strerror_r): Likewise.
11849         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
11850         behavior...
11851         (gl_FUNC_STRERROR_0): ...into new macro.
11852         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
11853         is overridden.
11854         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
11855         * modules/strerror-override (Files): Add strerror.m4.
11856         (configure.ac): Also provide override for 0 when needed.
11857         * doc/posix-functions/strerror.texi (strerror): Document this.
11858         * doc/posix-functions/perror.texi (perror): Likewise.
11859
11860         perror: adjust array size
11861         * modules/perror (Depends-on): Add strerror-override.
11862         * lib/perror.c (perror): Use it to avoid magic number.
11863
11864         strerror-override: reduce size
11865         * lib/strerror-override.c (strerror_override): Use fewer lines.
11866
11867 2011-06-20  Bruno Haible  <bruno@clisp.org>
11868
11869         pathmax: Ensure correct value for PATH_MAX on HP-UX.
11870         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
11871
11872 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
11873
11874         alloca: port to compilers that can optimize like GCC 4.6.0
11875         * lib/alloca.c (find_stack_direction): New signature, taken from
11876         Autoconf git.  This works with GCC 4.6.0.  This code should never
11877         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
11878         be used with other compilers that optimize as well as GCC 4.6.0 does.
11879         (alloca): Adjust to new signature.
11880         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
11881         New macro, which patches Autoconf in a similar way.
11882
11883         c-stack: stop worrying about stack direction
11884         * lib/c-stack.c (find_stack_direction): Remove.
11885         (segv_handler): Don't worry about stack direction growth, as it's
11886         too much of a pain to configure this correctly, given how compilers
11887         are optimizing-away our stack-growth detection code.  Instead, assume
11888         that any access to just before or just after the stack is OK.
11889         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
11890         Don't require AC_FUNC_ALLOCA; no longer needed.
11891
11892 2011-06-20  Eric Blake  <eblake@redhat.com>
11893
11894         test-stat: don't allocate PATH_MAX bytes
11895         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
11896         PATH_MAX-sized buffer.
11897         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
11898         * modules/stat-tests (Depends-on): Likewise.
11899         * tests/test-fstatat.c (includes): Drop pathmax.h.
11900         * tests/test-stat.c (includes): Likewise.
11901         Reported by Bruno Haible.
11902
11903 2011-06-20  Bruno Haible  <bruno@clisp.org>
11904
11905         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
11906         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
11907         * lib/float.c: New file.
11908         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
11909         REPLACE_FLOAT_LDBL.
11910         * modules/float (Files): Add lib/float.c.
11911         (configure.ac): Invoke AC_LIBOBJ.
11912         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
11913
11914 2011-06-20  Bruno Haible  <bruno@clisp.org>
11915
11916         Tests for module 'float'.
11917         * modules/float-tests: New file.
11918         * tests/test-float.c: New file.
11919
11920 2011-06-19  Bruno Haible  <bruno@clisp.org>
11921
11922         isinf: Coding style.
11923         * lib/isinf.c: Use GNU coding style.
11924
11925 2011-06-19  Bruno Haible  <bruno@clisp.org>
11926
11927         linkat test: Avoid test failure on AIX 7.1.
11928         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
11929         * tests/test-link.h (test_link): Likewise.
11930
11931 2011-06-19  Bruno Haible  <bruno@clisp.org>
11932
11933         pread test: Avoid test failure on OpenBSD 4.9.
11934         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
11935
11936 2011-06-19  Bruno Haible  <bruno@clisp.org>
11937
11938         sprintf-posix: Fix test failure on AIX 7.1.
11939         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
11940         * doc/posix-functions/dprintf.texi: Mention limited precision problem
11941         on AIX.
11942         * doc/posix-functions/fprintf.texi: Likewise.
11943         * doc/posix-functions/printf.texi: Likewise.
11944         * doc/posix-functions/snprintf.texi: Likewise.
11945         * doc/posix-functions/sprintf.texi: Likewise.
11946         * doc/posix-functions/vdprintf.texi: Likewise.
11947         * doc/posix-functions/vfprintf.texi: Likewise.
11948         * doc/posix-functions/vprintf.texi: Likewise.
11949         * doc/posix-functions/vsnprintf.texi: Likewise.
11950         * doc/posix-functions/vsprintf.texi: Likewise.
11951
11952 2011-06-19  Bruno Haible  <bruno@clisp.org>
11953
11954         roundl-ieee: Fix test failure on AIX 7.1.
11955         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
11956         * doc/posix-functions/roundl.texi: Mention problem with negative
11957         arguments.
11958
11959 2011-06-19  Bruno Haible  <bruno@clisp.org>
11960
11961         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
11962         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
11963         * doc/posix-functions/round.texi: Mention problem with negative
11964         arguments.
11965         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
11966
11967 2011-06-19  Bruno Haible  <bruno@clisp.org>
11968
11969         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
11970         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
11971         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
11972         * doc/posix-functions/roundf.texi: Mention problem with negative
11973         arguments.
11974         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
11975
11976 2011-06-19  Bruno Haible  <bruno@clisp.org>
11977
11978         ceilf-ieee: Work around bug on MacOS X 10.5.
11979         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
11980
11981         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
11982         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
11983         IEEE compliant, avoid compiler optimizations.
11984         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
11985         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
11986         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
11987         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
11988         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
11989         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
11990         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11991         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
11992         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
11993         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
11994
11995 2011-06-19  Bruno Haible  <bruno@clisp.org>
11996
11997         ceilf-ieee: Work around bug on AIX 7.1.
11998         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
11999         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
12000
12001 2011-06-19  Bruno Haible  <bruno@clisp.org>
12002
12003         ceil-ieee: Work around bug on AIX 7.1.
12004         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
12005         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
12006
12007 2011-06-18  Bruno Haible  <bruno@clisp.org>
12008
12009         fsync test: Avoid test failure on MacOS X and AIX.
12010         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
12011         EINVAL.
12012
12013 2011-06-18  Bruno Haible  <bruno@clisp.org>
12014
12015         openat, fdopendir tests: Fix link errors.
12016         * modules/openat-tests (Depends-on): Add progname.
12017         * modules/fdopendir-tests (Depends-on): Likewise.
12018         * tests/test-fchownat.c: Include progname.h.
12019         (main): Call set_program_name.
12020         * tests/test-fstatat.c: Include progname.h.
12021         (main): Call set_program_name.
12022         * tests/test-mkdirat.c: Include progname.h.
12023         (main): Call set_program_name.
12024         * tests/test-openat.c: Include progname.h.
12025         (main): Call set_program_name.
12026         * tests/test-unlinkat.c: Include progname.h.
12027         (main): Call set_program_name.
12028         * tests/test-fdopendir.c: Include progname.h.
12029         (main): Call set_program_name.
12030
12031 2011-06-18  Bruno Haible  <bruno@clisp.org>
12032
12033         Doc update.
12034         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
12035         HP-UX.
12036         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
12037
12038 2011-06-18  Bruno Haible  <bruno@clisp.org>
12039
12040         getcwd tests: Avoid compilation error on HP-UX 11.31.
12041         * modules/getcwd-tests (Depends-on): Add pathmax.
12042         * tests/test-getcwd.c: Include pathmax.h.
12043
12044 2011-06-18  Bruno Haible  <bruno@clisp.org>
12045
12046         isfinite, isinf: Fix link error on AIX 6 and 7.
12047         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
12048         needed, also test the macro with a 'float' argument.
12049         * m4/isinf.m4 (gl_ISINF): Likewise.
12050
12051 2011-06-18  Bruno Haible  <bruno@clisp.org>
12052
12053         getloadavg: Don't clobber LIBS. Regression from previous commit.
12054         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
12055         AC_CHECK_LIB from here...
12056         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
12057         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
12058         gl_func_getloadavg_done.
12059         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12060
12061 2011-06-18  Bruno Haible  <bruno@clisp.org>
12062
12063         clean-temp: Improve documentation.
12064         * lib/clean-temp.h: Explain better how to use this module.
12065         Reported by John Darrington <john@darrington.wattle.id.au>.
12066
12067 2011-06-17  Bruno Haible  <bruno@clisp.org>
12068
12069         pread, pwrite: Avoid cc warning on AIX.
12070         * lib/unistd.in.h (pread): Undefine before defining as a macro.
12071         (pwrite): Likewise.
12072
12073 2011-06-17  Bruno Haible  <bruno@clisp.org>
12074
12075         spawn-pipe tests: Fix link error.
12076         * tests/test-spawn-pipe-child.c: Undefine fprintf.
12077         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12078
12079 2011-06-17  Bruno Haible  <bruno@clisp.org>
12080
12081         Tests: Remove unnecessary dependency.
12082         * modules/canonicalize-tests (Depends-on): Remove progname.
12083         * modules/chown-tests (Depends-on): Likewise.
12084         * modules/dirname-tests (Depends-on): Likewise.
12085         * modules/fdopendir-tests (Depends-on): Likewise.
12086         * modules/fdutimensat-tests (Depends-on): Likewise.
12087         * modules/hash-tests (Depends-on): Likewise.
12088         * modules/lchown-tests (Depends-on): Likewise.
12089         * modules/linkat-tests (Depends-on): Likewise.
12090         * modules/renameat-tests (Depends-on): Likewise.
12091         * modules/spawn-pipe-tests (Depends-on): Likewise.
12092         * modules/utimensat-tests (Depends-on): Likewise.
12093
12094 2011-06-17  Bruno Haible  <bruno@clisp.org>
12095
12096         spawn-pipe tests: Fix link error.
12097         * tests/test-spawn-pipe-child.c: Undefine fflush.
12098
12099 2011-06-17  Bruno Haible  <bruno@clisp.org>
12100
12101         Fix tests link errors.
12102         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
12103         * modules/chown-tests (Makefile.am): Don't link test-chown with
12104         LIBINTL.
12105         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
12106         LIBINTL.
12107         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
12108         LIBINTL.
12109         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
12110         LIBINTL.
12111
12112 2011-06-16  Bruno Haible  <bruno@clisp.org>
12113
12114         crypto/gc-sha1: Fix recent regression.
12115         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
12116         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
12117
12118         crypto/gc-md5: Fix recent regression.
12119         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
12120
12121         crypto/gc-md4: Fix recent regression.
12122         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
12123         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
12124
12125         crypto/gc-arctwo: Fix recent regression.
12126         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
12127         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
12128
12129         crypto/gc-rijndael: Fix recent regression.
12130         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
12131         (configure.ac): Invoke AC_LIBOBJ here.
12132         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
12133         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12134
12135         crypto/gc-hmac-sha1: Fix recent regression.
12136         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
12137         (configure.ac): Invoke AC_LIBOBJ here.
12138         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
12139         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12140
12141         crypto/gc-hmac-md5: Fix recent regression.
12142         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
12143         (configure.ac): Invoke AC_LIBOBJ here.
12144         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
12145         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12146
12147         crypto/gc-des: Fix recent regression.
12148         * modules/crypto/gc-des (Files): Remove m4/des.m4.
12149         (configure.ac): Invoke AC_LIBOBJ here.
12150         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
12151         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12152
12153         crypto/gc-arcfour: Fix recent regression.
12154         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
12155         (configure.ac): Invoke AC_LIBOBJ here.
12156         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
12157         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12158
12159 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
12160
12161         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
12162         After the 2011-05-21 change, this macro requires
12163         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
12164         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
12165
12166 2011-06-16  Bruno Haible  <bruno@clisp.org>
12167
12168         fprintftime: Move AC_LIBOBJ invocations to module description.
12169         * m4/fprintftime.m4: Remove file.
12170         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
12171         (configure.ac): Remove gl_FPRINTFTIME call.
12172         (Makefile.am): Augment lib_SOURCES.
12173         Reported by Jim Meyering.
12174
12175 2011-06-16  Bruno Haible  <bruno@clisp.org>
12176
12177         tmpfile-safer: Finish 2011-05-23 commit.
12178         * m4/stdio-safer.m4: Really remove file.
12179         Reported by Jim Meyering.
12180
12181 2011-06-16  Bruno Haible  <bruno@clisp.org>
12182
12183         syntax-check: Fix typo.
12184         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
12185         printf-posix.m4.
12186         Reported by Jim Meyering.
12187
12188 2011-06-13  Jim Meyering  <meyering@redhat.com>
12189
12190         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
12191         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
12192
12193 2011-05-23  Bruno Haible  <bruno@clisp.org>
12194
12195         yesno: Move AC_LIBOBJ invocations to module description.
12196         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
12197         * modules/yesno (Makefile.am): Augment lib_SOURCES.
12198
12199 2011-05-23  Bruno Haible  <bruno@clisp.org>
12200
12201         xstrtol: Move AC_LIBOBJ invocations to module description.
12202         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
12203         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
12204
12205 2011-05-23  Bruno Haible  <bruno@clisp.org>
12206
12207         xstrtold: Move AC_LIBOBJ invocations to module description.
12208         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
12209         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
12210
12211 2011-05-23  Bruno Haible  <bruno@clisp.org>
12212
12213         xstrtod: Move AC_LIBOBJ invocations to module description.
12214         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
12215         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
12216
12217 2011-05-23  Bruno Haible  <bruno@clisp.org>
12218
12219         xnanosleep: Move AC_LIBOBJ invocations to module description.
12220         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
12221         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
12222
12223 2011-05-23  Bruno Haible  <bruno@clisp.org>
12224
12225         xgetcwd: Move AC_LIBOBJ invocations to module description.
12226         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
12227         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
12228
12229 2011-05-23  Bruno Haible  <bruno@clisp.org>
12230
12231         xalloc: Move AC_LIBOBJ invocations to module description.
12232         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
12233         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
12234
12235 2011-05-23  Bruno Haible  <bruno@clisp.org>
12236
12237         write-any-file: Move AC_LIBOBJ invocations to module description.
12238         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
12239         invocation.
12240         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
12241
12242 2011-05-23  Bruno Haible  <bruno@clisp.org>
12243
12244         utimens: Move AC_LIBOBJ invocations to module description.
12245         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
12246         * modules/utimens (Makefile.am): Augment lib_SOURCES.
12247
12248 2011-05-23  Bruno Haible  <bruno@clisp.org>
12249
12250         utimecmp: Move AC_LIBOBJ invocations to module description.
12251         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
12252         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
12253
12254 2011-05-23  Bruno Haible  <bruno@clisp.org>
12255
12256         userspec: Move AC_LIBOBJ invocations to module description.
12257         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
12258         * modules/userspec (Makefile.am): Augment lib_SOURCES.
12259
12260 2011-05-23  Bruno Haible  <bruno@clisp.org>
12261
12262         unlinkdir: Move AC_LIBOBJ invocations to module description.
12263         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
12264         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
12265
12266 2011-05-23  Bruno Haible  <bruno@clisp.org>
12267
12268         unistd-safer: Move AC_LIBOBJ invocations to module description.
12269         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
12270         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
12271
12272 2011-05-23  Bruno Haible  <bruno@clisp.org>
12273
12274         tempname: Move AC_LIBOBJ invocations to module description.
12275         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
12276         * modules/tempname (Makefile.am): Augment lib_SOURCES.
12277
12278 2011-05-23  Bruno Haible  <bruno@clisp.org>
12279
12280         strftime: Move AC_LIBOBJ invocations to module description.
12281         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
12282         * modules/strftime (Makefile.am): Augment lib_SOURCES.
12283
12284 2011-05-23  Bruno Haible  <bruno@clisp.org>
12285
12286         stdlib-safer: Move AC_LIBOBJ invocations to module description.
12287         * m4/stdlib-safer.m4: Remove file.
12288         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
12289         (configure.ac): Remove gl_STDLIB_SAFER call.
12290         (Makefile.am): Augment lib_SOURCES.
12291
12292 2011-05-23  Bruno Haible  <bruno@clisp.org>
12293
12294         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
12295         * m4/stdio-safer.m4: Remove file.
12296         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
12297         (configure.ac): Remove gl_TMPFILE_SAFER call.
12298         (Makefile.am): Augment lib_SOURCES.
12299
12300 2011-05-23  Bruno Haible  <bruno@clisp.org>
12301
12302         popen-safer: Move AC_LIBOBJ invocations to module description.
12303         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
12304         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
12305         (configure.ac): Remove gl_POPEN_SAFER call.
12306         (Makefile.am): Augment lib_SOURCES.
12307
12308 2011-05-23  Bruno Haible  <bruno@clisp.org>
12309
12310         freopen-safer: Move AC_LIBOBJ invocations to module description.
12311         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
12312         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
12313         (configure.ac): Remove gl_FREOPEN_SAFER call.
12314         (Makefile.am): Augment lib_SOURCES.
12315
12316 2011-05-23  Bruno Haible  <bruno@clisp.org>
12317
12318         fopen-safer: Move AC_LIBOBJ invocations to module description.
12319         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
12320         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
12321         (configure.ac): Remove gl_FOPEN_SAFER call.
12322         (Makefile.am): Augment lib_SOURCES.
12323
12324 2011-05-23  Bruno Haible  <bruno@clisp.org>
12325
12326         crypto/sha512: Move AC_LIBOBJ invocations to module description.
12327         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
12328         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
12329
12330 2011-05-23  Bruno Haible  <bruno@clisp.org>
12331
12332         crypto/sha256: Move AC_LIBOBJ invocations to module description.
12333         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
12334         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
12335
12336 2011-05-23  Bruno Haible  <bruno@clisp.org>
12337
12338         crypto/sha1: Move AC_LIBOBJ invocations to module description.
12339         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
12340         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
12341
12342 2011-05-23  Bruno Haible  <bruno@clisp.org>
12343
12344         settime: Move AC_LIBOBJ invocations to module description.
12345         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
12346         * modules/settime (Makefile.am): Augment lib_SOURCES.
12347
12348 2011-05-23  Bruno Haible  <bruno@clisp.org>
12349
12350         savedir: Move AC_LIBOBJ invocations to module description.
12351         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
12352         * modules/savedir (Makefile.am): Augment lib_SOURCES.
12353
12354 2011-05-23  Bruno Haible  <bruno@clisp.org>
12355
12356         save-cwd: Move AC_LIBOBJ invocations to module description.
12357         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
12358         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
12359
12360 2011-05-23  Bruno Haible  <bruno@clisp.org>
12361
12362         same: Move AC_LIBOBJ invocations to module description.
12363         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
12364         * modules/same (Makefile.am): Augment lib_SOURCES.
12365
12366 2011-05-23  Bruno Haible  <bruno@clisp.org>
12367
12368         safe-write: Move AC_LIBOBJ invocations to module description.
12369         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
12370         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
12371         instead of gl_SAFE_WRITE.
12372         (Makefile.am): Augment lib_SOURCES.
12373
12374 2011-05-23  Bruno Haible  <bruno@clisp.org>
12375
12376         safe-read: Move AC_LIBOBJ invocations to module description.
12377         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
12378         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
12379         of gl_SAFE_READ.
12380         (Makefile.am): Augment lib_SOURCES.
12381
12382 2011-05-23  Bruno Haible  <bruno@clisp.org>
12383
12384         safe-alloc: Move AC_LIBOBJ invocations to module description.
12385         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
12386         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
12387
12388 2011-05-23  Bruno Haible  <bruno@clisp.org>
12389
12390         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
12391         * m4/rijndael.m4: Remove file.
12392         * modules/crypto/rijndael (Files): Remove it.
12393         (configure.ac): Remove gl_RIJNDAEL call.
12394         (Makefile.am): Augment lib_SOURCES.
12395
12396 2011-05-23  Bruno Haible  <bruno@clisp.org>
12397
12398         readtokens: Move AC_LIBOBJ invocations to module description.
12399         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
12400         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
12401
12402 2011-05-23  Bruno Haible  <bruno@clisp.org>
12403
12404         read-file: Move AC_LIBOBJ invocations to module description.
12405         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
12406         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
12407         of gl_FUNC_READ_FILE.
12408         (Makefile.am): Augment lib_SOURCES.
12409
12410 2011-05-23  Bruno Haible  <bruno@clisp.org>
12411
12412         quotearg: Move AC_LIBOBJ invocations to module description.
12413         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
12414         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
12415
12416 2011-05-23  Bruno Haible  <bruno@clisp.org>
12417
12418         quote: Move AC_LIBOBJ invocations to module description.
12419         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
12420         * modules/quote (Makefile.am): Augment lib_SOURCES.
12421
12422 2011-05-23  Bruno Haible  <bruno@clisp.org>
12423
12424         posixver: Move AC_LIBOBJ invocations to module description.
12425         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
12426         * modules/posixver (Makefile.am): Augment lib_SOURCES.
12427
12428 2011-05-23  Bruno Haible  <bruno@clisp.org>
12429
12430         posixtm: Move AC_LIBOBJ invocations to module description.
12431         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
12432         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
12433
12434 2011-05-23  Bruno Haible  <bruno@clisp.org>
12435
12436         physmem: Move AC_LIBOBJ invocations to module description.
12437         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
12438         * modules/physmem (Makefile.am): Augment lib_SOURCES.
12439
12440 2011-05-23  Bruno Haible  <bruno@clisp.org>
12441
12442         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
12443         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
12444         invocation.
12445         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
12446
12447 2011-05-23  Bruno Haible  <bruno@clisp.org>
12448
12449         mpsort: Move AC_LIBOBJ invocations to module description.
12450         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
12451         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
12452
12453 2011-05-23  Bruno Haible  <bruno@clisp.org>
12454
12455         modechange: Move AC_LIBOBJ invocations to module description.
12456         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
12457         * modules/modechange (Makefile.am): Augment lib_SOURCES.
12458
12459 2011-05-23  Bruno Haible  <bruno@clisp.org>
12460
12461         mkdir-p: Move AC_LIBOBJ invocations to module description.
12462         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
12463         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
12464
12465 2011-05-23  Bruno Haible  <bruno@clisp.org>
12466
12467         mkancesdirs: Move AC_LIBOBJ invocations to module description.
12468         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
12469         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
12470
12471 2011-05-23  Bruno Haible  <bruno@clisp.org>
12472
12473         mgetgroups: Move AC_LIBOBJ invocations to module description.
12474         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
12475         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
12476
12477 2011-05-23  Bruno Haible  <bruno@clisp.org>
12478
12479         memxor: Move AC_LIBOBJ invocations to module description.
12480         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
12481         * modules/memxor (Makefile.am): Augment lib_SOURCES.
12482
12483 2011-05-23  Bruno Haible  <bruno@clisp.org>
12484
12485         memcoll: Move AC_LIBOBJ invocations to module description.
12486         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
12487         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
12488
12489 2011-05-23  Bruno Haible  <bruno@clisp.org>
12490
12491         memcasecmp: Move AC_LIBOBJ invocations to module description.
12492         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
12493         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
12494
12495 2011-05-23  Bruno Haible  <bruno@clisp.org>
12496
12497         crypto/md5: Move AC_LIBOBJ invocations to module description.
12498         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
12499         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
12500
12501 2011-05-23  Bruno Haible  <bruno@clisp.org>
12502
12503         crypto/md4: Move AC_LIBOBJ invocations to module description.
12504         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
12505         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
12506
12507 2011-05-23  Bruno Haible  <bruno@clisp.org>
12508
12509         crypto/md2: Move AC_LIBOBJ invocations to module description.
12510         * m4/md2.m4: Remove file.
12511         * modules/crypto/md2 (Files): Remove it.
12512         (configure.ac): Remove gl_MD2 call.
12513         (Makefile.am): Augment lib_SOURCES.
12514
12515 2011-05-23  Bruno Haible  <bruno@clisp.org>
12516
12517         long-options: Move AC_LIBOBJ invocations to module description.
12518         * m4/long-options.m4: Remove file.
12519         * modules/long-options (Files): Remove it.
12520         (configure.ac): Remove gl_LONG_OPTIONS call.
12521         (Makefile.am): Augment lib_SOURCES.
12522
12523 2011-05-23  Bruno Haible  <bruno@clisp.org>
12524
12525         i-ring: Move AC_LIBOBJ invocations to module description.
12526         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
12527         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
12528
12529 2011-05-23  Bruno Haible  <bruno@clisp.org>
12530
12531         idcache: Move AC_LIBOBJ invocations to module description.
12532         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
12533         * modules/idcache (Makefile.am): Augment lib_SOURCES.
12534
12535 2011-05-23  Bruno Haible  <bruno@clisp.org>
12536
12537         human: Move AC_LIBOBJ invocations to module description.
12538         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
12539         * modules/human (Makefile.am): Augment lib_SOURCES.
12540
12541 2011-05-23  Bruno Haible  <bruno@clisp.org>
12542
12543         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
12544         * m4/hmac-sha1.m4: Remove file.
12545         * modules/crypto/hmac-sha1 (Files): Remove it.
12546         (configure.ac): Remove gl_HMAC_SHA1 call.
12547         (Makefile.am): Augment lib_SOURCES.
12548
12549 2011-05-23  Bruno Haible  <bruno@clisp.org>
12550
12551         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
12552         * m4/hmac-md5.m4: Remove file.
12553         * modules/crypto/hmac-md5 (Files): Remove it.
12554         (configure.ac): Remove gl_HMAC_MD5 call.
12555         (Makefile.am): Augment lib_SOURCES.
12556
12557 2011-05-23  Bruno Haible  <bruno@clisp.org>
12558
12559         hash: Move AC_LIBOBJ invocations to module description.
12560         * m4/hash.m4: Remove file.
12561         * modules/hash (Files): Remove it.
12562         (configure.ac): Remove gl_HASH call.
12563         (Makefile.am): Augment lib_SOURCES.
12564
12565 2011-05-23  Bruno Haible  <bruno@clisp.org>
12566
12567         hard-locale: Move AC_LIBOBJ invocations to module description.
12568         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
12569         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
12570
12571 2011-05-23  Bruno Haible  <bruno@clisp.org>
12572
12573         getugroups: Move AC_LIBOBJ invocations to module description.
12574         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
12575         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
12576
12577 2011-05-23  Bruno Haible  <bruno@clisp.org>
12578
12579         gettime: Move AC_LIBOBJ invocations to module description.
12580         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
12581         * modules/gettime (Makefile.am): Augment lib_SOURCES.
12582
12583 2011-05-23  Bruno Haible  <bruno@clisp.org>
12584
12585         getndelim2: Move AC_LIBOBJ invocations to module description.
12586         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
12587         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
12588
12589 2011-05-23  Bruno Haible  <bruno@clisp.org>
12590
12591         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
12592         * m4/gc-pbkdf2-sha1.m4: Remove file.
12593         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
12594         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
12595         (Makefile.am): Augment lib_SOURCES.
12596
12597 2011-05-23  Bruno Haible  <bruno@clisp.org>
12598
12599         fts: Move AC_LIBOBJ invocations to module description.
12600         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
12601         * modules/fts (configure.ac): ... to here.
12602
12603 2011-05-23  Bruno Haible  <bruno@clisp.org>
12604
12605         file-type: Move AC_LIBOBJ invocations to module description.
12606         * m4/file-type.m4: Remove file.
12607         * modules/file-type (Files): Remove it.
12608         (configure.ac): Remove gl_FILE_TYPE call.
12609         (Makefile.am): Augment lib_SOURCES.
12610
12611 2011-05-23  Bruno Haible  <bruno@clisp.org>
12612
12613         filenamecat*: Respect rules for use of AC_LIBOBJ.
12614         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
12615         Remove AC_LIBOBJ invocation.
12616         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
12617         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
12618
12619 2011-05-23  Bruno Haible  <bruno@clisp.org>
12620
12621         filemode: Move AC_LIBOBJ invocations to module description.
12622         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
12623         * modules/filemode (Makefile.am): Augment lib_SOURCES.
12624
12625 2011-05-23  Bruno Haible  <bruno@clisp.org>
12626
12627         openat-safer: Move AC_LIBOBJ invocations to module description.
12628         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
12629         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
12630
12631 2011-05-23  Bruno Haible  <bruno@clisp.org>
12632
12633         fcntl-safer: Move AC_LIBOBJ invocations to module description.
12634         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
12635         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
12636
12637 2011-05-23  Bruno Haible  <bruno@clisp.org>
12638
12639         exclude: Move AC_LIBOBJ invocations to module description.
12640         * m4/exclude.m4: Remove file.
12641         * modules/exclude (Files): Remove it.
12642         (configure.ac): Remove gl_EXCLUDE call.
12643         (Makefile.am): Augment lib_SOURCES.
12644
12645 2011-05-23  Bruno Haible  <bruno@clisp.org>
12646
12647         dirname*: Respect rules for use of AC_LIBOBJ.
12648         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
12649         invocations.
12650         * modules/dirname (Makefile.am): Augment lib_SOURCES.
12651         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
12652
12653 2011-05-23  Bruno Haible  <bruno@clisp.org>
12654
12655         dirent-safer: Move AC_LIBOBJ invocations to module description.
12656         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
12657         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
12658
12659 2011-05-23  Bruno Haible  <bruno@clisp.org>
12660
12661         crypto/des: Move AC_LIBOBJ invocations to module description.
12662         * m4/des.m4: Remove file.
12663         * modules/crypto/des (Files): Remove it.
12664         (configure.ac): Remove gl_DES call.
12665         (Makefile.am): Augment lib_SOURCES.
12666
12667 2011-05-23  Bruno Haible  <bruno@clisp.org>
12668
12669         cycle-check: Move AC_LIBOBJ invocations to module description.
12670         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
12671         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
12672
12673 2011-05-23  Bruno Haible  <bruno@clisp.org>
12674
12675         c-strtold: Move AC_LIBOBJ invocations to module description.
12676         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
12677         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
12678
12679 2011-05-23  Bruno Haible  <bruno@clisp.org>
12680
12681         c-strtod: Move AC_LIBOBJ invocations to module description.
12682         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
12683         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
12684
12685 2011-05-23  Bruno Haible  <bruno@clisp.org>
12686
12687         crc: Move AC_LIBOBJ invocations to module description.
12688         * m4/crc.m4: Remove file.
12689         * modules/crc (Files): Remove it.
12690         (configure.ac): Remove gl_CRC call.
12691         (Makefile.am): Augment lib_SOURCES.
12692
12693 2011-05-23  Bruno Haible  <bruno@clisp.org>
12694
12695         close-stream: Move AC_LIBOBJ invocations to module description.
12696         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
12697         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
12698
12699 2011-05-23  Bruno Haible  <bruno@clisp.org>
12700
12701         closeout: Move AC_LIBOBJ invocations to module description.
12702         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
12703         * modules/closeout (Makefile.am): Augment lib_SOURCES.
12704
12705 2011-05-23  Bruno Haible  <bruno@clisp.org>
12706
12707         closein: Move AC_LIBOBJ invocations to module description.
12708         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
12709         * modules/closein (Makefile.am): Augment lib_SOURCES.
12710
12711 2011-05-23  Bruno Haible  <bruno@clisp.org>
12712
12713         cloexec: Move AC_LIBOBJ invocations to module description.
12714         * m4/cloexec.m4: Remove file.
12715         * modules/cloexec (Files): Remove it.
12716         (configure.ac): Remove gl_CLOEXEC call.
12717         (Makefile.am): Augment lib_SOURCES.
12718
12719 2011-05-23  Bruno Haible  <bruno@clisp.org>
12720
12721         check-version: Move AC_LIBOBJ invocations to module description.
12722         * m4/check-version.m4: Remove file.
12723         * modules/check-version (Files): Remove it.
12724         (configure.ac): Remove gl_CHECK_VERSION call.
12725         (Makefile.am): Augment lib_SOURCES.
12726
12727 2011-05-23  Bruno Haible  <bruno@clisp.org>
12728
12729         chdir-safer: Move AC_LIBOBJ invocations to module description.
12730         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
12731         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
12732
12733 2011-05-23  Bruno Haible  <bruno@clisp.org>
12734
12735         canonicalize: Move AC_LIBOBJ invocations to module description.
12736         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
12737         AC_LIBOBJ invocation.
12738         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
12739
12740 2011-05-23  Bruno Haible  <bruno@clisp.org>
12741
12742         canon-host: Move AC_LIBOBJ invocations to module description.
12743         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
12744         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
12745         instead of gl_CANON_HOST.
12746         (Makefile.am): Augment lib_SOURCES.
12747
12748 2011-05-23  Bruno Haible  <bruno@clisp.org>
12749
12750         backupfile: Move AC_LIBOBJ invocations to module description.
12751         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
12752         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
12753
12754 2011-05-23  Bruno Haible  <bruno@clisp.org>
12755
12756         argmatch: Move AC_LIBOBJ invocations to module description.
12757         * m4/argmatch.m4: Remove file.
12758         * modules/argmatch (Files): Remove it.
12759         (configure.ac): Remove gl_ARGMATCH call.
12760         (Makefile.am): Augment lib_SOURCES.
12761
12762 2011-05-23  Bruno Haible  <bruno@clisp.org>
12763
12764         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
12765         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
12766         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
12767
12768 2011-05-23  Bruno Haible  <bruno@clisp.org>
12769
12770         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
12771         * m4/arcfour.m4: Remove file.
12772         * modules/crypto/arcfour (Files): Remove it.
12773         (configure.ac): Remove gl_ARCFOUR call.
12774         (Makefile.am): Augment lib_SOURCES.
12775
12776 2011-05-22  Bruno Haible  <bruno@clisp.org>
12777
12778         write: Move AC_LIBOBJ invocations to module description.
12779         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
12780         * modules/write (configure.ac): ... to here.
12781
12782 2011-05-22  Bruno Haible  <bruno@clisp.org>
12783
12784         wmemset: Move AC_LIBOBJ invocations to module description.
12785         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
12786         here...
12787         * modules/wmemset (configure.ac): ... to here.
12788
12789 2011-05-22  Bruno Haible  <bruno@clisp.org>
12790
12791         wmemmove: Move AC_LIBOBJ invocations to module description.
12792         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
12793         here...
12794         * modules/wmemmove (configure.ac): ... to here.
12795
12796 2011-05-22  Bruno Haible  <bruno@clisp.org>
12797
12798         wmemcpy: Move AC_LIBOBJ invocations to module description.
12799         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
12800         here...
12801         * modules/wmemcpy (configure.ac): ... to here.
12802
12803 2011-05-22  Bruno Haible  <bruno@clisp.org>
12804
12805         wmemcmp: Move AC_LIBOBJ invocations to module description.
12806         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
12807         here...
12808         * modules/wmemcmp (configure.ac): ... to here.
12809
12810 2011-05-22  Bruno Haible  <bruno@clisp.org>
12811
12812         wmemchr: Move AC_LIBOBJ invocations to module description.
12813         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
12814         here...
12815         * modules/wmemchr (configure.ac): ... to here.
12816
12817 2011-05-22  Bruno Haible  <bruno@clisp.org>
12818
12819         wcswidth: Move AC_LIBOBJ invocations to module description.
12820         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
12821         here...
12822         * modules/wcswidth (configure.ac): ... to here.
12823
12824 2011-05-22  Bruno Haible  <bruno@clisp.org>
12825
12826         wcwidth: Respect rules for use of AC_LIBOBJ.
12827         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
12828         invocation from here...
12829         * modules/wcwidth (configure.ac): ... to here.
12830         (Depends-on): Update conditions.
12831
12832 2011-05-22  Bruno Haible  <bruno@clisp.org>
12833
12834         wctype: Move AC_LIBOBJ invocations to module description.
12835         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
12836         invocation from here...
12837         * modules/wctype (configure.ac): ... to here.
12838         (Depends-on): Update conditions.
12839
12840 2011-05-22  Bruno Haible  <bruno@clisp.org>
12841
12842         wctrans: Move AC_LIBOBJ invocations to module description.
12843         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
12844         invocation from here...
12845         * modules/wctrans (configure.ac): ... to here.
12846
12847 2011-05-22  Bruno Haible  <bruno@clisp.org>
12848
12849         wctomb: Move AC_LIBOBJ invocations to module description.
12850         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
12851         invocations from here...
12852         * modules/wctomb (configure.ac): ... to here.
12853
12854 2011-05-22  Bruno Haible  <bruno@clisp.org>
12855
12856         wctob: Move AC_LIBOBJ invocations to module description.
12857         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
12858         gl_PREREQ_WCTOB invocations from here...
12859         * modules/wctob (configure.ac): ... to here.
12860         (Depends-on): Update conditions.
12861
12862 2011-05-22  Bruno Haible  <bruno@clisp.org>
12863
12864         wcsxfrm: Move AC_LIBOBJ invocations to module description.
12865         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
12866         here...
12867         * modules/wcsxfrm (configure.ac): ... to here.
12868
12869 2011-05-22  Bruno Haible  <bruno@clisp.org>
12870
12871         wcstok: Move AC_LIBOBJ invocations to module description.
12872         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
12873         * modules/wcstok (configure.ac): ... to here.
12874
12875 2011-05-22  Bruno Haible  <bruno@clisp.org>
12876
12877         wcsstr: Move AC_LIBOBJ invocations to module description.
12878         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
12879         * modules/wcsstr (configure.ac): ... to here.
12880
12881 2011-05-22  Bruno Haible  <bruno@clisp.org>
12882
12883         wcsspn: Move AC_LIBOBJ invocations to module description.
12884         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
12885         * modules/wcsspn (configure.ac): ... to here.
12886
12887 2011-05-22  Bruno Haible  <bruno@clisp.org>
12888
12889         wcsrtombs: Move AC_LIBOBJ invocations to module description.
12890         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
12891         gl_PREREQ_WCSRTOMBS invocations from here...
12892         * modules/wcsrtombs (configure.ac): ... to here.
12893
12894 2011-05-22  Bruno Haible  <bruno@clisp.org>
12895
12896         wcsrchr: Move AC_LIBOBJ invocations to module description.
12897         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
12898         here...
12899         * modules/wcsrchr (configure.ac): ... to here.
12900
12901 2011-05-22  Bruno Haible  <bruno@clisp.org>
12902
12903         wcspbrk: Move AC_LIBOBJ invocations to module description.
12904         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
12905         here...
12906         * modules/wcspbrk (configure.ac): ... to here.
12907
12908 2011-05-22  Bruno Haible  <bruno@clisp.org>
12909
12910         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
12911         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
12912         gl_PREREQ_WCSNRTOMBS invocations from here...
12913         * modules/wcsnrtombs (configure.ac): ... to here.
12914
12915 2011-05-22  Bruno Haible  <bruno@clisp.org>
12916
12917         wcsnlen: Move AC_LIBOBJ invocations to module description.
12918         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
12919         here...
12920         * modules/wcsnlen (configure.ac): ... to here.
12921
12922 2011-05-22  Bruno Haible  <bruno@clisp.org>
12923
12924         wcsncpy: Move AC_LIBOBJ invocations to module description.
12925         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
12926         here...
12927         * modules/wcsncpy (configure.ac): ... to here.
12928
12929 2011-05-22  Bruno Haible  <bruno@clisp.org>
12930
12931         wcsncmp: Move AC_LIBOBJ invocations to module description.
12932         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
12933         here...
12934         * modules/wcsncmp (configure.ac): ... to here.
12935
12936 2011-05-22  Bruno Haible  <bruno@clisp.org>
12937
12938         wcsncat: Move AC_LIBOBJ invocations to module description.
12939         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
12940         here...
12941         * modules/wcsncat (configure.ac): ... to here.
12942
12943 2011-05-22  Bruno Haible  <bruno@clisp.org>
12944
12945         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
12946         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
12947         from here...
12948         * modules/wcsncasecmp (configure.ac): ... to here.
12949
12950 2011-05-22  Bruno Haible  <bruno@clisp.org>
12951
12952         wcslen: Move AC_LIBOBJ invocations to module description.
12953         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
12954         * modules/wcslen (configure.ac): ... to here.
12955
12956 2011-05-22  Bruno Haible  <bruno@clisp.org>
12957
12958         wcsdup: Move AC_LIBOBJ invocations to module description.
12959         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
12960         * modules/wcsdup (configure.ac): ... to here.
12961
12962 2011-05-22  Bruno Haible  <bruno@clisp.org>
12963
12964         wcscspn: Move AC_LIBOBJ invocations to module description.
12965         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
12966         here...
12967         * modules/wcscspn (configure.ac): ... to here.
12968
12969 2011-05-22  Bruno Haible  <bruno@clisp.org>
12970
12971         wcscpy: Move AC_LIBOBJ invocations to module description.
12972         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
12973         * modules/wcscpy (configure.ac): ... to here.
12974
12975 2011-05-22  Bruno Haible  <bruno@clisp.org>
12976
12977         wcscoll: Move AC_LIBOBJ invocations to module description.
12978         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
12979         here...
12980         * modules/wcscoll (configure.ac): ... to here.
12981
12982 2011-05-22  Bruno Haible  <bruno@clisp.org>
12983
12984         wcscmp: Move AC_LIBOBJ invocations to module description.
12985         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
12986         * modules/wcscmp (configure.ac): ... to here.
12987
12988 2011-05-22  Bruno Haible  <bruno@clisp.org>
12989
12990         wcschr: Move AC_LIBOBJ invocations to module description.
12991         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
12992         * modules/wcschr (configure.ac): ... to here.
12993
12994 2011-05-22  Bruno Haible  <bruno@clisp.org>
12995
12996         wcscat: Move AC_LIBOBJ invocations to module description.
12997         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
12998         * modules/wcscat (configure.ac): ... to here.
12999
13000 2011-05-22  Bruno Haible  <bruno@clisp.org>
13001
13002         wcscasecmp: Move AC_LIBOBJ invocations to module description.
13003         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
13004         here...
13005         * modules/wcscasecmp (configure.ac): ... to here.
13006
13007 2011-05-22  Bruno Haible  <bruno@clisp.org>
13008
13009         wcrtomb: Move AC_LIBOBJ invocations to module description.
13010         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
13011         invocations from here...
13012         * modules/wcrtomb (configure.ac): ... to here.
13013
13014 2011-05-22  Bruno Haible  <bruno@clisp.org>
13015
13016         wcpncpy: Move AC_LIBOBJ invocations to module description.
13017         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
13018         here...
13019         * modules/wcpncpy (configure.ac): ... to here.
13020
13021 2011-05-22  Bruno Haible  <bruno@clisp.org>
13022
13023         wcpcpy: Move AC_LIBOBJ invocations to module description.
13024         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
13025         * modules/wcpcpy (configure.ac): ... to here.
13026
13027 2011-05-22  Bruno Haible  <bruno@clisp.org>
13028
13029         waitpid: Move AC_LIBOBJ invocations to module description.
13030         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
13031         invocation from here...
13032         * modules/waitpid (configure.ac): ... to here.
13033
13034 2011-05-22  Bruno Haible  <bruno@clisp.org>
13035
13036         utimensat: Move AC_LIBOBJ invocations to module description.
13037         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
13038         here...
13039         * modules/utimensat (configure.ac): ... to here.
13040
13041 2011-05-22  Bruno Haible  <bruno@clisp.org>
13042
13043         usleep: Move AC_LIBOBJ invocations to module description.
13044         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
13045         here...
13046         * modules/usleep (configure.ac): ... to here.
13047
13048 2011-05-22  Bruno Haible  <bruno@clisp.org>
13049
13050         unlockpt: Move AC_LIBOBJ invocations to module description.
13051         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
13052         gl_PREREQ_UNLOCKPT invocations from here...
13053         * modules/unlockpt (configure.ac): ... to here.
13054
13055 2011-05-22  Bruno Haible  <bruno@clisp.org>
13056
13057         unlink: Respect rules for use of AC_LIBOBJ.
13058         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
13059         * modules/unlink (configure.ac): ... to here.
13060
13061 2011-05-22  Bruno Haible  <bruno@clisp.org>
13062
13063         uname: Move AC_LIBOBJ invocations to module description.
13064         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
13065         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
13066         here...
13067         * modules/uname (configure.ac): ... to here.
13068
13069 2011-05-22  Bruno Haible  <bruno@clisp.org>
13070
13071         ttyname_r: Move AC_LIBOBJ invocations to module description.
13072         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
13073         gl_PREREQ_TTYNAME_R invocations from here...
13074         * modules/ttyname_r (configure.ac): ... to here.
13075
13076 2011-05-22  Bruno Haible  <bruno@clisp.org>
13077
13078         tsearch: Move AC_LIBOBJ invocations to module description.
13079         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
13080         invocations from here...
13081         * modules/tsearch (configure.ac): ... to here.
13082
13083 2011-05-22  Bruno Haible  <bruno@clisp.org>
13084
13085         towctrans: Move AC_LIBOBJ invocations to module description.
13086         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
13087         AC_LIBOBJ invocation from here...
13088         * modules/towctrans (configure.ac): ... to here.
13089
13090 2011-05-22  Bruno Haible  <bruno@clisp.org>
13091
13092         tmpfile: Move AC_LIBOBJ invocations to module description.
13093         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
13094         invocations from here...
13095         * modules/tmpfile (configure.ac): ... to here.
13096
13097 2011-05-22  Bruno Haible  <bruno@clisp.org>
13098
13099         times: Move AC_LIBOBJ invocations to module description.
13100         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
13101         * modules/times (configure.ac): ... to here.
13102
13103 2011-05-22  Bruno Haible  <bruno@clisp.org>
13104
13105         time_r: Move AC_LIBOBJ invocations to module description.
13106         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
13107         invocations from here...
13108         * modules/time_r (configure.ac): ... to here.
13109
13110 2011-05-22  Bruno Haible  <bruno@clisp.org>
13111
13112         timegm: Move AC_LIBOBJ invocations to module description.
13113         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
13114         invocations from here...
13115         * modules/timegm (configure.ac): ... to here.
13116
13117 2011-05-22  Bruno Haible  <bruno@clisp.org>
13118
13119         tcgetsid: Move AC_LIBOBJ invocations to module description.
13120         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
13121         and gl_PREREQ_TCGETSID invocations from here...
13122         * modules/tcgetsid (configure.ac): ... to here.
13123         (Depends-on): Update conditions.
13124
13125 2011-05-22  Bruno Haible  <bruno@clisp.org>
13126
13127         symlinkat: Move AC_LIBOBJ invocations to module description.
13128         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
13129         here...
13130         * modules/symlinkat (configure.ac): ... to here.
13131
13132 2011-05-22  Bruno Haible  <bruno@clisp.org>
13133
13134         symlink: Move AC_LIBOBJ invocations to module description.
13135         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
13136         here...
13137         * modules/symlink (configure.ac): ... to here.
13138
13139 2011-05-22  Bruno Haible  <bruno@clisp.org>
13140
13141         strverscmp: Move AC_LIBOBJ invocations to module description.
13142         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
13143         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
13144         from here...
13145         * modules/strverscmp (configure.ac): ... to here.
13146
13147 2011-05-22  Bruno Haible  <bruno@clisp.org>
13148
13149         strtok_r: Move AC_LIBOBJ invocations to module description.
13150         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
13151         and gl_PREREQ_STRTOK_R invocations from here...
13152         * modules/strtok_r (configure.ac): ... to here.
13153         (Depends-on): Update conditions.
13154
13155 2011-05-22  Bruno Haible  <bruno@clisp.org>
13156
13157         strtoumax: Move AC_LIBOBJ invocations to module description.
13158         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
13159         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
13160         from here...
13161         * modules/strtoumax (configure.ac): ... to here.
13162
13163 2011-05-22  Bruno Haible  <bruno@clisp.org>
13164
13165         strtoimax: Move AC_LIBOBJ invocations to module description.
13166         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
13167         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
13168         from here...
13169         * modules/strtoimax (configure.ac): ... to here.
13170
13171 2011-05-22  Bruno Haible  <bruno@clisp.org>
13172
13173         strtoull: Move AC_LIBOBJ invocations to module description.
13174         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
13175         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
13176         from here...
13177         * modules/strtoull (configure.ac): ... to here.
13178
13179 2011-05-22  Bruno Haible  <bruno@clisp.org>
13180
13181         strtoll: Move AC_LIBOBJ invocations to module description.
13182         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
13183         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
13184         here...
13185         * modules/strtoll (configure.ac): ... to here.
13186
13187 2011-05-22  Bruno Haible  <bruno@clisp.org>
13188
13189         strtoul: Move AC_LIBOBJ invocations to module description.
13190         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
13191         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
13192         * modules/strtoul (configure.ac): ... to here.
13193
13194 2011-05-22  Bruno Haible  <bruno@clisp.org>
13195
13196         strtol: Move AC_LIBOBJ invocations to module description.
13197         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
13198         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
13199         * modules/strtol (configure.ac): ... to here.
13200
13201 2011-05-22  Bruno Haible  <bruno@clisp.org>
13202
13203         strtod: Move AC_LIBOBJ invocations to module description.
13204         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
13205         invocations from here...
13206         * modules/strtod (configure.ac): ... to here.
13207
13208 2011-05-22  Bruno Haible  <bruno@clisp.org>
13209
13210         strstr*: Move AC_LIBOBJ invocations to module description.
13211         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
13212         invocations from here...
13213         * modules/strstr-simple (configure.ac): ... to here.
13214         * modules/strstr (configure.ac): ... and here.
13215
13216 2011-05-22  Bruno Haible  <bruno@clisp.org>
13217
13218         strsignal: Move AC_LIBOBJ invocations to module description.
13219         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
13220         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
13221         * modules/strsignal (configure.ac): ... to here.
13222         (Depends-on): Update conditions.
13223
13224 2011-05-22  Bruno Haible  <bruno@clisp.org>
13225
13226         strsep: Move AC_LIBOBJ invocations to module description.
13227         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
13228         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
13229         here...
13230         * modules/strsep (configure.ac): ... to here.
13231
13232 2011-05-22  Bruno Haible  <bruno@clisp.org>
13233
13234         strptime: Move AC_LIBOBJ invocations to module description.
13235         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
13236         gl_PREREQ_STRPTIME invocations from here...
13237         * modules/strptime (configure.ac): ... to here.
13238
13239 2011-05-22  Bruno Haible  <bruno@clisp.org>
13240
13241         strpbrk: Move AC_LIBOBJ invocations to module description.
13242         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
13243         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
13244         here...
13245         * modules/strpbrk (configure.ac): ... to here.
13246
13247 2011-05-22  Bruno Haible  <bruno@clisp.org>
13248
13249         strnlen: Move AC_LIBOBJ invocations to module description.
13250         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
13251         invocations from here...
13252         * modules/strnlen (configure.ac): ... to here.
13253
13254 2011-05-22  Bruno Haible  <bruno@clisp.org>
13255
13256         strndup: Move AC_LIBOBJ invocations to module description.
13257         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
13258         invocations from here...
13259         * modules/strndup (configure.ac): ... to here.
13260         (Depends-on): Update conditions.
13261
13262 2011-05-22  Bruno Haible  <bruno@clisp.org>
13263
13264         strncat: Move AC_LIBOBJ invocations to module description.
13265         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
13266         invocations from here...
13267         * modules/strncat (configure.ac): ... to here.
13268
13269 2011-05-22  Bruno Haible  <bruno@clisp.org>
13270
13271         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
13272         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
13273         invocations from here...
13274         * modules/strdup (configure.ac): ... to here.
13275         * modules/strdup-posix (configure.ac): ... and here.
13276
13277 2011-05-22  Bruno Haible  <bruno@clisp.org>
13278
13279         strcspn: Move AC_LIBOBJ invocations to module description.
13280         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
13281         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
13282         here...
13283         * modules/strcspn (configure.ac): ... to here.
13284
13285 2011-05-22  Bruno Haible  <bruno@clisp.org>
13286
13287         strchrnul: Move AC_LIBOBJ invocations to module description.
13288         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
13289         gl_PREREQ_STRCHRNUL invocations from here...
13290         * modules/strchrnul (configure.ac): ... to here.
13291
13292 2011-05-22  Bruno Haible  <bruno@clisp.org>
13293
13294         strcasestr*: Move AC_LIBOBJ invocations to module description.
13295         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
13296         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
13297         * modules/strcasestr-simple (configure.ac): ... to here.
13298         * modules/strcasestr (configure.ac): ... and here.
13299
13300 2011-05-22  Bruno Haible  <bruno@clisp.org>
13301
13302         strcase: Move AC_LIBOBJ invocations to module description.
13303         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
13304         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
13305         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
13306         gl_PREREQ_STRNCASECMP invocations from here...
13307         * modules/strcase (configure.ac): ... to here.
13308
13309 2011-05-22  Bruno Haible  <bruno@clisp.org>
13310
13311         stpncpy: Move AC_LIBOBJ invocations to module description.
13312         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
13313         here...
13314         * modules/stpncpy (configure.ac): ... to here.
13315
13316 2011-05-22  Bruno Haible  <bruno@clisp.org>
13317
13318         stpcpy: Move AC_LIBOBJ invocations to module description.
13319         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
13320         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
13321         here...
13322         * modules/stpcpy (configure.ac): ... to here.
13323
13324 2011-05-21  Bruno Haible  <bruno@clisp.org>
13325
13326         stat: Move AC_LIBOBJ invocations to module description.
13327         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
13328         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
13329         here...
13330         * modules/stat (configure.ac): ... to here.
13331
13332 2011-05-21  Bruno Haible  <bruno@clisp.org>
13333
13334         sleep: Move AC_LIBOBJ invocations to module description.
13335         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
13336         * modules/sleep (configure.ac): ... to here.
13337
13338 2011-05-21  Bruno Haible  <bruno@clisp.org>
13339
13340         signbit: Move AC_LIBOBJ invocations to module description.
13341         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
13342         * modules/signbit (configure.ac): ... to here.
13343
13344 2011-05-21  Bruno Haible  <bruno@clisp.org>
13345
13346         sigprocmask: Move AC_LIBOBJ invocations to module description.
13347         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
13348         gl_PREREQ_SIGPROMASK invocations from here...
13349         * modules/sigprocmask (configure.ac): ... to here.
13350
13351 2011-05-21  Bruno Haible  <bruno@clisp.org>
13352
13353         sigaction: Move AC_LIBOBJ invocations to module description.
13354         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
13355         gl_PREREQ_SIGACTION invocations from here...
13356         * modules/sigaction (configure.ac): ... to here.
13357
13358 2011-05-21  Bruno Haible  <bruno@clisp.org>
13359
13360         sig2str: Move AC_LIBOBJ invocations to module description.
13361         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
13362         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
13363         here...
13364         * modules/sig2str (configure.ac): ... to here.
13365
13366 2011-05-21  Bruno Haible  <bruno@clisp.org>
13367
13368         setlocale: Move AC_LIBOBJ invocations to module description.
13369         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
13370         gl_PREREQ_SETLOCALE invocations from here...
13371         * modules/setlocale (configure.ac): ... to here.
13372
13373 2011-05-21  Bruno Haible  <bruno@clisp.org>
13374
13375         unsetenv: Move AC_LIBOBJ invocations to module description.
13376         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
13377         and gl_PREREQ_UNSETENV invocations from here...
13378         * modules/unsetenv (configure.ac): ... to here.
13379         (Depends-on): Update.
13380
13381 2011-05-21  Bruno Haible  <bruno@clisp.org>
13382
13383         setenv: Move AC_LIBOBJ invocations to module description.
13384         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
13385         here...
13386         * modules/setenv (configure.ac): ... to here.
13387
13388 2011-05-21  Bruno Haible  <bruno@clisp.org>
13389
13390         selinux-h: Move AC_LIBOBJ invocations to module description.
13391         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
13392         AC_LIBOBJ invocation from here...
13393         * modules/selinux-h (configure.ac): ... to here.
13394
13395 2011-05-21  Bruno Haible  <bruno@clisp.org>
13396
13397         select: Respect rules for use of AC_LIBOBJ.
13398         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
13399         here...
13400         * modules/select (configure.ac): ... to here.
13401
13402 2011-05-21  Bruno Haible  <bruno@clisp.org>
13403
13404         scandir: Move AC_LIBOBJ invocations to module description.
13405         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
13406         invocations from here...
13407         * modules/scandir (configure.ac): ... to here.
13408
13409 2011-05-21  Bruno Haible  <bruno@clisp.org>
13410
13411         rpmatch: Move AC_LIBOBJ invocations to module description.
13412         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
13413         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
13414         here...
13415         * modules/rpmatch (configure.ac): ... to here.
13416
13417 2011-05-21  Bruno Haible  <bruno@clisp.org>
13418
13419         rmdir: Respect rules for use of AC_LIBOBJ.
13420         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
13421         * modules/rmdir (configure.ac): ... to here.
13422
13423 2011-05-21  Bruno Haible  <bruno@clisp.org>
13424
13425         renameat: Move AC_LIBOBJ invocations to module description.
13426         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
13427         here...
13428         * modules/renameat (configure.ac): ... to here.
13429
13430 2011-05-21  Bruno Haible  <bruno@clisp.org>
13431
13432         rename: Respect rules for use of AC_LIBOBJ.
13433         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
13434         here...
13435         * modules/rename (configure.ac): ... to here.
13436
13437 2011-05-21  Bruno Haible  <bruno@clisp.org>
13438
13439         remove: Move AC_LIBOBJ invocations to module description.
13440         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
13441         here...
13442         * modules/remove (configure.ac): ... to here.
13443
13444 2011-05-21  Bruno Haible  <bruno@clisp.org>
13445
13446         relocatable-lib: Move AC_LIBOBJ invocations to module description.
13447         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
13448         macro.
13449         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
13450         * modules/relocatable-lib (configure.ac): ... to here.
13451         * modules/relocatable-prog-wrapper (configure.ac): Invoke
13452         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
13453
13454 2011-05-21  Bruno Haible  <bruno@clisp.org>
13455
13456         relocatable-prog: Move AC_LIBOBJ invocations to module description.
13457         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
13458         here...
13459         * modules/relocatable-prog (configure.ac): ... to here.
13460
13461 2011-05-21  Bruno Haible  <bruno@clisp.org>
13462
13463         regex: Move AC_LIBOBJ invocations to module description.
13464         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
13465         invocations from here...
13466         * modules/regex (configure.ac): ... to here.
13467
13468 2011-05-21  Bruno Haible  <bruno@clisp.org>
13469
13470         realloc-*: Move AC_LIBOBJ invocations to module description.
13471         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
13472         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
13473         AC_LIBOBJ invocations from here...
13474         * modules/realloc-gnu (configure.ac): ... to here.
13475         * modules/realloc-posix (configure.ac): ... and here.
13476
13477 2011-05-21  Bruno Haible  <bruno@clisp.org>
13478
13479         readutmp: Move AC_LIBOBJ invocations to module description.
13480         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
13481         * modules/readutmp (configure.ac): ... to here.
13482
13483 2011-05-21  Bruno Haible  <bruno@clisp.org>
13484
13485         readlinkat: Move AC_LIBOBJ invocations to module description.
13486         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
13487         here...
13488         * modules/readlinkat (configure.ac): ... to here.
13489
13490 2011-05-21  Bruno Haible  <bruno@clisp.org>
13491
13492         readlink: Move AC_LIBOBJ invocations to module description.
13493         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
13494         gl_PREREQ_READLINK invocations from here...
13495         * modules/readlink (configure.ac): ... to here.
13496
13497 2011-05-21  Bruno Haible  <bruno@clisp.org>
13498
13499         readline: Move AC_LIBOBJ invocations to module description.
13500         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
13501         gl_PREREQ_READLINE invocations from here...
13502         * modules/readline (configure.ac): ... to here.
13503
13504 2011-05-21  Bruno Haible  <bruno@clisp.org>
13505
13506         read: Move AC_LIBOBJ invocations to module description.
13507         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
13508         * modules/read (configure.ac): ... to here.
13509
13510 2011-05-21  Bruno Haible  <bruno@clisp.org>
13511
13512         rawmemchr: Move AC_LIBOBJ invocations to module description.
13513         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
13514         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
13515         from here...
13516         * modules/rawmemchr (configure.ac): ... to here.
13517
13518 2011-05-21  Bruno Haible  <bruno@clisp.org>
13519
13520         random_r: Move AC_LIBOBJ invocations to module description.
13521         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
13522         gl_PREREQ_RANDOM_R invocations from here...
13523         * modules/random_r (configure.ac): ... to here.
13524
13525 2011-05-21  Bruno Haible  <bruno@clisp.org>
13526
13527         pwrite: Move AC_LIBOBJ invocations to module description.
13528         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
13529         * modules/pwrite (configure.ac): ... to here.
13530
13531 2011-05-21  Bruno Haible  <bruno@clisp.org>
13532
13533         putenv: Move AC_LIBOBJ invocations to module description.
13534         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
13535         * modules/putenv (configure.ac): ... to here.
13536
13537 2011-05-21  Bruno Haible  <bruno@clisp.org>
13538
13539         login_tty: Move AC_LIBOBJ invocations to module description.
13540         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
13541         * modules/login_tty (configure.ac): ... to here.
13542
13543 2011-05-21  Bruno Haible  <bruno@clisp.org>
13544
13545         openpty: Move AC_LIBOBJ invocations to module description.
13546         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
13547         * modules/openpty (configure.ac): ... to here.
13548
13549 2011-05-21  Bruno Haible  <bruno@clisp.org>
13550
13551         forkpty: Move AC_LIBOBJ invocations to module description.
13552         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
13553         * modules/forkpty (configure.ac): ... to here.
13554
13555 2011-05-21  Bruno Haible  <bruno@clisp.org>
13556
13557         ptsname: Move AC_LIBOBJ invocations to module description.
13558         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
13559         invocations from here...
13560         * modules/ptsname (configure.ac): ... to here.
13561
13562 2011-05-21  Bruno Haible  <bruno@clisp.org>
13563
13564         pread: Move AC_LIBOBJ invocations to module description.
13565         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
13566         * modules/pread (configure.ac): ... to here.
13567
13568 2011-05-21  Bruno Haible  <bruno@clisp.org>
13569
13570         posix_spawn*: Move AC_LIBOBJ invocations to module description.
13571         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
13572         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
13573         * modules/posix_spawn (configure.ac): ... to here.
13574         * modules/posix_spawnp (configure.ac): ... and here.
13575
13576 2011-05-21  Bruno Haible  <bruno@clisp.org>
13577
13578         popen: Move AC_LIBOBJ invocations to module description.
13579         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
13580         invocations from here...
13581         * modules/popen (configure.ac): ... to here.
13582
13583 2011-05-21  Bruno Haible  <bruno@clisp.org>
13584
13585         poll: Move AC_LIBOBJ invocations to module description.
13586         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
13587         invocations from here...
13588         * modules/poll (configure.ac): ... to here.
13589
13590 2011-05-21  Bruno Haible  <bruno@clisp.org>
13591
13592         pipe-posix: Move AC_LIBOBJ invocations to module description.
13593         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
13594         * modules/pipe-posix (configure.ac): ... to here.
13595
13596 2011-05-21  Bruno Haible  <bruno@clisp.org>
13597
13598         openat: Respect rules for use of AC_LIBOBJ.
13599         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
13600         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
13601         * modules/openat (configure.ac): ... to here.
13602
13603 2011-05-21  Bruno Haible  <bruno@clisp.org>
13604
13605         obstack-printf*: Move AC_LIBOBJ invocations to module description.
13606         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
13607         invocation from here...
13608         * modules/obstack-printf (configure.ac): ... to here.
13609         * modules/obstack-printf-posix (configure.ac): ... and here.
13610
13611 2011-05-21  Bruno Haible  <bruno@clisp.org>
13612
13613         nl_langinfo: Move AC_LIBOBJ invocations to module description.
13614         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
13615         from here...
13616         * modules/nl_langinfo (configure.ac): ... to here.
13617
13618 2011-05-21  Bruno Haible  <bruno@clisp.org>
13619
13620         nanosleep: Move AC_LIBOBJ invocations to module description.
13621         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
13622         gl_PREREQ_NANOSLEEP invocations from here...
13623         * modules/nanosleep (configure.ac): ... to here.
13624
13625 2011-05-21  Bruno Haible  <bruno@clisp.org>
13626
13627         mountlist: Move AC_LIBOBJ invocations to module description.
13628         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
13629         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
13630         * modules/mountlist (configure.ac): ... to here.
13631
13632 2011-05-21  Bruno Haible  <bruno@clisp.org>
13633
13634         mktime: Respect rules for use of AC_LIBOBJ.
13635         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
13636         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
13637         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
13638         (gl_FUNC_MKTIME_INTERNAL): ... and here...
13639         * modules/mktime (configure.ac): ... to here.
13640         * modules/mktime-internal (configure.ac): ... and here.
13641         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
13642
13643 2011-05-21  Bruno Haible  <bruno@clisp.org>
13644
13645         mkstemps: Move AC_LIBOBJ invocations to module description.
13646         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
13647         here...
13648         * modules/mkstemps (configure.ac): ... to here.
13649
13650 2011-05-21  Bruno Haible  <bruno@clisp.org>
13651
13652         mkstemp: Move AC_LIBOBJ invocations to module description.
13653         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
13654         gl_PREREQ_MKSTEMP invocations from here...
13655         * modules/mkstemp (configure.ac): ... to here.
13656
13657 2011-05-21  Bruno Haible  <bruno@clisp.org>
13658
13659         mkostemps: Move AC_LIBOBJ invocations to module description.
13660         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
13661         here...
13662         * modules/mkostemps (configure.ac): ... to here.
13663
13664 2011-05-21  Bruno Haible  <bruno@clisp.org>
13665
13666         mkostemp: Move AC_LIBOBJ invocations to module description.
13667         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
13668         gl_PREREQ_MKOSTEMP invocations from here...
13669         * modules/mkostemp (configure.ac): ... to here.
13670
13671 2011-05-21  Bruno Haible  <bruno@clisp.org>
13672
13673         mknod: Move AC_LIBOBJ invocations to module description.
13674         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
13675         * modules/mknod (configure.ac): ... to here.
13676
13677 2011-05-21  Bruno Haible  <bruno@clisp.org>
13678
13679         mkfifoat: Move AC_LIBOBJ invocations to module description.
13680         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
13681         here...
13682         * modules/mkfifoat (configure.ac): ... to here.
13683
13684 2011-05-21  Bruno Haible  <bruno@clisp.org>
13685
13686         mkfifo: Respect rules for use of AC_LIBOBJ.
13687         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
13688         here...
13689         * modules/mkfifo (configure.ac): ... to here.
13690
13691 2011-05-21  Bruno Haible  <bruno@clisp.org>
13692
13693         mkdtemp: Move AC_LIBOBJ invocations to module description.
13694         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
13695         invocations from here...
13696         * modules/mkdtemp (configure.ac): ... to here.
13697
13698 2011-05-21  Bruno Haible  <bruno@clisp.org>
13699
13700         mkdir: Move AC_LIBOBJ invocations to module description.
13701         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
13702         * modules/mkdir (configure.ac): ... to here.
13703
13704 2011-05-21  Bruno Haible  <bruno@clisp.org>
13705
13706         memset: Move AC_LIBOBJ invocations to module description.
13707         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
13708         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
13709         here...
13710         * modules/memset (configure.ac): ... to here.
13711
13712 2011-05-21  Bruno Haible  <bruno@clisp.org>
13713
13714         memrchr: Move AC_LIBOBJ invocations to module description.
13715         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
13716         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
13717         here...
13718         * modules/memrchr (configure.ac): ... to here.
13719
13720 2011-05-21  Bruno Haible  <bruno@clisp.org>
13721
13722         mempcpy: Move AC_LIBOBJ invocations to module description.
13723         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
13724         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
13725         here...
13726         * modules/mempcpy (configure.ac): ... to here.
13727
13728 2011-05-21  Bruno Haible  <bruno@clisp.org>
13729
13730         memmove: Move AC_LIBOBJ invocations to module description.
13731         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
13732         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
13733         here...
13734         * modules/memmove (configure.ac): ... to here.
13735
13736 2011-05-21  Bruno Haible  <bruno@clisp.org>
13737
13738         memmem*: Move AC_LIBOBJ invocations to module description.
13739         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
13740         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
13741         here...
13742         (gl_FUNC_MEMMEM): ... and here...
13743         * modules/memmem-simple (configure.ac): ... to here.
13744         * modules/memmem (configure.ac): ... and here.
13745
13746 2011-05-21  Bruno Haible  <bruno@clisp.org>
13747
13748         memcpy: Move AC_LIBOBJ invocations to module description.
13749         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
13750         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
13751         here...
13752         * modules/memcpy (configure.ac): ... to here.
13753
13754 2011-05-21  Bruno Haible  <bruno@clisp.org>
13755
13756         memcmp: Simplify autoconf macro.
13757         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
13758         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
13759         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
13760
13761 2011-05-21  Bruno Haible  <bruno@clisp.org>
13762
13763         memcmp: Move AC_LIBOBJ invocations to module description.
13764         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
13765         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
13766         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
13767         * modules/memcmp (configure.ac): ... to here.
13768         (Depends-on): Update conditions.
13769
13770 2011-05-21  Bruno Haible  <bruno@clisp.org>
13771
13772         memchr: Respect rules for use of AC_LIBOBJ.
13773         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
13774         invocations from here...
13775         * modules/memchr (configure.ac): ... to here.
13776
13777 2011-05-21  Bruno Haible  <bruno@clisp.org>
13778
13779         mbtowc: Move AC_LIBOBJ invocations to module description.
13780         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
13781         invocations from here...
13782         * modules/mbtowc (configure.ac): ... to here.
13783
13784 2011-05-21  Bruno Haible  <bruno@clisp.org>
13785
13786         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
13787         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
13788         gl_PREREQ_MBSRTOWCS invocations from here...
13789         * modules/mbsrtowcs (configure.ac): ... to here.
13790
13791 2011-05-21  Bruno Haible  <bruno@clisp.org>
13792
13793         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
13794         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
13795         gl_PREREQ_MBSNRTOWCS invocations from here...
13796         * modules/mbsnrtowcs (configure.ac): ... to here.
13797
13798 2011-05-21  Bruno Haible  <bruno@clisp.org>
13799
13800         mbsinit: Move AC_LIBOBJ invocations to module description.
13801         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
13802         invocations from here...
13803         * modules/mbsinit (configure.ac): ... to here.
13804
13805 2011-05-21  Bruno Haible  <bruno@clisp.org>
13806
13807         mbrlen: Move AC_LIBOBJ invocations to module description.
13808         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
13809         invocations from here...
13810         * modules/mbrlen (configure.ac): ... to here.
13811
13812 2011-05-21  Bruno Haible  <bruno@clisp.org>
13813
13814         mbrtowc: Respect rules for use of AC_LIBOBJ.
13815         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
13816         invocations from here...
13817         * modules/mbrtowc (configure.ac): ... to here.
13818
13819 2011-05-21  Bruno Haible  <bruno@clisp.org>
13820
13821         malloc-*: Move AC_LIBOBJ invocations to module description.
13822         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
13823         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
13824         AC_LIBOBJ invocations from here...
13825         * modules/malloc-gnu (configure.ac): ... to here.
13826         * modules/malloc-posix (configure.ac): ... and here.
13827
13828 2011-05-21  Bruno Haible  <bruno@clisp.org>
13829
13830         lstat, openat: Respect rules for use of AC_LIBOBJ.
13831         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
13832         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
13833         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
13834         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
13835         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
13836         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
13837         here.
13838         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
13839
13840 2011-05-21  Bruno Haible  <bruno@clisp.org>
13841
13842         lseek: Move AC_LIBOBJ invocations to module description.
13843         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
13844         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
13845         * modules/lseek (configure.ac): ... to here.
13846
13847 2011-05-21  Bruno Haible  <bruno@clisp.org>
13848
13849         linkat: Move AC_LIBOBJ invocations to module description.
13850         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
13851         here...
13852         * modules/linkat (configure.ac): ... to here.
13853
13854 2011-05-21  Bruno Haible  <bruno@clisp.org>
13855
13856         link: Respect rules for use of AC_LIBOBJ.
13857         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
13858         * modules/link (configure.ac): ... to here.
13859
13860 2011-05-21  Bruno Haible  <bruno@clisp.org>
13861
13862         lchown: Move AC_LIBOBJ invocations to module description.
13863         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
13864         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
13865         * modules/lchown (configure.ac): ... to here.
13866
13867 2011-05-21  Bruno Haible  <bruno@clisp.org>
13868
13869         iswctype: Move AC_LIBOBJ invocations to module description.
13870         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
13871         here...
13872         * modules/iswctype (configure.ac): ... to here.
13873
13874 2011-05-21  Bruno Haible  <bruno@clisp.org>
13875
13876         iswblank: Move AC_LIBOBJ invocations to module description.
13877         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
13878         here...
13879         * modules/iswblank (configure.ac): ... to here.
13880
13881 2011-05-21  Bruno Haible  <bruno@clisp.org>
13882
13883         atanl: Move AC_LIBOBJ invocations to module description.
13884         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
13885         * modules/atanl (configure.ac): ... to here.
13886
13887 2011-05-21  Bruno Haible  <bruno@clisp.org>
13888
13889         acosl: Move AC_LIBOBJ invocations to module description.
13890         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
13891         * modules/acosl (configure.ac): ... to here.
13892
13893 2011-05-21  Bruno Haible  <bruno@clisp.org>
13894
13895         asinl: Respect rules for use of AC_LIBOBJ.
13896         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
13897         * modules/asinl (configure.ac): ... to here.
13898
13899 2011-05-21  Bruno Haible  <bruno@clisp.org>
13900
13901         tanl: Move AC_LIBOBJ invocations to module description.
13902         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
13903         * modules/tanl (configure.ac): ... to here.
13904
13905 2011-05-21  Bruno Haible  <bruno@clisp.org>
13906
13907         cosl: Move AC_LIBOBJ invocations to module description.
13908         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
13909         * modules/cosl (configure.ac): ... to here.
13910
13911 2011-05-21  Bruno Haible  <bruno@clisp.org>
13912
13913         sinl: Move AC_LIBOBJ invocations to module description.
13914         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
13915         * modules/sinl (configure.ac): ... to here.
13916
13917 2011-05-21  Bruno Haible  <bruno@clisp.org>
13918
13919         logl: Move AC_LIBOBJ invocations to module description.
13920         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
13921         * modules/logl (configure.ac): ... to here.
13922
13923 2011-05-21  Bruno Haible  <bruno@clisp.org>
13924
13925         expl: Move AC_LIBOBJ invocations to module description.
13926         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
13927         * modules/expl (configure.ac): ... to here.
13928
13929 2011-05-21  Bruno Haible  <bruno@clisp.org>
13930
13931         roundl: Move AC_LIBOBJ invocations to module description.
13932         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
13933         * modules/roundl (configure.ac): ... to here.
13934
13935 2011-05-21  Bruno Haible  <bruno@clisp.org>
13936
13937         round: Move AC_LIBOBJ invocations to module description.
13938         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
13939         * modules/round (configure.ac): ... to here.
13940
13941 2011-05-21  Bruno Haible  <bruno@clisp.org>
13942
13943         roundf: Move AC_LIBOBJ invocations to module description.
13944         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
13945         * modules/roundf (configure.ac): ... to here.
13946
13947 2011-05-21  Bruno Haible  <bruno@clisp.org>
13948
13949         truncl: Move AC_LIBOBJ invocations to module description.
13950         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
13951         * modules/truncl (configure.ac): ... to here.
13952
13953 2011-05-21  Bruno Haible  <bruno@clisp.org>
13954
13955         trunc: Move AC_LIBOBJ invocations to module description.
13956         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
13957         * modules/trunc (configure.ac): ... to here.
13958
13959 2011-05-21  Bruno Haible  <bruno@clisp.org>
13960
13961         truncf: Move AC_LIBOBJ invocations to module description.
13962         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
13963         * modules/truncf (configure.ac): ... to here.
13964
13965 2011-05-21  Bruno Haible  <bruno@clisp.org>
13966
13967         ceill: Move AC_LIBOBJ invocations to module description.
13968         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
13969         * modules/ceill (configure.ac): ... to here.
13970
13971 2011-05-21  Bruno Haible  <bruno@clisp.org>
13972
13973         ceil: Move AC_LIBOBJ invocations to module description.
13974         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
13975         * modules/ceil (configure.ac): ... to here.
13976
13977 2011-05-21  Bruno Haible  <bruno@clisp.org>
13978
13979         ceilf: Move AC_LIBOBJ invocations to module description.
13980         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
13981         * modules/ceilf (configure.ac): ... to here.
13982
13983 2011-05-21  Bruno Haible  <bruno@clisp.org>
13984
13985         floorl: Respect rules for use of AC_LIBOBJ.
13986         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
13987         * modules/floorl (configure.ac): ... to here.
13988
13989 2011-05-21  Bruno Haible  <bruno@clisp.org>
13990
13991         floor: Respect rules for use of AC_LIBOBJ.
13992         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
13993         * modules/floor (configure.ac): ... to here.
13994
13995 2011-05-21  Bruno Haible  <bruno@clisp.org>
13996
13997         floorf: Move AC_LIBOBJ invocations to module description.
13998         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
13999         * modules/floorf (configure.ac): ... to here.
14000
14001 2011-05-20  Bruno Haible  <bruno@clisp.org>
14002
14003         sqrtl: Respect rules for use of AC_LIBOBJ.
14004         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
14005         * modules/sqrtl (configure.ac): ... to here.
14006
14007 2011-05-20  Bruno Haible  <bruno@clisp.org>
14008
14009         ldexpl: Respect rules for use of AC_LIBOBJ.
14010         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
14011         * modules/ldexpl (configure.ac): ... to here.
14012
14013 2011-05-20  Bruno Haible  <bruno@clisp.org>
14014
14015         frexpl*: Respect rules for use of AC_LIBOBJ.
14016         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
14017         invocation from here...
14018         * modules/frexpl (configure.ac): ... to here.
14019         * modules/frexpl-nolibm (configure.ac): ... and here.
14020
14021 2011-05-20  Bruno Haible  <bruno@clisp.org>
14022
14023         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
14024         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
14025         invocation from here...
14026         * modules/frexp (configure.ac): ... to here.
14027         * modules/frexp-nolibm (configure.ac): ... and here.
14028
14029 2011-05-20  Bruno Haible  <bruno@clisp.org>
14030
14031         isnan: Respect rules for use of AC_LIBOBJ.
14032         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
14033         invocations here.
14034         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
14035         REPLACE_ISNAN.
14036         * modules/isnand (configure.ac): Likewise.
14037         * modules/isnanl (configure.ac): Likewise.
14038
14039 2011-05-20  Bruno Haible  <bruno@clisp.org>
14040
14041         isnanl*: Respect rules for use of AC_LIBOBJ.
14042         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
14043         invocation from here...
14044         * modules/isnanl (configure.ac): ... to here.
14045         * modules/isnanl-nolibm (configure.ac): ... and here.
14046
14047 2011-05-20  Bruno Haible  <bruno@clisp.org>
14048
14049         isnand*: Move AC_LIBOBJ invocations to module description.
14050         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
14051         invocation from here...
14052         * modules/isnand (configure.ac): ... to here.
14053         * modules/isnand-nolibm (configure.ac): ... and here.
14054
14055 2011-05-20  Bruno Haible  <bruno@clisp.org>
14056
14057         isnanf*: Move AC_LIBOBJ invocations to module description.
14058         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
14059         invocation from here...
14060         * modules/isnanf (configure.ac): ... to here.
14061         * modules/isnanf-nolibm (configure.ac): ... and here.
14062
14063 2011-05-20  Bruno Haible  <bruno@clisp.org>
14064
14065         isnan*: Separate the AC_LIBOBJ invocations.
14066         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
14067         AC_LIBOBJ invocation.
14068         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
14069         here.
14070         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
14071         AC_LIBOBJ invocation.
14072         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
14073         here.
14074         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
14075         AC_LIBOBJ invocation.
14076         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
14077         here.
14078         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
14079
14080 2011-05-08  Bruno Haible  <bruno@clisp.org>
14081
14082         isinf: Move AC_LIBOBJ invocations to module description.
14083         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
14084         * modules/isinf (configure.ac): ... to here.
14085
14086 2011-05-08  Bruno Haible  <bruno@clisp.org>
14087
14088         isfinite: Move AC_LIBOBJ invocations to module description.
14089         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
14090         * modules/isfinite (configure.ac): ... to here.
14091
14092 2011-05-08  Bruno Haible  <bruno@clisp.org>
14093
14094         isblank: Move AC_LIBOBJ invocations to module description.
14095         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
14096         here...
14097         * modules/isblank (configure.ac): ... to here.
14098
14099 2011-05-08  Bruno Haible  <bruno@clisp.org>
14100
14101         isapipe: Move AC_LIBOBJ invocations to module description.
14102         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
14103         gl_PREREQ_ISAPIPE invocations from here...
14104         * modules/isapipe (configure.ac): ... to here.
14105         (Depends-on): Update condition.
14106
14107 2011-05-08  Bruno Haible  <bruno@clisp.org>
14108
14109         ioctl: Move AC_LIBOBJ invocations to module description.
14110         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
14111         invocations from here...
14112         * modules/ioctl (configure.ac): ... to here.
14113         (Depends-on): Update condition.
14114
14115 2011-05-08  Bruno Haible  <bruno@clisp.org>
14116
14117         imaxdiv: Move AC_LIBOBJ invocations to module description.
14118         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
14119         invocations from here...
14120         * modules/imaxdiv (configure.ac): ... to here.
14121
14122 2011-05-08  Bruno Haible  <bruno@clisp.org>
14123
14124         imaxabs: Move AC_LIBOBJ invocations to module description.
14125         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
14126         invocations from here...
14127         * modules/imaxabs (configure.ac): ... to here.
14128
14129 2011-05-08  Bruno Haible  <bruno@clisp.org>
14130
14131         getaddrinfo: Move AC_LIBOBJ invocations to module description.
14132         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
14133         AC_LIBOBJ invocations from here...
14134         * modules/getaddrinfo (configure.ac): ... to here.
14135         (Depends-on): Add conditions.
14136
14137 2011-05-08  Bruno Haible  <bruno@clisp.org>
14138
14139         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
14140         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
14141         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
14142         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
14143         (gl_PREREQ_INET_PTON): ... from here.
14144         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
14145         gl_PREREQ_INET_PTON here.
14146         (Depends-on): Update condition.
14147
14148 2011-05-08  Bruno Haible  <bruno@clisp.org>
14149
14150         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
14151         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
14152         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
14153         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
14154         (gl_PREREQ_INET_NTOP): ... from here.
14155         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
14156         gl_PREREQ_INET_NTOP here.
14157         (Depends-on): Update condition.
14158
14159 2011-05-08  Bruno Haible  <bruno@clisp.org>
14160
14161         iconv_open: Move AC_LIBOBJ invocations to module description.
14162         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
14163         AC_LIBOBJ invocations from here...
14164         * modules/iconv_open (configure.ac): ... to here.
14165
14166 2011-05-08  Bruno Haible  <bruno@clisp.org>
14167
14168         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
14169         If module 'iconv_open' is among the main modules and module
14170         'iconv_open-utf' is among the tests dependencies, then
14171         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
14172         return the special iconv_t values. Therefore iconv() and iconv_close()
14173         must support these special iconv_t values, already in lib, not only in
14174         tests.
14175         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
14176         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
14177         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
14178         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
14179         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
14180         (Depends-on): Add the dependencies of iconv_open-utf.
14181         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
14182         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
14183         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
14184
14185 2011-05-08  Bruno Haible  <bruno@clisp.org>
14186
14187         group-member: Move AC_LIBOBJ invocations to module description.
14188         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
14189         gl_PREREQ_GROUP_MEMBER invocations from here...
14190         * modules/group-member (configure.ac): ... to here.
14191
14192 2011-05-08  Bruno Haible  <bruno@clisp.org>
14193
14194         grantpt: Move AC_LIBOBJ invocations to module description.
14195         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
14196         invocations from here...
14197         * modules/grantpt (configure.ac): ... to here.
14198
14199 2011-05-08  Bruno Haible  <bruno@clisp.org>
14200
14201         glob: Move AC_LIBOBJ invocations to module description.
14202         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
14203         from here...
14204         * modules/glob (configure.ac): ... to here.
14205
14206 2011-05-08  Bruno Haible  <bruno@clisp.org>
14207
14208         getusershell: Move AC_LIBOBJ invocations to module description.
14209         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
14210         Move AC_LIBOBJ invocation from here...
14211         * modules/getusershell (configure.ac): ... to here.
14212         (Depends-on): Update condition.
14213
14214 2011-05-08  Bruno Haible  <bruno@clisp.org>
14215
14216         gettimeofday: Move AC_LIBOBJ invocations to module description.
14217         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
14218         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
14219         gl_PREREQ_GETTIMEOFDAY invocations from here...
14220         * modules/gettimeofday (configure.ac): ... to here.
14221
14222 2011-05-08  Bruno Haible  <bruno@clisp.org>
14223
14224         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
14225         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
14226         just gl_FUNC_TZSET.
14227         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
14228         (gl_FUNC_TZSET_CLOBBER): Remove actions.
14229         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
14230         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
14231
14232 2011-05-08  Bruno Haible  <bruno@clisp.org>
14233
14234         getsubopt: Move AC_LIBOBJ invocations to module description.
14235         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
14236         gl_PREREQ_GETSUBOPT invocations from here...
14237         * modules/getsubopt (configure.ac): ... to here.
14238
14239 2011-05-08  Bruno Haible  <bruno@clisp.org>
14240
14241         getpass-gnu: Move AC_LIBOBJ invocations to module description.
14242         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
14243         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
14244         * modules/getpass-gnu (configure.ac): ... to here.
14245
14246 2011-05-08  Bruno Haible  <bruno@clisp.org>
14247
14248         getpass: Move AC_LIBOBJ invocations to module description.
14249         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
14250         gl_PREREQ_GETPASS invocations from here...
14251         * modules/getpass (configure.ac): ... to here.
14252
14253 2011-05-08  Bruno Haible  <bruno@clisp.org>
14254
14255         getpagesize: Move AC_LIBOBJ invocations to module description.
14256         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
14257         from here...
14258         * modules/getpagesize (configure.ac): ... to here.
14259
14260 2011-05-08  Bruno Haible  <bruno@clisp.org>
14261
14262         getopt: Move AC_LIBOBJ invocations to module description.
14263         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
14264         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
14265         invocations from here...
14266         * modules/getopt-gnu (configure.ac): ... to here.
14267         * modules/getopt-posix (configure.ac): ... and here.
14268         (Depends-on): Update condition.
14269
14270 2011-05-08  Bruno Haible  <bruno@clisp.org>
14271
14272         getopt, argp: Respect rules for use of AC_LIBOBJ.
14273         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
14274         (gl_REPLACE_GETOPT_ALWAYS): New macro.
14275         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
14276         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
14277
14278 2011-05-08  Bruno Haible  <bruno@clisp.org>
14279
14280         getlogin_r: Move AC_LIBOBJ invocations to module description.
14281         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
14282         gl_PREREQ_GETLOGIN_R invocations from here...
14283         * modules/getlogin_r (configure.ac): ... to here.
14284
14285 2011-05-08  Bruno Haible  <bruno@clisp.org>
14286
14287         getlogin: Move AC_LIBOBJ invocations to module description.
14288         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
14289         here...
14290         * modules/getlogin (configure.ac): ... to here.
14291
14292 2011-05-08  Bruno Haible  <bruno@clisp.org>
14293
14294         getloadavg: Move AC_LIBOBJ invocations to module description.
14295         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
14296         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
14297         * modules/getloadavg (configure.ac): ... to here.
14298
14299 2011-05-08  Bruno Haible  <bruno@clisp.org>
14300
14301         gethrxtime: Move AC_LIBOBJ invocations to module description.
14302         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
14303         LIB_GETHRXTIME from here...
14304         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
14305         invocations from here...
14306         * modules/gethrxtime (configure.ac): ... to here.
14307
14308 2011-05-08  Bruno Haible  <bruno@clisp.org>
14309
14310         gethostname: Move AC_LIBOBJ invocations to module description.
14311         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
14312         gl_PREREQ_GETHOSTNAME invocations from here...
14313         * modules/gethostname (configure.ac): ... to here.
14314
14315 2011-05-08  Bruno Haible  <bruno@clisp.org>
14316
14317         getgroups: Move AC_LIBOBJ invocations to module description.
14318         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
14319         here...
14320         * modules/getgroups (configure.ac): ... to here.
14321
14322 2011-05-08  Bruno Haible  <bruno@clisp.org>
14323
14324         getdtablesize: Move AC_LIBOBJ invocations to module description.
14325         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
14326         invocation from here...
14327         * modules/getdtablesize (configure.ac): ... to here.
14328
14329 2011-05-08  Bruno Haible  <bruno@clisp.org>
14330
14331         getdomainname: Move AC_LIBOBJ invocations to module description.
14332         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
14333         gl_PREREQ_GETDOMAINNAME invocations from here...
14334         * modules/getdomainname (configure.ac): ... to here.
14335
14336 2011-05-08  Bruno Haible  <bruno@clisp.org>
14337
14338         getline: Move AC_LIBOBJ invocations to module description.
14339         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
14340         invocations from here...
14341         * modules/getline (configure.ac): ... to here.
14342
14343 2011-05-08  Bruno Haible  <bruno@clisp.org>
14344
14345         getline: Simplify.
14346         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
14347         It's already handled through the module dependency.
14348
14349 2011-05-08  Bruno Haible  <bruno@clisp.org>
14350
14351         getdelim: Move AC_LIBOBJ invocations to module description.
14352         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
14353         and gl_PREREQ_GETDELIM invocations from here...
14354         * modules/getdelim (configure.ac): ... to here.
14355         (Depends-on): Fix condition.
14356
14357 2011-05-08  Bruno Haible  <bruno@clisp.org>
14358
14359         getcwd: Move AC_LIBOBJ invocations to module description.
14360         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
14361         invocations from here...
14362         * modules/getcwd (configure.ac): ... to here.
14363
14364 2011-05-08  Bruno Haible  <bruno@clisp.org>
14365
14366         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
14367         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
14368         here...
14369         * modules/getcwd-lgpl (configure.ac): ... to here.
14370
14371 2011-05-07  Bruno Haible  <bruno@clisp.org>
14372
14373         crypto/gc: Move AC_LIBOBJ invocations to module description.
14374         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
14375         * modules/crypto/gc (configure.ac): ... to here.
14376
14377 2011-05-07  Bruno Haible  <bruno@clisp.org>
14378
14379         fwriting: Move AC_LIBOBJ invocations to module description.
14380         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
14381         here...
14382         * modules/fwriting (configure.ac): ... to here.
14383
14384 2011-05-07  Bruno Haible  <bruno@clisp.org>
14385
14386         fwritable: Move AC_LIBOBJ invocations to module description.
14387         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
14388         here...
14389         * modules/fwritable (configure.ac): ... to here.
14390
14391 2011-05-07  Bruno Haible  <bruno@clisp.org>
14392
14393         futimens: Move AC_LIBOBJ invocations to module description.
14394         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
14395         here...
14396         * modules/futimens (configure.ac): ... to here.
14397
14398 2011-05-07  Bruno Haible  <bruno@clisp.org>
14399
14400         ftruncate: Move AC_LIBOBJ invocations to module description.
14401         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
14402         gl_PREREQ_FTRUNCATE invocations from here...
14403         * modules/ftruncate (configure.ac): ... to here.
14404
14405 2011-05-07  Bruno Haible  <bruno@clisp.org>
14406
14407         fsync: Move AC_LIBOBJ invocations to module description.
14408         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
14409         invocations from here...
14410         * modules/fsync (configure.ac): ... to here.
14411
14412 2011-05-07  Bruno Haible  <bruno@clisp.org>
14413
14414         fsusage: Move AC_LIBOBJ invocations to module description.
14415         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
14416         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
14417         * modules/fsusage (configure.ac): ... to here.
14418
14419 2011-05-07  Bruno Haible  <bruno@clisp.org>
14420
14421         freopen: Move AC_LIBOBJ invocations to module description.
14422         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
14423         invocations from here...
14424         * modules/freopen (configure.ac): ... to here.
14425
14426 2011-05-07  Bruno Haible  <bruno@clisp.org>
14427
14428         free: Move AC_LIBOBJ invocations to module description.
14429         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
14430         invocations from here...
14431         * modules/free (configure.ac): ... to here.
14432
14433 2011-05-07  Bruno Haible  <bruno@clisp.org>
14434
14435         freadable: Move AC_LIBOBJ invocations to module description.
14436         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
14437         here...
14438         * modules/freadable (configure.ac): ... to here.
14439
14440 2011-05-07  Bruno Haible  <bruno@clisp.org>
14441
14442         fpurge: Move AC_LIBOBJ invocations to module description.
14443         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
14444         invocations from here...
14445         * modules/fpurge (configure.ac): ... to here.
14446
14447 2011-05-07  Bruno Haible  <bruno@clisp.org>
14448
14449         fpending: Move AC_LIBOBJ invocations to module description.
14450         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
14451         gl_FUNC_FPENDING.
14452         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
14453         invocations from here...
14454         * modules/fpending (configure.ac): ... to here.
14455
14456 2011-05-07  Bruno Haible  <bruno@clisp.org>
14457
14458         fopen: Move AC_LIBOBJ invocations to module description.
14459         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
14460         invocations from here...
14461         * modules/fopen (configure.ac): ... to here.
14462
14463 2011-05-07  Bruno Haible  <bruno@clisp.org>
14464
14465         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
14466         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
14467         gl_FUNC_FNMATCH_POSIX.
14468         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
14469         invocations from here...
14470         * modules/fnmatch (configure.ac): ... to here.
14471         * modules/fnmatch-gnu (configure.ac): ... and here.
14472
14473 2011-05-07  Bruno Haible  <bruno@clisp.org>
14474
14475         flock: Move AC_LIBOBJ invocations to module description.
14476         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
14477         invocations from here...
14478         * modules/flock (configure.ac): ... to here.
14479
14480 2011-05-07  Bruno Haible  <bruno@clisp.org>
14481
14482         fileblocks: Move AC_LIBOBJ invocations to module description.
14483         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
14484         gl_PREREQ_FILEBLOCKS invocations from here...
14485         * modules/fileblocks (configure.ac): ... to here.
14486
14487 2011-05-06  Bruno Haible  <bruno@clisp.org>
14488
14489         fflush: Move AC_LIBOBJ invocations to module description.
14490         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
14491         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
14492         invocations from here...
14493         * modules/fflush (configure.ac): ... to here.
14494
14495 2011-05-06  Bruno Haible  <bruno@clisp.org>
14496
14497         fdopendir: Move AC_LIBOBJ invocations to module description.
14498         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
14499         here...
14500         * modules/fdopendir (configure.ac): ... to here.
14501         (Depends-on): Improve conditions.
14502
14503 2011-05-06  Bruno Haible  <bruno@clisp.org>
14504
14505         _Exit: Move AC_LIBOBJ invocations to module description.
14506         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
14507         invocations from here...
14508         * modules/_Exit (configure.ac): ... to here.
14509
14510 2011-05-21  Bruno Haible  <bruno@clisp.org>
14511
14512         euidaccess: Respect rules for use of AC_LIBOBJ.
14513         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
14514         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
14515         from here...
14516         * modules/euidaccess (configure.ac): ... to here.
14517
14518 2011-05-06  Bruno Haible  <bruno@clisp.org>
14519
14520         error: Move AC_LIBOBJ invocations to module description.
14521         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
14522         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
14523         invocations from here...
14524         * modules/error (configure.ac): ... to here.
14525
14526 2011-05-06  Bruno Haible  <bruno@clisp.org>
14527
14528         duplocale: Move AC_LIBOBJ invocations to module description.
14529         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
14530         gl_PREREQ_DUPLOCALE invocations from here...
14531         * modules/duplocale (configure.ac): ... to here.
14532
14533 2011-05-05  Bruno Haible  <bruno@clisp.org>
14534
14535         dirfd: Move AC_LIBOBJ invocations to module description.
14536         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
14537         gl_FUNC_DIRFD.
14538         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
14539         here...
14540         * modules/dirfd (configure.ac): ... to here.
14541         (Depends-on): Fix condition.
14542
14543 2011-05-05  Bruno Haible  <bruno@clisp.org>
14544
14545         chown: Respect rules for use of AC_LIBOBJ.
14546         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
14547         * modules/chown (configure.ac): ... to here.
14548
14549 2011-05-05  Bruno Haible  <bruno@clisp.org>
14550
14551         chdir-long: Move AC_LIBOBJ invocations to module description.
14552         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
14553         gl_PREREQ_CHDIR_LONG invocations from here...
14554         * modules/chdir-long (configure.ac): ... to here.
14555
14556 2011-05-05  Bruno Haible  <bruno@clisp.org>
14557
14558         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
14559         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
14560         from here...
14561         * modules/canonicalize-lgpl (configure.ac): ... to here.
14562
14563 2011-05-05  Bruno Haible  <bruno@clisp.org>
14564
14565         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
14566         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
14567         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
14568         REPLACE_CALLOC.
14569         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
14570         * modules/calloc-gnu (configure.ac): Likewise.
14571
14572 2011-05-05  Bruno Haible  <bruno@clisp.org>
14573
14574         btowc: Move AC_LIBOBJ invocations to module description.
14575         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
14576         invocations from here...
14577         * modules/btowc (configure.ac): ... to here.
14578
14579 2011-05-21  Bruno Haible  <bruno@clisp.org>
14580
14581         atexit: Move AC_LIBOBJ invocations to module description.
14582         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
14583         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
14584         here...
14585         * modules/atexit (configure.ac): ... to here.
14586
14587 2011-05-05  Bruno Haible  <bruno@clisp.org>
14588
14589         atoll: Move AC_LIBOBJ invocations to module description.
14590         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
14591         invocations from here...
14592         * modules/atoll (configure.ac): ... to here.
14593
14594 2011-05-05  Bruno Haible  <bruno@clisp.org>
14595
14596         argz: Move AC_LIBOBJ invocations to module description.
14597         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
14598         * modules/argz (configure.ac): ... to here.
14599
14600 2011-05-05  Bruno Haible  <bruno@clisp.org>
14601
14602         alphasort: Move AC_LIBOBJ invocations to module description.
14603         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
14604         gl_PREREQ_ALPHASORT invocations from here...
14605         * modules/alphasort (configure.ac): ... to here.
14606
14607 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
14608
14609         verify: new macro verify_expr; verify_true deprecated
14610         * NEWS: Mention this.
14611         * doc/verify.texi (Compile-time Assertions): Document this.
14612         * lib/verify.h (verify_true): Deprecate.
14613         (verify_expr): New macro.
14614         * tests/test-verify.c (function): Test verify_expr.
14615
14616 2011-06-14  Jim Meyering  <meyering@redhat.com>
14617
14618         init.sh: give more portable redirection-related advice in a comment
14619         * tests/init.sh (stderr_fileno_): Update the advice in comments.
14620         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
14621         for lots of discussion.  Stefano Lattarini suggested the solution
14622         of putting "9>&2" after the command.  Reported by Bruno Haible.
14623
14624 2011-06-13  Bruno Haible  <bruno@clisp.org>
14625
14626         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
14627         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
14628         'none'.
14629
14630 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
14631
14632         ftoastr: use strtof only if HAVE_STRTOF
14633         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
14634         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
14635         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
14636         * modules/ftoastr (configure.ac): Check for strtof.
14637
14638 2011-06-13  Bruno Haible  <bruno@clisp.org>
14639
14640         gnulib-tool: Addendum to 2011-06-08 commit.
14641         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
14642         and --witness-c-macro have been given, augment AM_CPPFLAGS.
14643
14644 2011-06-13  Bruno Haible  <bruno@clisp.org>
14645
14646         fseeko: Provide a non-inline replacement of fseek().
14647         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
14648         * modules/fseeko (Depends-on): Add fseek.
14649         * modules/fseek (License): Change to LGPLv2+.
14650
14651 2011-06-13  Bruno Haible  <bruno@clisp.org>
14652
14653         ftello: Provide a non-inline replacement of ftell().
14654         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
14655         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
14656         not have ftello() (such as on mingw).
14657         * modules/ftello (Depends-on): Add ftell.
14658         * modules/ftell (License): Change to LGPLv2+.
14659
14660 2011-05-07  Bruno Haible  <bruno@clisp.org>
14661
14662         ftell: Move AC_LIBOBJ invocations to module description.
14663         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
14664         * modules/ftell (configure.ac): ... to here.
14665
14666 2011-05-07  Bruno Haible  <bruno@clisp.org>
14667
14668         ftello: Respect rules for use of AC_LIBOBJ.
14669         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
14670         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
14671         here...
14672         * modules/ftello (configure.ac): ... to here.
14673
14674 2011-05-07  Bruno Haible  <bruno@clisp.org>
14675
14676         fseeko: Simplify.
14677         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
14678         (gl_FUNC_FSEEKO): Inline it here.
14679
14680 2011-05-07  Bruno Haible  <bruno@clisp.org>
14681
14682         fseek: Move AC_LIBOBJ invocations to module description.
14683         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
14684         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
14685         * modules/fseek (configure.ac): ... to here.
14686
14687 2011-05-07  Bruno Haible  <bruno@clisp.org>
14688
14689         fseek: Respect rules for use of AC_LIBOBJ.
14690         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
14691         here...
14692         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
14693
14694 2011-05-07  Bruno Haible  <bruno@clisp.org>
14695
14696         fseeko: Respect rules for use of AC_LIBOBJ.
14697         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
14698         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
14699         here...
14700         * modules/fseeko (configure.ac): ... to here.
14701
14702 2011-06-13  Bruno Haible  <bruno@clisp.org>
14703
14704         gnulib-tool: Allow comments in the 'Depends-on' section.
14705         * doc/gnulib.texi (Module description): Mention comment syntax in the
14706         Depends-on section.
14707         * gnulib-tool (func_get_dependencies): Filter out comment lines.
14708
14709 2011-06-13  Bruno Haible  <bruno@clisp.org>
14710
14711         file-set.h: guard __attibute__ use, now that it's not always defined
14712         * lib/file-set.h (record_file): Use __attribute__ only with compiler
14713         versions that support it.  This fixes a coreutils build failure with
14714         the vendor cc on HP-UX 11.31.
14715
14716 2011-06-12  Bruno Haible  <bruno@clisp.org>
14717
14718         acl: Add support for HP-UX >= 11.11 JFS ACLs.
14719         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
14720         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
14721         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
14722         (acl, aclsort): New declarations.
14723         (aclv_nontrivial): New declaration.
14724         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
14725         (file_has_acl): Read also the second kind of HP-UX ACLs.
14726         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
14727         kind of HP-UX ACLs if the first kind fails.
14728         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
14729         second kind of HP-UX ACLs.
14730         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
14731         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
14732         agree.
14733         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
14734         hpuxjfs.
14735         Handle hpuxjfs.
14736         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
14737         hpuxjfs.
14738         Handle hpuxjfs.
14739         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
14740         (func_test_same_acls): Use both lsacl and getacl.
14741         Handle hpuxjfs.
14742         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
14743         (func_test_same_acls): Use both lsacl and getacl.
14744         Handle hpuxjfs.
14745
14746 2011-06-12  Bruno Haible  <bruno@clisp.org>
14747
14748         acl: Complete the 2010-08-10 fix.
14749         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
14750         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
14751         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
14752         explicitly.
14753         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
14754         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
14755
14756 2011-06-12  Bruno Haible  <bruno@clisp.org>
14757
14758         spawn-pipe tests: Comments.
14759         * tests/test-spawn-pipe-child.c (main): Update comment.
14760         Reported by James Youngman <jay@gnu.org>.
14761
14762 2011-06-11  James Youngman  <jay@gnu.org>
14763
14764         New module 'stat-size'.
14765         * modules/stat-size: New module.  Provides macros for accessing
14766         file size information in instances of struct stat.  Depends on the
14767         fileblocks module because it calls st_blocks.
14768         * lib/stat-size.h: New file, adapted from coreutils' system.h.
14769         * doc/gnulib.texi: Include stat-size.texi.
14770         * doc/stat-size.texi: Documentation for this module.
14771         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
14772         * m4/fileblocks.m4: Mention that stat-size depends on the call to
14773         AC_STRUCT_ST_BLOCKS.
14774
14775 2011-06-09  Bruno Haible  <bruno@clisp.org>
14776
14777         thread: Support pthreads-win32.
14778         * lib/glthread/thread.h (gl_thread_self): Define differently on
14779         pthreads-win32.
14780         (gl_null_thread): New declaration.
14781         (gl_thread_self_pointer): New macro.
14782         * lib/glthread/thread.c (gl_null_thread): New constant.
14783         * tests/test-lock.c: Use gl_thread_self_pointer instead of
14784         gl_thread_self.
14785         * tests/test-tls.c: Likewise.
14786         Suggested by Paul Eggert. Reported by Eric Blake.
14787
14788 2011-06-09  Bruno Haible  <bruno@clisp.org>
14789
14790         thread: Fix confusion between NULL and 0.
14791         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
14792         Reported by Paul Eggert.
14793
14794 2011-06-09  Bruno Haible  <bruno@clisp.org>
14795
14796         spawn-pipe tests: Avoid test failure on HP-UX 11.
14797         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
14798         is closed.
14799
14800 2011-06-09  Bruno Haible  <bruno@clisp.org>
14801
14802         acl tests: Fix compilation error on HP-UX 11.
14803         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
14804
14805 2011-06-09  Bruno Haible  <bruno@clisp.org>
14806
14807         rmdir: Avoid test failure on HP-UX 10.20.
14808         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
14809         EEXIST.
14810
14811 2011-06-08  Eric Blake  <eblake@redhat.com>
14812
14813         perror: fix test on mingw
14814         * modules/perror-tests (Depends-on): Add dup2.
14815
14816         strerror_r-posix: fix on MacOS
14817         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
14818         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
14819         logic bug.
14820         * lib/strerror_r.c (strerror_r): Fix the bug.
14821         * lib/strerror.c (strerror): Likewise.
14822         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
14823         problem.
14824         * doc/posix-functions/strerror.texi (strerror): Likewise.
14825         * doc/posix-functions/perror.texi (perror): Likewise.
14826         * tests/test-strerror.c (main): Enhance test.
14827         * tests/test-strerror_r.c (main): Likewise.
14828
14829 2011-06-08  Bruno Haible  <bruno@clisp.org>
14830
14831         gnulib-tool: Better isolation between different gnulib-tool invocations.
14832         * gnulib-tool: New option --witness-c-macro.
14833         (witness_c_macro): New variable.
14834         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
14835         AM_CPPFLAGS define it as a C macro.
14836         (func_emit_tests_Makefile_am): Likewise.
14837         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
14838         read it from there.
14839         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
14840         m4_define, not AC_DEFUN.
14841         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
14842         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
14843         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
14844         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
14845         s|...|...|, to substitute the values of the GNULIB_* module indicator
14846         variables.
14847         * modules/dirent (Makefile.am): Likewise.
14848         * modules/fcntl-h (Makefile.am): Likewise.
14849         * modules/iconv-h (Makefile.am): Likewise.
14850         * modules/langinfo (Makefile.am): Likewise.
14851         * modules/locale (Makefile.am): Likewise.
14852         * modules/math (Makefile.am): Likewise.
14853         * modules/netdb (Makefile.am): Likewise.
14854         * modules/poll-h (Makefile.am): Likewise.
14855         * modules/pty (Makefile.am): Likewise.
14856         * modules/search (Makefile.am): Likewise.
14857         * modules/signal (Makefile.am): Likewise.
14858         * modules/spawn (Makefile.am): Likewise.
14859         * modules/stdio (Makefile.am): Likewise.
14860         * modules/stdlib (Makefile.am): Likewise.
14861         * modules/string (Makefile.am): Likewise.
14862         * modules/sys_ioctl (Makefile.am): Likewise.
14863         * modules/sys_select (Makefile.am): Likewise.
14864         * modules/sys_socket (Makefile.am): Likewise.
14865         * modules/sys_stat (Makefile.am): Likewise.
14866         * modules/sys_times (Makefile.am): Likewise.
14867         * modules/sys_utsname (Makefile.am): Likewise.
14868         * modules/sys_wait (Makefile.am): Likewise.
14869         * modules/termios (Makefile.am): Likewise.
14870         * modules/time (Makefile.am): Likewise.
14871         * modules/unistd (Makefile.am): Likewise.
14872         * modules/wchar (Makefile.am): Likewise.
14873
14874 2011-06-08  Eric Blake  <eblake@redhat.com>
14875
14876         strerror: simplify replacement
14877         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
14878         * modules/strerror (configure.ac): No prereqs needed here...
14879         * modules/strerror-override (configure.ac): ...but this needs it.
14880         (Files): Add file for needed prereq macro.
14881
14882 2011-06-08  Bruno Haible  <bruno@clisp.org>
14883
14884         strerror_r-posix: Tweaks.
14885         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
14886         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
14887         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
14888         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
14889         (gl_FUNC_STRERROR_R): ... to here.
14890         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
14891
14892 2011-06-07  Eric Blake  <eblake@redhat.com>
14893
14894         perror: document fixed bugs
14895         * doc/posix-functions/perror.texi (perror): Document recent
14896         patches.
14897
14898 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
14899
14900         stat-time: get_stat_birthtime failure is better-defined
14901         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
14902         return a timestamp whose tv_sec and tv_nsec values are both -1.
14903         Previously, the spec said only that the tv_nsec value was negative.
14904         This upward-compatible change simplifies GNU tar a bit.
14905
14906 2011-06-07  Eric Blake  <eblake@redhat.com>
14907
14908         strerror_r-posix: work around cygwin 1.7.9
14909         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
14910         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
14911         bug without replacing strerror_r.
14912         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
14913         strerror_r is buggy, but without requiring strerror_r compilation.
14914         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
14915
14916         test-perror: relax test to ignore cygwin bug
14917         * tests/test-perror2.c (main): Relax test on requiring detection
14918         of stream errors, and use unbuffered stream.
14919         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
14920         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
14921         * doc/posix-functions/fputc.texi (fputc): Likewise.
14922         * doc/posix-functions/fputs.texi (fputs): Likewise.
14923         * doc/posix-functions/fputws.texi (fputws): Likewise.
14924         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
14925         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
14926         * doc/posix-functions/getopt.texi (getopt): Likewise.
14927         * doc/posix-functions/perror.texi (perror): Likewise.
14928         * doc/posix-functions/printf.texi (printf): Likewise.
14929         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
14930         * doc/posix-functions/psignal.texi (psignal): Likewise.
14931         * doc/posix-functions/putc.texi (putc): Likewise.
14932         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
14933         Likewise.
14934         * doc/posix-functions/putchar.texi (putchar): Likewise.
14935         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
14936         Likewise.
14937         * doc/posix-functions/puts.texi (puts): Likewise.
14938         * doc/posix-functions/putwc.texi (putwc): Likewise.
14939         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
14940         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
14941         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
14942         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
14943         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
14944         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
14945         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
14946         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
14947
14948 2011-05-22  Bruno Haible  <bruno@clisp.org>
14949
14950         strerror: Move AC_LIBOBJ invocations to module description.
14951         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
14952         gl_PREREQ_STRERROR invocations from here...
14953         * modules/strerror (configure.ac): ... to here.
14954
14955 2011-05-21  Bruno Haible  <bruno@clisp.org>
14956
14957         perror: Use common idiom.
14958         * modules/perror (configure.ac): Reorder statements.
14959
14960 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
14961
14962         tests: fix usage message in 'mktempd_'
14963         * tests/init.sh (mktempd_): In the usage message, use literal
14964         'mktempd_', not '$ME' (which is even undefined), as the name of
14965         the subroutine.
14966
14967 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
14968
14969         tests init: new function 'fatal_', for hard errors
14970         Before this patch, the only way offered by tests/init.sh to
14971         properly signal a hard error was the `framework_failure_'
14972         function.  But the error message issued by that function,
14973         as its name would suggest, refers to a set-up failure in the
14974         testsuite, while hard errors can obviously also be due to
14975         other reasons.  The best way to fix this inconsistency is to
14976         introduce a new function with a more general error message.
14977         * tests/init.sh (fatal_): New function.
14978
14979 2011-06-06  Eric Blake  <eblake@redhat.com>
14980
14981         canonicalize-lgpl: use common idiom
14982         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
14983         over newer POSIX -Rf.
14984         Reported by Bruno Haible.
14985
14986         canonicalize-lgpl: work around AIX realpath bug
14987         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
14988         * doc/posix-functions/realpath.texi (realpath): Document it.
14989         Reported by Bruno Haible.
14990
14991         strerror: work around FreeBSD bug
14992         * lib/strerror.c (strerror): Special case 0.
14993         Reported by Bruno Haible.
14994
14995         strerror-override: avoid bloating errno module
14996         * modules/errno (Files, configure.ac): Move replacement strings...
14997         * modules/strerror-override: ...to new module.
14998         * modules/strerror (Depends-on): Add strerror-override.
14999         * modules/strerror_r-posix (Depends-on): Likewise.
15000         * MODULES.html.sh: Document new module.
15001         Reported by Bruno Haible.
15002
15003 2011-06-06  Bruno Haible  <bruno@clisp.org>
15004
15005         spawn-pipe tests: Rename program.
15006         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
15007         * tests/test-spawn-pipe-child.c: Update comment.
15008         * tests/test-spawn-pipe.sh: Update.
15009         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
15010
15011         spawn-pipe tests: Link the child program only against libc.
15012         * tests/test-spawn-pipe-child.c: New file, extracted from
15013         tests/test-spawn-pipe.c.
15014         (main): Expect only one argument.
15015         (is_open): New function, copied from tests/test-pipe.c.
15016         * tests/test-spawn-pipe.c: Don't include <errno.h>.
15017         (child_main): Remove function.
15018         (test_pipe): Pass only one argument to the child program.
15019         (main): Remove child process code. Expect the child program's name as
15020         first argument.
15021         * tests/test-spawn-pipe.sh: Pass the child program's name as first
15022         argument.
15023         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
15024         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
15025         test-spawn-pipe-child against no libraries.
15026
15027 2011-06-06  Bruno Haible  <bruno@clisp.org>
15028
15029         careadlinkat: Avoid mismatch between ssize_t and int.
15030         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
15031         * lib/careadlinkat.c (careadlinkatcwd): Define always.
15032
15033 2011-06-06  Jim Meyering  <meyering@redhat.com>
15034
15035         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
15036         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
15037         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
15038
15039 2011-06-05  Bruno Haible  <bruno@clisp.org>
15040
15041         ansi-c++-opt: Interoperability with libtool.
15042         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
15043         set the variable to "no", not to ":".
15044         * NEWS: Mention the change.
15045
15046 2011-06-05  Bruno Haible  <bruno@clisp.org>
15047
15048         acl: Fix test failure on AIX 7.
15049         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
15050         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
15051
15052 2011-06-05  Bruno Haible  <bruno@clisp.org>
15053
15054         pipe-filter-ii: Fix test failure on AIX and IRIX.
15055         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
15056         with EAGAIN, retry with a smaller buffer size.
15057
15058 2011-06-05  Bruno Haible  <bruno@clisp.org>
15059
15060         localename: Fix link dependencies.
15061         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
15062         * modules/localename-tests (Makefile.am): Link test-localename with
15063         $(LIBTHREAD).
15064
15065 2011-06-05  Bruno Haible  <bruno@clisp.org>
15066
15067         error: Avoid gcc warning.
15068         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
15069
15070 2011-06-05  Bruno Haible  <bruno@clisp.org>
15071
15072         unsetenv: Avoid gcc warning.
15073         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
15074
15075 2011-06-05  Bruno Haible  <bruno@clisp.org>
15076
15077         setenv: Avoid gcc warning.
15078         * lib/setenv.c (setenv): Provide declaration if system lacks it.
15079
15080 2011-06-05  Bruno Haible  <bruno@clisp.org>
15081
15082         sys_select: Ensure memset is declared also on AIX 7.
15083         * lib/sys_select.in.h: Include <string.h> also on AIX.
15084         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
15085         self-contained also on AIX 7.1.
15086
15087 2011-06-04  Jim Meyering  <meyering@redhat.com>
15088
15089         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
15090         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
15091         function name, "error".
15092         (_gl_translatable_diag_func_re): New configurable variable.
15093
15094 2011-06-04  Bruno Haible  <bruno@clisp.org>
15095
15096         getopt: Avoid gcc warning.
15097         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
15098
15099 2011-06-04  Bruno Haible  <bruno@clisp.org>
15100
15101         strerror_r: Fix comments.
15102         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
15103         commit.
15104
15105 2011-06-04  Bruno Haible  <bruno@clisp.org>
15106
15107         perror: Fix compilation error.
15108         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
15109         Undefine fprintf, not sprintf.
15110         * modules/perror (Depends-on): Remove intprops, verify.
15111
15112 2011-06-04  Bruno Haible  <bruno@clisp.org>
15113
15114         setlocale: Enable replacement on Cygwin 1.5.
15115         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
15116         Cygwin 1.5.x.
15117         * doc/posix-functions/setlocale.texi: Mention that the problem with the
15118         LC_CTYPE category also exists on Cygwin 1.5.x.
15119
15120 2011-06-04  Bruno Haible  <bruno@clisp.org>
15121
15122         strerror-override: Don't disable symbol renamings.
15123         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
15124         * lib/strerror-override.c: Include config.h.
15125         (strerror_override): Don't undefine.
15126
15127 2011-06-03  Bruno Haible  <bruno@clisp.org>
15128
15129         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
15130         * lib/localename.h: Update copyright header.
15131         * lib/localename.c: Likewise.
15132         * lib/relocatable.h: Likewise.
15133         * lib/relocatable.c: Likewise.
15134
15135 2011-06-02  Bruno Haible  <bruno@clisp.org>
15136
15137         doc: Fix a module name.
15138         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
15139
15140 2011-06-02  Bruno Haible  <bruno@clisp.org>
15141
15142         pipe2: Remove dependency on 'nonblocking' module.
15143         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
15144         O_NONBLOCK is defined by gnulib.
15145         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
15146         is zero.
15147         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
15148         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
15149         defined by gnulib.
15150         (get_nonblocking_flag): New function.
15151         (main): Test O_NONBLOCK flag only if it is nonzero.
15152         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
15153
15154 2011-06-03  Jim Meyering  <meyering@redhat.com>
15155
15156         maint: three new prohibit-header-without-use rules
15157         Prohibit use of cloexec.h, posixver.h, same.h without use.
15158         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
15159         (sc_prohibit_posixver_without_use): Likewise.
15160         (sc_prohibit_same_without_use): Likewise.
15161
15162 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
15163
15164         allocator: 'die' routine is now given requested size
15165         * lib/allocator.h (struct allocator.die): New size arg.
15166         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
15167         If the actual problem is an ssize_t limitation, not a size_t or
15168         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
15169
15170 2011-06-01  Eric Blake  <eblake@redhat.com>
15171
15172         strerror: drop strerror_r dependency
15173         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
15174         * lib/strerror-override.c (strerror_override): ...to new file.
15175         * lib/strerror-override.h: Add prototype.
15176         * lib/strerror-impl.h: Delete.
15177         * lib/strerror.c (strerror): New implementation.
15178         * modules/errno (Files): Add new files.
15179         (configure.ac): Compile new file as appropriate.
15180         * modules/strerror (Files): Drop unused file.
15181         (Depends-on): Drop strerror_r-posix.
15182         * MODULES.html.sh: Document strerror_r-posix.
15183         Requested by Sam Steingold.
15184
15185         perror: call strerror_r directly
15186         * modules/perror (Files): Drop strerror-impl.h.
15187         * lib/perror.c (perror): Use our own stack buffer, rather than
15188         calling a wrapper that uses static storage.
15189         * doc/posix-functions/perror.texi (perror): Document a limitation
15190         of our replacement.
15191
15192         strerror_r: fix includes for FreeBSD
15193         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
15194         since we use abort on some platforms.
15195         Reported by Matthias Bolte.
15196
15197 2011-05-31  Bruno Haible  <bruno@clisp.org>
15198
15199         Fix link errors in tests: openat-die uses gettext-h.
15200         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
15201         against $(LIBINTL).
15202         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
15203         against $(LIBINTL).
15204         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
15205         $(LIBINTL).
15206         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
15207         against $(LIBINTL).
15208         * modules/linkat-tests (Makefile.am): Link test-linkat against
15209         $(LIBINTL).
15210         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
15211         $(LIBINTL).
15212         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
15213         against $(LIBINTL).
15214         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
15215         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
15216         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
15217         $(LIBINTL).
15218         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
15219         $(LIBINTL).
15220         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
15221         $(LIBINTL).
15222         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15223
15224 2011-05-31  Bruno Haible  <bruno@clisp.org>
15225
15226         Fix link errors in tests: wait-process uses gettext-h.
15227         * modules/nonblocking-pipe-tests (Makefile.am): Set
15228         test_nonblocking_pipe_main_LDADD.
15229         * modules/nonblocking-socket-tests (Makefile.am): Link
15230         test-nonblocking-socket-main against $(LIBINTL).
15231         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15232
15233 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
15234
15235         assert-h: work around 'verify' incompatibility
15236         * lib/verify.h: Use @...@ directives, not ifdef.
15237         * modules/assert-h (assert.h): Implement the directives.
15238         (assert.h): Substitute the symbol-prefix more consistently.
15239
15240 2011-05-29  Jim Meyering  <meyering@redhat.com>
15241
15242         trim: remove three superfluous assignments
15243         * lib/trim.c (trim2): Remove three superfluous assignments
15244         and correct brace positioning.
15245
15246 2011-05-29  Bruno Haible  <bruno@clisp.org>
15247
15248         wctype-h: Avoid namespace pollution on Solaris 2.6.
15249         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
15250         identifiers.
15251         * doc/posix-headers/wctype.texi: Mention the problem.
15252         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15253
15254 2011-05-28  Jim Meyering  <meyering@redhat.com>
15255
15256         parse-datetime.y: accommodate -Wstrict-overflow
15257         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
15258         placate -Wstrict-overflow.
15259
15260         trim: avoid a warning from -O2 -Wstrict-overflow
15261         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
15262
15263 2011-05-29  Bruno Haible  <bruno@clisp.org>
15264
15265         gnulib-tool: Fix bug in yesterday's commit.
15266         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
15267         twice.
15268
15269 2011-05-29  Bruno Haible  <bruno@clisp.org>
15270
15271         Allow multiple gnulib generated include files to be combined.
15272         * gnulib-tool (func_compute_include_guard_prefix): New function.
15273         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
15274         ${gl_include_guard_prefix} references.
15275         (func_import, func_create_testdir): Invoke
15276         func_compute_include_guard_prefix.
15277         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
15278         * lib/ctype.in.h: Likewise.
15279         * lib/dirent.in.h: Likewise.
15280         * lib/errno.in.h: Likewise.
15281         * lib/fcntl.in.h: Likewise.
15282         * lib/float.in.h: Likewise.
15283         * lib/getopt.in.h: Likewise.
15284         * lib/iconv.in.h: Likewise.
15285         * lib/langinfo.in.h: Likewise.
15286         * lib/locale.in.h: Likewise.
15287         * lib/math.in.h: Likewise.
15288         * lib/netdb.in.h: Likewise.
15289         * lib/netinet_in.in.h: Likewise.
15290         * lib/poll.in.h: Likewise.
15291         * lib/pthread.in.h: Likewise.
15292         * lib/pty.in.h: Likewise.
15293         * lib/sched.in.h: Likewise.
15294         * lib/se-selinux.in.h: Likewise.
15295         * lib/search.in.h: Likewise.
15296         * lib/signal.in.h: Likewise.
15297         * lib/spawn.in.h: Likewise.
15298         * lib/stdarg.in.h: Likewise.
15299         * lib/stddef.in.h: Likewise.
15300         * lib/stdint.in.h: Likewise.
15301         * lib/stdio.in.h: Likewise.
15302         * lib/stdlib.in.h: Likewise.
15303         * lib/string.in.h: Likewise.
15304         * lib/strings.in.h: Likewise.
15305         * lib/sys_file.in.h: Likewise.
15306         * lib/sys_ioctl.in.h: Likewise.
15307         * lib/sys_select.in.h: Likewise.
15308         * lib/sys_socket.in.h: Likewise.
15309         * lib/sys_stat.in.h: Likewise.
15310         * lib/sys_time.in.h: Likewise.
15311         * lib/sys_times.in.h: Likewise.
15312         * lib/sys_uio.in.h: Likewise.
15313         * lib/sys_utsname.in.h: Likewise.
15314         * lib/sys_wait.in.h: Likewise.
15315         * lib/sysexits.in.h: Likewise.
15316         * lib/termios.in.h: Likewise.
15317         * lib/time.in.h: Likewise.
15318         * lib/unistd.in.h: Likewise.
15319         * lib/wchar.in.h: Likewise.
15320         * lib/wctype.in.h: Likewise.
15321         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
15322         * modules/ctype (Makefile.am): Likewise.
15323         * modules/dirent (Makefile.am): Likewise.
15324         * modules/errno (Makefile.am): Likewise.
15325         * modules/fcntl-h (Makefile.am): Likewise.
15326         * modules/float (Makefile.am): Likewise.
15327         * modules/getopt-posix (Makefile.am): Likewise.
15328         * modules/iconv-h (Makefile.am): Likewise.
15329         * modules/langinfo (Makefile.am): Likewise.
15330         * modules/locale (Makefile.am): Likewise.
15331         * modules/math (Makefile.am): Likewise.
15332         * modules/netdb (Makefile.am): Likewise.
15333         * modules/netinet_in (Makefile.am): Likewise.
15334         * modules/poll-h (Makefile.am): Likewise.
15335         * modules/pthread (Makefile.am): Likewise.
15336         * modules/pty (Makefile.am): Likewise.
15337         * modules/sched (Makefile.am): Likewise.
15338         * modules/search (Makefile.am): Likewise.
15339         * modules/selinux-h (Makefile.am): Likewise.
15340         * modules/signal (Makefile.am): Likewise.
15341         * modules/spawn (Makefile.am): Likewise.
15342         * modules/stdarg (Makefile.am): Likewise.
15343         * modules/stddef (Makefile.am): Likewise.
15344         * modules/stdint (Makefile.am): Likewise.
15345         * modules/stdio (Makefile.am): Likewise.
15346         * modules/stdlib (Makefile.am): Likewise.
15347         * modules/string (Makefile.am): Likewise.
15348         * modules/strings (Makefile.am): Likewise.
15349         * modules/sys_file (Makefile.am): Likewise.
15350         * modules/sys_ioctl (Makefile.am): Likewise.
15351         * modules/sys_select (Makefile.am): Likewise.
15352         * modules/sys_socket (Makefile.am): Likewise.
15353         * modules/sys_stat (Makefile.am): Likewise.
15354         * modules/sys_time (Makefile.am): Likewise.
15355         * modules/sys_times (Makefile.am): Likewise.
15356         * modules/sys_uio (Makefile.am): Likewise.
15357         * modules/sys_utsname (Makefile.am): Likewise.
15358         * modules/sys_wait (Makefile.am): Likewise.
15359         * modules/sysexits (Makefile.am): Likewise.
15360         * modules/termios (Makefile.am): Likewise.
15361         * modules/time (Makefile.am): Likewise.
15362         * modules/unistd (Makefile.am): Likewise.
15363         * modules/wchar (Makefile.am): Likewise.
15364         * modules/wctype-h (Makefile.am): Likewise.
15365         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
15366
15367 2011-05-29  Bruno Haible  <bruno@clisp.org>
15368
15369         assert-h: Allow multiple gnulib generated replacements to coexist.
15370         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
15371
15372 2011-05-29  Bruno Haible  <bruno@clisp.org>
15373
15374         argp: Allow coexistence with strerror_r-posix module.
15375         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
15376         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
15377         by gnulib's <string.h> replacement), assume it has the POSIX signature,
15378         not the glibc signature.
15379
15380 2011-05-28  Bruno Haible  <bruno@clisp.org>
15381
15382         gnulib-tool: Alternative structure of testdirs, similar to --import.
15383         * gnulib-tool: New option --single-configure.
15384         (func_usage): Document it.
15385         (single_configure): New variable.
15386         (func_modules_transitive_closure_separately,
15387         func_modules_transitive_closure_separately,
15388         func_determine_use_libtests, func_modules_add_dummy_separately,
15389         func_modules_to_filelist_separately): New functions, extracted from
15390         func_import.
15391         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
15392         (func_import): Use the new functions.
15393         (func_create_testdir): Set final_modules. Handle $single_configure =
15394         true case.
15395
15396 2011-05-28  Bruno Haible  <bruno@clisp.org>
15397
15398         getloadavg: Remove an unreliable safety check.
15399         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
15400         getloadavg.c is in place.
15401         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
15402         Reported by Sam Steingold <sds@gnu.org>.
15403
15404 2011-05-28  Bruno Haible  <bruno@clisp.org>
15405
15406         doc: Cleanup yet another file produced by texinfo.tex.
15407         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
15408
15409 2011-05-28  Bruno Haible  <bruno@clisp.org>
15410
15411         Finish the conditional dependencies mechanism.
15412         * gnulib-tool: New option --no-conditional-dependencies.
15413         (func_usage): Document it. Don't mark --conditional-dependencies as
15414         experimental.
15415         (cond_dependencies): The possible values can now be true, false, empty.
15416         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
15417         (func_import): Store setting in gnulib-cache.m4 and read it from there.
15418         * doc/gnulib-tool.texi (Conditional dependencies): New section.
15419
15420 2011-05-28  Bruno Haible  <bruno@clisp.org>
15421
15422         doc: Use a recent texinfo.tex.
15423         * doc/Makefile (tex_opts): New variable.
15424         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
15425
15426 2011-05-28  Jim Meyering  <meyering@redhat.com>
15427
15428         intprops.h: adjust comment to match code change
15429         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
15430         only once, it *may* have side effects.  Also fix an unrelated typo.
15431         (_GL_INT_SIGNED): Likewise.
15432
15433 2011-05-26  Simon Josefsson  <simon@josefsson.org>
15434
15435         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
15436
15437 2011-05-26  Bruno Haible  <bruno@clisp.org>
15438
15439         mbsrchr: Avoid collision with system function on Interix.
15440         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
15441         Reported by Markus Duft <mduft@gentoo.org>.
15442
15443 2011-05-15  James Youngman  <jay@gnu.org>
15444
15445         getopt: for ambiguous options, enumerate the possibilities.
15446         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
15447         the ambiguous options when an ambiguous prefix is given. This was
15448         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
15449         glibc change was
15450         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
15451
15452 2011-05-25  Eric Blake  <eblake@redhat.com>
15453
15454         getcwd: work around mingw bug
15455         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
15456         * doc/posix-functions/getcwd.texi (getcwd): Document it.
15457         Reported by Matthias Bolte.
15458
15459 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
15460
15461         test-intprops: disable -Wtype-limits diagnostics
15462         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
15463         diagnostics.  Otherwise, the integer overflow macros generate many
15464         diagnostics.  Reported by Jim Meyering in
15465         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
15466
15467         intprops: shorten, to pacify gcc -Woverlength-strings
15468         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
15469         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
15470         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
15471         likely to run afoul of C compiler limits for string constant lengths.
15472         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
15473
15474 2011-05-24  Eric Blake  <eblake@redhat.com>
15475
15476         docs: document recently fixed glibc printf bug
15477         * doc/posix-functions/fprintf.texi (fprintf): Document it.
15478         * doc/posix-functions/printf.texi (printf): Likewise.
15479         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15480         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15481
15482         closein-tests: convert to init.sh
15483         * modules/closein-tests (Files): Add init.sh
15484         * tests/test-closein.sh Use it.
15485
15486         yesno-tests: convert to init.sh
15487         * modules/yesno-tests (Files): Add init.sh.
15488         * tests/test-yesno.sh: Use it.
15489
15490         atexit-tests: ensure reliable exit status
15491         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
15492         Reported by Bruno Haible.
15493
15494 2011-05-24  Bruno Haible  <bruno@clisp.org>
15495
15496         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
15497         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
15498         gl_PREREQ_STRERROR_R invocations from here...
15499         * modules/strerror_r-posix (configure.ac): ... to here.
15500
15501 2011-05-24  Eric Blake  <eblake@redhat.com>
15502
15503         strerror_r: fix missing header
15504         * lib/strerror_r.c: Avoid compiler warning about snprintf.
15505
15506         strerror_r: fix AIX test failures
15507         * lib/strerror_r.c (strerror_r): Convert silent truncation to
15508         ERANGE failure.
15509
15510         strerror_r: fix Solaris test failures
15511         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
15512         failures.
15513         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
15514
15515         strerror_r: enforce POSIX recommendations
15516         * lib/strerror_r.c (safe_copy): New helper method.
15517         (strerror_r): Guarantee a non-empty string.
15518         * tests/test-strerror_r.c (main): Enhance tests to incorporate
15519         recent POSIX rulings and to match our strerror guarantees.
15520         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
15521
15522 2011-05-24  Jim Meyering  <meyering@redhat.com>
15523
15524         test-perror2.c: avoid warning about unused variable
15525         * tests/test-perror2.c (main): Remove declaration of unused "fp".
15526
15527 2011-05-24  Eric Blake  <eblake@redhat.com>
15528
15529         perror: avoid spurious test failure on HP-UX
15530         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
15531
15532         tests: fix logic bug in init.sh
15533         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
15534         shell.
15535
15536 2011-05-24  Jim Meyering  <meyering@redhat.com>
15537
15538         utimensat: do not reference an out-of-scope buffer
15539         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
15540         declared in an inner scope, yet "times" would be dereferenced outside
15541         the scope in which "ts" was valid.
15542         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
15543         of ts[2] "out/up", so that the use of aliased "times" (via
15544         "times = ts;") does not end up referencing an out-of-scope "ts"
15545
15546         opendir-safer.c: don't clobber errno; don't close negative FD
15547         * lib/opendir-safer.c (opendir_safer):
15548         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
15549         file descriptor, and more importantly, don't clobber the
15550         offending errno value with EINVAL.  Before, upon failure
15551         of dup_safer, we would pass the negative file descriptor to
15552         fdopendir, which would clobber errno.
15553
15554 2011-05-23  Bruno Haible  <bruno@clisp.org>
15555
15556         idcache: Fix module description.
15557         * modules/idcache (Include): Set to "idcache.h".
15558
15559 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
15560
15561         gnulib-tool: fix portability problem with MacOS sed
15562         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
15563         before the "}".  Problem reported by Leo in
15564         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
15565         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
15566         sed_extract_condition1, sed_extract_condition2.
15567
15568 2011-05-23  Bruno Haible  <bruno@clisp.org>
15569
15570         hash: Simplify autoconf macro.
15571         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
15572
15573 2011-05-23  Bruno Haible  <bruno@clisp.org>
15574
15575         getugroups: Fix module description.
15576         * modules/getugroups (Include): Set to "getugroups.h".
15577
15578 2011-05-23  Bruno Haible  <bruno@clisp.org>
15579
15580         linkat: Simplify autoconf macro.
15581         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
15582
15583 2011-05-23  Bruno Haible  <bruno@clisp.org>
15584             Eric Blake  <eblake@redhat.com>
15585
15586         linkat, renameat: Update dependencies.
15587         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
15588         * modules/linkat (Depends-on): Likewise. Remove also readlink,
15589         symlinkat.
15590
15591 2011-05-23  Jim Meyering  <meyering@redhat.com>
15592
15593         maint.mk: more tight_scope improvements
15594         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
15595         (_gl_TS_headers): Define only in if-0'd block.
15596         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
15597         sometimes we must *not* use it.  Adjust uses accordingly.
15598         (sc_tight_scope): Use much simpler grep-based test to determine
15599         whether we skip this rule.
15600
15601         maint.mk: generalize/improve the tight-scope rule
15602         * top/maint.mk: Emit a warning when the test is skipped.
15603         (_gl_TS_dir): Add $(srcdir)/ prefix.
15604         (_gl_TS_function_match): Simplify, rather than trying
15605         to enumerate common types.  Otherwise, it would fail to match an
15606         "extern unsigned char const *" declaration in idutils.
15607         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
15608         a way to support use of that type of macro.
15609         (_gl_TS_var_match): Simplify regexp.
15610         (_gl_TS_obj_files): New configurable variable.
15611         (_gl_TS_headers): Likewise.
15612
15613 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
15614
15615         verify: fix bug when gnulib <assert.h> is also included
15616         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
15617         is defined, not if _GL_STATIC_ASSERT_H is not defined.
15618         Perhaps there's a better way, but this fixes the immediate problem.
15619         Problem reported by Bruno Haible in
15620         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
15621
15622 2011-05-22  Bruno Haible  <bruno@clisp.org>
15623
15624         xgetcwd: Simplify autoconf macro.
15625         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
15626
15627 2011-05-22  Bruno Haible  <bruno@clisp.org>
15628
15629         New module 'mktime-internal'.
15630         * modules/mktime-internal: New file.
15631         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
15632         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
15633         mktime_internal as a C macro if libc has __mktime_internal.
15634         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
15635         conditions.
15636         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
15637
15638 2011-05-22  Bruno Haible  <bruno@clisp.org>
15639
15640         timegm: Correct mktime replacement statements.
15641         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
15642         defining mktime as a C macro. This completes a 2009-07-28 commit.
15643
15644 2011-05-22  Bruno Haible  <bruno@clisp.org>
15645
15646         timegm: Simplify autoconf macro.
15647         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
15648
15649 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
15650
15651         clock-time: change to LGPLv2+.
15652         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
15653         BSD-like but we have no mark for that; this is good enough for now.
15654
15655 2011-05-21  Bruno Haible  <bruno@clisp.org>
15656
15657         strerror_r: Fix comments.
15658         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
15659
15660 2011-05-21  Bruno Haible  <bruno@clisp.org>
15661
15662         relocatable-prog-wrapper: Fix possible link error.
15663         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
15664         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
15665         (gl_FUNC_SETENV): ... to here.
15666         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
15667         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
15668
15669 2011-05-21  Bruno Haible  <bruno@clisp.org>
15670
15671         relocatable-prog-wrapper: Assume strerror() exists.
15672         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
15673         m4/strerror.m4.
15674         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
15675         * lib/relocwrapper.c: Remove mention of strerror module.
15676         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
15677         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
15678         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
15679         C macro.
15680
15681 2011-05-21  Bruno Haible  <bruno@clisp.org>
15682
15683         select: Simplify replacement idiom.
15684         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
15685         Win32 platforms.
15686         * lib/sys_select.in.h (select): Simplify accordingly.
15687         * modules/select (Depends-on): Likewise.
15688
15689 2011-05-21  Bruno Haible  <bruno@clisp.org>
15690
15691         mkdir-p: Simplify autoconf macro.
15692         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
15693         gl_FUNC_LCHOWN.
15694
15695 2011-05-21  Eric Blake  <eblake@redhat.com>
15696
15697         strerror_r: avoid clobbering strerror on cygwin
15698         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
15699         fall back instead to sys_errlist.
15700         * modules/strerror (configure.ac): Add witness.
15701         * tests/test-strerror_r.c (main): Enhance test.
15702         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
15703         * tests/test-perror2.c (main): Free memory before exit.
15704
15705 2011-05-21  Bruno Haible  <bruno@clisp.org>
15706
15707         mkdtemp: Use gnulib naming conventions.
15708         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
15709         * modules/mkdtemp (configure.ac): Update.
15710
15711 2011-05-20  Eric Blake  <eblake@redhat.com>
15712
15713         strerror_r: avoid corrupting errno on Solaris
15714         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
15715         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
15716
15717         strerror_r: avoid compiler warning
15718         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
15719
15720         strerror_r: simplify AIX code
15721         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
15722
15723         test-perror: avoid spurious failure on FreeBSD
15724         * modules/perror-tests (Depends-on): Add strerror, now that
15725         strerror_r no longer pulls it in.
15726
15727 2011-05-20  Bruno Haible  <bruno@clisp.org>
15728
15729         strerror_r-posix: Remove unused dependencies.
15730         * modules/strerror_r-posix (Depends-on): Remove strerror.
15731         Reported by Eric Blake.
15732
15733 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
15734
15735         intprops: remove assumption about A|B representation
15736         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
15737         is a valid integer if both A and B are.  Although this is true for
15738         all known practical hosts, the C standard doesn't guarantee it,
15739         and the code need not assume it.  Also, this change may work around
15740         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
15741         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
15742
15743 2011-05-20  Eric Blake  <eblake@redhat.com>
15744
15745         perror: work around FreeBSD bug
15746         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
15747         is broken.  Move AC_LIBOBJ...
15748         * modules/perror (configure.ac): Here.
15749         * doc/posix-functions/perror.texi (perror): Document this.
15750         * tests/test-perror2.c (main): Enhance test.
15751
15752         test-perror: check for strerror interactions
15753         * tests/macros.h (STREQ): Add macro.
15754         * modules/perror-tests (Files): Add second test.
15755         * tests/test-perror2.c (main): New file.
15756         * doc/posix-functions/perror.texi (perror): Document glibc bug.
15757
15758         test-perror: rewrite to use init script
15759         * modules/perror-tests (Files): Add init.sh.
15760         * tests/test-perror.sh: Use temporary directory.
15761
15762 2011-05-20  Jim Meyering  <meyering@redhat.com>
15763
15764         maint: replace misused "a" with "an"
15765         * doc/intprops.texi: "a integer"
15766         * doc/regex.texi: "a explanation"
15767         * lib/alignof.h: "a object"
15768         * lib/argmatch.h: "a explanation"
15769         * lib/argp-help.c: "a option" and "a OPTION_DOC"
15770         * lib/stdint.in.h: "a integer"
15771         * lib/userspec.c: "a owner"
15772         * doc/gnulib.texi: Fix "a idea", and reword.
15773
15774 2011-05-19  Jim Meyering  <meyering@redhat.com>
15775
15776         maint: correct misuse of "a" and "an"
15777         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
15778         * lib/argp-help.c: "an docum...": s/an/a/
15779         * lib/argp-parse.c: "An vector": s/An/A/
15780         * lib/execute.c: "an native": s/an/a/
15781         * lib/spawn-pipe.c: Likewise.
15782         * lib/gc.h: "an Gc_rc": s/an/a/
15783         * lib/unigbrk.in.h: "an grapheme": s/an/a/
15784         * lib/fts.c: "an stat.st_dev": s/an/a/
15785
15786 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
15787
15788         intprops-tests: work around HP-UX 11.23 cc bug with constants
15789         * tests/test-intprops.c (VERIFY): New macro.
15790         (main): Use it, instead of verify, to work around the compiler bug; see
15791         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
15792
15793         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
15794         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
15795         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
15796         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
15797         (_GL_REMAINDER_OVERFLOW): Use it.
15798
15799         intprops-tests: revert unsigned part of previous change
15800         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
15801         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
15802         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
15803         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
15804
15805 2011-05-19  Bruno Haible  <bruno@clisp.org>
15806
15807         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
15808         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
15809         strerror_r() returned without filling the buffer.
15810         Reported by Eric Blake.
15811
15812 2011-05-19  Eric Blake  <eblake@redhat.com>
15813
15814         strerror_r: guarantee unchanged errno
15815         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
15816         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
15817         failure.
15818         * tests/test-strerror_r.c (main): Enhance test.
15819
15820 2011-05-19  Bruno Haible  <bruno@clisp.org>
15821
15822         strerror_r: Reorder #if blocks.
15823         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
15824         for consistency with the previous commit.
15825
15826 2011-05-19  Bruno Haible  <bruno@clisp.org>
15827
15828         perror: Avoid clobbering the strerror buffer when possible.
15829         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
15830         * lib/strerror.c: Include it.
15831         * modules/strerror (Files): Add lib/strerror-impl.h.
15832         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
15833         (my_strerror): New function, defined through lib/strerror-impl.h.
15834         (perror): Use it instead of strerror.
15835         * modules/perror (Files): Add lib/strerror-impl.h.
15836         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
15837
15838 2011-05-19  Eric Blake  <eblake@redhat.com>
15839
15840         strerror_r: fix on newer cygwin
15841         * lib/strerror_r.c (strerror_r): Cygwin now has
15842         __xpg_strerror_r, use it.
15843
15844 2011-05-19  Bruno Haible  <bruno@clisp.org>
15845
15846         strerror_r: Avoid clobbering the strerror buffer when possible.
15847         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
15848         (sys_nerr, sys_errlist): New declarations.
15849         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
15850         HP-UX, native Win32, IRIX, and 32-bit Solaris.
15851         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
15852
15853 2011-05-19  Bruno Haible  <bruno@clisp.org>
15854
15855         strerror_r: Fix test failure on mingw.
15856         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
15857         EXTEND_STRERROR_R.
15858         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
15859         macros from errno.in.h instead.
15860
15861 2011-05-19  Eric Blake  <eblake@redhat.com>
15862
15863         strerror: relax test for Solaris
15864         * tests/test-strerror.c (main): Permit Solaris behavior.
15865         * tests/test-strerror_r.c (main): Likewise.
15866
15867         strerror: enforce POSIX ruling on strerror(0)
15868         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
15869         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
15870         * lib/strerror_r.c (rpl_strerror_r): Work around it.
15871         * doc/posix-functions/strerror.texi (strerror): Document it.
15872         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
15873         * tests/test-strerror.c (main): Strengthen test.
15874         * tests/test-strerror_r.c (main): Likewise.
15875
15876 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
15877
15878         intprop-tests: port to older and more-pedantic compilers
15879         * modules/intprops-tests (Files): Add tests/macros.h.
15880         * tests/test-intprops.c: Include macros.h.
15881         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
15882         it's no longer documented to expand to an integer constant expression.
15883         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
15884         argument is floating point, as it's no longer documented to expand
15885         to an integer constant expression in that case.
15886         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
15887         compiler bugs reported by Bruno Haible.  See
15888         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
15889         (U0, U1): New constants, to work around the same bugs.  Also,
15890         in tests, use e.g., "(unsigned int) 39" rather than "39u".
15891
15892         intprops: work around C compiler bugs
15893         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
15894         bug in Sun C 5.11 2010/08/13 and other compilers; see
15895         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
15896
15897         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
15898         * doc/intprops.texi (Integer Type Determination): Fix
15899         documentation for TYPE_IS_INTEGER: it returns an constant
15900         expression, not an integer constant expression.  Fix doc for
15901         TYPE_SIGNED: it returns an integer constant expression only if its
15902         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
15903         hardly worth documented that way....)
15904
15905 2011-05-18  Bruno Haible  <bruno@clisp.org>
15906
15907         strerror_r: Avoid clobbering the strerror buffer when possible.
15908         * lib/strerror_r.c (strerror_r): Merge the three implementations.
15909         Handle gnulib defined errno values here. When strerror() returns NULL
15910         or an empty string, return EINVAL.
15911         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
15912         gnulib defined errno values here.
15913         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
15914
15915 2011-05-18  Eric Blake  <eblake@redhat.com>
15916
15917         fnmatch: avoid compiler warning
15918         * lib/fnmatch_loop.c (FCT): Use correct type.
15919         Reported by Matthias Bolte.
15920
15921 2011-05-13  Jim Meyering  <meyering@redhat.com>
15922
15923         maint.mk: three new prohibit_<HDR>_without_use rules
15924         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
15925         (sc_prohibit_stdio-safer_without_use): Likewise.
15926         (sc_prohibit_xfreopen_without_use): Likewise.
15927
15928 2011-05-17  Jim Meyering  <meyering@redhat.com>
15929
15930         announce-gen: fail if the NEWS delta is empty
15931         If there's nothing noteworthy in NEWS, then either you forgot
15932         or you shouldn't be releasing.
15933         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
15934
15935 2011-05-17  Pádraig Brady <P@draigBrady.com>
15936
15937         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
15938         reserved symbols starting with double underscore from the check.
15939
15940 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
15941
15942         intprops: add doc
15943         * doc/intprops.texi: New file, documenting intprops.
15944         * doc/gnulib.texi (Particular Modules): Include it.
15945
15946         verify: add doc to gnulib manual and fix example
15947         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
15948         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
15949         (Compile-time Assertions): Fix example so it can't overflow.
15950
15951 2011-05-17  Jim Meyering  <meyering@redhat.com>
15952
15953         warnings.m4: don't usurp save_CPPFLAGS variable name
15954         * m4/warnings.m4: Prefix local temporary variable name with gl_.
15955
15956         doc: fix typo
15957         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
15958
15959 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
15960             Bruno Haible  <bruno@clisp.org>
15961
15962         doc: Tweak recent change.
15963         * README (Portability guidelines): Tweak new text.
15964         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
15965         Interix 6.1.
15966
15967 2011-05-16  Eric Blake  <eblake@redhat.com>
15968
15969         inttypes: avoid autoconf warning
15970         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
15971         * m4/stdint.m4 (gl_STDINT_H): Likewise.
15972
15973 2011-05-16  Sam Steingold <sds@gnu.org>
15974         and Eric Blake  <eblake@redhat.com>
15975
15976         vc-list-files: accept multiple directory operands
15977         * build-aux/vc-list-files: Iterate over all remaining operands.
15978
15979 2011-05-16  Bruno Haible  <bruno@clisp.org>
15980
15981         Fix confusion regarding deprecated modules.
15982         * modules/calloc (Status, Notice): Mark module as deprecated, not
15983         obsolete.
15984         * modules/fnmatch-posix (Status, Notice): Likewise.
15985         * modules/getdate (Status, Notice): Likewise.
15986         * modules/getopt (Status, Notice): Likewise.
15987         * modules/malloc (Status, Notice): Likewise.
15988         * modules/pipe (Status, Notice): Likewise.
15989         * modules/realloc (Status, Notice): Likewise.
15990         * modules/rename-dest-slash (Status, Notice): Likewise.
15991         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
15992         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
15993         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
15994         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
15995         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
15996
15997 2011-05-16  Bruno Haible  <bruno@clisp.org>
15998
15999         doc: List the target platforms.
16000         * doc/gnulib-intro.texi (Target Platforms): New section.
16001         * doc/gnulib.texi (Introduction): Update menu.
16002         * README (Portability guidelines): Refer to the new section. Update
16003         statement about oldest supported environment. Remove rationale why
16004         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
16005         unportable C89 function.
16006         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
16007         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
16008
16009 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16010
16011         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
16012
16013 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
16014
16015         intprops-tests: new module
16016         * modules/intprops-tests, tests/test-intprops.c: New files.
16017
16018         intprops: add safe, portable integer overflow checking
16019         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
16020         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
16021         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
16022         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
16023         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
16024         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
16025         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
16026         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
16027         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
16028         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
16029         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
16030
16031 2011-05-12  James Youngman  <jay@gnu.org>
16032
16033         Add a test for glibc's Bugzilla bug #12378.
16034         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
16035         doesn't allow the literal matching of a lone "[" (which is
16036         required by POSIX).
16037         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
16038
16039 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
16040
16041         Sync glibc change fixing Bugzilla bug #12378.
16042         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
16043         beginning and fall back to matching as normal character if the
16044         string ends before the matching ']' is found.  This is what POSIX
16045         requires.
16046
16047 2011-05-13  Eric Blake  <eblake@redhat.com>
16048
16049         getcwd-lgpl: relax test for FreeBSD
16050         * doc/posix-functions/getcwd.texi (getcwd): Document portability
16051         issue.
16052         * tests/test-getcwd-lgpl.c (main): Relax test.
16053         Reported by Matthias Bolte.
16054
16055 2011-05-11  Eric Blake  <eblake@redhat.com>
16056
16057         test-fflush: silence compiler warning
16058         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
16059
16060 2011-05-11  Bruno Haible  <bruno@clisp.org>
16061
16062         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
16063         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
16064         * modules/canonicalize (Depends-on): Add 'nocrash'.
16065         * modules/canonicalize-lgpl (Depends-on): Likewise.
16066         * doc/posix-functions/realpath.texi: Update platforms list.
16067         Reported by Ryan Schmidt <ryandesign@macports.org>.
16068
16069 2011-05-11  Bruno Haible  <bruno@clisp.org>
16070
16071         group-member: Declare function in <unistd.h>.
16072         * lib/unistd.in.h (group_member): New declaration.
16073         * lib/group-member.h: Remove file.
16074         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
16075         * tests/test-unistd-c++.cc: Check signature of group_member.
16076         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
16077         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
16078         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
16079         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
16080         HAVE_GROUP_MEMBER.
16081         * modules/group-member (Files): Remove lib/group-member.h.
16082         (Depends-on): Add unistd. Specify conditions.
16083         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16084         (Include): Change to <unistd.h>.
16085         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
16086         HAVE_GROUP_MEMBER.
16087         * NEWS: Mention the change.
16088         * lib/euidaccess.c: Don't include group-member.h.
16089
16090 2011-05-11  Bruno Haible  <bruno@clisp.org>
16091
16092         group-member: Document module.
16093         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
16094         module.
16095
16096 2011-05-11  Bruno Haible  <bruno@clisp.org>
16097
16098         fclose: Fix mistake earlier today.
16099         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
16100
16101 2011-05-11  Eric Blake  <eblake@redhat.com>
16102
16103         fclose: preserve fflush errors
16104         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
16105         Reported by Jim Meyering.
16106
16107         bootstrap: support a prereq of 'rpcgen -' on RHEL5
16108         * build-aux/bootstrap (check_versions): When no specific version
16109         is required, merely check that the app produces an exit status
16110         that indicates its existence.
16111
16112         maint.mk: drop redundant check
16113         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
16114         the same but better.
16115
16116 2011-05-11  Bruno Haible  <bruno@clisp.org>
16117
16118         fclose: Fix possible link error.
16119         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
16120         unregister_shadow_fd. Improve comments.
16121         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
16122         Eric Blake.
16123
16124 2011-05-11  Jim Meyering  <meyering@redhat.com>
16125
16126         maint.mk: improve "can not" detection and generalize rule name
16127         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
16128         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
16129         Use the same technique as in sc_prohibit_doubled_word, so that
16130         we recognize "can not" also when the words are separated by a newline.
16131         Suggested by Eric Blake.
16132         (perl_filename_lineno_text_): Define.  Factored out of...
16133         (prohibit_doubled_word_): ...here.  Use the new definition.
16134         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
16135         (prohibit_undesirable_word_seq_RE_): New overridable variable.
16136         (ignore_undesirable_word_sequence_RE_): New overridable variable.
16137
16138 2011-05-10  Eric Blake  <eblake@redhat.com>
16139
16140         fclose: avoid double close race when possible
16141         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
16142         all but WINDOWS_SOCKETS.
16143
16144 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
16145
16146         openat: correct new comment
16147         * lib/openat-proc.c (openat_proc_name): Correct the comment.
16148
16149 2011-05-10  Jim Meyering  <meyering@redhat.com>
16150
16151         openat: add comments
16152         * lib/openat-proc.c (openat_proc_name): Add comments,
16153         mostly from Eric Blake.
16154
16155 2011-05-09  Eric Blake  <eblake@redhat.com>
16156
16157         openat: reduce syscalls in first probe of /proc
16158         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
16159         be a directory.  Simplify the probe for .. bugs.
16160         * modules/openat (Depends-on): Drop same-inode.
16161         Reported by Bastien ROUCARIES.
16162
16163 2011-05-09  Jim Meyering  <meyering@redhat.com>
16164
16165         maint.mk: change semantics/name of tight_scope variables
16166         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
16167         Rename variables to align with semantics that make them more useful.
16168
16169         maint.mk: tweak new rule's name not to impinge
16170         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
16171         (sc_tight_scope): Use new rule name rather than $@-0.
16172
16173         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
16174         * top/maint.mk (sc_tight_scope): New rule.
16175         (sc_tight_scope-0): New rule, ifdef'd out.
16176         (_gl_TS_dir): Default.
16177         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
16178         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
16179
16180 2011-05-09  Simon Josefsson  <simon@josefsson.org>
16181
16182         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
16183         Haible <bruno@clisp.org>.
16184
16185 2011-05-08  Bruno Haible  <bruno@clisp.org>
16186
16187         Comments.
16188         * m4/isnanf.m4: Add comment.
16189         * m4/isnanl.m4: Likewise.
16190
16191 2011-05-08  Bruno Haible  <bruno@clisp.org>
16192
16193         glob: Remove obsolete macro.
16194         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
16195
16196 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
16197
16198         intprops: Sun C 5.11 supports __typeof__
16199         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
16200         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
16201         which is new.
16202         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
16203
16204         intprops: switch to usual gnulib indenting and naming
16205         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
16206         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
16207
16208         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
16209
16210 2011-05-08  Jim Meyering  <meyering@redhat.com>
16211
16212         maint.mk: suppress "Entering/Leaving directory" diag in announcement
16213         * top/maint.mk (release-prep): Use make's --no-print-directory
16214         option when generating the announcement.  This eliminates the
16215         pesky "make[2]: Entering/Leaving directory" diagnostics in the
16216         generated announcement template.
16217
16218 2011-05-08  Bruno Haible  <bruno@clisp.org>
16219
16220         tzset: Fix gettimeofday wrapper on Solaris 2.6.
16221         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
16222         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
16223
16224 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
16225
16226         ignore-value, verify: Omit include files from lib_SOURCES.
16227         * modules/ignore-value, modules/verify (Makefile.am):
16228         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
16229         that leads Automake to duplicate use of am__objects_... variables
16230         in Makefile.in.  See
16231         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
16232
16233 2011-05-07  Bruno Haible  <bruno@clisp.org>
16234
16235         fclose: Simplify autoconf macro.
16236         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
16237         defined.
16238
16239 2011-05-07  Bruno Haible  <bruno@clisp.org>
16240
16241         canonicalize-lgpl: Fix autoconf macro ordering bug.
16242         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
16243         gl_STDLIB_H_DEFAULTS.
16244
16245 2011-05-06  Eric Blake  <eblake@redhat.com>
16246
16247         maintainer-makefile: make sc_po_check easier to tune
16248         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
16249         to probe for strings, such as an alternate location for gnulib.
16250
16251         fclose: guarantee behavior on seekable stdin
16252         * modules/fclose (Depends-on): Add fflush.
16253         * doc/posix-functions/fclose.texi (fclose): Document this.
16254         * tests/test-fclose.c (main): Make test for this unconditional.
16255
16256 2011-05-06  Bruno Haible  <bruno@clisp.org>
16257
16258         fflush, fpurge: Relicense under LGPLv2+.
16259         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
16260         * modules/fpurge (License): Likewise.
16261         With permission from Eric Blake and Jim Meyering.
16262         Suggested by Eric Blake.
16263
16264 2011-05-06  Karl Berry  <karl@gnu.org>
16265
16266         * MODULES.html.sh (func_all_modules): remove exit.
16267
16268 2011-05-06  Jim Meyering  <meyering@redhat.com>
16269
16270         maint.mk: use info-gnu@ as the default only for a stable release
16271         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
16272         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
16273         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
16274         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
16275
16276 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
16277
16278         assert-h: new module, which supports C1X-style static_assert
16279         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
16280         * lib/verify.h: Revamp so that this can be copied into assert.h,
16281         while retaining the ability to use it standalone as before.
16282         Rename private identifiers so as not to encroach on the
16283         standard C namespace, since this is now used by assert.h.
16284         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
16285         the old verify_true.
16286         (_GL_VERIFY_TRUE): New macro, with much of the contents of
16287         the old verify_true.  Use _GL_VERIFY_TYPE.
16288         (_GL_VERIFY): New macro, with much of the contents of the old verify.
16289         (static_assert): New macro, if _GL_STATIC_ASSERT_H
16290         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
16291         defined when this file is copied into the replacement assert.h.
16292         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
16293         and _Static_assert is not built in.
16294         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
16295         defined, and use the new macros mentioned above.
16296         * doc/posix-headers/assert.texi: Document this.
16297
16298 2011-05-05  Bruno Haible  <bruno@clisp.org>
16299
16300         fclose, fflush: Respect rules for use of AC_LIBOBJ.
16301         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
16302         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
16303         gl_REPLACE_FCLOSE here.
16304         * modules/fflush (Depends-on): Remove fclose.
16305         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
16306         combination with module 'fclose'.
16307
16308 2011-05-05  Bruno Haible  <bruno@clisp.org>
16309
16310         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
16311         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
16312         gl_FUNC_FFLUSH.
16313         (gl_FUNC_FFLUSH): Use it.
16314         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
16315         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
16316         gl_REPLACE_FSEEKO here.
16317
16318 2011-05-05  Bruno Haible  <bruno@clisp.org>
16319
16320         tzset: Relicense under LGPL.
16321         * modules/tzset (License): Change to LGPL.
16322         No agreement needed; it's a no-op.
16323
16324         strtoimax, strtoumax: Relicense under LGPL.
16325         * modules/strtoimax (License): Change to LGPL.
16326         * modules/strtoumax (License): Likewise.
16327         With permission from Jim Meyering, Paul Eggert:
16328         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
16329         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
16330
16331         getgroups: Relicense under LGPL.
16332         * modules/getgroups (License): Change to LGPL.
16333         With permission from Jim Meyering, Paul Eggert, Eric Blake:
16334         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
16335         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
16336         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16337
16338         nanosleep: Relicense under LGPL.
16339         * modules/nanosleep (License): Change to LGPL.
16340         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
16341         Haible:
16342         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
16343         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
16344         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16345         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
16346
16347         futimens: Relicense under LGPL.
16348         * modules/futimens (License): Change to LGPL.
16349         With permission from Eric Blake:
16350         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16351
16352         fflush: Relicense under LGPL.
16353         * modules/fflush (License): Change to LGPL.
16354         With permission from Eric Blake, Bruno Haible, Jim Meyering:
16355         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16356         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
16357         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
16358
16359         tmpfile: Relicense under LGPL.
16360         * modules/tmpfile (License): Change to LGPL.
16361         With permission from Ben Pfaff:
16362         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
16363
16364         isfinite: Relicense under LGPL.
16365         * modules/isfinite (License): Change to LGPL.
16366         With permission from Ben Pfaff, Bruno Haible:
16367         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
16368         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
16369
16370         acosl..tanl: Relicense under LGPL.
16371         * modules/acosl (License): Change to LGPL.
16372         * modules/asinl (License): Likewise.
16373         * modules/atanl (License): Likewise.
16374         * modules/cosl (License): Likewise.
16375         * modules/expl (License): Likewise.
16376         * modules/logl (License): Likewise.
16377         * modules/sinl (License): Likewise.
16378         * modules/sqrtl (License): Likewise.
16379         * modules/tanl (License): Likewise.
16380         Source code originally from glibc and Paolo Bonzini. Agreements:
16381         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
16382         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
16383
16384 2011-05-05  Bruno Haible  <bruno@clisp.org>
16385
16386         signal: Define sighandler_t.
16387         * lib/signal.in.h (sighandler_t): New type.
16388         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
16389         whether sighandler_t is defined.
16390         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
16391         * modules/signal (Depends-on): Add extensions.
16392         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
16393         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
16394         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
16395
16396 2011-05-05  Eric Blake  <eblake@redhat.com>
16397
16398         maint: remove useless REPLACE_*_H macros
16399         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
16400         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
16401         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
16402         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
16403         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
16404         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
16405         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
16406         * m4/btowc.m4: Update callers.
16407         * m4/dirfd.m4: Likewise.
16408         * m4/duplocale.m4: Likewise.
16409         * m4/fchdir.m4: Likewise.
16410         * m4/fdopendir.m4: Likewise.
16411         * m4/inet_ntop.m4: Likewise.
16412         * m4/inet_pton.m4: Likewise.
16413         * m4/ioctl.m4: Likewise.
16414         * m4/mbrlen.m4: Likewise.
16415         * m4/mbrtowc.m4: Likewise.
16416         * m4/mbsinit.m4: Likewise.
16417         * m4/mbsnrtowcs.m4: Likewise.
16418         * m4/mbsrtowcs.m4: Likewise.
16419         * m4/poll.m4: Likewise.
16420         * m4/setlocale.m4: Likewise.
16421         * m4/wcrtomb.m4: Likewise.
16422         * m4/wcsnrtombs.m4: Likewise.
16423         * m4/wcsrtombs.m4: Likewise.
16424         * m4/wctob.m4: Likewise.
16425         * m4/wcwidth.m4: Likewise.
16426         * modules/posix_spawn: Likewise.
16427         * modules/posix_spawn_file_actions_addclose: Likewise.
16428         * modules/posix_spawn_file_actions_adddup2: Likewise.
16429         * modules/posix_spawn_file_actions_addopen: Likewise.
16430         * modules/posix_spawn_file_actions_destroy: Likewise.
16431         * modules/posix_spawn_file_actions_init: Likewise.
16432         * modules/posix_spawnattr_destroy: Likewise.
16433         * modules/posix_spawnattr_getflags: Likewise.
16434         * modules/posix_spawnattr_getpgroup: Likewise.
16435         * modules/posix_spawnattr_getschedparam: Likewise.
16436         * modules/posix_spawnattr_getschedpolicy: Likewise.
16437         * modules/posix_spawnattr_getsigdefault: Likewise.
16438         * modules/posix_spawnattr_getsigmask: Likewise.
16439         * modules/posix_spawnattr_init: Likewise.
16440         * modules/posix_spawnattr_setflags: Likewise.
16441         * modules/posix_spawnattr_setpgroup: Likewise.
16442         * modules/posix_spawnattr_setschedparam: Likewise.
16443         * modules/posix_spawnattr_setschedpolicy: Likewise.
16444         * modules/posix_spawnattr_setsigdefault: Likewise.
16445         * modules/posix_spawnattr_setsigmask: Likewise.
16446         * modules/posix_spawnp: Likewise.
16447
16448 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
16449
16450         Add option to do-release-commit-and-tag to specify branch.
16451         * build-aux/do-release-commit-and-tag: Add --branch.
16452
16453 2011-05-03  Bruno Haible  <bruno@clisp.org>
16454
16455         Avoid unnecessary compilation units, through conditional dependencies.
16456         * modules/accept (Depends-on): Add conditions to the dependencies.
16457         * modules/acosl (Depends-on): Likewise.
16458         * modules/argz (Depends-on): Likewise.
16459         * modules/asinl (Depends-on): Likewise.
16460         * modules/atanl (Depends-on): Likewise.
16461         * modules/atoll (Depends-on): Likewise.
16462         * modules/bind (Depends-on): Likewise.
16463         * modules/btowc (Depends-on): Likewise.
16464         * modules/canonicalize-lgpl (Depends-on): Likewise.
16465         * modules/ceil (Depends-on): Likewise.
16466         * modules/ceilf (Depends-on): Likewise.
16467         * modules/ceill (Depends-on): Likewise.
16468         * modules/chdir-long (Depends-on): Likewise.
16469         * modules/chown (Depends-on): Likewise.
16470         * modules/close (Depends-on): Likewise.
16471         * modules/connect (Depends-on): Likewise.
16472         * modules/cosl (Depends-on): Likewise.
16473         * modules/dirfd (Depends-on): Likewise.
16474         * modules/dprintf (Depends-on): Likewise.
16475         * modules/dprintf-posix (Depends-on): Likewise.
16476         * modules/error (Depends-on): Likewise.
16477         * modules/euidaccess (Depends-on): Likewise.
16478         * modules/expl (Depends-on): Likewise.
16479         * modules/faccessat (Depends-on): Likewise.
16480         * modules/fchdir (Depends-on): Likewise.
16481         * modules/fclose (Depends-on): Likewise.
16482         * modules/fcntl (Depends-on): Likewise.
16483         * modules/fdopendir (Depends-on): Likewise.
16484         * modules/fflush (Depends-on): Likewise.
16485         * modules/floor (Depends-on): Likewise.
16486         * modules/floorf (Depends-on): Likewise.
16487         * modules/floorl (Depends-on): Likewise.
16488         * modules/fnmatch (Depends-on): Likewise.
16489         * modules/fopen (Depends-on): Likewise.
16490         * modules/fprintf-posix (Depends-on): Likewise.
16491         * modules/frexp (Depends-on): Likewise.
16492         * modules/frexp-nolibm (Depends-on): Likewise.
16493         * modules/frexpl (Depends-on): Likewise.
16494         * modules/frexpl-nolibm (Depends-on): Likewise.
16495         * modules/fseek (Depends-on): Likewise.
16496         * modules/fsusage (Depends-on): Likewise.
16497         * modules/ftell (Depends-on): Likewise.
16498         * modules/ftello (Depends-on): Likewise.
16499         * modules/futimens (Depends-on): Likewise.
16500         * modules/getcwd (Depends-on): Likewise.
16501         * modules/getcwd-lgpl (Depends-on): Likewise.
16502         * modules/getdelim (Depends-on): Likewise.
16503         * modules/getdomainname (Depends-on): Likewise.
16504         * modules/getgroups (Depends-on): Likewise.
16505         * modules/gethostname (Depends-on): Likewise.
16506         * modules/getline (Depends-on): Likewise.
16507         * modules/getlogin_r (Depends-on): Likewise.
16508         * modules/getopt-posix (Depends-on): Likewise.
16509         * modules/getpeername (Depends-on): Likewise.
16510         * modules/getsockname (Depends-on): Likewise.
16511         * modules/getsockopt (Depends-on): Likewise.
16512         * modules/getsubopt (Depends-on): Likewise.
16513         * modules/getusershell (Depends-on): Likewise.
16514         * modules/glob (Depends-on): Likewise.
16515         * modules/grantpt (Depends-on): Likewise.
16516         * modules/iconv_open (Depends-on): Likewise.
16517         * modules/iconv_open-utf (Depends-on): Likewise.
16518         * modules/inet_ntop (Depends-on): Likewise.
16519         * modules/inet_pton (Depends-on): Likewise.
16520         * modules/ioctl (Depends-on): Likewise.
16521         * modules/isapipe (Depends-on): Likewise.
16522         * modules/isfinite (Depends-on): Likewise.
16523         * modules/isinf (Depends-on): Likewise.
16524         * modules/lchown (Depends-on): Likewise.
16525         * modules/ldexpl (Depends-on): Likewise.
16526         * modules/link (Depends-on): Likewise.
16527         * modules/linkat (Depends-on): Likewise.
16528         * modules/listen (Depends-on): Likewise.
16529         * modules/logl (Depends-on): Likewise.
16530         * modules/lstat (Depends-on): Likewise.
16531         * modules/mbrlen (Depends-on): Likewise.
16532         * modules/mbrtowc (Depends-on): Likewise.
16533         * modules/mbsinit (Depends-on): Likewise.
16534         * modules/mbsnrtowcs (Depends-on): Likewise.
16535         * modules/mbsrtowcs (Depends-on): Likewise.
16536         * modules/mbtowc (Depends-on): Likewise.
16537         * modules/memcmp (Depends-on): Likewise.
16538         * modules/mkdir (Depends-on): Likewise.
16539         * modules/mkdtemp (Depends-on): Likewise.
16540         * modules/mkfifo (Depends-on): Likewise.
16541         * modules/mkfifoat (Depends-on): Likewise.
16542         * modules/mknod (Depends-on): Likewise.
16543         * modules/mkostemp (Depends-on): Likewise.
16544         * modules/mkostemps (Depends-on): Likewise.
16545         * modules/mkstemp (Depends-on): Likewise.
16546         * modules/mkstemps (Depends-on): Likewise.
16547         * modules/mktime (Depends-on): Likewise.
16548         * modules/nanosleep (Depends-on): Likewise.
16549         * modules/open (Depends-on): Likewise.
16550         * modules/openat (Depends-on): Likewise.
16551         * modules/perror (Depends-on): Likewise.
16552         * modules/poll (Depends-on): Likewise.
16553         * modules/popen (Depends-on): Likewise.
16554         * modules/posix_spawn (Depends-on): Likewise.
16555         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
16556         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
16557         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
16558         * modules/posix_spawnp (Depends-on): Likewise.
16559         * modules/pread (Depends-on): Likewise.
16560         * modules/printf-posix (Depends-on): Likewise.
16561         * modules/ptsname (Depends-on): Likewise.
16562         * modules/putenv (Depends-on): Likewise.
16563         * modules/pwrite (Depends-on): Likewise.
16564         * modules/readline (Depends-on): Likewise.
16565         * modules/readlink (Depends-on): Likewise.
16566         * modules/readlinkat (Depends-on): Likewise.
16567         * modules/recv (Depends-on): Likewise.
16568         * modules/recvfrom (Depends-on): Likewise.
16569         * modules/regex (Depends-on): Likewise.
16570         * modules/remove (Depends-on): Likewise.
16571         * modules/rename (Depends-on): Likewise.
16572         * modules/renameat (Depends-on): Likewise.
16573         * modules/rmdir (Depends-on): Likewise.
16574         * modules/round (Depends-on): Likewise.
16575         * modules/roundf (Depends-on): Likewise.
16576         * modules/roundl (Depends-on): Likewise.
16577         * modules/rpmatch (Depends-on): Likewise.
16578         * modules/select (Depends-on): Likewise.
16579         * modules/send (Depends-on): Likewise.
16580         * modules/sendto (Depends-on): Likewise.
16581         * modules/setenv (Depends-on): Likewise.
16582         * modules/setlocale (Depends-on): Likewise.
16583         * modules/setsockopt (Depends-on): Likewise.
16584         * modules/shutdown (Depends-on): Likewise.
16585         * modules/sigaction (Depends-on): Likewise.
16586         * modules/signbit (Depends-on): Likewise.
16587         * modules/sigprocmask (Depends-on): Likewise.
16588         * modules/sinl (Depends-on): Likewise.
16589         * modules/sleep (Depends-on): Likewise.
16590         * modules/snprintf (Depends-on): Likewise.
16591         * modules/snprintf-posix (Depends-on): Likewise.
16592         * modules/socket (Depends-on): Likewise.
16593         * modules/sprintf-posix (Depends-on): Likewise.
16594         * modules/sqrtl (Depends-on): Likewise.
16595         * modules/stat (Depends-on): Likewise.
16596         * modules/strchrnul (Depends-on): Likewise.
16597         * modules/strdup-posix (Depends-on): Likewise.
16598         * modules/strerror (Depends-on): Likewise.
16599         * modules/strerror_r-posix (Depends-on): Likewise.
16600         * modules/strndup (Depends-on): Likewise.
16601         * modules/strnlen (Depends-on): Likewise.
16602         * modules/strptime (Depends-on): Likewise.
16603         * modules/strsep (Depends-on): Likewise.
16604         * modules/strsignal (Depends-on): Likewise.
16605         * modules/strstr-simple (Depends-on): Likewise.
16606         * modules/strtod (Depends-on): Likewise.
16607         * modules/strtoimax (Depends-on): Likewise.
16608         * modules/strtok_r (Depends-on): Likewise.
16609         * modules/strtoumax (Depends-on): Likewise.
16610         * modules/symlink (Depends-on): Likewise.
16611         * modules/symlinkat (Depends-on): Likewise.
16612         * modules/tanl (Depends-on): Likewise.
16613         * modules/tcgetsid (Depends-on): Likewise.
16614         * modules/tmpfile (Depends-on): Likewise.
16615         * modules/trunc (Depends-on): Likewise.
16616         * modules/truncf (Depends-on): Likewise.
16617         * modules/truncl (Depends-on): Likewise.
16618         * modules/uname (Depends-on): Likewise.
16619         * modules/unlink (Depends-on): Likewise.
16620         * modules/unlockpt (Depends-on): Likewise.
16621         * modules/unsetenv (Depends-on): Likewise.
16622         * modules/usleep (Depends-on): Likewise.
16623         * modules/utimensat (Depends-on): Likewise.
16624         * modules/vasprintf (Depends-on): Likewise.
16625         * modules/vdprintf (Depends-on): Likewise.
16626         * modules/vdprintf-posix (Depends-on): Likewise.
16627         * modules/vfprintf-posix (Depends-on): Likewise.
16628         * modules/vprintf-posix (Depends-on): Likewise.
16629         * modules/vsnprintf (Depends-on): Likewise.
16630         * modules/vsnprintf-posix (Depends-on): Likewise.
16631         * modules/vsprintf-posix (Depends-on): Likewise.
16632         * modules/wcrtomb (Depends-on): Likewise.
16633         * modules/wcscasecmp (Depends-on): Likewise.
16634         * modules/wcscspn (Depends-on): Likewise.
16635         * modules/wcsdup (Depends-on): Likewise.
16636         * modules/wcsncasecmp (Depends-on): Likewise.
16637         * modules/wcsnrtombs (Depends-on): Likewise.
16638         * modules/wcspbrk (Depends-on): Likewise.
16639         * modules/wcsrtombs (Depends-on): Likewise.
16640         * modules/wcsspn (Depends-on): Likewise.
16641         * modules/wcsstr (Depends-on): Likewise.
16642         * modules/wcstok (Depends-on): Likewise.
16643         * modules/wcswidth (Depends-on): Likewise.
16644         * modules/wctob (Depends-on): Likewise.
16645         * modules/wctomb (Depends-on): Likewise.
16646         * modules/wctype (Depends-on): Likewise.
16647         * modules/wcwidth (Depends-on): Likewise.
16648         * modules/write (Depends-on): Likewise.
16649
16650 2011-05-03  Bruno Haible  <bruno@clisp.org>
16651
16652         Support for conditional dependencies.
16653         * doc/gnulib.texi (Module description): Document the syntax of
16654         conditional dependencies.
16655         * gnulib-tool: New option --conditional-dependencies.
16656         (func_usage): Document it.
16657         (cond_dependencies): New variable.
16658         (func_get_automake_snippet_conditional,
16659         func_get_automake_snippet_unconditional): New functions, extracted from
16660         func_get_automake_snippet.
16661         (func_get_automake_snippet): Use them.
16662         (sed_first_32_chars): New variable.
16663         (func_module_shellfunc_name): New function.
16664         (func_module_shellvar_name): New function.
16665         (func_module_conditional_name): New function.
16666         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
16667         func_cond_module_condition): New functions.
16668         (func_modules_transitive_closure): Add support for conditional
16669         dependencies.
16670         (func_emit_lib_Makefile_am): For a conditional module, enclose the
16671         conditional automake snippet in an automake conditional.
16672         (func_emit_autoconf_snippets): Emit shell functions that contain the
16673         code for conditional modules.
16674         (func_import, func_create_testdir): Update specification.
16675
16676 2011-05-03  Eric Blake  <eblake@redhat.com>
16677
16678         test-getaddrinfo: report error information
16679         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
16680
16681 2011-05-03  Jim Meyering  <meyering@redhat.com>
16682
16683         bootstrap: avoid build failure when $GZIP is set
16684         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
16685         program name.  If defined at all, it is supposed to list gzip options.
16686         Reported by Alan Curry in http://debbugs.gnu.org/8609
16687
16688 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
16689
16690         readme-release: new module with release instructions
16691         * modules/readme-release: New module.
16692         * top/README-release: New file, from coreutils, grep, diffutils.
16693         * MODULES.html.sh (Support for maintaining and releasing): Add it.
16694
16695 2011-05-02  Eric Blake  <eblake@redhat.com>
16696
16697         fflush: also replace fclose when fixing fflush
16698         * modules/fflush (Depends-on): Add fclose.
16699         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
16700         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
16701         memstreams with no backing fd.
16702         * doc/posix-functions/fclose.texi (fclose): Document the use of
16703         fflush module to fix the bug.
16704         * tests/test-fclose.c (main): Relax test when fclose is used in
16705         isolation.
16706
16707         fclose: add some tests
16708         * modules/fclose-tests: New test module.
16709         * tests/test-fclose.c: New file.
16710         * doc/posix-functions/fclose.texi (fclose): Document the bug.
16711
16712         fclose: reduced dependencies
16713         * modules/fclose (Depends-on): Switch from fflush/fseeko to
16714         simpler lseek.
16715         * lib/fclose.c (rpl_fclose): Likewise.
16716         Reported by Simon Josefsson.
16717
16718         exit: drop remaining clients
16719         * modules/argmatch (Depends-on): Replace exit with stdlib.
16720         * modules/copy-file (Depends-on): Likewise.
16721         * modules/execute (Depends-on): Likewise.
16722         * modules/exitfail (Depends-on): Likewise.
16723         * modules/obstack (Depends-on): Likewise.
16724         * modules/pagealign_alloc (Depends-on): Likewise.
16725         * modules/pipe-filter-gi (Depends-on): Likewise.
16726         * modules/pipe-filter-ii (Depends-on): Likewise.
16727         * modules/savewd (Depends-on): Likewise.
16728         * modules/spawn-pipe (Depends-on): Likewise.
16729         * modules/wait-process (Depends-on): Likewise.
16730         * modules/xsetenv (Depends-on): Likewise.
16731         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
16732         * modules/git-merge-changelog (Depends-on): Likewise.
16733         * modules/long-options (Depends-on): Likewise.
16734         * modules/pt_chown (Depends-on): Likewise.
16735         * modules/sysexits (Depends-on): Likewise.
16736
16737         freading: relax license from LGPLv3+ to LGPLv2+
16738         * modules/freading (License): Relax LGPL version.
16739
16740 2011-05-02  Bruno Haible  <bruno@clisp.org>
16741
16742         fchdir: Remove unused dependencies.
16743         * modules/fchdir (Depends-on): Remove include_next.
16744
16745 2011-05-02  Bruno Haible  <bruno@clisp.org>
16746
16747         gnulib-tool: Refactor.
16748         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
16749         from func_emit_autoconf_snippets.
16750         (func_emit_autoconf_snippets): Use it.
16751
16752 2011-05-02  Simon Josefsson  <simon@josefsson.org>
16753
16754         * NEWS: Document removal of 'exit'.
16755         * modules/exit: Remove file.
16756
16757 2011-05-01  Bruno Haible  <bruno@clisp.org>
16758
16759         Update DEPENDENCIES.
16760         * DEPENDENCIES (gettext): Recommend the newest release.
16761         Reported by Simon Josefsson.
16762
16763 2011-05-01  Bruno Haible  <bruno@clisp.org>
16764
16765         gnulib-tool: Reduce code duplication.
16766         * gnulib-tool (func_emit_autoconf_snippets): New function.
16767         (func_import, func_create_testdir): Use it.
16768
16769 2011-04-30  Eric Blake  <eblake@redhat.com>
16770
16771         fclose: don't fail on non-seekable input stream
16772         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
16773         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
16774         since fflush is allowed to fail in that case.
16775
16776 2011-04-30  Bruno Haible  <bruno@clisp.org>
16777
16778         dup3: cleanup
16779         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
16780
16781 2011-04-30  Bruno Haible  <bruno@clisp.org>
16782
16783         netdb: Make it work in C++ mode.
16784         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
16785         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
16786         module.
16787         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
16788         gl_MODULE_INDICATOR_FOR_TESTS.
16789         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
16790         * modules/netdb-c++-tests: New file.
16791         * tests/test-netdb-c++.cc: New file.
16792
16793 2011-04-30  Bruno Haible  <bruno@clisp.org>
16794
16795         New modules 'vfscanf', 'vscanf'.
16796         * modules/vfscanf: New file.
16797         * modules/vscanf: New file.
16798         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
16799         here.
16800         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
16801         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
16802
16803 2011-04-30  Bruno Haible  <bruno@clisp.org>
16804
16805         passfd: Add comments.
16806         * lib/passfd.c: Add comments about platforms.
16807
16808 2011-04-30  Bruno Haible  <bruno@clisp.org>
16809
16810         sys_uio: Make <sys/uio.h> self-contained.
16811         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
16812         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
16813
16814 2011-04-30  Bruno Haible  <bruno@clisp.org>
16815
16816         sys_socket: Ensure 'struct iovec' definition.
16817         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
16818         <sys/socket.h>.
16819         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
16820
16821 2011-04-30  Bruno Haible  <bruno@clisp.org>
16822
16823         sys_uio: Protect definition of 'struct iovec'.
16824         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
16825         it as a C struct.
16826
16827 2011-04-30  Bruno Haible  <bruno@clisp.org>
16828
16829         manywarnings: fix indentation
16830         * m4/manywarnings.m4: Indent by 2 spaces consistently.
16831
16832 2011-04-30  Pádraig Brady <P@draigBrady.com>
16833
16834         manywarnings: add -Wno-missing-field-initializers if needed.
16835         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
16836         option if it's needed to allow initialization with { 0, }
16837
16838 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
16839
16840         announce-gen: cosmetic improvement
16841         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
16842
16843 2011-04-29  Jim Meyering  <meyering@redhat.com>
16844
16845         vc-list-files: indent with spaces, not TABs
16846         * build-aux/vc-list-files: Convert leading TABs to spaces,
16847         to match the style of most other files in gnulib.
16848
16849         announce-gen: indent with spaces, not TABs
16850         * build-aux/announce-gen: Convert all TABs to spaces, to match
16851         the style of most other files in gnulib.
16852
16853 2011-04-29  Eric Blake  <eblake@redhat.com>
16854
16855         quotearg: avoid uninitialized variable use
16856         * lib/quotearg.c (quoting_options_from_style): Initialize
16857         remaining fields, and ensure that custom styles are only used via
16858         quoting_options rather than quoting_style.
16859
16860 2011-04-29  Jim Meyering  <meyering@redhat.com>
16861
16862         maint.mk: remove unused VC-tag variable
16863         * top/maint.mk (VC-tag): Remove unused variable.
16864
16865 2011-04-29  Bruno Haible  <bruno@clisp.org>
16866
16867         netdb: fix gai_strerror replacements
16868         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
16869         * modules/netdb: Substitute it.
16870
16871 2011-04-29  Jim Meyering  <meyering@redhat.com>
16872
16873         test-getcwd.c: avoid new set-but-not-used warning
16874         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
16875         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
16876         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
16877         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
16878
16879         test-hash.c: avoid a new shadowing warning
16880         * tests/test-hash.c (main): Don't shadow "dup".
16881
16882 2011-04-28  Eric Blake  <eblake@redhat.com>
16883
16884         getaddrinfo: fix gai_strerror signature
16885         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
16886         and work around mingw with UNICODE defined.
16887         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
16888         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
16889         * modules/netdb (Makefile.am): Substitute it.
16890         * lib/netdb.in.h (gai_strerror): Declare replacement.
16891         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
16892         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
16893         the fix.
16894
16895         getsockopt: avoid compiler warning
16896         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
16897         Reported by Matthias Bolte.
16898
16899         tests: drop unused link dependency
16900         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
16901         * modules/dirent-safer-tests (Makefile.am): Likewise.
16902         * modules/fdopendir-tests (Makefile.am): Likewise.
16903         * modules/mkfifoat-tests (Makefile.am): Likewise.
16904         * modules/openat-safer-tests (Makefile.am): Likewise.
16905         * modules/openat-tests (Makefile.am): Likewise.
16906         * modules/readlinkat-tests (Makefile.am): Likewise.
16907         * modules/symlinkat-tests (Makefile.am): Likewise.
16908         * modules/linkat-tests (Makefile.am): Likewise.
16909         (Depends-on): Switch to filenamecat-lgpl.
16910         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
16911         LIBINTL.
16912         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
16913         * tests/test-linkat.c (main): Don't require xalloc.
16914
16915         hash, mgetgroups: drop xalloc dependency
16916         * lib/hash.c (includes): Adjust includes.
16917         * lib/mgetgroups.c (includes): Likewise.
16918         (xgetgroups): Move...
16919         * lib/xgetgroups.c: ...to new file.
16920         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
16921         * modules/xgetgroups: New file, split from...
16922         * modules/mgetgroups: ...here.
16923         (Depends-on): Add xalloc-oversized.
16924         * modules/hash (Depends-on): Likewise.
16925         * modules/hash-tests (Depends-on): Drop xalloc.
16926         (test_hash_LDADD): Drop unused library.
16927         * tests/test-hash.c (main): Break xalloc dependency.
16928         (includes): Drop unused include.
16929
16930         xalloc-oversized: new module
16931         * modules/xalloc-oversized: New module.
16932         * modules/xalloc (Depends-on): Add it.
16933         * lib/xalloc.h (xalloc_oversized): Move...
16934         * lib/xalloc-oversized.h: ...into new file.
16935
16936         utimecmp: drop dependency on xmalloc
16937         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
16938         due to memory pressure.
16939         * modules/utimecmp (Depends-on): Drop xalloc.
16940
16941 2011-04-27  Eric Blake  <eblake@redhat.com>
16942
16943         getcwd: fix mingw bugs
16944         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
16945         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
16946         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
16947
16948 2011-04-27  Bruno Haible  <bruno@clisp.org>
16949
16950         mkstemps: Ensure declaration on MacOS X 10.5.
16951         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
16952         * doc/glibc-functions/mkstemps.texi: Document header file problem on
16953         MacOS X.
16954
16955 2011-04-27  Bruno Haible  <bruno@clisp.org>
16956
16957         mkstemp: More documentation.
16958         * doc/posix-functions/mkstemp.texi: Document header file problem on
16959         MacOS X.
16960
16961 2011-04-27  Bruno Haible  <bruno@clisp.org>
16962
16963         mkstemp: Tweak configure message when cross-compiling.
16964         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
16965         result as a guess.
16966
16967 2011-04-27  Bruno Haible  <bruno@clisp.org>
16968
16969         clean-temp: Clarify what it does.
16970         * lib/clean-temp.h: Add more comments.
16971         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
16972         module.
16973         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
16974         * doc/glibc-functions/mkstemps.texi: Likewise.
16975         * doc/glibc-functions/mkostemps.texi: Likewise.
16976
16977 2011-04-27  Eric Blake  <eblake@redhat.com>
16978
16979         fchdir: avoid extra chdir and fix test
16980         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
16981         getcwd-lgpl.
16982         * lib/fchdir.c (get_name): Any absolute name will do; it does not
16983         have to be canonical.
16984         (canonicalize_file_name): Drop unused macro.
16985         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
16986
16987         filenamecat-lgpl: fix licence
16988         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
16989         when it was first created.
16990
16991         linkat, renameat: add missing dependency
16992         * modules/linkat (Depends-on): Require getcwd-lgpl.
16993         * modules/renameat (Depends-on): Likewise.
16994
16995         tests: reduce dependencies
16996         * tests/test-linkat.c (main): Use lighter-weight getcwd.
16997         * tests/test-renameat.c (main): Likewise.
16998         * modules/linkat-tests (Depends-on): Relax dependency.
16999         * modules/renameat-tests (Depends-on): Likewise.
17000         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
17001         dependency explicit.
17002
17003         save-cwd: reduce default dependency
17004         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
17005         * lib/save-cwd.c: Update comments.
17006         * NEWS: Document the semantic change.
17007
17008         getcwd: enhance tests
17009         * tests/test-getcwd-lgpl.c: New file, taken from...
17010         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
17011         repeat long path stress tests from m4 probe.
17012         * modules/getcwd-lgpl-tests: New module.
17013         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
17014         * m4/getcwd-abort-bug.m4: Update comment.
17015         * m4/getcwd-path-max.m4: Likewise.
17016
17017         getcwd-lgpl: new module
17018         * modules/getcwd-lgpl: New module.
17019         * lib/getcwd-lgpl.c: New file.
17020         * doc/posix-functions/getcwd.texi (getcwd): Document it.
17021         * MODULES.html.sh (lacking POSIX:2008): Likewise.
17022         * modules/getcwd (configure.ac): Set C witness.
17023         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
17024
17025         getcwd: tweak comments
17026         * m4/getcwd-abort-bug.m4: Fix comments.
17027         * m4/getcwd-path-max.m4: Likewise.
17028         * m4/getcwd.m4: Likewise.
17029
17030 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
17031         and Eric Blake  <eblake@redhat.com>
17032
17033         mkstemp: replace if system version uses wrong permissions
17034         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
17035         read/write mode bits set in file created by mkstemp.
17036         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
17037
17038 2011-04-27  Eric Blake  <eblake@redhat.com>
17039
17040         passfd: avoid compiler warning
17041         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
17042         Reported by Laine Stump.
17043
17044 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
17045
17046         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
17047         required by the NetBSD (and perhaps other 4.4BSD derived) join.
17048
17049 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
17050         and Eric Blake  <eblake@redhat.com>
17051
17052         mkstemp: mention clean-temp module
17053         * lib/mkstemp.c: Add comment.
17054         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
17055
17056 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
17057
17058         inttypes: also provide default values for 32-bit tests
17059         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
17060         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
17061
17062 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
17063
17064         strtoumax: remove dependency on strtoimax
17065         This is like the strtoull change of yesterday.
17066         * modules/strtoumax (Files): Add lib/strtoimax.c.
17067         (Depends-on): Remove strtoimax and add verify.
17068
17069         inttypes-incomplete: new module
17070         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
17071         all but the PRI* and SCN* parts of gl_INTTYPES_H.
17072         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
17073         of gl_INTTYPES_H.
17074         (gl_INTTYPES_H): Rewrite in terms of these new macros.
17075         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
17076         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
17077         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
17078         * modules/strtoumax, modules/xstrtol (Depends-on):
17079         Depend on inttypes-incomplete, not inttypes.
17080         * modules/inttypes-incomplete: New module, containing the contents
17081         of the old modules/inttypes module, except that the Files: section
17082         omits m4/inttypes-pri.m4, and the configure.ac section invokes
17083         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
17084         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
17085         (Depends-on): Depend only on inttypes-incomplete.
17086         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
17087
17088         inttypes: omit now-redundant strtoimax and strtoumax work
17089         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
17090         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
17091
17092         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
17093         This supports apps that need pointers to strtoimax and strtoumax,
17094         and ports to HP-UX 11.00 64.bit, which has macros that expand to
17095         nonexistent functions.  See
17096         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
17097         et seq.
17098         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
17099         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
17100         a macro.
17101         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
17102
17103 2011-04-25  Simon Josefsson  <simon@josefsson.org>
17104
17105         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
17106
17107 2011-04-25  Bruno Haible  <bruno@clisp.org>
17108
17109         strtol, strtoul: Mark modules as obsolete.
17110         * modules/strtol (Status, Notice): New sections.
17111         * modules/strtoul (Status, Notice): New sections.
17112
17113 2011-04-25  Bruno Haible  <bruno@clisp.org>
17114
17115         strtod: Remove check for strtod, unless supporting old platforms.
17116         * modules/strtod-obsolete: New file.
17117         * m4/strtod-obsolete.m4: New file.
17118         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
17119         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
17120         * modules/strtod (Depends-on): Add strtod-obsolete.
17121         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
17122
17123 2011-04-25  Bruno Haible  <bruno@clisp.org>
17124
17125         strcase: Make module obsolete.
17126         * modules/strcase (Status, Notice): New sections.
17127
17128 2011-04-25  Bruno Haible  <bruno@clisp.org>
17129
17130         dup2: Remove check for dup2, unless supporting old obsolete platforms.
17131         * modules/dup2-obsolete: New file.
17132         * m4/dup2-obsolete.m4: New file.
17133         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
17134         gl_FUNC_DUP2_OBSOLETE is not also defined.
17135         * modules/dup2 (Depends-on): Add dup2-obsolete.
17136         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
17137
17138 2011-04-25  Bruno Haible  <bruno@clisp.org>
17139
17140         strnlen: Avoid memchr related link error on old obsolete platforms.
17141         * modules/memchr-obsolete: New file.
17142         * m4/memchr-obsolete.m4: New file.
17143         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
17144         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
17145         * modules/memchr (Depends-on): Add memchr-obsolete.
17146         * modules/strnlen (Depends-on): Likewise.
17147         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
17148
17149 2011-04-25  Jim Meyering  <meyering@redhat.com>
17150
17151         maint.mk: makefile_at_at_check extend and clean up
17152         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
17153         in addition to */Makefile.am.
17154         Exempt legitimate uses of @VAR@ notation, e.g.,
17155         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
17156         Remove obsolete coreutils-specific comment.
17157         Prompted by discussion here:
17158         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
17159
17160 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
17161
17162         strtoul: remove dependency on strtol
17163         This is so that 'configure' need not check for strtol merely because
17164         the application needs strtoul.
17165         * modules/strtoul (Files): Add lib/strtol.c.
17166         (Depends-on): Remove strtol.
17167
17168         strtoull: remove dependency on strtoul
17169         This is like the strtoll change.
17170         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
17171         (Depends-on): Remove strtoul.
17172
17173         strtoll: remove dependency on strtol
17174         This is so that 'configure' need not check for strtol merely because
17175         the application needs strtoll.
17176         * modules/strtoll (Files): Add lib/strtol.c.
17177         (Depends-on): Remove strtol.
17178
17179 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17180
17181         inttypes: Move some configure check to module 'imaxdiv'.
17182         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
17183         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
17184         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
17185
17186 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17187
17188         inttypes: Move some configure check to module 'imaxabs'.
17189         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
17190         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
17191         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
17192
17193 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17194
17195         inttypes: Remove configure tests that are not needed since 2009-12-31.
17196         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
17197         gl_cv_header_working_inttypes_h.
17198
17199 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17200
17201         * modules/strnlen (Depends-on): Remove memchr.
17202         The strnlen implementation doesn't need the memchr module's fixes; see
17203         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
17204
17205         strtol: remove dependency on wchar
17206         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
17207         * modules/strtol (Depends-on): Remove wchar.
17208
17209 2011-04-21  Eric Blake  <eblake@redhat.com>
17210
17211         passfd: fix test regression on Linux
17212         * modules/passfd-tests (configure.ac): Correct socketpair check.
17213
17214         passfd: speed up configure and drop unused code
17215         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
17216         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
17217         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
17218         Instead of probing at configure for unix_scm_rights_bsd44_way,
17219         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
17220         check to a struct member probe.
17221         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
17222         (sendfd, recvfd): Update preprocessor checks.
17223         * modules/passfd (Files): Reflect rename, and drop unused file.
17224         (Depends-on): Drop unused dependency.
17225
17226         passfd: allow compilation on mingw
17227         * modules/sys_socket (Depends-on): Add sys_uio.
17228         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
17229         iovec and a minimal struct msghdr.
17230         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
17231         * tests/test-sys_socket.c (main): Enhance test.
17232         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
17233         guaranteed to provide what we need.
17234         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
17235         * modules/passfd-tests (Depends-on): Add sys_wait.
17236         * tests/test-passfd.c (main): Skip test on mingw, for now.
17237         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
17238         partial 'struct msghdr' implementation.
17239
17240         sys_uio: new module
17241         * modules/sys_uio: New module.
17242         * modules/sys_uio-tests: Likewise.
17243         * lib/sys_uio.in.h: New file.
17244         * m4/sys_uio_h.m4: Likewise.
17245         * tests/test-sys_uio.c: Likewise.
17246         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
17247         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
17248
17249 2011-04-20  Jim Meyering  <meyering@redhat.com>
17250
17251         useless-if-before-free: avoid false-positive
17252         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
17253         disjunct so that it too requires a terminating ";".  Without that,
17254         this script would identify as useless one statement from gcc that
17255         was not:
17256           if (aligned_ptr)
17257             free (((void **) aligned_ptr) [-1]);
17258
17259 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
17260
17261         doc: update users.txt.
17262         * users.txt: Add barcode.
17263
17264 2011-04-19  Bruno Haible  <bruno@clisp.org>
17265
17266         ioctl: Remove link dependency on native Windows.
17267         * lib/fd-hook.h: Renamed from lib/close-hook.h.
17268         (gl_close_fn, gl_ioctl_fn): New types.
17269         (struct fd_hook): Renamed from struct close_hook. Change type of
17270         private_close_fn field. Add private_ioctl_fn field.
17271         (close_hook_fn): Add parameter for primary close method.
17272         (execute_close_hooks, execute_all_close_hooks): Likewise.
17273         (ioctl_hook_fn): New type.
17274         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
17275         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
17276         argument.
17277         (unregister_fd_hook): Renamed from unregister_close_hook.
17278         * lib/fd-hook.c: Renamed from lib/close-hook.c.
17279         Don't include <unistd.h>.
17280         (close): Remove undef.
17281         (anchor): Update.
17282         (execute_close_hooks): Add argument for primary close method.
17283         (execute_all_close_hooks): Likewise.
17284         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
17285         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
17286         argument. Allow each argument to be NULL.
17287         (unregister_fd_hook): Renamed from unregister_close_hook.
17288         * lib/close.c (rpl_close): Pass 'close' function pointer to
17289         execute_all_close_hooks.
17290         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
17291         (primary_ioctl): New function.
17292         (ioctl): Don't call ioctlsocket here. Instead, call
17293         execute_all_ioctl_hooks.
17294         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
17295         close method.
17296         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
17297         (fd_sockets_hook): Renamed from close_sockets_hook.
17298         (gl_sockets_startup, gl_sockets_cleanup): Update.
17299         * modules/fd-hook: Renamed from modules/close-hook. Update.
17300         * modules/close (Depends-on): Add fd-hook, remove close-hook.
17301         * modules/sockets (Depends-on): Likewise.
17302         * modules/ioctl (Depends-on): Add fd-hook.
17303         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
17304         GNULIB_SOCKET.
17305
17306 2011-04-19  Bruno Haible  <bruno@clisp.org>
17307
17308         Move the support of O_NONBLOCK in open() to the 'open' module.
17309         * modules/nonblocking (Depends-on): Remove 'open'.
17310         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
17311         gl_cv_have_open_O_NONBLOCK.
17312         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
17313         O_NONBLOCK support.
17314         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
17315
17316 2011-04-17  Bruno Haible  <bruno@clisp.org>
17317
17318         pipe2: Simplify code.
17319         * lib/pipe2.c (pipe2): Reduce code duplication.
17320
17321 2011-04-17  Bruno Haible  <bruno@clisp.org>
17322
17323         nonblocking: Add comment.
17324         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
17325
17326 2011-04-17  Bruno Haible  <bruno@clisp.org>
17327
17328         nonblocking: Add tests for sockets.
17329         * tests/test-nonblocking-socket.sh: New file.
17330         * tests/test-nonblocking-socket-main.c: New file.
17331         * tests/test-nonblocking-socket-child.c: New file.
17332         * tests/test-nonblocking-socket.h: New file.
17333         * tests/socket-server.h: New file.
17334         * tests/socket-client.h: New file.
17335         * modules/nonblocking-socket-tests: New file.
17336         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
17337
17338 2011-04-17  Bruno Haible  <bruno@clisp.org>
17339
17340         nonblocking: Add tests for pipes.
17341         * tests/test-nonblocking-pipe.sh: New file.
17342         * tests/test-nonblocking-pipe-main.c: New file.
17343         * tests/test-nonblocking-pipe-child.c: New file.
17344         * tests/test-nonblocking-pipe.h: New file.
17345         * tests/test-nonblocking-writer.h: New file.
17346         * tests/test-nonblocking-reader.h: New file.
17347         * tests/test-nonblocking-misc.h: New file.
17348         * modules/nonblocking-pipe-tests: New file.
17349         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
17350
17351 2011-04-16  Bruno Haible  <bruno@clisp.org>
17352
17353         gettext: Clarify the needed programmer actions.
17354         * modules/gettext (Notice): New field.
17355         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
17356
17357 2011-04-16  Bruno Haible  <bruno@clisp.org>
17358
17359         strchrnul: Tweak last commit.
17360         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
17361         bug.
17362         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
17363         as in _GL_FUNCDECL_SYS.
17364         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
17365         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
17366
17367 2011-04-15  Eric Blake  <eblake@redhat.com>
17368
17369         strchrnul: work around cygwin bug
17370         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
17371         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
17372         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
17373         * modules/string (Makefile.am): Substitute it.
17374         * lib/string.in.h (strchrnul): Use it.
17375
17376 2011-04-15  Bruno Haible  <bruno@clisp.org>
17377
17378         Don't require lib/stdio-write.c when only module 'stdio' is used.
17379         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
17380         invocation.
17381         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
17382
17383 2011-04-14  Bruno Haible  <bruno@clisp.org>
17384
17385         Support non-blocking pipe I/O in read() on native Windows.
17386         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
17387         (read): New declaration.
17388         * lib/read.c: New file.
17389         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
17390         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
17391         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
17392         vscanf): New declarations.
17393         * lib/stdio-read.c: New file.
17394         * m4/read.m4: New file.
17395         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
17396         REPLACE_READ.
17397         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
17398         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17399         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
17400         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
17401         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
17402         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17403         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
17404         * modules/read: New file.
17405         * modules/nonblocking (Files): Add lib/stdio-read.c.
17406         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
17407         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
17408         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17409         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
17410         * modules/pread (Depends-on): Add read.
17411         * modules/safe-read (Depends-on): Likewise.
17412         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
17413         gets, scanf, vfscanf, vscanf): Verify signatures.
17414         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
17415         problem with non-blocking pipes.
17416         * doc/posix-functions/fgetc.texi: Likewise.
17417         * doc/posix-functions/fgets.texi: Likewise.
17418         * doc/posix-functions/fread.texi: Likewise.
17419         * doc/posix-functions/fscanf.texi: Likewise.
17420         * doc/posix-functions/getc.texi: Likewise.
17421         * doc/posix-functions/getchar.texi: Likewise.
17422         * doc/posix-functions/gets.texi: Likewise.
17423         * doc/posix-functions/scanf.texi: Likewise.
17424         * doc/posix-functions/vfscanf.texi: Likewise.
17425         * doc/posix-functions/vscanf.texi: Likewise.
17426
17427 2011-04-14  Bruno Haible  <bruno@clisp.org>
17428
17429         Support non-blocking pipe I/O in write() on native Windows.
17430         * lib/write.c (rpl_write): Split a write request that failed merely
17431         because the byte count was larger than the pipe buffer's size.
17432         * doc/posix-functions/write.texi: Mention the problem with large byte
17433         counts.
17434
17435 2011-04-14  Bruno Haible  <bruno@clisp.org>
17436
17437         wchar: Ensure that wchar_t gets defined on uClibc.
17438         * lib/wchar.in.h: On uClibc, include <stddef.h>.
17439         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
17440
17441 2011-04-13  Bruno Haible  <bruno@clisp.org>
17442
17443         safe-write, full-read: Avoid unnecessary compilation units.
17444         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
17445         (Depends-on): Remove safe-read. Add ssize_t.
17446         * modules/full-read (Files): Add lib/full-write.c.
17447         (Depends-on): Add full-write.
17448
17449 2011-04-13  Bruno Haible  <bruno@clisp.org>
17450
17451         Support non-blocking pipe I/O and SIGPIPE in pwrite().
17452         * modules/pwrite (Depends-on): Add 'write'.
17453
17454 2011-04-13  Bruno Haible  <bruno@clisp.org>
17455
17456         Support non-blocking pipe I/O in write() on native Windows.
17457         * lib/unistd.in.h (write): Enable replacement also if
17458         GNULIB_UNISTD_H_NONBLOCKING is 1.
17459         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
17460         (rpl_write): When failing to write on a non-blocking pipe, change
17461         errno from ENOSPC to EAGAIN.
17462         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
17463         putchar, puts, vfprintf, vprintf): Enable replacement also if
17464         GNULIB_STDIO_H_NONBLOCKING is 1.
17465         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
17466         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
17467         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
17468         CALL_WITH_SIGPIPE_EMULATION.
17469         (CALL_WITH_SIGPIPE_EMULATION): Use them.
17470         * m4/nonblocking.m4: New file.
17471         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
17472         for non-blocking I/O support.
17473         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17474         GNULIB_UNISTD_H_NONBLOCKING.
17475         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
17476         required for non-blocking I/O support.
17477         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
17478         * modules/nonblocking (Files): Add m4/nonblocking.m4,
17479         lib/stdio-write.c, m4/asm-underscore.m4.
17480         (Depends-on): Add stdio, unistd.
17481         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
17482         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
17483         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
17484         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
17485         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
17486         problem with non-blocking pipes.
17487         * doc/posix-functions/fputc.texi: Likewise.
17488         * doc/posix-functions/fputs.texi: Likewise.
17489         * doc/posix-functions/fwrite.texi: Likewise.
17490         * doc/posix-functions/printf.texi: Likewise.
17491         * doc/posix-functions/putc.texi: Likewise.
17492         * doc/posix-functions/putchar.texi: Likewise.
17493         * doc/posix-functions/puts.texi: Likewise.
17494         * doc/posix-functions/vfprintf.texi: Likewise.
17495         * doc/posix-functions/vprintf.texi: Likewise.
17496         * doc/posix-functions/write.texi: Likewise.
17497
17498 2011-04-10  Jim Meyering  <meyering@redhat.com>
17499
17500         maint.mk: prohibit doubled words
17501         Detect them also when they're separated by a newline.
17502         There are 3 ways to customize it:
17503           - disable the test on a per file basis, as usual with rules using
17504             $(VC_LIST_EXCEPT)
17505           - replace the default doubled-word-selecting regexp (affects all files)
17506           - ignore a particular file-vs-doubled-word match
17507         I nearly used that last one to ignore the "is is" match in
17508         coreutils' NEWS file, since the text was "ls -is is ..."
17509         To do that, I would have added this line to cfg.mk:
17510           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
17511         but it would have ignored any "is is" match in NEWS.
17512         Low probability, but still...
17513         Instead, I changed the text, slightly:
17514           -  ls -is is now consistent with ls -lis in ignoring values returned
17515           +  "ls -is" is now consistent with ls -lis in ignoring values returned
17516         * top/maint.mk (prohibit_double_word_RE_): Provide default.
17517         (prohibit_doubled_word_): Define.
17518         (sc_prohibit_doubled_word): New rule.
17519         (sc_prohibit_the_the): Remove.  Subsumed by the above.
17520
17521 2011-04-10  Jim Meyering  <meyering@redhat.com>
17522
17523         maint: fix doubled-word typo in comment
17524         * m4/gethostname.m4: s/is is/it is/
17525         * m4/getdomainname.m4: Likewise.
17526
17527 2011-04-10  Jim Meyering  <meyering@redhat.com>
17528
17529         maint: remove doubled word: s/it it/it/
17530         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
17531
17532 2011-04-10  Jim Meyering  <meyering@redhat.com>
17533
17534         maint.mk: remove useless semicolon and backslash
17535         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
17536         semicolon and backslash.
17537
17538 2011-04-10  Bruno Haible  <bruno@clisp.org>
17539
17540         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
17541         * modules/stdint-tests (Depends-on): Add wchar.
17542
17543 2011-04-10  Jim Meyering  <meyering@redhat.com>
17544
17545         maint: remove doubled words in comments, e.g., s/a a/a/
17546         * lib/strptime.c (day_of_the_week): s/the the/the/
17547         * tests/test-chown.h (test_chown): s/a a/a/
17548
17549         test-chown.h: correct a cast
17550         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
17551         when the destination is a stat.st_gid.
17552
17553 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
17554
17555         getaddrinfo: Fix test for sa_len member.
17556         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
17557         include <sys/types.h> before <sys/socket.h>.
17558
17559 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
17560
17561         maint: change "can not" to "cannot"
17562         * doc/posix-functions/iconv.texi (iconv): This one crossed line
17563         boundaries.
17564
17565 2011-04-09  Jim Meyering  <meyering@redhat.com>
17566
17567         maint: change "a a" to "a"
17568         * tests/test-lchown.h (test_lchown): s/a a/a/
17569
17570         maint.mk: prohibit \<the the\>
17571         * top/maint.mk (sc_prohibit_the_the): New rule.
17572
17573         maint: fix "the the" in comment
17574         * lib/count-one-bits.h: s/the the/the/
17575
17576         maint: change "can not" to "cannot"
17577         But do not change the occurrences in maintain.texi or in
17578         build-aux/po/Makefile.in.in, which I presume comes from gettext.
17579         * doc/gnulib-tool.texi: s/can not/cannot/
17580         * doc/posix-functions/accept.texi (accept): Likewise.
17581         * doc/posix-functions/socket.texi (socket): Likewise.
17582         * lib/mbrtowc.c: Likewise.
17583
17584         maint.mk: prohibit use of "can not"
17585         * top/maint.mk (sc_prohibit_can_not): New rule.
17586         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
17587
17588 2011-04-09  Bruno Haible  <bruno@clisp.org>
17589
17590         careadlinkat: Guard against misuse of careadlinkatcwd.
17591         * lib/careadlinkat.c: Include <stdlib.h>.
17592         (careadlinkatcwd): Check that the fd argument is as expected.
17593
17594 2011-04-09  Bruno Haible  <bruno@clisp.org>
17595
17596         careadlinkat: Use common coding style.
17597         * lib/careadlinkat.c: Move gnulib includes after system includes.
17598
17599 2011-04-09  Bruno Haible  <bruno@clisp.org>
17600
17601         careadlinkat: Clarify specification.
17602         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
17603         (careadlinkatcwd): Add comment.
17604         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
17605
17606 2011-04-09  Bruno Haible  <bruno@clisp.org>
17607
17608         areadlinkat: Avoid link error on many platforms.
17609         * modules/areadlinkat (Depends-on): Add areadlink.
17610
17611 2011-04-09  Bruno Haible  <bruno@clisp.org>
17612
17613         allocator, careadlinkat: Fix double-inclusion guard.
17614         * lib/allocator.h: Fix double-inclusion guard.
17615         * lib/careadlinkat.h: Likewise.
17616
17617 2011-04-09  Bruno Haible  <bruno@clisp.org>
17618
17619         relocatable-prog-wrapper: Update after module 'areadlink' changed.
17620         * lib/relocwrapper.c: Update dependencies hierarchy.
17621         * build-aux/install-reloc: Update list of files to be compiled.
17622         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
17623         lib/allocator.[hc].
17624
17625 2011-04-08  Eric Blake  <eblake@redhat.com>
17626
17627         strftime: silence gnulib-tool warning
17628         * modules/strftime-tests (Depends-on): Drop automatic dependency.
17629
17630 2011-04-08  Bruno Haible  <bruno@clisp.org>
17631
17632         verify: Fix syntax error with GCC 4.6 in C++ mode.
17633         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
17634         (HAVE_STATIC_ASSERT): New macro.
17635         (verify_true, verify): Use 'static_assert' if it is supported and
17636         '_Static_assert' is not supported.
17637
17638 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
17639
17640         allocator: New module.
17641         * modules/allocator, lib/allocator.c: New files.
17642         * lib/allocator.h (stdlib_allocator): New decl.
17643         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
17644         Remove.  Do not include <stdlib.h>.
17645         (careadlinkat): Use stdlib_allocator instead of rolling our own.
17646         * modules/careadlinkat (Files): Remove lib/allocator.h.
17647         (Depends-on): Add allocator.
17648
17649         stdlib: let modules use system malloc, realloc
17650         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
17651         if !_GL_USE_STDLIB_ALLOC.
17652         (malloc, realloc): Limit this change to a smaller scope.
17653
17654         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
17655         (malloc, realloc): Don't #undef; no longer needed.
17656         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17657         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17658         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
17659         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17660         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17661         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17662         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17663         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
17664
17665         careadlinkat: rename members to avoid problem
17666         * lib/allocator.h (struct allocator): Rename members from
17667         malloc/realloc to allocate/reallocate, to avoid problems if malloc
17668         and realloc are #define'd.  Reported by Eric Blake in
17669         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
17670         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
17671
17672 2011-04-08  Eric Blake  <eblake@redhat.com>
17673
17674         nonblocking: reduce dependency
17675         * tests/test-nonblocking.c: Only test sockets when in use.
17676         * modules/nonblocking-tests (Depends-on): Drop socket.
17677         (Makefile.am): Link even if sockets are not present.
17678         * modules/pipe2-tests (Makefile.am): Likewise.
17679         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
17680
17681         pipe2: fix O_NONBLOCK support on mingw
17682         * modules/pipe2 (Depends-on): Add nonblocking.
17683         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
17684         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
17685         * tests/test-nonblocking.c (main): Likewise.
17686         * modules/pipe2-tests (Makefile.am): Avoid link failure.
17687
17688         fcntl-h: fix O_ACCMODE on cygwin
17689         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
17690         * lib/fcntl.in.h (O_ACCMODE): Fix it.
17691
17692         pipe-filter: drop O_NONBLOCK workarounds
17693         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
17694         * modules/pipe-filter-ii (Depends-on): Likewise.
17695         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
17696
17697         nonblocking: provide O_NONBLOCK for mingw
17698         * modules/nonblocking (Depends-on): Add open.
17699         (configure.ac): Set new witness macro.
17700         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
17701         * modules/fcntl-h (Makefile.am): Substitute it.
17702         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
17703         nonblocking module is in use.
17704         * lib/nonblocking.c: Adjust portability test.
17705         * lib/open.c (open): Don't let native open see gnulib flag.
17706         * tests/test-fcntl-h.c (main): Enhance test.
17707         * tests/test-open.h (test_open): Likewise.
17708         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
17709
17710         careadlinkat: fix compilation error on mingw
17711         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
17712         within struct allocator.
17713
17714 2011-04-06  Eric Blake  <eblake@redhat.com>
17715
17716         binary-io: relicense under LGPLv2+
17717         * modules/binary-io (License): Relax to LGPLv2+.
17718         Requested for libvirt, and required by pipe2.
17719
17720 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
17721
17722         verify: use _Static_assert if available
17723         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
17724         (verify_true, verify): Use it if available.  This generates better
17725         diagnostics with GCC 4.6.0 and later.
17726
17727 2011-04-05  Bruno Haible  <bruno@clisp.org>
17728
17729         Remove leftover generated .h files after config.status changed.
17730
17731         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
17732         GL_GENERATE_ALLOCA_H.
17733         * modules/alloca-opt (Makefile.am): Remove alloca.h if
17734         GL_GENERATE_ALLOCA_H evaluates to false.
17735
17736         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
17737         GL_GENERATE_ARGZ_H.
17738         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
17739         evaluates to false.
17740
17741         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
17742         GL_GENERATE_BYTESWAP_H.
17743         * modules/byteswap (Makefile.am): Remove byteswap.h if
17744         GL_GENERATE_BYTESWAP_H evaluates to false.
17745
17746         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
17747         GL_GENERATE_ERRNO_H.
17748         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
17749         evaluates to false.
17750
17751         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
17752         GL_GENERATE_FLOAT_H.
17753         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
17754         evaluates to false.
17755
17756         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
17757         GL_GENERATE_FNMATCH_H.
17758         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
17759         GL_GENERATE_FNMATCH_H evaluates to false.
17760
17761         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
17762         GL_GENERATE_GLOB_H.
17763         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
17764         evaluates to false.
17765
17766         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
17767         automake conditional GL_GENERATE_ICONV_H.
17768         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
17769         evaluates to false.
17770
17771         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
17772         GL_GENERATE_NETINET_IN_H.
17773         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
17774         GL_GENERATE_NETINET_IN_H evaluates to false.
17775
17776         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
17777         conditional GL_GENERATE_PTHREAD_H.
17778         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
17779         * modules/pthread (Makefile.am): Remove pthread.h if
17780         GL_GENERATE_PTHREAD_H evaluates to false.
17781
17782         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
17783         GL_GENERATE_SCHED_H.
17784         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
17785         evaluates to false.
17786
17787         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
17788         conditional GL_GENERATE_SELINUX_CONTEXT_H.
17789         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
17790         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
17791
17792         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
17793         GL_GENERATE_STDARG_H.
17794         * modules/stdarg (Makefile.am): Remove stdarg.h if
17795         GL_GENERATE_STDARG_H evaluates to false.
17796
17797         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
17798         GL_GENERATE_STDBOOL_H.
17799         * modules/stdbool (Makefile.am): Remove stdbool.h if
17800         GL_GENERATE_STDBOOL_H evaluates to false.
17801
17802         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
17803         conditional GL_GENERATE_STDDEF_H.
17804         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
17805         * modules/stddef (Makefile.am): Remove stddef.h if
17806         GL_GENERATE_STDDEF_H evaluates to false.
17807
17808         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
17809         GL_GENERATE_STDINT_H.
17810         * modules/stdint (Makefile.am): Remove stdint.h if
17811         GL_GENERATE_STDINT_H evaluates to false.
17812
17813         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
17814         GL_GENERATE_SYSEXITS_H.
17815         * modules/sysexits (Makefile.am): Remove sysexits.h if
17816         GL_GENERATE_SYSEXITS_H evaluates to false.
17817
17818         Reported by Karl Berry and Ralf Wildenhues.
17819
17820 2011-04-05  Bruno Haible  <bruno@clisp.org>
17821
17822         Ensure to rebuild generated .h files when config.status has changed.
17823         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
17824         config.status.
17825         * modules/ctype (Makefile.am): Likewise.
17826         * modules/dirent (Makefile.am): Likewise.
17827         * modules/errno (Makefile.am): Likewise.
17828         * modules/fcntl-h (Makefile.am): Likewise.
17829         * modules/float (Makefile.am): Likewise.
17830         * modules/getopt-posix (Makefile.am): Likewise.
17831         * modules/glob (Makefile.am): Likewise.
17832         * modules/iconv-h (Makefile.am): Likewise.
17833         * modules/inttypes (Makefile.am): Likewise.
17834         * modules/langinfo (Makefile.am): Likewise.
17835         * modules/locale (Makefile.am): Likewise.
17836         * modules/math (Makefile.am): Likewise.
17837         * modules/netdb (Makefile.am): Likewise.
17838         * modules/netinet_in (Makefile.am): Likewise.
17839         * modules/poll-h (Makefile.am): Likewise.
17840         * modules/pthread (Makefile.am): Likewise.
17841         * modules/pty (Makefile.am): Likewise.
17842         * modules/sched (Makefile.am): Likewise.
17843         * modules/search (Makefile.am): Likewise.
17844         * modules/selinux-h (Makefile.am): Likewise.
17845         * modules/signal (Makefile.am): Likewise.
17846         * modules/spawn (Makefile.am): Likewise.
17847         * modules/stdarg (Makefile.am): Likewise.
17848         * modules/stdbool (Makefile.am): Likewise.
17849         * modules/stddef (Makefile.am): Likewise.
17850         * modules/stdint (Makefile.am): Likewise.
17851         * modules/stdio (Makefile.am): Likewise.
17852         * modules/stdlib (Makefile.am): Likewise.
17853         * modules/string (Makefile.am): Likewise.
17854         * modules/strings (Makefile.am): Likewise.
17855         * modules/sys_file (Makefile.am): Likewise.
17856         * modules/sys_ioctl (Makefile.am): Likewise.
17857         * modules/sys_select (Makefile.am): Likewise.
17858         * modules/sys_socket (Makefile.am): Likewise.
17859         * modules/sys_stat (Makefile.am): Likewise.
17860         * modules/sys_time (Makefile.am): Likewise.
17861         * modules/sys_times (Makefile.am): Likewise.
17862         * modules/sys_utsname (Makefile.am): Likewise.
17863         * modules/sys_wait (Makefile.am): Likewise.
17864         * modules/sysexits (Makefile.am): Likewise.
17865         * modules/termios (Makefile.am): Likewise.
17866         * modules/time (Makefile.am): Likewise.
17867         * modules/unistd (Makefile.am): Likewise.
17868         * modules/wchar (Makefile.am): Likewise.
17869         * modules/wctype-h (Makefile.am): Likewise.
17870         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
17871
17872 2011-04-05  Bruno Haible  <bruno@clisp.org>
17873
17874         pipe2: Relicense under LGPLv2+.
17875         * modules/pipe2 (License): Change to LGPLv2+.
17876         Requested by Eric Blake, for libvirt.
17877
17878 2011-04-05  Bruce Korb  <bkorb@gnu.org>
17879
17880         bootstrap: compute gnulib_extra_files after updating build_aux
17881         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
17882         change build_aux or also supply gnulib_extra_files.  Handle correctly.
17883
17884 2011-04-05  Eric Blake  <eblake@redhat.com>
17885
17886         bootstrap: preserve git whitelist item sorting
17887         * build-aux/bootstrap (sort_patterns): New function.
17888         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
17889
17890 2011-04-05  Simon Josefsson  <simon@josefsson.org>
17891
17892         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
17893         sc_space_tab check.
17894
17895 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
17896
17897         areadlink, areadlinkat: rewrite in terms of careadlinkat
17898         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
17899         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
17900         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
17901         (malloc, realloc): Remove #undefs.
17902         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
17903         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
17904         readlink, ssize_t, stdint, unistd.
17905         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
17906         areadlink, stdint.
17907
17908         careadlinkat: new module
17909         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
17910         * modules/careadlinkat: New files, written by me with
17911         a review and feedback from Ben Pfaff in
17912         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
17913
17914 2011-04-01  Bruno Haible  <bruno@clisp.org>
17915
17916         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
17917         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
17918         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
17919         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
17920         Reported by Bruce Korb <bruce.korb@gmail.com>.
17921
17922 2011-04-01  Bruno Haible  <bruno@clisp.org>
17923
17924         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
17925         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
17926         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
17927         * modules/wcpcpy (Depends-on): Add extensions.
17928         * modules/wcpncpy (Depends-on): Likewise.
17929         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
17930         systems.
17931         * doc/posix-functions/wcpncpy.texi: Likewise.
17932         * doc/posix-functions/wcwidth.texi: Likewise.
17933
17934 2011-03-31  Eric Blake  <eblake@redhat.com>
17935
17936         nonblocking: fix mingw test failures
17937         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
17938         non-blocking flag on regular file.
17939         (get_nonblocking_flag): Set errno on invalid fd.
17940         * tests/test-nonblocking.c (main): Avoid test failure on
17941         directories if fchdir is not active.
17942         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
17943
17944 2011-03-31  Bruno Haible  <bruno@clisp.org>
17945
17946         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
17947         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
17948         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
17949         Reported by Simon Josefsson <simon@josefsson.org>.
17950
17951 2011-03-31  Bruno Haible  <bruno@clisp.org>
17952         and Eric Blake  <eblake@redhat.com>
17953
17954         nonblocking: new module
17955         * modules/nonblocking: New module.
17956         * modules/nonblocking-tests: Likewise.
17957         * lib/nonblocking.h: New file.
17958         * lib/nonblocking.c: Likewise.
17959         * tests/test-nonblocking.c: New test.
17960         * lib/ioctl.c (ioctl) [mingw]: Update comment.
17961
17962 2011-03-30  Bruno Haible  <bruno@clisp.org>
17963
17964         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
17965         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
17966         instead of 'printf' format for GCC >= 4.4.
17967         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
17968         (fprintf, printf, vfprintf, vprintf): Declare with
17969         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
17970         the system's vfprintf() function.
17971         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
17972
17973 2011-03-30  Eric Blake  <eblake@redhat.com>
17974
17975         passfd: fix scoping bug
17976         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
17977         before sendmsg/recvmsg.
17978
17979         passfd: standardize coding conventions
17980         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
17981         can be learned at compile time.
17982         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
17983         ifdefs.
17984         (sendfd, recvfd): Follow gnulib code conventions.
17985
17986         passfd: fix incorrect sendmsg arguments
17987         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
17988         incorrect msg_controllen value.
17989         * modules/passfd-tests (Depends-on): Check for alarm.
17990         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
17991         Reported by Bastien ROUCARIES.
17992
17993 2011-03-30  Bruno Haible  <bruno@clisp.org>
17994
17995         c-strcasestr: Relicense under LGPLv2+.
17996         * modules/c-strcasestr (License): Change to LGPLv2+.
17997         Requested by Eric Blake, for libvirt.
17998
17999 2011-03-30  Simon Josefsson  <simon@josefsson.org>
18000
18001         * users.txt: Add libidn2.  Fix libtasn1 link.
18002
18003 2011-03-30  Jim Meyering  <meyering@redhat.com>
18004
18005         tests: readlink* ("",... fails with EINVAL on newer kernels
18006         readlink and readlinkat have typically failed with ENOENT for
18007         the invalid, empty file name,  "".  However, with the advent
18008         of linux-2.6.39, they fail with EINVAL.
18009         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
18010         when operating on the empty file name.
18011         * tests/test-readlink.h (test_readlink): Likewise.
18012
18013 2011-03-29  Bruno Haible  <bruno@clisp.org>
18014
18015         Relicense some modules under LGPLv2+, for libidn2.
18016         * modules/array-mergesort (License): Change to LGPLv2+.
18017         * modules/c-strcaseeq (License): Likewise.
18018         * modules/striconveh (License): Likewise.
18019         * modules/striconveha (License): Likewise.
18020         * modules/uniconv/base (License): Likewise.
18021         * modules/uniconv/u8-conv-from-enc (License): Likewise.
18022         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
18023         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
18024         * modules/unictype/base (License): Likewise.
18025         * modules/unictype/bidiclass-of (License): Likewise.
18026         * modules/unictype/category-M (License): Likewise.
18027         * modules/unictype/category-none (License): Likewise.
18028         * modules/unictype/category-of (License): Likewise.
18029         * modules/unictype/category-test (License): Likewise.
18030         * modules/unictype/category-test-withtable (License): Likewise.
18031         * modules/unictype/combining-class (License): Likewise.
18032         * modules/unictype/joiningtype-of (License): Likewise.
18033         * modules/unictype/scripts (License): Likewise.
18034         * modules/uninorm/base (License): Likewise.
18035         * modules/uninorm/canonical-decomposition (License): Likewise.
18036         * modules/uninorm/composition (License): Likewise.
18037         * modules/uninorm/decompose-internal (License): Likewise.
18038         * modules/uninorm/decomposition-table (License): Likewise.
18039         * modules/uninorm/nfc (License): Likewise.
18040         * modules/uninorm/nfd (License): Likewise.
18041         * modules/uninorm/u32-normalize (License): Likewise.
18042         * modules/unistr/base (License): Likewise.
18043         * modules/unistr/u32-cpy (License): Likewise.
18044         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
18045         * modules/unistr/u32-to-u8 (License): Likewise.
18046         * modules/unistr/u32-uctomb (License): Likewise.
18047         * modules/unistr/u8-check (License): Likewise.
18048         * modules/unistr/u8-mblen (License): Likewise.
18049         * modules/unistr/u8-mbtouc (License): Likewise.
18050         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
18051         * modules/unistr/u8-mbtoucr (License): Likewise.
18052         * modules/unistr/u8-prev (License): Likewise.
18053         * modules/unistr/u8-strlen (License): Likewise.
18054         * modules/unistr/u8-to-u32 (License): Likewise.
18055         * modules/unistr/u8-uctomb (License): Likewise.
18056         * modules/unitypes (License): Likewise.
18057         Requested by Simon Josefsson.
18058
18059 2011-03-29  Simon Josefsson  <simon@josefsson.org>
18060
18061         lib-symbol-visibility: Add a notice.
18062         * modules/lib-symbol-visibility (Notice): New field.
18063
18064 2011-03-29  Bruno Haible  <bruno@clisp.org>
18065
18066         getaddrinfo: Doc fix.
18067         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
18068         section "fixed in Gnulib".
18069
18070 2011-03-28  Simon Josefsson  <simon@josefsson.org>
18071
18072         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
18073         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
18074
18075 2011-03-26  Bruno Haible  <bruno@clisp.org>
18076
18077         unictype/property-byname: Reduce the number of load-time relocations.
18078         * lib/unictype/pr_byname.c: Include <stdlib.h>.
18079         (UC_PROPERTY_INDEX_*): New enumeration values.
18080         (uc_property_byname): Convert an index from the lookup table to an
18081         uc_property_t.
18082         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
18083         values.
18084
18085 2011-03-26  Bruno Haible  <bruno@clisp.org>
18086
18087         unictype/property-byname: Allow omitted word separators and aliases.
18088         * lib/unictype/pr_byname.gperf: Add property names without word
18089         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
18090         for 'space'.
18091
18092 2011-03-26  Bruno Haible  <bruno@clisp.org>
18093
18094         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
18095         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
18096         also hyphens to space.
18097         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
18098         without spaces.
18099         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
18100
18101 2011-03-26  Bruno Haible  <bruno@clisp.org>
18102
18103         unictype/joiningtype-byname: Recognize long names as well.
18104         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
18105         a long name.
18106         * lib/unictype/joiningtype_byname.c: Include <string.h>,
18107         unictype/joiningtype_byname.h.
18108         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
18109         * lib/unictype/joiningtype_byname.gperf: New file.
18110         * modules/unictype/joiningtype-byname (Files): Add
18111         lib/unictype/joiningtype_byname.gperf.
18112         (Depends-on): Add gperf.
18113         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
18114         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
18115         long names.
18116
18117         Tests for module 'unictype/joiningtype-longname'.
18118         * modules/unictype/joiningtype-longname-tests: New file.
18119         * tests/unictype/test-joiningtype_longname.c: New file.
18120
18121         New module 'unictype/joiningtype-longname'.
18122         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
18123         * lib/unictype/joiningtype_longname.c: New file.
18124         * modules/unictype/joiningtype-longname: New file.
18125         * modules/unictype/joiningtype-all (Depends-on): Add
18126         unictype/joiningtype-longname.
18127
18128 2011-03-26  Bruno Haible  <bruno@clisp.org>
18129
18130         unictype/bidiclass-byname: Recognize long names as well.
18131         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
18132         name.
18133         * lib/unictype/bidi_byname.c: Include <string.h>,
18134         unictype/bidi_byname.h.
18135         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
18136         * lib/unictype/bidi_byname.gperf: New file.
18137         * modules/unictype/bidiclass-byname (Files): Add
18138         lib/unictype/bidi_byname.gperf.
18139         (Depends-on): Add gperf.
18140         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
18141         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
18142         long names.
18143
18144         Tests for module 'unictype/bidiclass-longname'.
18145         * modules/unictype/bidiclass-longname-tests: New file.
18146         * tests/unictype/test-bidi_longname.c: New file.
18147
18148         New module 'unictype/bidiclass-longname'.
18149         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
18150         * lib/unictype/bidi_longname.c: New file.
18151         * modules/unictype/bidiclass-longname: New file.
18152         * modules/unictype/bidiclass-all (Depends-on): Add
18153         unictype/bidiclass-longname.
18154
18155 2011-03-26  Bruno Haible  <bruno@clisp.org>
18156
18157         unictype/bidi*: Rename modules.
18158         * modules/unictype/bidiclass-all: Renamed from
18159         modules/unictype/bidicategory-all.
18160         * modules/unictype/bidiclass-name: Renamed from
18161         modules/unictype/bidiclass-name.
18162         (Description): Update.
18163         * modules/unictype/bidiclass-name-tests: Renamed from
18164         modules/unictype/bidicategory-name-tests.
18165         * modules/unictype/bidiclass-byname: Renamed from
18166         modules/unictype/bidicategory-byname.
18167         (Description): Update.
18168         * modules/unictype/bidiclass-byname-tests: Renamed from
18169         modules/unictype/bidicategory-byname-tests.
18170         * modules/unictype/bidiclass-of: Renamed from
18171         modules/unictype/bidicategory-of.
18172         (Description): Update.
18173         * modules/unictype/bidiclass-of-tests: Renamed from
18174         modules/unictype/bidicategory-of-tests.
18175         * modules/unictype/bidiclass-test: Renamed from
18176         modules/unictype/bidicategory-test.
18177         (Description): Update.
18178         * modules/unictype/bidiclass-test-tests: Renamed from
18179         modules/unictype/bidicategory-test-tests.
18180         * modules/unictype/bidicategory-all: New file, a simple redirection.
18181         * modules/unictype/bidicategory-name: Likewise.
18182         * modules/unictype/bidicategory-byname: Likewise.
18183         * modules/unictype/bidicategory-of: Likewise.
18184         * modules/unictype/bidicategory-test: Likewise.
18185         * modules/unictype/property-bidi-* (Dependencies): Update.
18186         * lib/unictype/bidi_*.c: Update comment.
18187
18188 2011-03-26  Bruno Haible  <bruno@clisp.org>
18189
18190         unictype/bidi*: Rename functions, part 2.
18191         * modules/unictype/bidicategory-name (configure.ac): Update required
18192         libunistring version.
18193         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
18194
18195 2011-03-25  Bruno Haible  <bruno@clisp.org>
18196
18197         New module 'unictype/combining-class-all'.
18198         * modules/unictype/combining-class-all: New file.
18199
18200         Tests for module 'unictype/combining-class-byname'.
18201         * modules/unictype/combining-class-byname-tests: New file.
18202         * tests/unictype/test-combiningclass_byname.c: New file.
18203
18204         New module 'unictype/combining-class-byname'.
18205         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
18206         * lib/unictype/combiningclass_byname.c: New file.
18207         * lib/unictype/combiningclass_byname.gperf: New file.
18208         * modules/unictype/combining-class-byname: New file.
18209
18210         Tests for module 'unictype/combining-class-longname'.
18211         * modules/unictype/combining-class-longname-tests: New file.
18212         * tests/unictype/test-combiningclass_longname.c: New file.
18213
18214         New module 'unictype/combining-class-longname'.
18215         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
18216         * lib/unictype/combiningclass_longname.c: New file.
18217         * modules/unictype/combining-class-longname: New file.
18218
18219         Tests for module 'unictype/combining-class-name'.
18220         * modules/unictype/combining-class-name-tests: New file.
18221         * tests/unictype/test-combiningclass_name.c: New file.
18222
18223         New module 'unictype/combining-class-name'.
18224         * lib/unictype.in.h (uc_combining_class_name): New declaration.
18225         * lib/unictype/combiningclass_name.c: New file.
18226         * modules/unictype/combining-class-name: New file.
18227
18228 2011-03-25  Bruno Haible  <bruno@clisp.org>
18229
18230         unictype/combining-class: Rename source files.
18231         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
18232         of unictype/combining.h.
18233         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
18234         Update.
18235         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
18236         * modules/unictype/combining-class (Description): Fix.
18237         (Files, Makefile.am): Update.
18238         * tests/unictype/test-combiningclass.c: Renamed from
18239         tests/unictype/test-combining.c.
18240         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
18241
18242 2011-03-25  Bruno Haible  <bruno@clisp.org>
18243
18244         unictype: Update list of canonical combining classes.
18245         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
18246
18247 2011-03-25  Bruno Haible  <bruno@clisp.org>
18248
18249         unictype/category-byname: Recognize long names as well.
18250         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
18251         a long name.
18252         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
18253         unictype/categ_byname.h.
18254         (UC_CATEGORY_INDEX_*): New enumeration values.
18255         (uc_general_category_byname): Use uc_general_category_lookup and
18256         convert from index to value.
18257         * lib/unictype/categ_byname.gperf: New file.
18258         * modules/unictype/category-byname (Files): Add
18259         lib/unictype/categ_byname.gperf.
18260         (Depends-on): Add gperf.
18261         (Makefile.am): Add rule for generating unictype/categ_byname.h.
18262         * tests/unictype/test-categ_byname.c (main): Test the recognition of
18263         long names.
18264
18265         Tests for module 'unictype/category-longname'.
18266         * modules/unictype/category-longname-tests: New file.
18267         * tests/unictype/test-categ_longname.c: New file.
18268
18269         New module 'unictype/category-longname'.
18270         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
18271         * lib/unictype/categ_longname.c: New file.
18272         * modules/unictype/category-longname: New file.
18273         * modules/unictype/category-all (Depends-on): Add it.
18274
18275 2011-03-25  Bruno Haible  <bruno@clisp.org>
18276
18277         Tests for module 'unictype/category-LC'.
18278         * modules/unictype/category-LC-tests: New file.
18279         * tests/unictype/test-categ_LC.c: New file, automatically generated.
18280
18281         New module 'unictype/category-LC'.
18282         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
18283         (UC_CATEGORY_LC): New declaration.
18284         (UC_CASED_LETTER): New macro.
18285         * lib/gen-uni-tables.c (is_category_LC): New function.
18286         (output_categories): Also handle category LC.
18287         (UC_CATEGORY_MASK_LC): New enumeration value.
18288         (general_category_byname): Also handle category LC.
18289         * lib/unictype/categ_LC.c: New file.
18290         * lib/unictype/categ_LC.h: New file, automatically generated.
18291         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
18292         category LC.
18293         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
18294         * modules/unictype/category-LC: New file.
18295         * modules/unictype/category-byname (Depends-on): Add
18296         unictype/category-LC.
18297         * modules/unictype/category-all (Depends-on): Likewise.
18298
18299 2011-03-25  Eric Blake  <eblake@redhat.com>
18300
18301         xmalloc: revert yesterday's regression
18302         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
18303         realloc's underlying behavior (allowing allocation of zero-size
18304         objects, especially if malloc-gnu is also in use).
18305
18306 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
18307
18308         maint.mk: add missing version to VC-tag
18309         * top/maint.mk: git tag was missing actual tag name; add it.
18310
18311         valgrind: do leak checking, and exit with code 1 on error (not 0)
18312         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
18313         to VALGRIND.
18314
18315 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
18316
18317         posix-modules: say what it does.
18318         * posix-modules: Add a line to the --help output saying what it does.
18319
18320 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
18321
18322         xmalloc: Do not leak if underlying realloc is C99 compatible.
18323         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
18324         This avoids a leak on C99-based systems.  See
18325         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
18326
18327 2011-03-24  Eric Blake  <eblake@redhat.com>
18328
18329         realloc: document portability problem
18330         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
18331         passing 0 size to realloc.
18332
18333 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
18334
18335         doc: update users.txt
18336         * users.txt: Add cvsps, tmpwatch
18337
18338 2011-03-23  Matt Rice  <ratmice@gmail.com>
18339
18340         doc: update users.txt
18341         * users.txt: Add gdb.
18342
18343 2011-03-23  Jim Meyering  <meyering@redhat.com>
18344
18345         doc: update users.txt
18346         Looking through matches up to the following URL (there are still
18347         several more pages), I found several projects that use gnulib:
18348         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
18349         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
18350         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
18351
18352 2011-03-22  Bruno Haible  <bruno@clisp.org>
18353
18354         unictype/bidi*: Rename functions.
18355         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
18356         uc_bidi_class, uc_is_bidi_class): New declarations.
18357         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
18358         uc_bidi_category_byname.
18359         (uc_bidi_category_byname): New function.
18360         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
18361         u_bidi_category_name.
18362         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
18363         (uc_bidi_category_name): New function.
18364         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
18365         uc_bidi_category.
18366         (uc_bidi_category): New function.
18367         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
18368         uc_is_bidi_category. Invoke uc_bidi_class.
18369         (uc_is_bidi_category): New function.
18370         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
18371         instead of uc_bidi_category_byname.
18372         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
18373         instead of uc_bidi_category_name.
18374         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
18375         uc_bidi_category.
18376         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
18377         instead of uc_is_bidi_category.
18378
18379 2011-03-21  Bruno Haible  <bruno@clisp.org>
18380
18381         New module 'unictype/joininggroup-all'.
18382         * modules/unictype/joininggroup-all: New file.
18383
18384         Tests for module 'unictype/joininggroup-of'.
18385         * modules/unictype/joininggroup-of-tests: New file.
18386         * tests/unictype/test-joininggroup_of.c: New file.
18387         * tests/unictype/test-joininggroup_of.h: New file, automatically
18388         generated by gen-uni-tables.
18389
18390         New module 'unictype/joininggroup-of'.
18391         * modules/unictype/joininggroup-of: New file.
18392         * lib/unictype/joininggroup_of.c: New file.
18393         * lib/unictype/joininggroup_of.h: New file, automatically generated by
18394         gen-uni-tables.
18395
18396         Tests for module 'unictype/joininggroup-byname'.
18397         * modules/unictype/joininggroup-byname-tests: New file.
18398         * tests/unictype/test-joininggroup_byname.c: New file.
18399
18400         New module 'unictype/joininggroup-byname'.
18401         * modules/unictype/joininggroup-byname: New file.
18402         * lib/unictype/joininggroup_byname.c: New file.
18403         * lib/unictype/joininggroup_byname.gperf: New file.
18404
18405         Tests for module 'unictype/joininggroup-name'.
18406         * modules/unictype/joininggroup-name-tests: New file.
18407         * tests/unictype/test-joininggroup_name.c: New file.
18408
18409         New module 'unictype/joininggroup-name'.
18410         * modules/unictype/joininggroup-name: New file.
18411         * lib/unictype/joininggroup_name.c: New file.
18412         * lib/unictype/joininggroup_name.h: New file.
18413
18414         New module 'unictype/joiningtype-all'.
18415         * modules/unictype/joiningtype-all: New file.
18416
18417         Tests for module 'unictype/joiningtype-of'.
18418         * modules/unictype/joiningtype-of-tests: New file.
18419         * tests/unictype/test-joiningtype_of.c: New file.
18420         * tests/unictype/test-joiningtype_of.h: New file, automatically
18421         generated by gen-uni-tables.
18422
18423         New module 'unictype/joiningtype-of'.
18424         * modules/unictype/joiningtype-of: New file.
18425         * lib/unictype/joiningtype_of.c: New file.
18426         * lib/unictype/joiningtype_of.h: New file, automatically generated by
18427         gen-uni-tables.
18428
18429         Tests for module 'unictype/joiningtype-byname'.
18430         * modules/unictype/joiningtype-byname-tests: New file.
18431         * tests/unictype/test-joiningtype_byname.c: New file.
18432
18433         New module 'unictype/joiningtype-byname'.
18434         * modules/unictype/joiningtype-byname: New file.
18435         * lib/unictype/joiningtype_byname.c: New file.
18436
18437         Tests for module 'unictype/joiningtype-name'.
18438         * modules/unictype/joiningtype-name-tests: New file.
18439         * tests/unictype/test-joiningtype_name.c: New file.
18440
18441         New module 'unictype/joiningtype-name'.
18442         * modules/unictype/joiningtype-name: New file.
18443         * lib/unictype/joiningtype_name.c: New file.
18444
18445         unictype: Add support for Arabic shaping properties.
18446         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
18447         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
18448         declarations.
18449         (UC_JOINING_GROUP_*): New enumeration values.
18450         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
18451         declarations.
18452         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
18453         (unicode_joining_type): New variable.
18454         (UC_JOINING_GROUP_*): New enumeration values.
18455         (unicode_joining_group): New variable.
18456         (fill_arabicshaping, joining_type_as_c_identifier,
18457         output_joining_type_test, output_joining_type,
18458         joining_group_as_c_identifier, output_joining_group_test,
18459         output_joining_group): New functions.
18460         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
18461         fill_arabicshaping and output_joining_type_test, output_joining_type,
18462         output_joining_group_test, output_joining_group.
18463         Reported by Simon Josefsson.
18464
18465 2011-03-21  Jim Meyering  <meyering@redhat.com>
18466
18467         strftime: fix a bug in yesterday's change
18468         * lib/strftime.c (add): Accommodate width's initial value of -1.
18469         Otherwise, nstrftime would copy uninitialized data into
18470         the result buffer.
18471
18472 2011-03-21  Jim Meyering  <meyering@redhat.com>
18473
18474         tests: add strftime-tests module
18475         * tests/test-strftime.c: New file.
18476         * modules/strftime-tests: New module.
18477
18478 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18479
18480         strftime: don't assume a byte count fits in 'int'
18481         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
18482         found this problem by static analysis, using gcc -Wstrict-overflow
18483         (GCC 4.5.2, x86-64).  This reported an optimization that depended
18484         on an integer overflow having undefined behavior, but it turns out
18485         that the argument is a size, which might not fit in 'int' anyway,
18486
18487 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18488
18489         stdio: don't require ignore_value around fwrite
18490
18491         This patch works around libc bug 11959
18492         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
18493         Without this patch, applications must often write
18494         ignore_value (fwrite (...)) even though the ignore_value is
18495         not helpful here.  It's common to write many objects, using
18496         fwrite/printf/etc., and then use ferror to detect output error.
18497
18498         I considered making this patch optional, but decided against it,
18499         because libc is obviously being inconsistent here: there is no
18500         reason libc should insist that user code must inspect fwrite
18501         return's value without also insisting that it inspect printf's,
18502         putchar's, etc.  If user code wants to have a strict style where
18503         all these functions' values are checked (so that ferror need not
18504         be checked), we could add support for that style in a new gnulib
18505         module, but in the meantime it's better to be consistent and to
18506         support common usage.
18507
18508         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
18509         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
18510         that we are compiling in checking mode, and if not C++, and
18511         if not already wrapping fwrite for some other reason.
18512         (fwrite): #define to rpl_fwrite if the latter is defined.
18513
18514 2011-03-20  Bruno Haible  <bruno@clisp.org>
18515
18516         verror: Fix compilation error introduced on 2011-02-13.
18517         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
18518         instead of __attribute__.
18519         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18520
18521 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18522             Bruno Haible  <bruno@clisp.org>
18523
18524         socklen: do not depend on sys_socket
18525         While trying to modify Emacs to use gnulib's socklen module,
18526         I discovered a circular dependency: socklen depends on sys_socket
18527         and vice versa.  Emacs can use socklen, but it does not need
18528         sys_socket because it has its own substitute for sys/socket.h.
18529         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
18530         gl_TYPE_SOCKLEN_T.
18531         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
18532         gl_PREREQ_SYS_H_SOCKET.
18533         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
18534         gl_PREREQ_SYS_H_SOCKET.
18535         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
18536         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
18537         * modules/socklen (Depends-on): Do not depend on sys_socket.
18538         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
18539
18540 2011-03-20  Jim Meyering  <meyering@redhat.com>
18541
18542         maint.mk: sort file names *after* new transformation
18543         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
18544         prefix would have led to an unwarranted failure in GNU parted.
18545         Sort after that transformation.
18546
18547 2011-03-19  Jim Meyering  <meyering@redhat.com>
18548
18549         maint.mk: fix po-file syntax-check rule
18550         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
18551         Patch by Bruno Haible.
18552
18553 2011-03-19  Bruno Haible  <bruno@clisp.org>
18554
18555         socklen: Update comment.
18556         * m4/socklen.m4: Update comment about platforms.
18557
18558 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
18559             Bruno Haible  <bruno@clisp.org>
18560
18561         inet_ntop, inet_pton: Simplify.
18562         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
18563         documented to provide socklen_t and we already depend on sys_socket.
18564         * modules/inet_pton (Depends-on): Likewise.
18565         * lib/arpa_inet.in.h: Adjust comment.
18566
18567 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
18568             Bruno Haible  <bruno@clisp.org>
18569
18570         netdb: Simplify.
18571         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
18572         documented to provide socklen_t and we already depend on sys_socket.
18573         * lib/netdb.in.h: Adjust comment.
18574
18575 2011-03-19  Bruno Haible  <bruno@clisp.org>
18576
18577         sys_socket, netdb: Document problem with socklen_t.
18578         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
18579         platforms.
18580         * doc/posix-headers/netdb.texi: Likewise.
18581
18582 2011-03-18  Eric Blake  <eblake@redhat.com>
18583
18584         maint.mk: let po check work in VPATH build
18585         * top/maint.mk (po_file): Allow cfg.mk override.
18586         (sc_po_check): Allow VPATH use.
18587         Reported by Jiri Denemark.
18588
18589 2011-03-16  Jim Meyering  <meyering@redhat.com>
18590
18591         maint.mk: allow fine-grained syntax-check exclusion via Make variables
18592         Before, you would have had to create one .x-sc_ file per rule in order
18593         to exempt offending files.  Now, you may instead use a Make variable --
18594         usually defined in cfg.mk -- whose name identifies the affected rule.
18595         * top/maint.mk (_sc_excl): Define.
18596         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
18597         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
18598
18599 2011-03-13  Bruno Haible  <bruno@clisp.org>
18600
18601         ignore-value tests: Avoid warnings.
18602         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
18603         empty for gcc < 3.4.
18604
18605 2011-03-13  Bruno Haible  <bruno@clisp.org>
18606
18607         passfd: Fix link error on Solaris.
18608         * modules/passfd (Description): Correct.
18609         (Depends-on): Add socketlib.
18610         (Link): New section.
18611         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
18612
18613 2011-03-13  Bruno Haible  <bruno@clisp.org>
18614
18615         passfd: Fix link error on AIX 5.2.
18616         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
18617
18618 2011-03-13  Bruno Haible  <bruno@clisp.org>
18619
18620         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
18621         * lib/sys_socket.in.h: Include <stddef.h>.
18622         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
18623         CMSG_FIRSTHDR. Remove unused variable.
18624
18625 2011-03-13  Bruno Haible  <bruno@clisp.org>
18626
18627         passfd: Fix compilation error on OpenBSD.
18628         * lib/passfd.c: Include <sys/uio.h>.
18629
18630 2011-03-13  Bruno Haible  <bruno@clisp.org>
18631
18632         passfd test: Fix warnings.
18633         * tests/test-passfd.c: Include <sys/wait.h>.
18634         (main): Fix typo.
18635
18636 2011-03-13  Bruno Haible  <bruno@clisp.org>
18637
18638         passfd module, part 4, tweaks.
18639         * tests/test-passfd.c: Reorder includes.
18640         (main): Fix perror and printf calls.
18641
18642 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
18643
18644         passfd module, part 4.
18645         * modules/passfd-tests: New file.
18646         * tests/test-passfd.c: New file.
18647
18648 2011-03-13  Jim Meyering  <meyering@redhat.com>
18649
18650         Makefile: rely on GNU make; derive syntax-check rule names
18651         Rather than requiring that each sc_ rule be listed as a dependent
18652         of "check", use features of GNU make to derive the list.
18653         * Makefile (syntax-check-rules): Define.
18654         (check): Depend on the new variable, not the hard-coded list.
18655
18656 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
18657             Bruno Haible  <bruno@clisp.org>
18658
18659         passfd module, part 3.
18660         * lib/passfd.h (recvfd): Add a flags argument.
18661         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
18662         (recvfd): Add a flags argument.
18663         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
18664         exists.
18665         * modules/passfd (Depends-on): Add cloexec.
18666         Suggested by Eric Blake.
18667
18668 2011-03-13  Bruno Haible  <bruno@clisp.org>
18669
18670         passfd module, part 2, tweaks.
18671         * modules/passfd (Files): Reorder.
18672         (Depends-on): Remove errno.
18673         (Include): Remove <sys/socket.h>, <sys/un.h>.
18674         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
18675         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
18676         specification header. Include <sys/socket.h> always. Don't include
18677         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
18678         (sendfd): Clarify that it sets errno when it fails.
18679         (recvfd): Fix specification.
18680
18681 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
18682
18683         passfd module, part 2.
18684         * modules/passfd: New file.
18685         * lib/passfd.h: New file.
18686         * lib/passfd.c: New file.
18687
18688 2011-03-12  Bruno Haible  <bruno@clisp.org>
18689
18690         wcswidth, mbswidth: Avoid integer overflow.
18691         * lib/wcswidth.c: Include <limits.h>.
18692         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
18693         * lib/mbswidth.c: Include <limits.h>.
18694         (mbsnwidth): Avoid 'int' overflow.
18695         Reported by Jim Meyering.
18696
18697 2011-03-12  Bruno Haible  <bruno@clisp.org>
18698
18699         futimens, utimensat: Avoid endless recursion on Solaris 10.
18700         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
18701         Solaris.
18702         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
18703         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
18704
18705 2011-03-11  Jim Meyering  <meyering@redhat.com>
18706
18707         maint.mk: relax a regexp to accommodate other formatting styles
18708         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
18709         between "ngettext" and the following "(".
18710
18711 2011-03-11  Pádraig Brady <P@draigBrady.com>
18712
18713         maint.mk: suppress a false positive warning
18714         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
18715         diagnostics are marked with ngettext.
18716
18717 2011-03-10  Eric Blake  <eblake@redhat.com>
18718
18719         wchar: add explicit dependencies, for Tru64
18720         * modules/mbmemcasecoll (Depends-on): Add wchar.
18721         * modules/mbtowc (Depends-on): Likewise.
18722         * modules/vasnprintf (Depends-on): Likewise.
18723         * modules/unistdio/u-printf-args (Depends-on): Likewise.
18724         * modules/wctomb (Depends-on): Likewise.
18725         Reported by Peter O'Gorman.
18726
18727 2011-03-08  Bruno Haible  <bruno@clisp.org>
18728
18729         passfd module, part 1, tweaks.
18730         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
18731         Improve indentation. Improve AC_MSG_CHECKING messages.
18732         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
18733         gl_SOCKET_FAMILIES.
18734
18735 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
18736
18737         passfd module, part 1.
18738         * m4/afunix.m4: New file.
18739         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
18740         sockets.
18741
18742 2011-03-08  Bruno Haible  <bruno@clisp.org>
18743
18744         regex-quote: New API.
18745         * lib/regex-quote.h: Include <stdbool.h>.
18746         (struct regex_quote_spec): New type.
18747         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
18748         New declarations.
18749         (regex_quote_length, regex_quote_copy, regex_quote): Take a
18750         'const struct regex_quote_spec *' argument.
18751         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
18752         (pcre_special): New constant.
18753         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
18754         New functions.
18755         (regex_quote_length, regex_quote_copy, regex_quote): Take a
18756         'const struct regex_quote_spec *' argument.
18757         * modules/regex-quote (Depends-on): Add stdbool.
18758         * tests/test-regex-quote.c (check): Update for new API. Add test for
18759         anchored results.
18760         * NEWS: Mention the API change.
18761         Reported by Reuben Thomas and Eric Blake.
18762
18763 2011-03-06  Bruno Haible  <bruno@clisp.org>
18764
18765         regex-quote: Fix creation of POSIX extended regular expressions.
18766         * lib/regex-quote.c (ere_special): Add grouping and alternation
18767         operators.
18768
18769 2011-03-05  Bruno Haible  <bruno@clisp.org>
18770
18771         doc: Improve doc regarding autopoint vs. gnulib.
18772         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
18773         disable autopoint while running autoreconf.
18774         Suggested by Ralf Wildenhues.
18775
18776 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18777
18778         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
18779         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
18780
18781 2011-03-03  Bruce Korb  <bkorb@gnu.org>
18782
18783         parse-duration: remove xalloc.h dependency
18784         * lib/parse-duration.c (parse_period): handle NULL return from
18785         strdup instead of calling xstrdup().
18786         * modules/parse-duration: remove "xalloc" dependency
18787
18788 2011-03-03  Matthew Booth  <mbooth@redhat.com>
18789
18790         bootstrap: honor m4_base when running aclocal
18791         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
18792
18793 2011-03-02  Jim Meyering  <meyering@redhat.com>
18794
18795         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
18796         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
18797         on request from Matt Booth.
18798
18799 2011-03-01  Eric Blake  <eblake@redhat.com>
18800
18801         test-link: work on Hurd
18802         * tests/test-link.h (test_link): Hurd rejects linking directories
18803         with EISDIR instead of the POSIX-mandated EPERM.
18804
18805 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
18806
18807         stdio: simplify by moving files to printf-posix, sigpipe
18808         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
18809         since this symbol is needed only if printf is replaced.
18810         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
18811         Require gl_ASM_SYMBOL_PREFIX.
18812         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
18813         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
18814         (Depends-on): Add 'raise'.
18815         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
18816         * modules/stdio (Files): Remove lib/stdio-write.c,
18817         m4/asm-underscore.m4.
18818         (Depends-on): Remove 'raise'.
18819
18820         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
18821         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
18822         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
18823         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
18824
18825 2011-02-28  Bruno Haible  <bruno@clisp.org>
18826
18827         localcharset: Assume ANSI C behaviour of free().
18828         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
18829         calling free().
18830         Suggested by Simon Josefsson <simon@josefsson.org>.
18831
18832 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
18833             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
18834             Bruno Haible  <bruno@clisp.org>  (tiny change)
18835
18836         On Cygwin, use /proc file system instead of win32 API.
18837         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
18838         Win32 file names.
18839         (DllMain): Simplify by removing Cygwin specific code.
18840         (find_shared_library_fullname): Use Linux specific implementation also
18841         for Cygwin.
18842         (get_shared_library_fullname): Update accordingly.
18843         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
18844         Win32 file names.
18845         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
18846         Cygwin specific code.
18847
18848 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
18849             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
18850
18851         Fix OpenMP flag detection for various Fortran compilers.
18852         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
18853         OpenMP-conditional compilation construct, to force compile
18854         failure with missing OpenMP flag.
18855         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
18856
18857 2011-02-25  Eric Blake  <eblake@redhat.com>
18858
18859         strstr: expand test coverage
18860         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
18861         compilation.
18862         * tests/test-memmem.c (main): Duplicate tests.
18863         * tests/test-strcasestr.c (main): Likewise.
18864         * tests/test-c-strcasestr.c (main): Likewise.
18865
18866 2011-02-25  Jim Meyering  <meyering@redhat.com>
18867
18868         maint.mk: detect missing-NL-at-EOF, too
18869         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
18870         it also detects when a file lacks a newline at EOF.
18871         (require_exactly_one_NL_at_EOF_): Renamed from
18872         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
18873         since people may well have .x-sc_... file names tied to the
18874         existing name.  Suggested by Eric Blake.
18875
18876 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
18877
18878         dirname: move m4/dos.m4 functionality into lib/dosname.h
18879
18880         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
18881         extracts symbols from it, puts them into config.h; but it's much
18882         easier to use the symbols directly.  filename.h already does this,
18883         but it disagrees with dos.m4 in some respects.  This patch
18884         introduces a different include file dosname.h that packages up
18885         dos.m4, and then later we can work on merging filename.h and
18886         dosname.h.  Applications that need only the easy-to-configure
18887         symbols should consider including dosname.h rather than dirname.h.
18888         * NEWS: Mention incompatible changes.
18889         * m4/dos.m4: Remove.
18890         * lib/dosname.h, modules/dosname: New files.
18891         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
18892         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
18893         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
18894         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
18895         Include dosname.h, not dirname.h.
18896         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
18897         Include dosname.h, for definitions of symbols like ISSLASH
18898         that used to be in config.h.
18899         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
18900         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
18901         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18902         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
18903         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
18904         * modules/rmdir (Files): Likewise.
18905         * modules/stat (Files): Likewise.
18906         * modules/unlink (Files): Likewise.
18907         * modules/dirname-lgpl (Depends-on): Add dosname.
18908         * modules/lstat (Depends-on): Likewise.
18909         * modules/openat (Depends-on): Likewise.
18910         * modules/rmdir (Depends-on): Likewise.
18911         * modules/savewd (Depends-on): Likewise.
18912         * modules/stat (Depends-on): Likewise.
18913         * modules/unlink (Depends-on): Likewise.
18914         * modules/openat (Depends-on): Remove dirname-lgpl.
18915         * modules/savewd (Depends-on): Likewise.
18916         * tests/test-dirname.c: Do not use removed symbols like
18917         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
18918         the remaining symbols, e.g., ISSLASH ('\\').
18919
18920 2011-02-25  Eric Blake  <eblake@redhat.com>
18921
18922         strstr: revert patches that introduced bug and pessimization
18923         * lib/str-two-way.h: Add another reference.
18924         (two_way_short_needle, two_way_long_needle): Revert changes from
18925         2011-02-24; they pessimize search speed.
18926         (critical_factorization): Partially revert changes from
18927         2010-06-22; they violate the requirement that the left half of the
18928         needle be smaller than the period of the needle.
18929
18930 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
18931
18932         filenamecat: remove unnecessary dependency on dirname-lgpl
18933         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
18934         is no direct dependency, just an indirect one via filenamecat-lgpl.
18935
18936         remove: remove unnecessary use of m4/dos.m4
18937         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
18938         * modules/remove (FILES): Remove m4/dos.m4.
18939
18940         * lib/openat-proc.c: Don't include dirname.h; not needed.
18941
18942         backupfile: remove unnecessary use of m4/dos.m4
18943         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
18944         of its symbols are used by the backupfile code.  backupfile.c does
18945         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
18946         for the rare case of programs that want all their backup file
18947         names to live within 8+3 limits, and dos.m4 doesn't address that.
18948         * modules/backupfile (Files): Remove m4/dos.m4.
18949
18950 2011-02-24  Jim Meyering  <meyering@redhat.com>
18951
18952         strstr: fix a bug whereby strstr would mistakenly return NULL
18953         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
18954         in period calculation.
18955         (two_way_long_needle): Likewise.
18956         The original problem was reported by Mike Stump in
18957         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
18958         Ralf Wildenhues provided the short needle and haystack.
18959         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
18960         Add a more involved test to trigger the bug in two_way_long_needle.
18961
18962 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
18963
18964         gnulib-tool: remove use of bold display in help screen
18965         * gnulib-tool (func_usage): Do not use bold display anymore in the
18966         help screen.  That was just meant to be a temporary emphasis for a
18967         backward-incompatible change.
18968
18969 2011-02-23  Bruno Haible  <bruno@clisp.org>
18970
18971         Fix misindentation of preprocessor directives.
18972         * lib/argp-namefrob.h: Reindent preprocessor directives.
18973         * lib/getopt_int.h (struct _getopt_data): Likewise.
18974         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
18975         * lib/vasnprintf.c (decode_long_double): Likewise.
18976         * tests/test-argmatch.c: Insert blank lines, for clarity.
18977         * tests/test-exclude.c: Likewise.
18978
18979 2011-02-22  Bruno Haible  <bruno@clisp.org>
18980
18981         ioctl: Fix for MacOS X in 64-bit mode.
18982         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
18983         value.
18984         Suggested by Eric Blake.
18985         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
18986
18987 2011-02-22  Jim Meyering  <meyering@redhat.com>
18988
18989         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
18990         * Makefile (sc_cpp_indent_check): Don't limit the check to files
18991         in lib/.
18992
18993 2011-02-22  Eric Blake  <eblake@redhat.com>
18994
18995         maint: avoid any CDPATH issue
18996         * Makefile (sc_cpp_indent_check): Anchor cd argument.
18997
18998         maint: adjust cpp indentation for my modules, as well
18999         * Makefile (sc_cpp_indent_check): Add my name.
19000         * lib/fbufmode.c: Filter through cppi.
19001         * lib/fpurge.c: Likewise.
19002         * lib/freadable.c: Likewise.
19003         * lib/freading.c: Likewise.
19004         * lib/fwritable.c: Likewise.
19005         * lib/fwriting.c: Likewise.
19006         * lib/sigaction.c: Likewise.
19007
19008 2011-02-22  Jim Meyering  <meyering@redhat.com>
19009
19010         maint: adjust cpp indentation to reflect nesting depth
19011         I.e., in a block of code that begins with an unnested "#if",
19012         put one space between the "#" in column 1 and following token.
19013         For example,
19014         -#include <sys/vfs.h>
19015         +# include <sys/vfs.h>
19016         Do this only in .c files that are part of a module I maintain.
19017         * lib/linkat.c: Filter through cppi.
19018         * lib/nanosleep.c: Likewise.
19019         * lib/openat.c: Likewise.
19020         * lib/openat-die.c: Likewise.
19021         * lib/dup3.c: Likewise.
19022         * lib/fchownat.c: Likewise.
19023         * lib/flock.c: Likewise.
19024         * lib/fsync.c: Likewise.
19025         * lib/fts.c: Likewise.
19026         * lib/getpass.c: Likewise.
19027         * lib/gettimeofday.c: Likewise.
19028         * lib/userspec.c: Likewise.
19029         * Makefile (sc_cpp_indent_check): New rule, to check this.
19030
19031 2011-02-22  Bruno Haible  <bruno@clisp.org>
19032
19033         New module 'wctomb'.
19034         * lib/stdlib.in.h (wctomb): New declaration.
19035         * lib/wctomb.c: New file.
19036         * lib/wctomb-impl.h: New file.
19037         * m4/wctomb.m4: New file.
19038         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
19039         REPLACE_WCTOMB.
19040         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
19041         REPLACE_WCTOMB.
19042         * modules/wctomb: New file.
19043         * tests/test-stdlib-c++.cc: Test signature of wctomb.
19044         * doc/posix-functions/wctomb.texi: Mention the new module.
19045         * modules/wctob (Depends-on): Add wctomb.
19046
19047 2011-02-22  Bruno Haible  <bruno@clisp.org>
19048
19049         New module 'mbtowc'.
19050         * lib/stdlib.in.h (mbtowc): New declaration.
19051         * lib/mbtowc.c: New file.
19052         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
19053         * m4/mbtowc.m4: New file.
19054         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
19055         REPLACE_MBTOWC.
19056         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
19057         REPLACE_MBTOWC.
19058         * modules/mbtowc: New file.
19059         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
19060         * doc/posix-functions/mbtowc.texi: Mention the new module.
19061         * modules/btowc (Depends-on): Add mbtowc.
19062
19063 2011-02-22  Bruno Haible  <bruno@clisp.org>
19064
19065         wcrtomb: Add more tests for native Windows platforms.
19066         * tests/test-wcrtomb-w32-1.sh: New file.
19067         * tests/test-wcrtomb-w32-2.sh: New file.
19068         * tests/test-wcrtomb-w32-3.sh: New file.
19069         * tests/test-wcrtomb-w32-4.sh: New file.
19070         * tests/test-wcrtomb-w32-5.sh: New file.
19071         * tests/test-wcrtomb-w32.c: New file.
19072         * modules/wcrtomb-tests (Files): Add them.
19073         (Makefile.am): Arrange to run these tests.
19074         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
19075         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
19076
19077 2011-02-20  Bruno Haible  <bruno@clisp.org>
19078
19079         wcrtomb: Enhance test.
19080         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
19081
19082 2011-02-20  Bruno Haible  <bruno@clisp.org>
19083
19084         mbrtowc: Tiny optimization.
19085         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
19086
19087 2011-02-20  Jim Meyering  <meyering@redhat.com>
19088
19089         test-exclude.c: remove unmatched #endif
19090         * tests/test-exclude.c: Remove stray #endif, left over from
19091         the change of a week ago.
19092
19093 2011-02-19  Jim Meyering  <meyering@redhat.com>
19094
19095         git-version-gen: skip "-dirty" check when appropriate
19096         * build-aux/git-version-gen: Don't run any git commands when the
19097         version string comes from .tarball-version.  Prior to this, we
19098         would run git update-index --refresh even from a just-unpacked
19099         tarball directory, and that could affect a .git/ directory in a
19100         parent of the build directory.  Reported by Mike Frysinger.
19101
19102 2011-02-19  Bruno Haible  <bruno@clisp.org>
19103
19104         unictype/property-byname: Reduce the size of the 'data' segment.
19105         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
19106
19107 2011-02-19  Bruno Haible  <bruno@clisp.org>
19108
19109         unictype/scripts: Reduce the size of the 'data' segment.
19110         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
19111         '%pic'.
19112         * lib/unictype/scripts_byname.gperf: Regenerated.
19113
19114 2011-02-19  Bruno Haible  <bruno@clisp.org>
19115
19116         stdint: Update documentation.
19117         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
19118
19119 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
19120
19121         stdint: omit redundant check for wchar.h
19122         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
19123         always tests whether wchar.h exists, so remove the now-redundant test.
19124
19125 2011-02-18  Bruno Haible  <bruno@clisp.org>
19126
19127         stdint: Cut dependency to module 'wchar'.
19128         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
19129         include the necessary prerequisites.
19130         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
19131         * modules/stdint (Depends-on): Remove wchar.
19132         (Makefile.am): Substitute HAVE_WCHAR_H.
19133         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
19134
19135 2011-02-18  Eric Blake  <eblake@redhat.com>
19136
19137         longlong: skip, rather than fail, on cross-compilation
19138         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
19139         when cross-compiling; regression from 2011-02-16.
19140
19141 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
19142
19143         * NEWS: Mention 2011-02-08 change to stdlib.
19144
19145 2011-02-17  Bruno Haible  <bruno@clisp.org>
19146
19147         getloadavg: Add comments about platforms.
19148         * m4/getloadavg.m4: Add comment.
19149         * lib/getloadavg.c: Likewise.
19150
19151 2011-02-17  Bruno Haible  <bruno@clisp.org>
19152
19153         getloadavg: Fix link error on Solaris 2.6.
19154         * modules/getloadavg (Link): New section.
19155         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
19156         linking test-getloadavg.
19157         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
19158         getloadavg.
19159
19160 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
19161
19162         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
19163         It was 'int', but this doesn't match the IRIX 6.5 manual.
19164         Suggested by Bruno Haible in
19165         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
19166
19167 2011-02-17  Bruno Haible  <bruno@clisp.org>
19168
19169         havelib: Fix comments.
19170         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
19171         change.
19172
19173 2011-02-17  Bruno Haible  <bruno@clisp.org>
19174
19175         havelib: Update config.rpath.
19176         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
19177
19178 2011-02-17  Bruno Haible  <bruno@clisp.org>
19179
19180         getloadavg test: Add some plausibility checks.
19181         * tests/test-getloadavg.c (check_avg): Print a warning when the value
19182         is improbable.
19183
19184 2011-02-16  Eric Blake  <eblake@redhat.com>
19185
19186         maintainer-makefile: make syntax-check a no-op from tarballs
19187         * top/maint.mk (no-vc-detected): New rule.
19188         (local-checks-available): Use it to avoid hanging if someone tries
19189         'make syntax-check' from a tarball.  Also append to any non-syntax
19190         checks already defined in cfg.mk.
19191
19192 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
19193
19194         longlong: tune, particularly for common case of c99
19195
19196         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
19197         or running anything if c99, or if unsigned long long int does not
19198         work.  In either case, we know the answer without further tests.
19199         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
19200         it at most once, and use its results for both long long int and
19201         unsigned long long int.  This is more likely to be efficient in
19202         the common case where the program wants to check for both long
19203         long int and unsigned long long int.
19204         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
19205         since the answer is already known.
19206
19207 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
19208
19209         getloadavg: set errno
19210         * lib/getloadavg.c: Set errno when returning -1.  If no other
19211         error number looks appropriate, set it to ENOSYS if the getloadavg
19212         looks like it can't possibly ever work, ENOTSUP otherwise.
19213         Suggested by Bruno Haible in
19214         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
19215
19216         getloadavg: trim unused parts and speed up 'configure'
19217         * NEWS: Document this.
19218         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
19219         always compiled if getloadavg is absent.
19220         Move test code to ...
19221         * tests/test-getloadavg.c: New file, containing previous
19222         contents of test from lib/getloadavg.c.  It also contains
19223         suggestions by Bruno Haible in
19224         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
19225         * modules/getloadavg-tests: New file.
19226         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
19227         Do tests in the same order as they're needed for getloadavg.c.
19228         Omit setgid-related tests that generate symbols KMEM_GROUP,
19229         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
19230         Do only the tests that are needed to see whether the system has
19231         getloadavg, moving the other tests into ...
19232         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
19233         NLIST_NAME_UNION; nobody should be using it.  Do not define
19234         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
19235         relevant, as the user of this module shouldn't care how getloadavg
19236         is implemented.
19237
19238         getloadavg: omit unused var
19239         * lib/getloadavg.c (getloadavg): Omit unused local variable.
19240
19241 2011-02-15  Jim Meyering  <meyering@redhat.com>
19242
19243         doc: update users.txt
19244         * users.txt: Update iwhd's URL.
19245
19246 2011-02-13  Bruno Haible  <bruno@clisp.org>
19247
19248         Consistent macro naming for macros that use GCC __attribute__.
19249         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
19250         _ATTRIBUTE_NONNULL_.
19251         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
19252         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
19253         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
19254         ATTRIBUTE_DEPRECATED.
19255         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
19256         ATTRIBUTE_NORETURN.
19257         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19258         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19259         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19260         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19261         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
19262         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
19263         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
19264         ATTRIBUTE_SENTINEL.
19265         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
19266         ATTRIBUTE_RETURN_CHECK.
19267         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
19268         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
19269         ATTRIBUTE_NORETURN.
19270         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
19271         Reported by Paul Eggert.
19272
19273 2011-02-13  Bruno Haible  <bruno@clisp.org>
19274
19275         Don't interfere with a program's definition of __attribute__.
19276         * lib/argp.h (__attribute__): Remove definition.
19277         (_GL_ATTRIBUTE_FORMAT): New macro.
19278         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
19279         * lib/argp-fmtstream.h (__attribute__): Remove definition.
19280         (_GL_ATTRIBUTE_FORMAT): New macro.
19281         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
19282         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
19283         GCC 3 or newer.
19284         * lib/error.h (__attribute__): Remove definition.
19285         (_GL_ATTRIBUTE_FORMAT): New macro.
19286         (error, error_at_line): Use it.
19287         * lib/hash.h (__attribute__): Remove definition.
19288         (ATTRIBUTE_WUR): Update definition. Define always.
19289         * lib/openat.h (__attribute__): Remove definition.
19290         (ATTRIBUTE_NORETURN): Update definition. Define always.
19291         * lib/sigpipe-die.h (__attribute__): Remove definition.
19292         (ATTRIBUTE_NORETURN): Update definition. Define always.
19293         * lib/vasnprintf.h (__attribute__): Remove definition.
19294         (_GL_ATTRIBUTE_FORMAT): New macro.
19295         (asnprintf, vasnprintf): Use it.
19296         * lib/xalloc.h (__attribute__): Remove definition.
19297         (ATTRIBUTE_NORETURN): Update definition. Define always.
19298         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
19299         * lib/xmemdup0.h (__attribute__): Remove definition.
19300         (ATTRIBUTE_NORETURN): Update definition. Define always.
19301         * lib/xprintf.h (__attribute__): Remove definition.
19302         (_GL_ATTRIBUTE_FORMAT): New macro.
19303         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
19304         * lib/xstrtol.h (__attribute__): Remove definition.
19305         (ATTRIBUTE_NORETURN): Update definition. Define always.
19306         * lib/xvasprintf.h (__attribute__): Remove definition.
19307         (_GL_ATTRIBUTE_FORMAT): New macro.
19308         (xasprintf, xvasprintf): Use it.
19309         * tests/test-argmatch.c (__attribute__): Remove definition.
19310         (ATTRIBUTE_NORETURN): Update definition. Define always.
19311         * tests/test-exclude.c (__attribute__): Remove definition.
19312         (ATTRIBUTE_NORETURN): Update definition. Define always.
19313         Reported by Paul Eggert.
19314
19315 2011-02-13  Bruno Haible  <bruno@clisp.org>
19316
19317         mbrtowc: Add more tests for native Windows platforms.
19318         * tests/test-mbrtowc-w32-1.sh: New file.
19319         * tests/test-mbrtowc-w32-2.sh: New file.
19320         * tests/test-mbrtowc-w32-3.sh: New file.
19321         * tests/test-mbrtowc-w32-4.sh: New file.
19322         * tests/test-mbrtowc-w32-5.sh: New file.
19323         * tests/test-mbrtowc-w32.c: New file.
19324         * modules/mbrtowc-tests (Files): Add them.
19325         (Makefile.am): Arrange to run these tests.
19326         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
19327         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
19328
19329 2011-02-13  Bruno Haible  <bruno@clisp.org>
19330
19331         mbrtowc: Work around native Windows bug.
19332         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
19333         guess when no suitable locale for testing was found.
19334         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
19335
19336 2011-02-13  Bruno Haible  <bruno@clisp.org>
19337
19338         mbsinit: Work around mingw bug.
19339         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
19340         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
19341         Windows.
19342         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
19343
19344 2011-02-13  Bruno Haible  <bruno@clisp.org>
19345
19346         mbsinit: Don't crash for a NULL argument.
19347         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
19348         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
19349
19350 2011-02-13  Bruno Haible  <bruno@clisp.org>
19351
19352         Don't interfere with a program's definition of __attribute__.
19353         * lib/stdio.in.h (__attribute__): Remove definition.
19354         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
19355         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
19356         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
19357         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
19358         * lib/string.in.h (__attribute__): Remove definition.
19359         Reported by Paul Eggert.
19360
19361 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19362
19363         stdlib: don't get in the way of non-GCC __attribute__
19364         See thread starting at
19365         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
19366         Revert previous stdlib change, installing the following instead:
19367         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
19368         to get in the way of a non-GCC compiler that supports __attribute__.
19369         (_GL_ATTRIBUTE_RETURN): New macro.
19370         (_Exit): Use it instead of __attribute__.
19371
19372 2011-02-12  Bruno Haible  <bruno@clisp.org>
19373
19374         quotearg test: Avoid test failure on mingw.
19375         * tests/test-quotearg.sh: Convert the locale identifier from native
19376         Windows syntax to Unix syntax.
19377
19378 2011-02-12  Bruno Haible  <bruno@clisp.org>
19379
19380         setlocale: Prefer gnulib's override over libintl's override.
19381         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
19382         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
19383         GNULIB_defined_setlocale is set.
19384
19385 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19386
19387         stdlib: support non-GCC __attribute__
19388
19389         Fix a serious and tricky problem encountered when attempting to
19390         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
19391         5.5, but it crashed due to memory corruption on Solaris 10 with
19392         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
19393         bits that are otherwise zero.  This tagging is optional inside
19394         Emacs but is preferred and is used when __attribute__ ((__aligned
19395         (8))) works, as it does with both recent-enough GCC and with Sun C
19396         5.11.  However, Sun C 5.11 is not GCC and does not #define
19397         __GNUC__ and __GNUC_MINOR__.
19398
19399         When I added the getloadavg module to Emacs, it brought in
19400         stdlib.in.h, which contained this fragment:
19401
19402            #ifndef __attribute__
19403            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
19404            #  define __attribute__(Spec)   /* empty */
19405            # endif
19406            #endif
19407
19408         When files that include <stdlib.h> were compiled with Sun C 5.11,
19409         the above code disabled __attribute__ ((__aligned (8))), which
19410         caused variables to not be properly aligned, which eventually led
19411         to the pointer corruption mentioned above.  (This was a bit hard
19412         to diagnose, unfortunately.)
19413
19414         Several "#define __attribute__(X) /* empty */" code snippets need
19415         to be eradicated from Gnulib to work with non-GCC compilers that
19416         support __attribute__.  The Autoconf way to do this is to test for
19417         each kind of attribute that we want support for, and selectively
19418         enable that in source code.
19419
19420         Fix this problem just for stdlib.h, by adding a test for the
19421         __noreturn__ attribute, and change stdlib.in.h to use that test
19422         when needed.  This technique can be easily generalized to the
19423         other *.in.h files and attributes, and a similar technique can be
19424         used for *.h and *.c files.  This patch is enough to solve the
19425         problem for Emacs + getloadavg, and I thought I'd publish it for
19426         feedback before undertaking further, similar fixes in other
19427         modules.
19428
19429         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
19430         because it's not needed for stdlib.h.  It merely substitutes the
19431         value directly into stdlib.h.  We may well need to #define it, or
19432         similar symbols, for other modules, but it's nice to also have an
19433         option to not #define it for applications like Emacs that do not
19434         need it.
19435
19436         * lib/stdlib.in.h (__attribute__): Do not #define.
19437         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
19438         be defined only if the _Exit module is also used.
19439         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
19440         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
19441         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
19442         platforms.
19443         * modules/_Exit (Files): Add m4/attribute.m4.
19444         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
19445         * m4/attribute.m4: New file.
19446
19447 2011-02-12  Bruno Haible  <bruno@clisp.org>
19448
19449         wcsrtombs: Work around bug on native Windows.
19450         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
19451         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
19452         instead of len.
19453         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
19454
19455 2011-02-12  Bruno Haible  <bruno@clisp.org>
19456
19457         mbsrtowcs: Work around bug on native Windows.
19458         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
19459         against mingw bug.
19460         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
19461
19462 2011-02-12  Bruno Haible  <bruno@clisp.org>
19463
19464         Avoid setlocale bugs in tests.
19465         * modules/btowc (Dependencies): Add setlocale.
19466         * modules/c-strcase (Dependencies): Likewise.
19467         * modules/mbmemcasecmp (Dependencies): Likewise.
19468         * modules/mbmemcasecoll (Dependencies): Likewise.
19469         * modules/mbrtowc (Dependencies): Likewise.
19470         * modules/mbscasecmp (Dependencies): Likewise.
19471         * modules/mbscasestr (Dependencies): Likewise.
19472         * modules/mbschr (Dependencies): Likewise.
19473         * modules/mbscspn (Dependencies): Likewise.
19474         * modules/mbsinit (Dependencies): Likewise.
19475         * modules/mbsncasecmp (Dependencies): Likewise.
19476         * modules/mbsnrtowcs (Dependencies): Likewise.
19477         * modules/mbspbrk (Dependencies): Likewise.
19478         * modules/mbspcasecmp (Dependencies): Likewise.
19479         * modules/mbsrchr (Dependencies): Likewise.
19480         * modules/mbsrtowcs (Dependencies): Likewise.
19481         * modules/mbsspn (Dependencies): Likewise.
19482         * modules/mbsstr (Dependencies): Likewise.
19483         * modules/nl_langinfo (Dependencies): Likewise.
19484         * modules/quotearg (Dependencies): Likewise.
19485         * modules/unicase/locale-language (Dependencies): Likewise.
19486         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
19487         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
19488         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
19489         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
19490         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
19491         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
19492         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
19493         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
19494         * modules/vasnprintf-posix (Dependencies): Likewise.
19495         * modules/wcrtomb (Dependencies): Likewise.
19496         * modules/wcsnrtombs (Dependencies): Likewise.
19497         * modules/wcsrtombs (Dependencies): Likewise.
19498
19499 2011-02-12  Bruno Haible  <bruno@clisp.org>
19500
19501         setlocale: Workaround native Windows bug.
19502         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
19503         succeeds but sets LC_CTYPE to "C", report a failure.
19504         * tests/test-setlocale2.sh: New file.
19505         * tests/test-setlocale2.c: New file.
19506         * modules/setlocale-tests (Files): Add the new files.
19507         (Makefile.am): Enable test-setlocale2.sh test.
19508         * doc/posix-functions/setlocale.texi: Mention workaround.
19509
19510 2011-02-11  Bruno Haible  <bruno@clisp.org>
19511
19512         Tests for module 'setlocale'.
19513         * modules/setlocale-tests: New file.
19514         * tests/test-setlocale1.sh: New file.
19515         * tests/test-setlocale1.c: New file.
19516
19517         New module 'setlocale'.
19518         * lib/locale.in.h (setlocale): New declaration.
19519         * lib/setlocale.c: New file, based on
19520         gettext/gettext-runtime/intl/setlocale.c.
19521         * m4/setlocale.m4: New file.
19522         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
19523         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
19524         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
19525         REPLACE_SETLOCALE.
19526         * modules/setlocale: New file.
19527         * tests/test-locale-c++.cc: Test the declaration of setlocale.
19528         * doc/posix-functions/setlocale.texi: Mention the new module.
19529
19530 2011-02-11  Bruno Haible  <bruno@clisp.org>
19531
19532         Prepare for locale dependent tests on mingw.
19533         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
19534         because it has the wrong locale encoding.
19535         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
19536         French_France.1252 instead of "fr".
19537         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
19538         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
19539         because it has the wrong locale encoding.
19540         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
19541         native Windows, try Turkish_Turkey.65001.
19542         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
19543         Chinese_China.54936.
19544
19545         Prepare for locale dependent tests on mingw.
19546         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
19547         differently.
19548         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
19549         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
19550         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
19551         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
19552
19553 2011-02-11  Eric Blake  <eblake@redhat.com>
19554
19555         strptime: avoid compiler warnings
19556         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
19557         compiler warnings about dead code.
19558         Reported by Daniel P. Berrange.
19559
19560 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
19561
19562         doc: update users.txt
19563         * users.txt: Add rcs.
19564
19565 2011-02-10  John W. Eaton  <jwe@gnu.org>
19566
19567         doc: update users.txt
19568         * users.txt: Add octave.
19569
19570 2011-02-10  Jim Meyering  <meyering@redhat.com>
19571
19572         doc: update users.txt
19573         * users.txt: Add iwhd.
19574
19575 2011-02-09  Bruno Haible  <bruno@clisp.org>
19576
19577         gnulib-tool: Make copyright notice adjustment more robust.
19578         * gnulib-tool (func_import): In sed_transform_main_lib_file,
19579         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
19580         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
19581         License".
19582         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
19583
19584 2011-02-06  Bruno Haible  <bruno@clisp.org>
19585
19586         New module 'towctrans'.
19587         * modules/towctrans: New file.
19588         * lib/wctype.in.h (towctrans): New declaration.
19589         * lib/towctrans.c: New file.
19590         * lib/towctrans-impl.h: New file.
19591         * m4/towctrans.m4: New file.
19592         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
19593         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
19594         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
19595         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
19596         * doc/posix-functions/towctrans.texi: Mention the new module.
19597
19598 2011-02-06  Bruno Haible  <bruno@clisp.org>
19599
19600         New module 'wctrans'.
19601         * modules/wctrans: New file.
19602         * lib/wctype.in.h (wctrans): New declaration.
19603         * lib/wctrans.c: New file.
19604         * lib/wctrans-impl.h: New file.
19605         * m4/wctrans.m4: New file.
19606         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
19607         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
19608         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
19609         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
19610         * doc/posix-functions/wctrans.texi: Mention the new module.
19611
19612 2011-02-06  Bruno Haible  <bruno@clisp.org>
19613
19614         New module 'iswctype'.
19615         * modules/iswctype: New file.
19616         * lib/wctype.in.h (iswctype): New declaration.
19617         * lib/iswctype.c: New file.
19618         * lib/iswctype-impl.h: New file.
19619         * m4/iswctype.m4: New file.
19620         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
19621         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
19622         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
19623         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
19624         * doc/posix-functions/iswctype.texi: Mention the new module and the
19625         HP-UX 11.00 problem.
19626
19627 2011-02-06  Bruno Haible  <bruno@clisp.org>
19628
19629         New module 'wctype'.
19630         * modules/wctype: Change to represent the wctype() substitute.
19631         * lib/wctype.in.h (wctype): New declaration.
19632         * lib/wctype.c: New file.
19633         * lib/wctype-impl.h: New file.
19634         * m4/wctype.m4: New file.
19635         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
19636         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
19637         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
19638         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
19639         * doc/posix-functions/wctype.texi: Mention the new module and the
19640         HP-UX 11.00 problem.
19641
19642 2011-02-06  Bruno Haible  <bruno@clisp.org>
19643
19644         wctype-h: Ensure wctype_t and wctrans_t are defined.
19645         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
19646         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
19647         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
19648         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
19649         HAVE_WCTRANS_T.
19650         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
19651
19652 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
19653
19654         flock: fix license typo
19655
19656         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
19657         omitted.
19658
19659 2011-02-08  Bruno Haible  <bruno@clisp.org>
19660
19661         Split large sed scripts, for HP-UX sed.
19662         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
19663         to avoid HP-UX limit of 99 commands, in the near future.
19664         * modules/stdlib (Makefile.am): Likewise.
19665         * modules/unistd (Makefile.am): Likewise.
19666         * modules/wchar (Makefile.am): Likewise.
19667         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19668         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
19669         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
19670
19671 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
19672             Bruno Haible  <bruno@clisp.org>
19673
19674         stdlib: improve random_r modularization
19675         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
19676         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
19677         you also need the random_r module to get this material right.
19678         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
19679         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
19680         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
19681
19682 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
19683
19684         stdlib: don't depend on stdint
19685         * lib/stdlib.in.h: Don't include <stdint.h> merely because
19686         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
19687         be independent of whether stdint.h is needed.
19688         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
19689         here, instead of ...
19690         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
19691         struct random_data should be using the random_r module, not just
19692         the stdlib module (which wouldn't make sense: what package needs
19693         just struct random_data without also needing random_r?).
19694         * modules/stdlib (Depends-on): Remove stdint.
19695
19696         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
19697         See the thread rooted at
19698         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
19699         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
19700         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
19701         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
19702         __VMS)); previously it was always included (via fcntl--.h).
19703         (getloadavg): Do not use c_strtod.  Instead, approximate it by
19704         hand; this is good enough for load averages.  Also, do not use
19705         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
19706         flags directly if available and don't bother otherwise.  (Packages
19707         that need the extra reliability should use the modules that define
19708         these flags on older platforms that lack them.)
19709         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
19710         fcntl-safer.
19711
19712 2011-02-08  Jim Meyering  <meyering@redhat.com>
19713
19714         di-set.h, ino-map.h: add multiple-inclusion guard
19715         Technically, the guard is required only for ino-map.h, due to its
19716         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
19717         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
19718         * lib/ino-map.h: Likewise.
19719
19720 2011-02-06  Bruno Haible  <bruno@clisp.org>
19721
19722         iswblank: Ensure declaration on glibc systems.
19723         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
19724         * modules/iswblank (Dependencies): Add 'extensions'.
19725         * doc/posix-functions/iswblank.texi: Document the glibc problem.
19726
19727 2011-02-06  Bruno Haible  <bruno@clisp.org>
19728
19729         New module 'iswblank'.
19730         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
19731         * modules/iswblank: New file.
19732         * modules/wctype-h (Files): Remove lib/iswblank.c.
19733         (Makefile.am): Substitute GNULIB_ISWBLANK.
19734         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
19735         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
19736         (gl_WCTYPE_H_DEFAULTS): New macro.
19737         (gl_WCTYPE_H): Require it. Remove iswblank related code.
19738         * modules/iswblank-tests: New file.
19739         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
19740         * tests/test-wctype-h.c (main): Remove iswblank tests.
19741         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
19742         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
19743         of 'wctype-h'.
19744         * NEWS: Mention the change.
19745         * modules/mbchar (Depends-on): Add iswblank.
19746
19747 2011-02-08  Bruno Haible  <bruno@clisp.org>
19748
19749         di-set tests: Refactor.
19750         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
19751         unnecessary includes.
19752         (ASSERT): Remove macro.
19753         (main): Make C90 compliant by avoiding variable declaration after
19754         statement.
19755         * modules/di-set-tests (Files): Add tests/macros.h.
19756
19757 2011-02-08  Bruno Haible  <bruno@clisp.org>
19758
19759         ino-map tests: Refactor.
19760         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
19761         unnecessary includes.
19762         (ASSERT): Remove macro.
19763         (main): Make C90 compliant by avoiding variable declaration after
19764         statement.
19765         * modules/ino-map-tests (Files): Add tests/macros.h.
19766
19767 2011-02-08  Jim Meyering  <meyering@redhat.com>
19768
19769         di-set: add "const" to a cast
19770         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
19771         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
19772
19773 2011-02-06  Bruno Haible  <bruno@clisp.org>
19774
19775         Rename module 'wctype' to 'wctype-h'.
19776         * modules/wctype-h: Renamed from modules/wctype.
19777         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
19778         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
19779         (Files, Depends-on, Makefile.am): Update.
19780         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
19781         (Files, Makefile.am): Update.
19782         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
19783         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
19784         * doc/posix-headers/wctype.texi: Update.
19785         * doc/posix-functions/iswalnum.texi: Update.
19786         * doc/posix-functions/iswalpha.texi: Update.
19787         * doc/posix-functions/iswblank.texi: Update.
19788         * doc/posix-functions/iswcntrl.texi: Update.
19789         * doc/posix-functions/iswdigit.texi: Update.
19790         * doc/posix-functions/iswgraph.texi: Update.
19791         * doc/posix-functions/iswlower.texi: Update.
19792         * doc/posix-functions/iswprint.texi: Update.
19793         * doc/posix-functions/iswpunct.texi: Update.
19794         * doc/posix-functions/iswspace.texi: Update.
19795         * doc/posix-functions/iswupper.texi: Update.
19796         * doc/posix-functions/iswxdigit.texi: Update.
19797         * doc/posix-functions/towlower.texi: Update.
19798         * doc/posix-functions/towupper.texi: Update.
19799         * NEWS: Mention the change.
19800         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
19801         * modules/mbchar (Dependencies): Likewise.
19802         * modules/mbswidth (Dependencies): Likewise.
19803         * modules/quotearg (Dependencies): Likewise.
19804         * modules/regex (Dependencies): Likewise.
19805         * modules/wcscasecmp (Dependencies): Likewise.
19806         * modules/wcsncasecmp (Dependencies): Likewise.
19807         * modules/wcwidth (Dependencies): Likewise.
19808
19809 2011-02-06  Bruno Haible  <bruno@clisp.org>
19810
19811         New module 'wcswidth'.
19812         * modules/wcswidth: New file.
19813         * lib/wchar.in.h (wcswidth): New declaration.
19814         * lib/wcswidth.c: New file.
19815         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
19816         * m4/wcswidth.m4: New file.
19817         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
19818         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
19819         REPLACE_WCSWIDTH.
19820         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
19821         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
19822         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
19823         * doc/posix-functions/wcswidth.texi: Mention the new module.
19824
19825 2011-02-06  Bruno Haible  <bruno@clisp.org>
19826
19827         New module 'wcstok'.
19828         * modules/wcstok: New file.
19829         * lib/wchar.in.h (wcstok): New declaration.
19830         * lib/wcstok.c: New file.
19831         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
19832         * m4/wcstok.m4: New file.
19833         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
19834         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
19835         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
19836         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
19837         * doc/posix-functions/wcstok.texi: Mention the new module.
19838
19839 2011-02-06  Bruno Haible  <bruno@clisp.org>
19840
19841         New module 'wcsstr'.
19842         * modules/wcsstr: New file.
19843         * lib/wchar.in.h (wcsstr): New declaration.
19844         * lib/wcsstr.c: New file.
19845         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
19846         * m4/wcsstr.m4: New file.
19847         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
19848         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
19849         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
19850         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
19851         * doc/posix-functions/wcsstr.texi: Mention the new module.
19852
19853 2011-02-06  Bruno Haible  <bruno@clisp.org>
19854
19855         New module 'wcspbrk'.
19856         * modules/wcspbrk: New file.
19857         * lib/wchar.in.h (wcspbrk): New declaration.
19858         * lib/wcspbrk.c: New file.
19859         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
19860         * m4/wcspbrk.m4: New file.
19861         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
19862         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
19863         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
19864         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
19865         * doc/posix-functions/wcspbrk.texi: Mention the new module.
19866
19867 2011-02-06  Bruno Haible  <bruno@clisp.org>
19868
19869         New module 'wcsspn'.
19870         * modules/wcsspn: New file.
19871         * lib/wchar.in.h (wcsspn): New declaration.
19872         * lib/wcsspn.c: New file.
19873         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
19874         * m4/wcsspn.m4: New file.
19875         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
19876         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
19877         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
19878         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
19879         * doc/posix-functions/wcsspn.texi: Mention the new module.
19880
19881 2011-02-06  Bruno Haible  <bruno@clisp.org>
19882
19883         New module 'wcscspn'.
19884         * modules/wcscspn: New file.
19885         * lib/wchar.in.h (wcscspn): New declaration.
19886         * lib/wcscspn.c: New file.
19887         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
19888         * m4/wcscspn.m4: New file.
19889         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
19890         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
19891         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
19892         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
19893         * doc/posix-functions/wcscspn.texi: Mention the new module.
19894
19895 2011-02-06  Bruno Haible  <bruno@clisp.org>
19896
19897         New module 'wcsrchr'.
19898         * modules/wcsrchr: New file.
19899         * lib/wchar.in.h (wcsrchr): New declaration.
19900         * lib/wcsrchr.c: New file.
19901         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
19902         * m4/wcsrchr.m4: New file.
19903         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
19904         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
19905         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
19906         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
19907         * doc/posix-functions/wcsrchr.texi: Mention the new module.
19908
19909 2011-02-06  Bruno Haible  <bruno@clisp.org>
19910
19911         New module 'wcschr'.
19912         * modules/wcschr: New file.
19913         * lib/wchar.in.h (wcschr): New declaration.
19914         * lib/wcschr.c: New file.
19915         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
19916         * m4/wcschr.m4: New file.
19917         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
19918         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
19919         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
19920         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
19921         * doc/posix-functions/wcschr.texi: Mention the new module.
19922
19923 2011-02-06  Bruno Haible  <bruno@clisp.org>
19924
19925         New module 'wcsdup'.
19926         * modules/wcsdup: New file.
19927         * lib/wchar.in.h (wcsdup): New declaration.
19928         * lib/wcsdup.c: New file.
19929         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
19930         * m4/wcsdup.m4: New file.
19931         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
19932         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
19933         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
19934         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
19935         * doc/posix-functions/wcsdup.texi: Mention the new module.
19936
19937 2011-02-06  Bruno Haible  <bruno@clisp.org>
19938
19939         New module 'wcsxfrm'.
19940         * modules/wcsxfrm: New file.
19941         * lib/wchar.in.h (wcsxfrm): New declaration.
19942         * lib/wcsxfrm.c: New file.
19943         * lib/wcsxfrm-impl.h: New file.
19944         * m4/wcsxfrm.m4: New file.
19945         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
19946         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
19947         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
19948         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
19949         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
19950
19951 2011-02-06  Bruno Haible  <bruno@clisp.org>
19952
19953         New module 'wcscoll'.
19954         * modules/wcscoll: New file.
19955         * lib/wchar.in.h (wcscoll): New declaration.
19956         * lib/wcscoll.c: New file.
19957         * lib/wcscoll-impl.h: New file.
19958         * m4/wcscoll.m4: New file.
19959         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
19960         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
19961         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
19962         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
19963         * doc/posix-functions/wcscoll.texi: Mention the new module.
19964
19965 2011-02-06  Bruno Haible  <bruno@clisp.org>
19966
19967         New module 'wcsncasecmp'.
19968         * modules/wcsncasecmp: New file.
19969         * lib/wchar.in.h (wcsncasecmp): New declaration.
19970         * lib/wcsncasecmp.c: New file.
19971         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
19972         * m4/wcsncasecmp.m4: New file.
19973         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
19974         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
19975         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
19976         HAVE_WCSNCASECMP.
19977         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
19978         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
19979
19980 2011-02-06  Bruno Haible  <bruno@clisp.org>
19981
19982         New module 'wcscasecmp'.
19983         * modules/wcscasecmp: New file.
19984         * lib/wchar.in.h (wcscasecmp): New declaration.
19985         * lib/wcscasecmp.c: New file.
19986         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
19987         * m4/wcscasecmp.m4: New file.
19988         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
19989         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
19990         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
19991         HAVE_WCSCASECMP.
19992         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
19993         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
19994
19995 2011-02-05  Bruno Haible  <bruno@clisp.org>
19996
19997         New module 'wcsncmp'.
19998         * modules/wcsncmp: New file.
19999         * lib/wchar.in.h (wcsncmp): New declaration.
20000         * lib/wcsncmp.c: New file.
20001         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
20002         * m4/wcsncmp.m4: New file.
20003         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
20004         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
20005         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
20006         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
20007         * doc/posix-functions/wcsncmp.texi: Mention the new module.
20008
20009 2011-02-05  Bruno Haible  <bruno@clisp.org>
20010
20011         New module 'wcscmp'.
20012         * modules/wcscmp: New file.
20013         * lib/wchar.in.h (wcscmp): New declaration.
20014         * lib/wcscmp.c: New file.
20015         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
20016         * m4/wcscmp.m4: New file.
20017         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
20018         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
20019         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
20020         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
20021         * doc/posix-functions/wcscmp.texi: Mention the new module.
20022
20023 2011-02-05  Bruno Haible  <bruno@clisp.org>
20024
20025         New module 'wcsncat'.
20026         * modules/wcsncat: New file.
20027         * lib/wchar.in.h (wcsncat): New declaration.
20028         * lib/wcsncat.c: New file.
20029         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
20030         * m4/wcsncat.m4: New file.
20031         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
20032         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
20033         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
20034         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
20035         * doc/posix-functions/wcsncat.texi: Mention the new module.
20036
20037 2011-02-05  Bruno Haible  <bruno@clisp.org>
20038
20039         New module 'wcscat'.
20040         * modules/wcscat: New file.
20041         * lib/wchar.in.h (wcscat): New declaration.
20042         * lib/wcscat.c: New file.
20043         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
20044         * m4/wcscat.m4: New file.
20045         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
20046         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
20047         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
20048         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
20049         * doc/posix-functions/wcscat.texi: Mention the new module.
20050
20051 2011-02-05  Bruno Haible  <bruno@clisp.org>
20052
20053         New module 'wcpncpy'.
20054         * modules/wcpncpy: New file.
20055         * lib/wchar.in.h (wcpncpy): New declaration.
20056         * lib/wcpncpy.c: New file.
20057         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
20058         * m4/wcpncpy.m4: New file.
20059         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
20060         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
20061         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
20062         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
20063         * doc/posix-functions/wcpncpy.texi: Mention the new module.
20064
20065 2011-02-05  Bruno Haible  <bruno@clisp.org>
20066
20067         New module 'wcsncpy'.
20068         * modules/wcsncpy: New file.
20069         * lib/wchar.in.h (wcsncpy): New declaration.
20070         * lib/wcsncpy.c: New file.
20071         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
20072         * m4/wcsncpy.m4: New file.
20073         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
20074         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
20075         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
20076         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
20077         * doc/posix-functions/wcsncpy.texi: Mention the new module.
20078
20079 2011-02-05  Bruno Haible  <bruno@clisp.org>
20080
20081         New module 'wcpcpy'.
20082         * modules/wcpcpy: New file.
20083         * lib/wchar.in.h (wcpcpy): New declaration.
20084         * lib/wcpcpy.c: New file.
20085         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
20086         * m4/wcpcpy.m4: New file.
20087         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
20088         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
20089         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
20090         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
20091         * doc/posix-functions/wcpcpy.texi: Mention the new module.
20092
20093 2011-02-05  Bruno Haible  <bruno@clisp.org>
20094
20095         New module 'wcscpy'.
20096         * modules/wcscpy: New file.
20097         * lib/wchar.in.h (wcscpy): New declaration.
20098         * lib/wcscpy.c: New file.
20099         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
20100         * m4/wcscpy.m4: New file.
20101         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
20102         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
20103         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
20104         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
20105         * doc/posix-functions/wcscpy.texi: Mention the new module.
20106
20107 2011-02-05  Bruno Haible  <bruno@clisp.org>
20108
20109         New module 'wcsnlen'.
20110         * modules/wcsnlen: New file.
20111         * lib/wchar.in.h (wcsnlen): New declaration.
20112         * lib/wcsnlen.c: New file.
20113         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
20114         * m4/wcsnlen.m4: New file.
20115         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
20116         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
20117         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
20118         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
20119         * doc/posix-functions/wcsnlen.texi: Mention the new module.
20120
20121 2011-02-05  Bruno Haible  <bruno@clisp.org>
20122
20123         New module 'wcslen'.
20124         * modules/wcslen: New file.
20125         * lib/wchar.in.h (wcslen): New declaration.
20126         * lib/wcslen.c: New file.
20127         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
20128         * m4/wcslen.m4: New file.
20129         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
20130         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
20131         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
20132         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
20133         * doc/posix-functions/wcslen.texi: Mention the new module.
20134
20135 2011-02-05  Bruno Haible  <bruno@clisp.org>
20136
20137         New module 'wmemset'.
20138         * modules/wmemset: New file.
20139         * lib/wchar.in.h (wmemset): New declaration.
20140         * lib/wmemset.c: New file.
20141         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
20142         * m4/wmemset.m4: New file.
20143         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
20144         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
20145         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
20146         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
20147         * doc/posix-functions/wmemset.texi: Mention the new module.
20148
20149 2011-02-05  Bruno Haible  <bruno@clisp.org>
20150
20151         New module 'wmemmove'.
20152         * modules/wmemmove: New file.
20153         * lib/wchar.in.h (wmemmove): New declaration.
20154         * lib/wmemmove.c: New file.
20155         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
20156         * m4/wmemmove.m4: New file.
20157         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
20158         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
20159         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
20160         HAVE_WMEMMOVE.
20161         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
20162         * doc/posix-functions/wmemmove.texi: Mention the new module.
20163
20164 2011-02-05  Bruno Haible  <bruno@clisp.org>
20165
20166         New module 'wmemcpy'.
20167         * modules/wmemcpy: New file.
20168         * lib/wchar.in.h (wmemcpy): New declaration.
20169         * lib/wmemcpy.c: New file.
20170         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
20171         * m4/wmemcpy.m4: New file.
20172         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
20173         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
20174         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
20175         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
20176         * doc/posix-functions/wmemcpy.texi: Mention the new module.
20177
20178 2011-02-05  Bruno Haible  <bruno@clisp.org>
20179
20180         New module 'wmemcmp'.
20181         * modules/wmemcmp: New file.
20182         * lib/wchar.in.h (wmemcmp): New declaration.
20183         * lib/wmemcmp.c: New file.
20184         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
20185         * m4/wmemcmp.m4: New file.
20186         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
20187         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
20188         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
20189         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
20190         * doc/posix-functions/wmemcmp.texi: Mention the new module.
20191
20192 2011-02-07  Jim Meyering  <meyering@redhat.com>
20193
20194         di-set, ino-map: new modules, from coreutils
20195         * lib/di-set.c: New file.
20196         * lib/di-set.h: Likewise.
20197         * lib/ino-map.c: Likewise.
20198         * lib/ino-map.h: Likewise.
20199         * modules/di-set: Likewise.
20200         * modules/di-set-tests: Likewise.
20201         * modules/ino-map: Likewise.
20202         * modules/ino-map-tests: Likewise.
20203         * tests/test-di-set.c: Likewise.
20204         * tests/test-ino-map.c: Likewise.
20205
20206 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
20207
20208         getloadavg: merge minor changes from Emacs
20209
20210         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
20211         (getloadavg): Use memset, not bzero.
20212
20213         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
20214         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
20215         clash (bug#86).
20216
20217 2010-11-14  Bruno Haible  <bruno@clisp.org>
20218
20219         Allow multiple gnulib generated replacements to coexist.
20220         * lib/getopt.in.h (struct option): Avoid identical redefinition.
20221         * lib/inttypes.in.h (imaxdiv_t): Likewise.
20222         * lib/langinfo.in.h (nl_item): Likewise.
20223         * lib/math.in.h (_NaN, NAN): Likewise.
20224         * lib/netdb.in.h (struct addrinfo): Likewise.
20225         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
20226         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
20227         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
20228         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
20229         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
20230         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
20231         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
20232         pthread_mutexattr_init, pthread_mutexattr_settype,
20233         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
20234         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
20235         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
20236         pthread_spin_trylock, pthread_spin_unlock): Likewise.
20237         * lib/sched.in.h (struct sched_param): Likewise.
20238         * lib/se-selinux.in.h (security_class_t, security_context_t,
20239         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
20240         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
20241         lsetfilecon, fsetfilecon, security_check_context,
20242         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
20243         Likewise.
20244         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
20245         Likewise.
20246         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
20247         _gl_function_taking_int_returning_void_t, union sigval,
20248         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
20249         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
20250         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
20251         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
20252         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
20253         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
20254         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
20255         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
20256         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
20257         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
20258         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
20259         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
20260         socklen_t, rpl_fd_isset): Likewise.
20261         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
20262         * lib/sys_time.in.h (struct timeval): Likewise.
20263         * lib/sys_times.in.h (struct tms): Likewise.
20264         * lib/sys_utsname.in.h (struct utsname):
20265         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
20266         * lib/unistd.in.h (getpagesize): Likewise.
20267         * lib/wchar.in.h (mbstate_t): Likewise.
20268         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
20269         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
20270         towlower, towupper): Likewise.
20271         Reported by Sam Steingold <sds@gnu.org>.
20272
20273 2011-02-05  Eric Blake  <eblake@redhat.com>
20274
20275         unsetenv: work around Haiku issues
20276         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
20277         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
20278
20279 2010-12-30  Bruce Korb  <bkorb@gnu.org>
20280
20281         libposix: avoid calling error() within libposix
20282         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
20283         is defined.
20284
20285 2011-02-05  Eric Blake  <eblake@redhat.com>
20286
20287         strerror_r-posix: port to cygwin
20288         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
20289         implementation.
20290         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
20291         * tests/test-strerror_r.c (main): Fix test.
20292         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
20293         issue.
20294
20295 2011-02-05  Bruno Haible  <bruno@clisp.org>
20296
20297         New module 'wmemchr'.
20298         * modules/wmemchr: New file.
20299         * lib/wchar.in.h (wmemchr): New declaration.
20300         * lib/wmemchr.c: New file.
20301         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
20302         * m4/wmemchr.m4: New file.
20303         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
20304         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
20305         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
20306         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
20307         * doc/posix-functions/wmemchr.texi: Mention the new module.
20308
20309 2011-02-04  Eric Blake  <eblake@redhat.com>
20310
20311         fdopendir: detect FreeBSD bug
20312         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
20313         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
20314
20315 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
20316
20317         stdbool: do not define HAVE_STDBOOL_H
20318         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
20319         AC_HEADER_STDBOOL.  All uses changed.  Do not define
20320         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
20321         imported from the latest Autoconf git.  It was motivated by Emacs,
20322         which uses gnulib but does not need HAVE_STDBOOL_H.
20323
20324 2011-02-04  Bruno Haible  <bruno@clisp.org>
20325
20326         wcsnrtombs: Prepare for new module wwcsnrtombs.
20327         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
20328         * lib/wcsnrtombs.c: Include it.
20329         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
20330
20331         wcsrtombs: Prepare for new module wwcsrtombs.
20332         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
20333         * lib/wcsrtombs.c: Include it.
20334         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
20335
20336         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
20337         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
20338         * lib/mbsnrtowcs.c: Include it.
20339         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
20340
20341         mbsrtowcs: Prepare for new module mbsrtowwcs.
20342         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
20343         * lib/mbsrtowcs.c: Include it.
20344         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
20345
20346 2011-02-04  Bruno Haible  <bruno@clisp.org>
20347
20348         vasnprintf: Reduce use of malloc for small format strings.
20349         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
20350         (arguments): Add room for the first 7 arguments.
20351         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
20352         (char_directives, u8_directives, u16_directives, u32_directives): Add
20353         room for the first 7 directives.
20354         * lib/printf-parse.c: Include <string.h>.
20355         (PRINTF_PARSE): Change memory handling code so that it uses the first
20356         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
20357         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
20358         Reported by Pádraig Brady <P@draigbrady.com>.
20359
20360 2011-01-31  Eric Blake  <eblake@redhat.com>
20361
20362         dup2: work around Haiku bug
20363         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
20364         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
20365         * doc/posix-functions/dup2.texi (dup2): Document the bug.
20366         * tests/test-dup2.c (main): Enhance test.
20367
20368 2011-01-31  Simon Josefsson  <simon@josefsson.org>
20369
20370         doc: off_t is not available in eglibc 2.11.2 stdio.h.
20371         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
20372         declared by eglibc 2.11.2.
20373         * lib/stdio.in.h: Likewise.
20374
20375 2011-01-31  Eric Blake  <eblake@redhat.com>
20376
20377         ignore-value: add missing test dependency
20378         * tests/test-ignore-value.c: Revert previous change; stdio.h
20379         provides off_t.
20380         * modules/ignore-value-tests (Depends-on): Add missing dependency.
20381
20382 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
20383
20384         mktime: clarify long_int width checking
20385         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
20386         the top level, to make it clearer that the assumption about
20387         long_int width is being checked.  See
20388         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
20389
20390 2011-01-30  Simon Josefsson  <simon@josefsson.org>
20391
20392         ignore-value: Fix self-test.
20393         * tests/test-ignore-value.c: Include sys/types.h for off_t.
20394
20395 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
20396
20397         TYPE_MAXIMUM: avoid theoretically undefined behavior
20398         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
20399         negative number, which the C Standard says has undefined behavior.
20400         In practice this is not a problem, but might as well do it by the book.
20401         Reported by Rich Felker and Eric Blake; see
20402         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
20403         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
20404         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
20405         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
20406         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
20407         * m4/stdint.m4 (gl_STDINT_H): Likewise.
20408         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
20409
20410         mktime: #undef mktime before #defining it
20411         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
20412
20413         mktime: systematically normalize tm_isdst comparisons
20414         * lib/mktime.c (isdst_differ): New function.
20415         (__mktime_internal): Use it systematically for all isdst comparisons.
20416         This completes the fix for libc BZ #6723, and removes the need for
20417         normalizing tm_isdst.  See
20418         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
20419         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
20420
20421         mktime: fix some integer overflow issues and sidestep the rest
20422
20423         This was prompted by a bug report by Benjamin Lindner for MinGW
20424         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
20425         His bug is due to signed integer overflow (0 - INT_MIN), and I
20426         I scanned through mktime.c looking for other integer overflow
20427         problems, fixing all the bugs I found.
20428
20429         Although the C Standard says the resulting code is still not safe
20430         in the presence of integer overflow, in practice it should be good
20431         enough for all real-world two's-complement implementations, except
20432         for debugging environments that deliberately trap on integer
20433         overflow (e.g., gcc -ftrapv).
20434
20435         * lib/mktime.c (WRAPV): New macro.
20436         (SHR): Also check that long_int and time_t shift right in the
20437         usual way, before using the fast-but-unportable method.
20438         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
20439         used.  The code already assumed two's complement, so there's
20440         no need to test for alternatives.  All uses removed.
20441         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
20442         the C standard.  Problem reported by Rich Felker in
20443         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
20444         (twos_complement_arithmetic): Also check long_int and time_t.
20445         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
20446         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
20447         (__mktime_internal): Avoid integer overflow with unary subtraction
20448         in two instances where -1 - X is an adequate replacement for -X,
20449         since the calculations are approximate.
20450
20451 2011-01-29  Eric Blake  <eblake@redhat.com>
20452
20453         mktime: avoid infinite loop
20454         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
20455         type; behavior is still undefined but portable to all known targets.
20456         Reported by Rich Felker.
20457
20458 2011-01-29  Simon Josefsson  <simon@josefsson.org>
20459
20460         rename, unlink, same-inode: Relicense.
20461         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
20462         * modules/unlink (License): Likewise.
20463         * modules/same-inode (License): Likewise.
20464
20465 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
20466
20467         mktime: avoid problems on NetBSD 5 / i386
20468         * lib/mktime.c (long_int): New type.  This works around a problem
20469         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
20470         but time_t is 64 bits, and where I expect the existing code is
20471         wrong in some cases.
20472         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
20473         (ydhms_diff): Bring back the compile-time check for wide-enough
20474         year and yday.
20475
20476         mktime: fix misspelling in comment
20477         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
20478         This merges all recent glibc changes of importance.
20479
20480 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20481
20482         move-if-change: cope with concurrent mv of identical file.
20483         * build-aux/move-if-change (CMPPROG): Accept environment
20484         variable as an override for `cmp'.
20485         (usage): Document CMPPROG.
20486         Adjust comparison to drop stdout.  Cope with failure of mv if
20487         the target file exists and is identical to the source, for
20488         parallel builds.
20489         Report from H.J. Lu against binutils in PR binutils/12283.
20490
20491 2011-01-28  Bruce Korb  <bkorb@gnu.org>
20492
20493         * users.txt: Mention sharutils.
20494
20495 2011-01-28  Simon Josefsson  <simon@josefsson.org>
20496
20497         * users.txt: Mention OATH Toolkit.
20498
20499 2011-01-27  Bruno Haible  <bruno@clisp.org>
20500
20501         Prepare for supporting FreeBSD 10.
20502         * build-aux/config.libpath: Remove handling of freebsd1*.
20503
20504 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
20505
20506         Prepare for supporting FreeBSD 10.
20507         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
20508         match FreeBSD 10.0.
20509
20510 2011-01-27  Bruno Haible  <bruno@clisp.org>
20511
20512         vma-iter, get-rusage-as: Add OpenBSD support.
20513         * modules/vma-iter (configure.ac): Test for mquery.
20514         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
20515         * lib/vma-iter.c: Include <sys/mman.h>.
20516         (vma_iterate): Add an implementation based on mquery().
20517         * lib/resource-ext.h (get_rusage_as): Update comments.
20518         * lib/get-rusage-as.c: Likewise.
20519         * lib/get-rusage-data.c: Likewise.
20520
20521 2011-01-26  Karl Berry  <karl@gnu.org>
20522
20523         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
20524         variables to make it easier to override the makeinfo program used.
20525
20526 2011-01-26  Eric Blake  <eblake@redhat.com>
20527
20528         fcntl: work around Haiku F_DUPFD bugs
20529         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
20530         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
20531         cloexec bit on duplication.
20532         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
20533
20534 2011-01-26  Bruno Haible  <bruno@clisp.org>
20535
20536         Enable memory leak tests on AIX.
20537         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
20538         * tests/test-fprintf-posix3.c (main): Likewise.
20539
20540 2011-01-26  Bruno Haible  <bruno@clisp.org>
20541
20542         Tests for module 'get-rusage-data'.
20543         * modules/get-rusage-data-tests: New file.
20544         * tests/test-get-rusage-data.c: New file.
20545
20546         New module 'get-rusage-data'.
20547         * lib/resource-ext.h (get_rusage_data): New declaration.
20548         * lib/get-rusage-data.c: New file.
20549         * modules/get-rusage-data: New file.
20550
20551 2011-01-25  Bruno Haible  <bruno@clisp.org>
20552
20553         get-rusage-as: Allow for easier testing.
20554         * lib/resource-ext.h (get_rusage_as): Add comment.
20555         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
20556         (main): New function for interactive testing.
20557
20558 2011-01-25  Bruno Haible  <bruno@clisp.org>
20559
20560         vma-iter: Treat Haiku like BeOS.
20561         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
20562         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
20563
20564 2011-01-25  Eric Blake  <eblake@redhat.com>
20565
20566         c-stack: fix regression on cygwin when libsigsegv is present
20567         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
20568
20569 2011-01-24  Bruno Haible  <bruno@clisp.org>
20570
20571         vma-iter: Avoid empty intervals.
20572         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
20573         on an empty interval.
20574
20575 2011-01-24  Jim Meyering  <meyering@redhat.com>
20576
20577         u64: remove unnecessary #include
20578         * lib/u64.h: Don't include <stddef.h>.  It was not used.
20579
20580 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
20581
20582         Allow the user to avoid the HAVE_RAW_DECL_* macros.
20583         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
20584
20585 2011-01-23  Bruno Haible  <bruno@clisp.org>
20586
20587         New module 'vma-iter'.
20588         * lib/vma-iter.h: New file.
20589         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
20590         * modules/vma-iter: New file.
20591         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
20592         for get_rusage_as_via_iterator.
20593         (vma_iterate_callback): New function.
20594         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
20595         * modules/get-rusage-as (Depends-on): Add vma-iter.
20596
20597 2011-01-23  Bruno Haible  <bruno@clisp.org>
20598
20599         uninorm: Tweak includes.
20600         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
20601         Reported by Jim Meyering.
20602
20603 2011-01-23  Bruno Haible  <bruno@clisp.org>
20604
20605         get-rusage-as: Improve on NetBSD.
20606         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
20607         /proc, like on FreeBSD.
20608
20609 2011-01-23  Jim Meyering  <meyering@redhat.com>
20610
20611         xreadlink.h: remove unnecessary #include
20612         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
20613
20614         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
20615         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
20616
20617 2011-01-23  Bruno Haible  <bruno@clisp.org>
20618
20619         get-rusage-as: Fix bug.
20620         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
20621         original limit when aborting the first loop.
20622
20623 2011-01-23  Bruno Haible  <bruno@clisp.org>
20624
20625         wctype: Ensure valid C syntax.
20626         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
20627         unconditionally, instead of gl_NEXT_HEADERS conditionally.
20628
20629 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
20630
20631         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
20632         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
20633         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
20634         as they are needed only for configure's test case.
20635         This removes two unnecessary symbols from config.h.
20636
20637         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
20638         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
20639         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
20640         AC_CHECK_HEADERS_ONCE on a header that we also invoke
20641         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
20642         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
20643         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
20644         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
20645         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
20646         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
20647         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
20648         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20649         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20650         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
20651         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
20652         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
20653         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
20654         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
20655
20656 2011-01-21  Eric Blake  <eblake@redhat.com>
20657
20658         maintainer-makefile: work with older git for submodule check
20659         * top/maint.mk (public-submodule-commit): Rewrite to avoid
20660         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
20661         Reported by Matthias Bolte.
20662
20663         bootstrap: minor portability fixes
20664         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
20665         (usage): Omit leading capital and trailing . on help phrases, per
20666         GNU Coding Standards.
20667         (check_versions, top level): Prefix messages with script name.
20668
20669 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
20670
20671         bootstrap: support --no-git option
20672         * build-aux/bootstrap: Add --no-git option, to be used when
20673         --gnulib-srcdir points to the exact desired checkout.
20674
20675 2011-01-21  Eric Blake  <eblake@redhat.com>
20676
20677         strerror_r-posix: work with glibc 2.13
20678         * lib/strerror_r.c (strerror_r): Fix return type.
20679
20680 2011-01-21  Pádraig Brady  <P@draigBrady.com>
20681             Bruno Haible  <bruno@clisp.org>
20682
20683         uN_strstr: New unit tests.
20684         * modules/unistr/u8-strstr-tests: New file.
20685         * modules/unistr/u16-strstr-tests: New file.
20686         * modules/unistr/u32-strstr-tests: New file.
20687         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
20688         * tests/unistr/test-u8-strstr.c: New file.
20689         * tests/unistr/test-u16-strstr.c: New file.
20690         * tests/unistr/test-u32-strstr.c: New file.
20691
20692 2011-01-21  Pádraig Brady  <P@draigBrady.com>
20693             Bruno Haible  <bruno@clisp.org>
20694
20695         Make uN_strstr functions O(n) worst-case.
20696         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
20697         16-bit and 32-bit unit cases, use the unibyte algorithm from
20698         lib/mbsstr.c.
20699         * lib/unistr/u8-strstr.c: Include <string.h>.
20700         (UNIT_IS_UINT8_T): New macro.
20701         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
20702         (U_STRLEN, U_STRNLEN): New macros.
20703         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
20704         (U_STRLEN, U_STRNLEN): New macros.
20705         * modules/unistr/u8-strstr (Depends-on): Add strstr.
20706         (configure.ac): Update required libunistring version.
20707         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
20708         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
20709         malloca.
20710         (configure.ac): Update required libunistring version.
20711         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
20712         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
20713         malloca.
20714         (configure.ac): Update required libunistring version.
20715
20716 2011-01-21  Pádraig Brady  <P@draigBrady.com>
20717             Bruno Haible  <bruno@clisp.org>
20718
20719         Prepare for faster uN_strstr functions.
20720         * lib/str-kmp.h: Support definable UNITs.
20721         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
20722         needle_len argument.
20723         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
20724         * lib/mbscasestr.c (mbscasestr): Likewise.
20725
20726 2011-01-21  Pádraig Brady <P@draigBrady.com>
20727
20728         malloca-tests: make faster by unsetting MALLOC_PERTURB_
20729         * tests/test-malloca.c (main): Unset the environment variable
20730         to greatly speed up the test.
20731         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
20732         * modules/malloca-tests: Depend on unsetenv.
20733
20734 2011-01-21  Pádraig Brady <P@draigBrady.com>
20735
20736         ignore-value: remove stdint dependency
20737         * lib/ignore-value.h: Remove <stdint.h>
20738         * modules/ignore-value: Remove stdint dependency.
20739
20740 2011-01-21  Jim Meyering  <meyering@redhat.com>
20741
20742         maint.mk: adjust variable name to be consistent with other gl_ vars
20743         * top/maint.mk (gl_public_submodule_commit): Rename the variable
20744         to be lower case.
20745
20746 2011-01-20  Jim Meyering  <meyering@redhat.com>
20747
20748         maint.mk: make "check" depend on public-submodule-commit by default
20749         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
20750
20751 2011-01-20  Bruno Haible  <bruno@clisp.org>
20752
20753         mbfile, mbiter: Complete change from 2008-12-21.
20754         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
20755         * m4/mbiter.m4 (gl_MBITER): Likewise.
20756
20757 2011-01-20  Jim Meyering  <meyering@redhat.com>
20758
20759         init.sh: insert space between each function name and "()"
20760         * tests/init.sh: Make it a little easier to see that a function's
20761         name is "warn_", and not "warn" when looking at the first part of
20762         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
20763
20764 2011-01-20  Jim Meyering  <meyering@redhat.com>
20765
20766         mountlist: clean up code formatting
20767         * lib/mountlist.c (read_file_system_list): Split a long line,
20768         correct bracing style, use NULL in place of "(struct statfs *)0",
20769         don't parenthesize return value, add spaces around "=" and after
20770         ";-in-for-stmt".
20771
20772 2011-01-14  Markus Duft <mduft@gentoo.org>
20773
20774         mountlist: add support for Interix
20775         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
20776         Apply statvfs to all entries of /dev/fs.
20777         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
20778         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
20779
20780 2011-01-20  Jim Meyering  <meyering@redhat.com>
20781
20782         maint.mk: improve the public-submodule-commit rule
20783         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
20784         to suppress printing of its commands... unless V=1.
20785         Add git submodule's --quiet option to suppress printing of e.g.,
20786         "Entering gnulib" output.
20787         "cd" into $(srcdir) before running git submodule.
20788
20789 2011-01-20  Bruno Haible  <bruno@clisp.org>
20790
20791         include_next: Fix bug introduced on 2011-01-18.
20792         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
20793         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
20794         ac_cv_header_... variable if the second argument is not 'check'.
20795         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
20796         gl_NEXT_HEADERS_INTERNAL.
20797
20798 2011-01-20  Bruno Haible  <bruno@clisp.org>
20799
20800         Allow the user to avoid the GNULIB_TEST_* macros.
20801         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
20802         Suggested by Paul Eggert.
20803
20804 2011-01-14  Jim Meyering  <meyering@redhat.com>
20805
20806         bootstrap: avoid failure when there is no .gitmodules file
20807         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
20808         has been assigned to, even when its value is the empty string.
20809         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
20810         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
20811         Reported by John W. Eaton <jwe@gnu.org>.
20812
20813 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
20814
20815         assume <ctype.h>, ..., <time.h> exist
20816         For years gnulib has been assuming the existence of the headers
20817         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
20818         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
20819         them, since they don't appear to be needed.
20820         * README (Portability guidelines): Document this.
20821         * lib/flock.c: Assume <fcntl.h> exists.
20822         * lib/regex_internal.h: Assume <locale.h> exists.
20823         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
20824         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
20825         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
20826         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
20827         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
20828         * m4/regex.m4 (gl_REGEX): Likewise.
20829         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
20830         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
20831         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
20832         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
20833         * tests/test-argp.c: Likewise.
20834         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
20835
20836         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
20837         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
20838         AA_APPLE_UNIVERSAL_BUILD.  See
20839         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
20840         * NEWS: Document this.
20841
20842 2011-01-19  Eric Blake  <eblake@redhat.com>
20843
20844         c-stack: assume stack overflow if SA_SIGINFO unsupported
20845         * lib/c-stack.c (SIGACTION_WORKS): Rename...
20846         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
20847         sigaction will work.
20848         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
20849         behavior match Linux.
20850         * tests/test-c-stack.c (main): Prefer NULL for pointers.
20851
20852         stdbool-tests: accomodate Haiku
20853         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
20854
20855         binary-io: fix O_TEXT on Haiku
20856         * modules/binary-io (Depends-on): Add fcntl-h.
20857         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
20858         than blindly undefining O_TEXT.
20859         Reported by Scott McCreary.
20860
20861 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
20862
20863         include_next: do not check for standard headers like stddef.h
20864
20865         I found this problem when modifying Emacs to use gnulib.
20866         I noticed that it added HAVE_STDDEF_H to config.h, even though
20867         gnulib always assumes <stddef.h> exists as per README and this
20868         symbol is unnecessary.
20869         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
20870         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
20871         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
20872         faster for headers like stddef.h that are known to exist.
20873         (gl_CHECK_NEXT_HEADERS): Use it.
20874         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
20875         rather than gl_CHECK_NEXT_HEADERS.
20876         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
20877         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
20878
20879 2011-01-18  Eric Blake  <eblake@redhat.com>
20880
20881         ansi-c++-opt: skip C++ dependency style if C++ is unused
20882         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
20883         tests when we know C++ compilation is not desired.
20884         Reported by Scott McCreary.
20885
20886 2011-01-18  Bruno Haible  <bruno@clisp.org>
20887
20888         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
20889         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
20890         (main): Perform test also when getrlimit and setrlimit don't exist or
20891         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
20892         limiting the address space size using setrlimit, compare the address
20893         space size before and after the the test.
20894         * tests/test-dprintf-posix2.c: Likewise.
20895         * tests/test-fprintf-posix3.sh: Update skip messages.
20896         * tests/test-dprintf-posix2.sh: Likewise.
20897         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
20898         * modules/dprintf-posix-tests (Depends-on): Likewise.
20899         Reported by Bruce Korb <bkorb@gnu.org> and
20900         Gary V. Vaughan <gary@gnu.org>.
20901
20902 2011-01-18  Bruno Haible  <bruno@clisp.org>
20903
20904         get-rusage-as: Improvement for Cygwin.
20905         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
20906         areas that are merely reserved.
20907
20908 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
20909
20910         strftime: remove dependencies on multibyte modules
20911
20912         strftime depended on mbrlen, mbsinit, and wchar, but these modules
20913         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
20914         only if __osf__ is defined, and I suspect OSF doesn't need these
20915         other modules.  If my guess is wrong, we'll need to come up with a
20916         variant of strftime that doesn't need the multibyte modules.
20917
20918         I discovered this problem when attempting modify Emacs to use the
20919         strftime module.  With the previous gnulib, this caused Emacs to
20920         need 31 new files, ranging from lib/config.charset to
20921         m4/wint_t.m4.  This was overkill and I expect would be offputting
20922         to the Emacs maintainers.  After this change, only 6 new files are
20923         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
20924         stdbool.m4, and tm_gmtoff.m4.
20925
20926         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
20927         Suggested by Bruno Haible in
20928         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
20929         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
20930         and do not check for wchar.h.
20931         * modules/strftime (Files): Remove m4/mbstate_t.m4.
20932         (Depends-on): Remove mbrlen, mbsinit, wchar.
20933
20934 2011-01-18  Bruno Haible  <bruno@clisp.org>
20935
20936         Tests for module 'get-rusage-as'.
20937         * modules/get-rusage-as-tests: New file.
20938         * tests/test-get-rusage-as.c: New file.
20939
20940         New module 'get-rusage-as'.
20941         * modules/get-rusage-as: New file.
20942         * lib/resource-ext.h: New file.
20943         * lib/get-rusage-as.c: New file.
20944
20945 2011-01-17  Eric Blake  <eblake@redhat.com>
20946
20947         sigaction: relax license from LGPLv3+ to LGPLv2+
20948         * modules/sigaction (License): Relax to LGPLv2+.
20949
20950 2011-01-14  Bruno Haible  <bruno@clisp.org>
20951
20952         filemode: Make function declarations usable in C++ mode.
20953         * lib/filemode.h: Enclose function declarations in extern "C" block.
20954         Reported by John W. Eaton <jwe@gnu.org>.
20955
20956 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
20957
20958         save-cwd: no longer include "xgetcwd.h"
20959         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
20960         This avoids a compilation failure in projects that use save-cwd
20961         without also using the xgetcwd module.
20962
20963 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
20964
20965         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
20966         This is so that a program like Emacs, which needs only dtoastr,
20967         does not have to bother with distributing and compiling ftoastr
20968         and ldtoastr.
20969         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
20970         * modules/dtoastr, modules/ldtoastr: New files.
20971         * modules/ftoastr: Now works just for 'float'.
20972         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
20973         (Makefile.am): Remove ftoastr.h (not needed and no effect),
20974         dtoastr.c, ldtoastr.c.
20975
20976 2011-01-11  Jim Meyering  <meyering@redhat.com>
20977
20978         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
20979         There is no need to work around the lack of the fchdir function,
20980         since gnulib can now provide a replacement when required.
20981         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
20982         * modules/save-cwd (Depends-on): Add fchdir.
20983
20984 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
20985
20986         openat, save-cwd: avoid xmalloc
20987
20988         This removes a direct (but undocumented) dependency of openat on
20989         xalloc, along with an indirect dependency via save-cwd.  It also
20990         removes a dependency of save-cwd on xgetcwd, and thereby
20991         indirectly on xalloc.  This change causes the openat substitute
20992         to fall back on save_cwd when memory is tight, and for save_cwd to
20993         fail instead of dying when memory is tight, but that's good enough.
20994         Problem and initial idea for fix reported by Bastien Roucaries in
20995         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
20996
20997         * lib/openat-proc.c: Include stdlib.h (for malloc), not
20998         xalloc.h (for xmalloc).
20999         (openat_proc_name): Use malloc, not xmalloc.
21000         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
21001         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
21002
21003         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
21004         This avoids heap allocation for file names whose lengths are in
21005         the range 512..1023, with the upper bound increasing to at most
21006         4031 depending on the platform's PATH_MAX.  (We do not want
21007         pathmax.h here as it might supply a non-constant PATH_MAX.)
21008         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
21009         Perhaps they should be moved to malloca.h?
21010         (OPENAT_BUFFER_SIZE): Use them.
21011
21012 2011-01-10  Bruno Haible  <bruno@clisp.org>
21013
21014         doc: Update users.txt.
21015         * users.txt: Add recutils.
21016
21017 2011-01-09  Karl Berry  <karl@gnu.org>
21018
21019         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
21020
21021         * doc/configmake.texi: New file.
21022         * doc/gnulib.texi: Include it.
21023         * modules/configmake: Move documentation from here.
21024
21025 2011-01-09  Bruno Haible  <bruno@clisp.org>
21026
21027         Update to Unicode 6.0.0.
21028         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
21029         (get_lbp): Update for Unicode 6.0.0.
21030         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
21031         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
21032         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
21033         U+11001, U+11038..U+11046. Remove U+06DE.
21034         (uc_width): Fix bounds of planes.
21035         * tests/uniwidth/test-uc_width2.sh: Same updates as in
21036         lib/uniwidth/width.c.
21037         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
21038         trailing whitespace removed.
21039         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
21040         without comments, but with the original copyright notice.
21041         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
21042         * lib/unicase/ignorable.h: Likewise.
21043         * lib/unicase/tocasefold.h: Likewise.
21044         * lib/unicase/tolower.h: Likewise.
21045         * lib/unicase/totitle.h: Likewise.
21046         * lib/unicase/toupper.h: Likewise.
21047         * lib/unictype/bidi_of.h: Likewise.
21048         * lib/unictype/blocks.h: Likewise.
21049         * lib/unictype/categ_C.h: Likewise.
21050         * lib/unictype/categ_Cn.h: Likewise.
21051         * lib/unictype/categ_L.h: Likewise.
21052         * lib/unictype/categ_Ll.h: Likewise.
21053         * lib/unictype/categ_Lm.h: Likewise.
21054         * lib/unictype/categ_Lo.h: Likewise.
21055         * lib/unictype/categ_Lu.h: Likewise.
21056         * lib/unictype/categ_M.h: Likewise.
21057         * lib/unictype/categ_Mc.h: Likewise.
21058         * lib/unictype/categ_Me.h: Likewise.
21059         * lib/unictype/categ_Mn.h: Likewise.
21060         * lib/unictype/categ_N.h: Likewise.
21061         * lib/unictype/categ_Nd.h: Likewise.
21062         * lib/unictype/categ_No.h: Likewise.
21063         * lib/unictype/categ_P.h: Likewise.
21064         * lib/unictype/categ_Po.h: Likewise.
21065         * lib/unictype/categ_S.h: Likewise.
21066         * lib/unictype/categ_Sc.h: Likewise.
21067         * lib/unictype/categ_Sk.h: Likewise.
21068         * lib/unictype/categ_Sm.h: Likewise.
21069         * lib/unictype/categ_So.h: Likewise.
21070         * lib/unictype/categ_of.h: Likewise.
21071         * lib/unictype/combining.h: Likewise.
21072         * lib/unictype/ctype_alnum.h: Likewise.
21073         * lib/unictype/ctype_alpha.h: Likewise.
21074         * lib/unictype/ctype_graph.h: Likewise.
21075         * lib/unictype/ctype_lower.h: Likewise.
21076         * lib/unictype/ctype_print.h: Likewise.
21077         * lib/unictype/ctype_punct.h: Likewise.
21078         * lib/unictype/ctype_upper.h: Likewise.
21079         * lib/unictype/decdigit.h: Likewise.
21080         * lib/unictype/digit.h: Likewise.
21081         * lib/unictype/numeric.h: Likewise.
21082         * lib/unictype/pr_alphabetic.h: Likewise.
21083         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
21084         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
21085         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
21086         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
21087         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
21088         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
21089         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
21090         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
21091         * lib/unictype/pr_case_ignorable.h: Likewise.
21092         * lib/unictype/pr_cased.h: Likewise.
21093         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
21094         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
21095         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
21096         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
21097         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
21098         * lib/unictype/pr_combining.h: Likewise.
21099         * lib/unictype/pr_composite.h: Likewise.
21100         * lib/unictype/pr_currency_symbol.h: Likewise.
21101         * lib/unictype/pr_decimal_digit.h: Likewise.
21102         * lib/unictype/pr_deprecated.h: Likewise.
21103         * lib/unictype/pr_format_control.h: Likewise.
21104         * lib/unictype/pr_grapheme_base.h: Likewise.
21105         * lib/unictype/pr_grapheme_extend.h: Likewise.
21106         * lib/unictype/pr_grapheme_link.h: Likewise.
21107         * lib/unictype/pr_id_continue.h: Likewise.
21108         * lib/unictype/pr_id_start.h: Likewise.
21109         * lib/unictype/pr_ideographic.h: Likewise.
21110         * lib/unictype/pr_lowercase.h: Likewise.
21111         * lib/unictype/pr_math.h: Likewise.
21112         * lib/unictype/pr_numeric.h: Likewise.
21113         * lib/unictype/pr_other_alphabetic.h: Likewise.
21114         * lib/unictype/pr_other_id_continue.h: Likewise.
21115         * lib/unictype/pr_other_math.h: Likewise.
21116         * lib/unictype/pr_punctuation.h: Likewise.
21117         * lib/unictype/pr_sentence_terminal.h: Likewise.
21118         * lib/unictype/pr_terminal_punctuation.h: Likewise.
21119         * lib/unictype/pr_unassigned_code_value.h: Likewise.
21120         * lib/unictype/pr_unified_ideograph.h: Likewise.
21121         * lib/unictype/pr_uppercase.h: Likewise.
21122         * lib/unictype/pr_xid_continue.h: Likewise.
21123         * lib/unictype/pr_xid_start.h: Likewise.
21124         * lib/unictype/scripts.h: Likewise.
21125         * lib/unictype/scripts_byname.gperf: Likewise.
21126         * lib/unictype/sy_java_ident.h: Likewise.
21127         * lib/unigbrk/gbrkprop.h: Likewise.
21128         * lib/unilbrk/lbrkprop1.h: Likewise.
21129         * lib/unilbrk/lbrkprop2.h: Likewise.
21130         * lib/uninorm/decomposition-table2.h: Likewise.
21131         * lib/uniwbrk/wbrkprop.h: Likewise.
21132         * tests/unicase/test-cased.c: Likewise.
21133         * tests/unicase/test-ignorable.c: Likewise.
21134         * tests/unicase/test-uc_tolower.c: Likewise.
21135         * tests/unicase/test-uc_totitle.c: Likewise.
21136         * tests/unicase/test-uc_toupper.c: Likewise.
21137         * tests/unictype/test-categ_C.c: Likewise.
21138         * tests/unictype/test-categ_Cn.c: Likewise.
21139         * tests/unictype/test-categ_L.c: Likewise.
21140         * tests/unictype/test-categ_Ll.c: Likewise.
21141         * tests/unictype/test-categ_Lm.c: Likewise.
21142         * tests/unictype/test-categ_Lo.c: Likewise.
21143         * tests/unictype/test-categ_Lu.c: Likewise.
21144         * tests/unictype/test-categ_M.c: Likewise.
21145         * tests/unictype/test-categ_Mc.c: Likewise.
21146         * tests/unictype/test-categ_Me.c: Likewise.
21147         * tests/unictype/test-categ_Mn.c: Likewise.
21148         * tests/unictype/test-categ_N.c: Likewise.
21149         * tests/unictype/test-categ_Nd.c: Likewise.
21150         * tests/unictype/test-categ_No.c: Likewise.
21151         * tests/unictype/test-categ_P.c: Likewise.
21152         * tests/unictype/test-categ_Po.c: Likewise.
21153         * tests/unictype/test-categ_S.c: Likewise.
21154         * tests/unictype/test-categ_Sc.c: Likewise.
21155         * tests/unictype/test-categ_Sk.c: Likewise.
21156         * tests/unictype/test-categ_Sm.c: Likewise.
21157         * tests/unictype/test-categ_So.c: Likewise.
21158         * tests/unictype/test-ctype_alnum.c: Likewise.
21159         * tests/unictype/test-ctype_alpha.c: Likewise.
21160         * tests/unictype/test-ctype_graph.c: Likewise.
21161         * tests/unictype/test-ctype_lower.c: Likewise.
21162         * tests/unictype/test-ctype_print.c: Likewise.
21163         * tests/unictype/test-ctype_punct.c: Likewise.
21164         * tests/unictype/test-ctype_upper.c: Likewise.
21165         * tests/unictype/test-decdigit.h: Likewise.
21166         * tests/unictype/test-digit.h: Likewise.
21167         * tests/unictype/test-numeric.h: Likewise.
21168         * tests/unictype/test-pr_alphabetic.c: Likewise.
21169         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
21170         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
21171         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
21172         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
21173         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
21174         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
21175         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
21176         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
21177         * tests/unictype/test-pr_case_ignorable.c: Likewise.
21178         * tests/unictype/test-pr_cased.c: Likewise.
21179         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
21180         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
21181         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
21182         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
21183         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
21184         * tests/unictype/test-pr_combining.c: Likewise.
21185         * tests/unictype/test-pr_composite.c: Likewise.
21186         * tests/unictype/test-pr_currency_symbol.c: Likewise.
21187         * tests/unictype/test-pr_decimal_digit.c: Likewise.
21188         * tests/unictype/test-pr_deprecated.c: Likewise.
21189         * tests/unictype/test-pr_format_control.c: Likewise.
21190         * tests/unictype/test-pr_grapheme_base.c: Likewise.
21191         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
21192         * tests/unictype/test-pr_grapheme_link.c: Likewise.
21193         * tests/unictype/test-pr_id_continue.c: Likewise.
21194         * tests/unictype/test-pr_id_start.c: Likewise.
21195         * tests/unictype/test-pr_ideographic.c: Likewise.
21196         * tests/unictype/test-pr_lowercase.c: Likewise.
21197         * tests/unictype/test-pr_math.c: Likewise.
21198         * tests/unictype/test-pr_numeric.c: Likewise.
21199         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
21200         * tests/unictype/test-pr_other_id_continue.c: Likewise.
21201         * tests/unictype/test-pr_other_math.c: Likewise.
21202         * tests/unictype/test-pr_punctuation.c: Likewise.
21203         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
21204         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
21205         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
21206         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
21207         * tests/unictype/test-pr_uppercase.c: Likewise.
21208         * tests/unictype/test-pr_xid_continue.c: Likewise.
21209         * tests/unictype/test-pr_xid_start.c: Likewise.
21210         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
21211         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
21212         changes.
21213         * lib/unictype/categ_Cc.h: Likewise.
21214         * lib/unictype/categ_Cf.h: Likewise.
21215         * lib/unictype/categ_Co.h: Likewise.
21216         * lib/unictype/categ_Cs.h: Likewise.
21217         * lib/unictype/categ_Lt.h: Likewise.
21218         * lib/unictype/categ_Nl.h: Likewise.
21219         * lib/unictype/categ_Pc.h: Likewise.
21220         * lib/unictype/categ_Pd.h: Likewise.
21221         * lib/unictype/categ_Pe.h: Likewise.
21222         * lib/unictype/categ_Pf.h: Likewise.
21223         * lib/unictype/categ_Pi.h: Likewise.
21224         * lib/unictype/categ_Ps.h: Likewise.
21225         * lib/unictype/categ_Z.h: Likewise.
21226         * lib/unictype/categ_Zl.h: Likewise.
21227         * lib/unictype/categ_Zp.h: Likewise.
21228         * lib/unictype/categ_Zs.h: Likewise.
21229         * lib/unictype/ctype_blank.h: Likewise.
21230         * lib/unictype/ctype_cntrl.h: Likewise.
21231         * lib/unictype/ctype_digit.h: Likewise.
21232         * lib/unictype/ctype_space.h: Likewise.
21233         * lib/unictype/ctype_xdigit.h: Likewise.
21234         * lib/unictype/mirror.h: Likewise.
21235         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
21236         * lib/unictype/pr_bidi_block_separator.h: Likewise.
21237         * lib/unictype/pr_bidi_common_separator.h: Likewise.
21238         * lib/unictype/pr_bidi_control.h: Likewise.
21239         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
21240         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
21241         * lib/unictype/pr_bidi_european_digit.h: Likewise.
21242         * lib/unictype/pr_bidi_pdf.h: Likewise.
21243         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
21244         * lib/unictype/pr_bidi_whitespace.h: Likewise.
21245         * lib/unictype/pr_dash.h: Likewise.
21246         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
21247         * lib/unictype/pr_diacritic.h: Likewise.
21248         * lib/unictype/pr_extender.h: Likewise.
21249         * lib/unictype/pr_hex_digit.h: Likewise.
21250         * lib/unictype/pr_hyphen.h: Likewise.
21251         * lib/unictype/pr_ids_binary_operator.h: Likewise.
21252         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
21253         * lib/unictype/pr_ignorable_control.h: Likewise.
21254         * lib/unictype/pr_iso_control.h: Likewise.
21255         * lib/unictype/pr_join_control.h: Likewise.
21256         * lib/unictype/pr_left_of_pair.h: Likewise.
21257         * lib/unictype/pr_line_separator.h: Likewise.
21258         * lib/unictype/pr_logical_order_exception.h: Likewise.
21259         * lib/unictype/pr_non_break.h: Likewise.
21260         * lib/unictype/pr_not_a_character.h: Likewise.
21261         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
21262         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
21263         * lib/unictype/pr_other_id_start.h: Likewise.
21264         * lib/unictype/pr_other_lowercase.h: Likewise.
21265         * lib/unictype/pr_other_uppercase.h: Likewise.
21266         * lib/unictype/pr_paired_punctuation.h: Likewise.
21267         * lib/unictype/pr_paragraph_separator.h: Likewise.
21268         * lib/unictype/pr_pattern_syntax.h: Likewise.
21269         * lib/unictype/pr_pattern_white_space.h: Likewise.
21270         * lib/unictype/pr_private_use.h: Likewise.
21271         * lib/unictype/pr_quotation_mark.h: Likewise.
21272         * lib/unictype/pr_radical.h: Likewise.
21273         * lib/unictype/pr_soft_dotted.h: Likewise.
21274         * lib/unictype/pr_space.h: Likewise.
21275         * lib/unictype/pr_titlecase.h: Likewise.
21276         * lib/unictype/pr_variation_selector.h: Likewise.
21277         * lib/unictype/pr_white_space.h: Likewise.
21278         * lib/unictype/pr_zero_width.h: Likewise.
21279         * lib/unictype/sy_c_ident.h: Likewise.
21280         * lib/unictype/sy_c_whitespace.h: Likewise.
21281         * lib/unictype/sy_java_whitespace.h: Likewise.
21282         * lib/uninorm/composition-table.gperf: Likewise.
21283         * lib/uninorm/decomposition-table1.h: Likewise.
21284         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
21285         LB8.
21286         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
21287         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
21288         * modules/unictype/*: Bump version number of expected libunistring
21289         version.
21290
21291 2011-01-09  Bruno Haible  <bruno@clisp.org>
21292
21293         Update to Unicode 5.2.0.
21294         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
21295         trailing whitespace removed.
21296
21297 2011-01-09  Bruno Haible  <bruno@clisp.org>
21298
21299         New Unicode character properties, from Unicode 5.2.0.
21300         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
21301         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
21302         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
21303         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
21304         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
21305         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
21306         uc_is_property_cased, uc_is_property_case_ignorable,
21307         uc_is_property_changes_when_lowercased,
21308         uc_is_property_changes_when_uppercased,
21309         uc_is_property_changes_when_titlecased,
21310         uc_is_property_changes_when_casefolded,
21311         uc_is_property_changes_when_casemapped): New declarations.
21312         * lib/unictype/pr_byname.gperf: Add the new properties.
21313         * modules/unictype/property-byname (Depends-on): Depend on the new
21314         properties modules.
21315         * modules/unictype/property-all (Depends-on): Likewise.
21316         * MODULES.html.sh (Unicode string functions): Add
21317         unictype/property-case-ignorable, unictype/property-cased,
21318         unictype/property-changes-when-casefolded,
21319         unictype/property-changes-when-casemapped,
21320         unictype/property-changes-when-lowercased,
21321         unictype/property-changes-when-titlecased,
21322         unictype/property-changes-when-uppercased.
21323
21324         New module 'unictype/property-changes-when-casemapped'.
21325         * modules/unictype/property-changes-when-casemapped: New file.
21326         * lib/unictype/pr_changes_when_casemapped.c: New file.
21327         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
21328         generated by gen-uni-tables.
21329         * modules/unictype/property-changes-when-casemapped-tests: New file.
21330         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
21331         automatically generated by gen-uni-tables.
21332
21333         New module 'unictype/property-changes-when-casefolded'.
21334         * modules/unictype/property-changes-when-casefolded: New file.
21335         * lib/unictype/pr_changes_when_casefolded.c: New file.
21336         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
21337         generated by gen-uni-tables.
21338         * modules/unictype/property-changes-when-casefolded-tests: New file.
21339         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
21340         automatically generated by gen-uni-tables.
21341
21342         New module 'unictype/property-changes-when-titlecased'.
21343         * modules/unictype/property-changes-when-titlecased: New file.
21344         * lib/unictype/pr_changes_when_titlecased.c: New file.
21345         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
21346         generated by gen-uni-tables.
21347         * modules/unictype/property-changes-when-titlecased-tests: New file.
21348         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
21349         automatically generated by gen-uni-tables.
21350
21351         New module 'unictype/property-changes-when-uppercased'.
21352         * modules/unictype/property-changes-when-uppercased: New file.
21353         * lib/unictype/pr_changes_when_uppercased.c: New file.
21354         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
21355         generated by gen-uni-tables.
21356         * modules/unictype/property-changes-when-uppercased-tests: New file.
21357         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
21358         automatically generated by gen-uni-tables.
21359
21360         New module 'unictype/property-changes-when-lowercased'.
21361         * modules/unictype/property-changes-when-lowercased: New file.
21362         * lib/unictype/pr_changes_when_lowercased.c: New file.
21363         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
21364         generated by gen-uni-tables.
21365         * modules/unictype/property-changes-when-lowercased-tests: New file.
21366         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
21367         automatically generated by gen-uni-tables.
21368
21369         New module 'unictype/property-case-ignorable'.
21370         * modules/unictype/property-case-ignorable: New file.
21371         * lib/unictype/pr_case_ignorable.c: New file.
21372         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
21373         by gen-uni-tables.
21374         * modules/unictype/property-case-ignorable-tests: New file.
21375         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
21376         generated by gen-uni-tables.
21377
21378         New module 'unictype/property-cased'.
21379         * modules/unictype/property-cased: New file.
21380         * lib/unictype/pr_cased.c: New file.
21381         * lib/unictype/pr_cased.h: New file, automatically generated by
21382         gen-uni-tables.
21383         * modules/unictype/property-cased-tests: New file.
21384         * tests/unictype/test-pr_cased.c: New file, automatically generated by
21385         gen-uni-tables.
21386
21387 2011-01-09  Bruno Haible  <bruno@clisp.org>
21388
21389         Update to Unicode 5.2.0.
21390         * lib/gen-uni-tables.c (output_predicate, output_category,
21391         output_combclass, output_bidi_category, output_decimal_digit_test,
21392         output_decimal_digit, output_digit_test, output_digit,
21393         output_numeric_test, output_numeric, output_mirror, output_scripts,
21394         output_scripts_byname, output_blocks, output_ident_category): Fix
21395         comment header.
21396         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
21397         get_wbp.
21398         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
21399         items.
21400         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
21401         Changes_When_Lowercased, Changes_When_Uppercased,
21402         Changes_When_Titlecased, Changes_When_Casefolded,
21403         Changes_When_Casemapped.
21404         (is_property_alphabetic, is_property_default_ignorable_code_point):
21405         Update for Unicode 5.2.0.
21406         (is_property_cased, is_property_case_ignorable,
21407         is_property_changes_when_lowercased,
21408         is_property_changes_when_uppercased,
21409         is_property_changes_when_titlecased,
21410         is_property_changes_when_casefolded,
21411         is_property_changes_when_casemapped): New functions.
21412         (output_properties): Output also the properties cased, case_ignorable,
21413         changes_when_lowercased, changes_when_uppercased,
21414         changes_when_titlecased, changes_when_casefolded,
21415         changes_when_casemapped.
21416         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
21417         Unicode TR#11 revision 17 -> 19.
21418         (LBP_CP): New enumeration value.
21419         (LBP_*): Adjust values accordingly.
21420         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
21421         TR#14 revision 22 -> 24.
21422         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
21423         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
21424         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
21425         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
21426         is_WBP_MIDLETTER.
21427         (output_composition_tables): Allow for 24 bits instead of 16 bits in
21428         the code1 and code2 of each composition rule.
21429         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
21430         * lib/unicase/ignorable.h: Likewise.
21431         * lib/unicase/tocasefold.h: Likewise.
21432         * lib/unicase/tolower.h: Likewise.
21433         * lib/unicase/totitle.h: Likewise.
21434         * lib/unicase/toupper.h: Likewise.
21435         * lib/unictype/bidi_of.h: Likewise.
21436         * lib/unictype/blocks.h: Likewise.
21437         * lib/unictype/categ_C.h: Likewise.
21438         * lib/unictype/categ_Cf.h: Likewise.
21439         * lib/unictype/categ_Cn.h: Likewise.
21440         * lib/unictype/categ_L.h: Likewise.
21441         * lib/unictype/categ_Ll.h: Likewise.
21442         * lib/unictype/categ_Lm.h: Likewise.
21443         * lib/unictype/categ_Lo.h: Likewise.
21444         * lib/unictype/categ_Lu.h: Likewise.
21445         * lib/unictype/categ_M.h: Likewise.
21446         * lib/unictype/categ_Mc.h: Likewise.
21447         * lib/unictype/categ_Mn.h: Likewise.
21448         * lib/unictype/categ_N.h: Likewise.
21449         * lib/unictype/categ_Nd.h: Likewise.
21450         * lib/unictype/categ_Nl.h: Likewise.
21451         * lib/unictype/categ_No.h: Likewise.
21452         * lib/unictype/categ_P.h: Likewise.
21453         * lib/unictype/categ_Pd.h: Likewise.
21454         * lib/unictype/categ_Po.h: Likewise.
21455         * lib/unictype/categ_S.h: Likewise.
21456         * lib/unictype/categ_Sc.h: Likewise.
21457         * lib/unictype/categ_So.h: Likewise.
21458         * lib/unictype/categ_of.h: Likewise.
21459         * lib/unictype/combining.h: Likewise.
21460         * lib/unictype/ctype_alnum.h: Likewise.
21461         * lib/unictype/ctype_alpha.h: Likewise.
21462         * lib/unictype/ctype_graph.h: Likewise.
21463         * lib/unictype/ctype_lower.h: Likewise.
21464         * lib/unictype/ctype_print.h: Likewise.
21465         * lib/unictype/ctype_punct.h: Likewise.
21466         * lib/unictype/ctype_upper.h: Likewise.
21467         * lib/unictype/decdigit.h: Likewise.
21468         * lib/unictype/digit.h: Likewise.
21469         * lib/unictype/numeric.h: Likewise.
21470         * lib/unictype/pr_alphabetic.h: Likewise.
21471         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
21472         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
21473         * lib/unictype/pr_bidi_european_digit.h: Likewise.
21474         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
21475         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
21476         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
21477         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
21478         * lib/unictype/pr_combining.h: Likewise.
21479         * lib/unictype/pr_composite.h: Likewise.
21480         * lib/unictype/pr_currency_symbol.h: Likewise.
21481         * lib/unictype/pr_dash.h: Likewise.
21482         * lib/unictype/pr_decimal_digit.h: Likewise.
21483         * lib/unictype/pr_deprecated.h: Likewise.
21484         * lib/unictype/pr_diacritic.h: Likewise.
21485         * lib/unictype/pr_extender.h: Likewise.
21486         * lib/unictype/pr_grapheme_base.h: Likewise.
21487         * lib/unictype/pr_grapheme_extend.h: Likewise.
21488         * lib/unictype/pr_grapheme_link.h: Likewise.
21489         * lib/unictype/pr_id_continue.h: Likewise.
21490         * lib/unictype/pr_id_start.h: Likewise.
21491         * lib/unictype/pr_ideographic.h: Likewise.
21492         * lib/unictype/pr_ignorable_control.h: Likewise.
21493         * lib/unictype/pr_logical_order_exception.h: Likewise.
21494         * lib/unictype/pr_lowercase.h: Likewise.
21495         * lib/unictype/pr_numeric.h: Likewise.
21496         * lib/unictype/pr_other_alphabetic.h: Likewise.
21497         * lib/unictype/pr_punctuation.h: Likewise.
21498         * lib/unictype/pr_sentence_terminal.h: Likewise.
21499         * lib/unictype/pr_terminal_punctuation.h: Likewise.
21500         * lib/unictype/pr_unassigned_code_value.h: Likewise.
21501         * lib/unictype/pr_unified_ideograph.h: Likewise.
21502         * lib/unictype/pr_uppercase.h: Likewise.
21503         * lib/unictype/pr_xid_continue.h: Likewise.
21504         * lib/unictype/pr_xid_start.h: Likewise.
21505         * lib/unictype/pr_zero_width.h: Likewise.
21506         * lib/unictype/scripts.h: Likewise.
21507         * lib/unictype/scripts_byname.gperf: Likewise.
21508         * lib/unictype/sy_java_ident.h: Likewise.
21509         * lib/unigbrk/gbrkprop.h: Likewise.
21510         * lib/unilbrk/lbrkprop1.h: Likewise.
21511         * lib/unilbrk/lbrkprop2.h: Likewise.
21512         * lib/unilbrk/lbrktables.h: Likewise.
21513         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
21514         LBP_CP. Implement rule LB30.
21515         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
21516         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
21517         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
21518         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
21519         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
21520         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
21521         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
21522         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
21523         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
21524         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
21525         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
21526         bits instead of 16 bits in the code1 and code2 of each composition
21527         rule.
21528         (uc_composition): Update for Unicode 5.2.0.
21529         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
21530         * lib/uninorm/decomposition-table2.h: Likewise.
21531         * lib/uniwbrk/wbrkprop.h: Likewise.
21532         * tests/unicase/test-cased.c: Likewise.
21533         * tests/unicase/test-ignorable.c: Likewise.
21534         * tests/unicase/test-uc_tolower.c: Likewise.
21535         * tests/unicase/test-uc_totitle.c: Likewise.
21536         * tests/unicase/test-uc_toupper.c: Likewise.
21537         * tests/unictype/test-categ_C.c: Likewise.
21538         * tests/unictype/test-categ_Cf.c: Likewise.
21539         * tests/unictype/test-categ_Cn.c: Likewise.
21540         * tests/unictype/test-categ_L.c: Likewise.
21541         * tests/unictype/test-categ_Ll.c: Likewise.
21542         * tests/unictype/test-categ_Lm.c: Likewise.
21543         * tests/unictype/test-categ_Lo.c: Likewise.
21544         * tests/unictype/test-categ_Lu.c: Likewise.
21545         * tests/unictype/test-categ_M.c: Likewise.
21546         * tests/unictype/test-categ_Mc.c: Likewise.
21547         * tests/unictype/test-categ_Mn.c: Likewise.
21548         * tests/unictype/test-categ_N.c: Likewise.
21549         * tests/unictype/test-categ_Nd.c: Likewise.
21550         * tests/unictype/test-categ_Nl.c: Likewise.
21551         * tests/unictype/test-categ_No.c: Likewise.
21552         * tests/unictype/test-categ_P.c: Likewise.
21553         * tests/unictype/test-categ_Pd.c: Likewise.
21554         * tests/unictype/test-categ_Po.c: Likewise.
21555         * tests/unictype/test-categ_S.c: Likewise.
21556         * tests/unictype/test-categ_Sc.c: Likewise.
21557         * tests/unictype/test-categ_So.c: Likewise.
21558         * tests/unictype/test-ctype_alnum.c: Likewise.
21559         * tests/unictype/test-ctype_alpha.c: Likewise.
21560         * tests/unictype/test-ctype_graph.c: Likewise.
21561         * tests/unictype/test-ctype_lower.c: Likewise.
21562         * tests/unictype/test-ctype_print.c: Likewise.
21563         * tests/unictype/test-ctype_punct.c: Likewise.
21564         * tests/unictype/test-ctype_upper.c: Likewise.
21565         * tests/unictype/test-decdigit.h: Likewise.
21566         * tests/unictype/test-digit.h: Likewise.
21567         * tests/unictype/test-numeric.h: Likewise.
21568         * tests/unictype/test-pr_alphabetic.c: Likewise.
21569         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
21570         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
21571         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
21572         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
21573         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
21574         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
21575         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
21576         * tests/unictype/test-pr_combining.c: Likewise.
21577         * tests/unictype/test-pr_composite.c: Likewise.
21578         * tests/unictype/test-pr_currency_symbol.c: Likewise.
21579         * tests/unictype/test-pr_dash.c: Likewise.
21580         * tests/unictype/test-pr_decimal_digit.c: Likewise.
21581         * tests/unictype/test-pr_deprecated.c: Likewise.
21582         * tests/unictype/test-pr_diacritic.c: Likewise.
21583         * tests/unictype/test-pr_extender.c: Likewise.
21584         * tests/unictype/test-pr_grapheme_base.c: Likewise.
21585         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
21586         * tests/unictype/test-pr_grapheme_link.c: Likewise.
21587         * tests/unictype/test-pr_id_continue.c: Likewise.
21588         * tests/unictype/test-pr_id_start.c: Likewise.
21589         * tests/unictype/test-pr_ideographic.c: Likewise.
21590         * tests/unictype/test-pr_ignorable_control.c: Likewise.
21591         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
21592         * tests/unictype/test-pr_lowercase.c: Likewise.
21593         * tests/unictype/test-pr_numeric.c: Likewise.
21594         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
21595         * tests/unictype/test-pr_punctuation.c: Likewise.
21596         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
21597         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
21598         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
21599         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
21600         * tests/unictype/test-pr_uppercase.c: Likewise.
21601         * tests/unictype/test-pr_xid_continue.c: Likewise.
21602         * tests/unictype/test-pr_xid_start.c: Likewise.
21603         * tests/unictype/test-pr_zero_width.c: Likewise.
21604         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
21605         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
21606         changed behaviour: line breaking is now disallowed between a letter
21607         or '=' and '('.
21608         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
21609         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
21610         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
21611         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
21612         * tests/uniwidth/test-uc_width2.sh: Same updates as in
21613         lib/uniwidth/width.c.
21614         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
21615         without comments, but with the original copyright notice.
21616         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
21617         changes.
21618         * lib/unictype/categ_Cc.h: Likewise.
21619         * lib/unictype/categ_Co.h: Likewise.
21620         * lib/unictype/categ_Cs.h: Likewise.
21621         * lib/unictype/categ_Lt.h: Likewise.
21622         * lib/unictype/categ_Me.h: Likewise.
21623         * lib/unictype/categ_Pc.h: Likewise.
21624         * lib/unictype/categ_Pe.h: Likewise.
21625         * lib/unictype/categ_Pf.h: Likewise.
21626         * lib/unictype/categ_Pi.h: Likewise.
21627         * lib/unictype/categ_Ps.h: Likewise.
21628         * lib/unictype/categ_Sk.h: Likewise.
21629         * lib/unictype/categ_Sm.h: Likewise.
21630         * lib/unictype/categ_Z.h: Likewise.
21631         * lib/unictype/categ_Zl.h: Likewise.
21632         * lib/unictype/categ_Zp.h: Likewise.
21633         * lib/unictype/categ_Zs.h: Likewise.
21634         * lib/unictype/ctype_blank.h: Likewise.
21635         * lib/unictype/ctype_cntrl.h: Likewise.
21636         * lib/unictype/ctype_digit.h: Likewise.
21637         * lib/unictype/ctype_space.h: Likewise.
21638         * lib/unictype/ctype_xdigit.h: Likewise.
21639         * lib/unictype/mirror.h: Likewise.
21640         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
21641         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
21642         * lib/unictype/pr_bidi_block_separator.h: Likewise.
21643         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
21644         * lib/unictype/pr_bidi_common_separator.h: Likewise.
21645         * lib/unictype/pr_bidi_control.h: Likewise.
21646         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
21647         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
21648         * lib/unictype/pr_bidi_pdf.h: Likewise.
21649         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
21650         * lib/unictype/pr_bidi_whitespace.h: Likewise.
21651         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
21652         * lib/unictype/pr_format_control.h: Likewise.
21653         * lib/unictype/pr_hex_digit.h: Likewise.
21654         * lib/unictype/pr_hyphen.h: Likewise.
21655         * lib/unictype/pr_ids_binary_operator.h: Likewise.
21656         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
21657         * lib/unictype/pr_iso_control.h: Likewise.
21658         * lib/unictype/pr_join_control.h: Likewise.
21659         * lib/unictype/pr_left_of_pair.h: Likewise.
21660         * lib/unictype/pr_line_separator.h: Likewise.
21661         * lib/unictype/pr_math.h: Likewise.
21662         * lib/unictype/pr_non_break.h: Likewise.
21663         * lib/unictype/pr_not_a_character.h: Likewise.
21664         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
21665         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
21666         * lib/unictype/pr_other_id_continue.h: Likewise.
21667         * lib/unictype/pr_other_id_start.h: Likewise.
21668         * lib/unictype/pr_other_lowercase.h: Likewise.
21669         * lib/unictype/pr_other_math.h: Likewise.
21670         * lib/unictype/pr_other_uppercase.h: Likewise.
21671         * lib/unictype/pr_paired_punctuation.h: Likewise.
21672         * lib/unictype/pr_paragraph_separator.h: Likewise.
21673         * lib/unictype/pr_pattern_syntax.h: Likewise.
21674         * lib/unictype/pr_pattern_white_space.h: Likewise.
21675         * lib/unictype/pr_private_use.h: Likewise.
21676         * lib/unictype/pr_quotation_mark.h: Likewise.
21677         * lib/unictype/pr_radical.h: Likewise.
21678         * lib/unictype/pr_soft_dotted.h: Likewise.
21679         * lib/unictype/pr_space.h: Likewise.
21680         * lib/unictype/pr_titlecase.h: Likewise.
21681         * lib/unictype/pr_variation_selector.h: Likewise.
21682         * lib/unictype/pr_white_space.h: Likewise.
21683         * lib/unictype/sy_c_ident.h: Likewise.
21684         * lib/unictype/sy_c_whitespace.h: Likewise.
21685         * lib/unictype/sy_java_whitespace.h: Likewise.
21686         * modules/uni*/*: Bump version number of expected libunistring version.
21687         Reported by Simon Josefsson.
21688
21689 2011-01-09  Karl Heuer  <kwzh@gnu.org>
21690
21691         useless-if-before-free: fix typo in --help and make the internal,
21692         automatic version date update process work once again.
21693         --help output contained a NUL character instead of the
21694         backslash-zero that was intended.  Also, the "must lie within
21695         the first 8 lines" line is on line 9, and hence not getting
21696         automatically updated.
21697         * build-aux/useless-if-before-free: Fix the former by adding a
21698         backslash, and the latter by condensing the three lines of what-it-does
21699         to a single line, leaving one line of slack for the future.
21700
21701 2011-01-09  Bruno Haible  <bruno@clisp.org>
21702
21703         uniwidth/width: Fix width of U+1D173..U+1D17A.
21704         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
21705         symbolic_width, output_width_property_test): New functions.
21706         (main): Invoke output_nonspacing_property, output_width_property_test.
21707         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
21708         U+1D173..U+1D17A.
21709         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
21710         1.
21711         * modules/uniwidth/*: Bump version number of expected libunistring
21712         version.
21713         * modules/unilbrk/*: Likewise.
21714
21715 2011-01-08  Bruno Haible  <bruno@clisp.org>
21716
21717         uninorm tests: Preserve copyright of Unicode data file.
21718         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
21719         Mention modifications.
21720
21721 2011-01-08  Bruno Haible  <bruno@clisp.org>
21722
21723         gen-uni-tables: Prepare for Unicode 5.2.0.
21724         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
21725         (debug_output_lbp, output_lbp): Update.
21726
21727 2011-01-08  Bruno Haible  <bruno@clisp.org>
21728
21729         unilbrk: Clarify gen-uni-tables.c code.
21730         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
21731         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
21732         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
21733
21734 2011-01-07  Bruno Haible  <bruno@clisp.org>
21735
21736         strtod: Restore errno when successfully parsing Infinity or NaN.
21737         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
21738         restore the original errno.
21739
21740 2011-01-07  Bruno Haible  <bruno@clisp.org>
21741
21742         remove test: Avoid failure on HP-UX 11.
21743         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
21744
21745 2011-01-07  Bruno Haible  <bruno@clisp.org>
21746
21747         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
21748         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
21749         error code.
21750
21751 2011-01-07  Pádraig Brady <P@draigBrady.com>
21752
21753         ignore-value: fixup comments, and add Eric Blake
21754         as an author since he rewrote the macros.
21755         * lib/ignore-value.h (ignore_value):  State that
21756         we now support aggregates.  Also specify exactly
21757         when the GCC warn_unused_result feature was added.
21758
21759 2011-01-06  Eric Blake  <eblake@redhat.com>
21760
21761         ignore-value: support aggregate types
21762         * lib/ignore-value.h (ignore_value): Provide separate gcc
21763         definition.
21764         * modules/ignore-value-tests: New test module.
21765         * tests/test-ignore-value.c: New test.
21766
21767         maint.mk: improve sc_prohibit_strcmp regex
21768         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
21769         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
21770         definition of STRNEQ.
21771
21772         signal: work around Haiku issue with SIGBUS
21773         * lib/siglist.h: Add comment.
21774         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
21775         strsignal's favoring of SIGSEGV.
21776         * tests/test-signal.c (main): Avoid test failure.
21777         * doc/posix-headers/signal.texi (signal.h): Document the issue.
21778         Reported by Scott McCreary.
21779
21780         maint.mk: add pre-release check to ensure submodule commits are public
21781         * top/maint.mk (public-submodule-commit): New rule.
21782         (submodule-checks): New variable.
21783         (alpha beta stable): Depend on the variable.
21784
21785 2011-01-05  Pádraig Brady <P@draigBrady.com>
21786         and Jim Meyering  <meyering@redhat.com>
21787
21788         ignore-value: make ignore_value more generic; deprecate ignore_ptr
21789         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
21790         (ATTRIBUTE_DEPRECATED): Define.
21791         (_ignore_case): New function.
21792         (ignore_value): New macro, to replace the old function.
21793         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
21794         * modules/ignore-value (Depends-on): Add stdint.
21795
21796 2011-01-04  Eric Blake  <eblake@redhat.com>
21797
21798         doc: regenerate INSTALL
21799         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
21800         @firstparagraphindent support, now that autoconf dropped it.
21801         (INSTALL_PRELUDE): Reinstate old macro.
21802         * doc/install.texi: Resync from autoconf.
21803         * doc/INSTALL: Reflect recent autoconf update.
21804         * doc/INSTALL.ISO: Likewise.
21805         * doc/INSTALL.UTF-8: Likewise.
21806         Reported by Karl Berry.
21807
21808 2011-01-04  Bruce Korb  <address@hidden>
21809
21810         git-version-gen: avoid a sub-shell
21811         * build-aux/git-version-gen: Redirect stderr in `...` via
21812         "exec 2>...", rather than via an added sub-shell.
21813
21814 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
21815
21816         git-version-gen: use (...) rather than sh -c '...'
21817         * build-aux/git-version-gen: Rather than hard-coding a shell's name
21818         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
21819
21820 2011-01-03  Jim Meyering  <meyering@redhat.com>
21821
21822         git-version-gen: convert leading TABs to spaces
21823         * build-aux/git-version-gen: Expand leading TABs.
21824
21825         git-version-gen: handle failed "git rev-list"
21826         * build-aux/git-version-gen: Rather than leaking a "fatal" error
21827         from git and proceeding as if it had succeeded but printed no SHA1
21828         checksums, suppress the diagnostic and handle the failure.
21829         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
21830
21831         git-version-gen: include command name in one more diagnostic
21832         * build-aux/git-version-gen: When the required .tarball-version file
21833         was missing or unreadable, you might see the diagnostic from "cat",
21834         but no trace of the name of the invoking script.  Now, you still see
21835         the diagnostic from cat, but also get one from "git-version-gen: ".
21836         Inspired by a patch from Bruce Korb.
21837
21838         update-copyright: adjust test to match changed code
21839         * tests/test-update-copyright.sh: Change test's expected output
21840         to match new actual output.
21841
21842 2011-01-02  Bruno Haible  <bruno@clisp.org>
21843
21844         getlogin_r: Avoid test failure on HP-UX 11.
21845         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
21846         ERANGE when the second argument is zero.
21847         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
21848         portability problem.
21849
21850 2011-01-02  Bruce Korb  <bkorb@gnu.org>
21851
21852         * build-aux/update-copyright: doc Simon's changes
21853
21854 2011-01-02  Simon Josefsson  <simon@josefsson.org>
21855
21856         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
21857         environment variable.
21858
21859 2011-01-02  Bruno Haible  <bruno@clisp.org>
21860
21861         unigbrk: Avoid gcc warnings.
21862         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
21863         unused variable.
21864         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
21865         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
21866         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
21867         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
21868         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
21869         Change type of first argument to 'const char *'.
21870         (main): Remove unused variable.
21871         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
21872         type of first argument to 'const char *'.
21873         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
21874         Likewise.
21875         (main): Change type of variable 's'.
21876         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
21877         to 'int'.
21878
21879 2011-01-02  Bruno Haible  <bruno@clisp.org>
21880
21881         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
21882         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
21883         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
21884         bug.
21885         * lib/pwrite.c: Undo 2010-12-31 patch.
21886         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
21887
21888 2011-01-02  Bruno Haible  <bruno@clisp.org>
21889
21890         pread: Fix test whether it works.
21891         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
21892
21893 2011-01-02  Bruno Haible  <bruno@clisp.org>
21894
21895         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
21896         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
21897         ends in "6". Don't require a specific month name. Try also the locale
21898         names found on HP-UX 11 and Solaris 7.
21899
21900 2011-01-02  Bruno Haible  <bruno@clisp.org>
21901
21902         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
21903         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
21904         C linkage.
21905         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
21906
21907 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
21908
21909         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
21910         for consistency, since the "cluster" term is not used elsewhere.
21911         * lib/unigbrk.in.h: Update name.
21912         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
21913         * lib/unigbrk/u16-grapheme-next.c: Update name.
21914         * lib/unigbrk/u16-grapheme-prev.c: Update name.
21915         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
21916         * lib/unigbrk/u32-grapheme-next.c: Update name.
21917         * lib/unigbrk/u32-grapheme-prev.c: Update name.
21918         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
21919         * lib/unigbrk/u8-grapheme-next.c: Update name.
21920         * lib/unigbrk/u8-grapheme-prev.c: Update name.
21921         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
21922         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
21923         Suggested by Bruno Haible.
21924
21925 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
21926
21927         Remove module 'u8-grapheme-len' as too redundant with
21928         'u8-grapheme-next'.
21929         * modules/unigbrk/u8-grapheme-len: Delete file.
21930         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
21931         * lib/unigbrk.in.h: Remove prototype for deleted function.
21932         * lib/unigbrk/u8-grapheme-len.c: Delete file.
21933         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
21934
21935         Remove module 'u16-grapheme-len' as too redundant with
21936         'u16-grapheme-next'.
21937         * modules/unigbrk/u16-grapheme-len: Delete file.
21938         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
21939         * lib/unigbrk.in.h: Remove prototype for deleted function.
21940         * lib/unigbrk/u16-grapheme-len.c: Delete file.
21941         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
21942
21943         Remove module 'u32-grapheme-len' as too redundant with
21944         'u32-grapheme-next'.
21945         * modules/unigbrk/u32-grapheme-len: Delete file.
21946         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
21947         * lib/unigbrk.in.h: Remove prototype for deleted function.
21948         * lib/unigbrk/u32-grapheme-len.c: Delete file.
21949         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
21950
21951         Suggested by Bruno Haible.
21952
21953 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
21954
21955         * unigbrk.in.h: Fix typo: "ben" => "been".
21956         Reported by Bruno Haible.
21957
21958 2011-01-01  Jim Meyering  <meyering@redhat.com>
21959
21960         maint: update almost all copyright ranges to include 2011
21961         Run the new "make update-copyright" rule.
21962
21963 2011-01-01  Jim Meyering  <meyering@redhat.com>
21964
21965         maint: update-copyright: exempt doc/INSTALL*
21966         * Makefile (update-copyright): Also exclude doc/INSTALL*,
21967         since they are generated.  Suggested by Bruno Haible.
21968
21969 2011-01-01  Jim Meyering  <meyering@redhat.com>
21970
21971         maint: refine the update-copyright rule
21972         * Makefile (update-copyright): Also exclude any file that includes
21973         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
21974         code that merely generates the comment.
21975
21976 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
21977
21978         New module 'u8-grapheme-len'.
21979         * modules/unigbrk/u8-grapheme-len: New file.
21980         * modules/unigbrk/u8-grapheme-len-tests: New file.
21981         * lib/unigbrk.in.h: Add prototype for new function.
21982         * lib/unigbrk/u8-grapheme-len.c: New file.
21983         * tests/unigbrk/test-u8-grapheme-len.c: New file.
21984
21985         New module 'u16-grapheme-len'.
21986         * modules/unigbrk/u16-grapheme-len: New file.
21987         * modules/unigbrk/u16-grapheme-len-tests: New file.
21988         * lib/unigbrk.in.h: Add prototype for new function.
21989         * lib/unigbrk/u16-grapheme-len.c: New file.
21990         * tests/unigbrk/test-u16-grapheme-len.c: New file.
21991
21992         New module 'u32-grapheme-len'.
21993         * modules/unigbrk/u32-grapheme-len: New file.
21994         * modules/unigbrk/u32-grapheme-len-tests: New file.
21995         * lib/unigbrk.in.h: Add prototype for new function.
21996         * lib/unigbrk/u32-grapheme-len.c: New file.
21997         * tests/unigbrk/test-u32-grapheme-len.c: New file.
21998
21999         New module 'u8-grapheme-next'.
22000         * modules/unigbrk/u8-grapheme-next: New file.
22001         * modules/unigbrk/u8-grapheme-next-tests: New file.
22002         * lib/unigbrk.in.h: Add prototype for new function.
22003         * lib/unigbrk/u8-grapheme-next.c: New file.
22004         * tests/unigbrk/test-u8-grapheme-next.c: New file.
22005
22006         New module 'u16-grapheme-next'.
22007         * modules/unigbrk/u16-grapheme-next: New file.
22008         * modules/unigbrk/u16-grapheme-next-tests: New file.
22009         * lib/unigbrk.in.h: Add prototype for new function.
22010         * lib/unigbrk/u16-grapheme-next.c: New file.
22011         * tests/unigbrk/test-u16-grapheme-next.c: New file.
22012
22013         New module 'u32-grapheme-next'.
22014         * modules/unigbrk/u32-grapheme-next: New file.
22015         * modules/unigbrk/u32-grapheme-next-tests: New file.
22016         * lib/unigbrk.in.h: Add prototype for new function.
22017         * lib/unigbrk/u32-grapheme-next.c: New file.
22018         * tests/unigbrk/test-u32-grapheme-next.c: New file.
22019
22020         New module 'u8-grapheme-prev'.
22021         * modules/unigbrk/u8-grapheme-prev: New file.
22022         * modules/unigbrk/u8-grapheme-prev-tests: New file.
22023         * lib/unigbrk.in.h: Add prototype for new function.
22024         * lib/unigbrk/u8-grapheme-prev.c: New file.
22025         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
22026
22027         New module 'u16-grapheme-prev'.
22028         * modules/unigbrk/u16-grapheme-prev: New file.
22029         * modules/unigbrk/u16-grapheme-prev-tests: New file.
22030         * lib/unigbrk.in.h: Add prototype for new function.
22031         * lib/unigbrk/u16-grapheme-prev.c: New file.
22032         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
22033
22034         New module 'u32-grapheme-prev'.
22035         * modules/unigbrk/u32-grapheme-prev: New file.
22036         * modules/unigbrk/u32-grapheme-prev-tests: New file.
22037         * lib/unigbrk.in.h: Add prototype for new function.
22038         * lib/unigbrk/u32-grapheme-prev.c: New file.
22039         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
22040
22041         New module 'u8-grapheme-breaks'.
22042         * modules/unigbrk/u8-grapheme-breaks: New file.
22043         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
22044         * lib/unigbrk.in.h: Add prototype for new function.
22045         * lib/unigbrk/u8-grapheme-breaks.c: New file.
22046         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
22047
22048         New module 'u16-grapheme-breaks'.
22049         * modules/unigbrk/u16-grapheme-breaks: New file.
22050         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
22051         * lib/unigbrk.in.h: Add prototype for new function.
22052         * lib/unigbrk/u16-grapheme-breaks.c: New file.
22053         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
22054
22055         New module 'u32-grapheme-breaks'.
22056         * modules/unigbrk/u32-grapheme-breaks: New file.
22057         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
22058         * lib/unigbrk.in.h: Add prototype for new function.
22059         * lib/unigbrk/u32-grapheme-breaks.c: New file.
22060         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
22061
22062         New module 'ulc-grapheme-breaks'.
22063         * modules/unigbrk/ulc-grapheme-breaks: New file.
22064         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
22065         * m4/locale-ar.m4: New file.
22066         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
22067         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
22068         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
22069
22070 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
22071
22072         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
22073         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
22074         modified how this file was generated before I initially submitted
22075         the module, but failed to regenerate it.  This meant that several
22076         of the level2 entries were wrong.
22077         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
22078         Remove the division-by-2 that is folded into the table now that
22079         gbrkprop.h has been regenerated properly.  Now -1 entries are
22080         handled correctly.
22081
22082         New module 'unigbrk/uc-gbrk-prop-tests'.
22083         * modules/unigbrk/uc-gbrk-prop-tests: New file.
22084         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
22085         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
22086         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
22087
22088 2011-01-01  Bruno Haible  <bruno@clisp.org>
22089
22090         Avoid use of hexadecimal escapes.
22091         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
22092         instead of hexadecimal escapes.
22093
22094 2011-01-01  Jim Meyering  <meyering@redhat.com>
22095
22096         maint: new rule to update copyright year ranges
22097         * Makefile (update-copyright): New rule.
22098
22099         maint: indent with TABs in Makefile
22100         * Makefile: Expand leading sequences of spaces to TABs
22101
22102         version-etc: update the copyright year it reports
22103         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
22104
22105 2010-12-31  Bruno Haible  <bruno@clisp.org>
22106
22107         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
22108         * lib/isfinite.c (zerof, zerod, zerol): New variables.
22109         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
22110         zero.
22111
22112 2010-12-31  Bruno Haible  <bruno@clisp.org>
22113
22114         pwrite: Work around HP-UX 11.11 bug.
22115         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
22116         works and set REPLACE_PWRITE if not.
22117         * lib/pwrite.c (pwrite): Add an implementation that uses the system
22118         function.
22119         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
22120
22121 2010-12-31  Bruno Haible  <bruno@clisp.org>
22122
22123         pread: Work around HP-UX 11 bugs.
22124         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
22125         and set REPLACE_PREAD if not.
22126         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
22127
22128 2010-12-31  Eric Blake  <eblake@redhat.com>
22129
22130         nl_langinfo: fix YESEXPR on Irix 6.5
22131         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
22132         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
22133         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
22134         it.
22135
22136 2010-12-31  Bruno Haible  <bruno@clisp.org>
22137
22138         iconv: Document HP-UX 11 bug.
22139         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
22140
22141 2010-12-31  Bruno Haible  <bruno@clisp.org>
22142
22143         ldexpl: Fix link error on HP-UX 11.
22144         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
22145         LDEXPL_LIBM, using $ISNANL_LIBM.
22146
22147 2010-12-31  Eric Blake  <eblake@redhat.com>
22148
22149         ftello: avoid compilation failure with SunStudio c89
22150         * lib/ftello.c (ftello): Use lseek, not llseek.
22151
22152         tests: avoid failing coreutils tests on cygwin
22153         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
22154         (create_exe_shims_): Return 0 when skipping.
22155
22156 2010-12-31  Bruno Haible  <bruno@clisp.org>
22157
22158         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
22159         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
22160
22161 2010-12-31  Bruno Haible  <bruno@clisp.org>
22162
22163         waitpid: Fix link error in C++ mode.
22164         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
22165
22166 2010-12-31  Bruno Haible  <bruno@clisp.org>
22167
22168         isnan: Use GCC built-ins when possible.
22169         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
22170         __builtin_isnan.
22171         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
22172         (isnan): Define using GCC built-ins for GCC >= 4.0.
22173
22174 2010-12-31  Bruno Haible  <bruno@clisp.org>
22175
22176         isnand: Fix mistake.
22177         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
22178         __builtin_isnand.
22179
22180 2010-12-31  Bruno Haible  <bruno@clisp.org>
22181
22182         open: Avoid C++ error on HP-UX 11.
22183         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
22184
22185 2010-12-31  Bruno Haible  <bruno@clisp.org>
22186
22187         time_r: Add missing declarations on HP-UX 11.
22188         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
22189         instead of HAVE_LOCALTIME_R.
22190         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
22191         HAVE_LOCALTIME_R always.
22192         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
22193         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
22194         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
22195         HAVE_LOCALTIME_R.
22196         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
22197         * doc/posix-functions/localtime_r.texi: Likewise.
22198
22199 2010-12-29  Eric Blake  <eblake@redhat.com>
22200
22201         mountlist: tweak previous commit
22202         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
22203         Reported by Paul Eggert.
22204
22205         mountlist: fix local drive detection on cygwin
22206         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
22207         that works for cygwin.
22208
22209 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
22210
22211         ftoastr, snprintf: ftoastr + snprintf module
22212         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
22213         since the snprintf module now should be good enough here.
22214         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
22215         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
22216         and gl_MODULE_INDICATOR([snprintf]), but the former enables
22217         GNULIB_SNPRINTF only for the test directory, and the latter
22218         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
22219         seems to suffice by itself.
22220
22221 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
22222
22223         alloca: one step towards thread-safety
22224         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
22225         need for a static variable.  All callers changed.  This does not
22226         make the alloca replacement thread-safe, but it's one step.
22227
22228         tests: minor indenting change
22229         * tests/init.sh: Sync from coreutils housekeeping patch
22230         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
22231         to keep lines within 80 columns.
22232
22233 2010-12-28  Jim Meyering  <meyering@redhat.com>
22234
22235         regex: don't infloop on persistent failing calloc
22236         * lib/regexec.c (build_trtable): Return failure indication upon
22237         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
22238         In glibc, this was fixed for version 2.13:
22239         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
22240
22241 2010-12-28  Bruno Haible  <bruno@clisp.org>
22242             Paul Eggert <eggert@cs.ucla.edu>
22243
22244         linkat: Make implementation robust against system behaviour variations.
22245         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
22246         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
22247         way, and to -2 if it needs a generic runtime test.
22248         * lib/linkat.c (solaris_optimized_link_immediate,
22249         solaris_optimized_link_follow): New functions.
22250         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
22251         (check_same_link): Use it.
22252
22253 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
22254
22255         New module 'unigbrk/base'.
22256         * modules/unigbrk/base: New file.
22257         * lib/unigbrk.in.h: New file.
22258
22259         New module 'unigbrk/uc-gbrk-prop'.
22260         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
22261         * modules/unigbrk/uc-gbrk-prop: New file.
22262         * lib/unigbrk/gbrkprop.h: New file.
22263         * lib/unigbrk/uc-gbrk-prop.c: New file.
22264
22265         New module 'unigbrk/uc-is-grapheme-break'.
22266         * modules/unigbrk/uc-is-grapheme-break: New file.
22267         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
22268         * lib/unigbrk/uc-is-grapheme-break.c: New file.
22269         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
22270         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
22271         * tests/unigbrk/GraphemeBreakTest.txt: New file.
22272
22273         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
22274
22275 2010-12-27  Bruno Haible  <bruno@clisp.org>
22276
22277         linkat test: Avoid failure on Solaris 11 2010-11.
22278         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
22279
22280 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
22281
22282         utimens: work around glibc rounding bug on more platforms
22283         * lib/utimens.c (fdutimens): Work around rounding bug even if
22284         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
22285         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
22286
22287 2010-12-27  Bruno Haible  <bruno@clisp.org>
22288
22289         select tests: Improve comments.
22290         * tests/test-select.c (do_select): Add comments.
22291
22292 2010-12-27  Bruno Haible  <bruno@clisp.org>
22293
22294         select tests: Safer way of handling timeout.
22295         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
22296         at every invocation.
22297
22298 2010-12-27  Bruno Haible  <bruno@clisp.org>
22299
22300         select tests: Use 'bool' where appropriate.
22301         * tests/test-select.c (connect_to_socket): Change argument type to
22302         'bool'.
22303
22304 2010-12-27  Bruno Haible  <bruno@clisp.org>
22305
22306         select tests: Use existing modules.
22307         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
22308         (configure.ac): Don't test for unistd.h.
22309         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
22310         declared in <unistd.h>.
22311
22312 2010-12-27  Bruno Haible  <bruno@clisp.org>
22313
22314         mbrtowc: Work around a Solaris 7 bug.
22315         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
22316         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
22317         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
22318         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
22319         MBRTOWC_NULL_ARG1_BUG.
22320         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
22321         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
22322         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
22323         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
22324
22325 2010-12-27  Jim Meyering  <meyering@redhat.com>
22326
22327         read-file.c: tweak syntax
22328         * lib/read-file.c (fread_file): Remove space after "*" in function
22329         definitions.
22330
22331 2010-12-27  Bruno Haible  <bruno@clisp.org>
22332
22333         times test: Avoid gcc warnings on OSF/1.
22334         * tests/test-times.c (main): Cast printf arguments from clock_t to
22335         'long int'.
22336
22337 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
22338
22339         utimens: work around glibc rounding bug on older Linux kernels
22340         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
22341         on Linux with a glibc whose utimes might not work, then work
22342         around a longstanding glibc bug involving rounding rather than
22343         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
22344         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
22345
22346 2010-12-26  Bruno Haible  <bruno@clisp.org>
22347
22348         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
22349         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
22350         _GL_CXXALIAS_SYS.
22351         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22352
22353 2010-12-26  Bruno Haible  <bruno@clisp.org>
22354
22355         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
22356         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
22357         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
22358         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
22359         looking for the declaration.
22360         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
22361         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
22362         problem.
22363         * doc/posix-functions/inet_pton.texi: Likewise.
22364
22365 2010-12-26  Bruno Haible  <bruno@clisp.org>
22366
22367         arpa_inet: Use the common idioms with C++ support.
22368         * lib/arpa_inet.in.h: Include c++defs.h.
22369         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
22370         support.
22371         * modules/arpa_inet (Depends-on): Add c++defs.
22372         (Makefile.am): Substitute the contents of c++defs.h.
22373         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
22374         * modules/arpa_inet-c++-tests: New file.
22375         * tests/test-arpa_inet-c++.cc: New file.
22376
22377 2010-12-25  Bruno Haible  <bruno@clisp.org>
22378
22379         Fix more C++ link errors on Solaris 8.
22380         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
22381         $(LIB_EACCESS).
22382         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
22383         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
22384         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
22385         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
22386         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
22387
22388 2010-12-25  Bruno Haible  <bruno@clisp.org>
22389
22390         printf-posix: Fix link error when a non-GCC compiler is used.
22391         * lib/stdio.in.h (printf): When not using GCC, override printf
22392         correctly.
22393         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22394
22395 2010-12-25  Bruno Haible  <bruno@clisp.org>
22396
22397         strerror_r-posix: Update doc.
22398         * doc/posix-functions/strerror_r.texi: Update doc about the return
22399         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
22400
22401 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
22402
22403         utimens: simplify the logic of the previous change
22404         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
22405         This should not affect whether the test succeeds or fails.
22406
22407         utimens: configure better on hosts with NFS clock skew
22408         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
22409         uses the clock of the local host.  It might use the clock of the
22410         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
22411         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
22412
22413 2010-12-25  Bruno Haible  <bruno@clisp.org>
22414
22415         ptsname test: Avoid failure on Solaris.
22416         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
22417         open a pseudo-terminal; don't use BSD-style ptys.
22418         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
22419
22420 2010-12-25  Bruno Haible  <bruno@clisp.org>
22421
22422         ptsname: Avoid ERANGE failure on some systems.
22423         * lib/ptsname.c (buffer): Increase size.
22424
22425 2010-12-25  Bruno Haible  <bruno@clisp.org>
22426
22427         rename, renameat: Avoid test failures at NFS mounted locations.
22428         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
22429         so that subsequent mkdir calls succeed.
22430
22431 2010-12-25  Bruno Haible  <bruno@clisp.org>
22432
22433         iswblank: Fix C++ link error on Solaris 8.
22434         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
22435         _GL_FUNCDECL_SYS.
22436
22437 2010-12-25  Bruno Haible  <bruno@clisp.org>
22438
22439         unistd: Fix C++ link error on Solaris 8.
22440         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
22441
22442 2010-12-25  Bruno Haible  <bruno@clisp.org>
22443
22444         readlink doc: Mention an old glibc bug.
22445         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
22446
22447 2010-12-25  Bruno Haible  <bruno@clisp.org>
22448
22449         fcntl-h: Fix for use of C++ on glibc systems.
22450         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
22451         also on glibc systems in C++ mode.
22452         Reported by Gary V. Vaughan <gary@gnu.org>.
22453
22454 2010-12-25  Bruno Haible  <bruno@clisp.org>
22455
22456         roundl-ieee: Make it work on OSF/1 5.1 with cc.
22457         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
22458
22459 2010-12-25  Bruno Haible  <bruno@clisp.org>
22460
22461         truncl-ieee: Make it work on OSF/1 5.1 with cc.
22462         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
22463         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
22464         test whether truncl works according to ISO C 99 with IEC 60559.
22465         * m4/truncl-ieee.m4: New file.
22466         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
22467         m4/signbit.m4.
22468         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
22469
22470 2010-12-25  Bruno Haible  <bruno@clisp.org>
22471
22472         ceill-ieee: Make it work on OSF/1 5.1 with cc.
22473         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
22474         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
22475         test whether ceill works according to ISO C 99 with IEC 60559.
22476         * m4/ceill-ieee.m4: New file.
22477         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
22478         m4/signbit.m4.
22479         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
22480
22481 2010-12-25  Bruno Haible  <bruno@clisp.org>
22482
22483         Ensure all prerequisites of <wchar.h> are included.
22484         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
22485         before <wchar.h>.
22486         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
22487         gl_MBRLEN_NUL_RETVAL): Likewise.
22488         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
22489         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
22490         AC_FUNC_MBRTOWC): Likewise.
22491         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
22492         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
22493         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
22494         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
22495         Likewise.
22496         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
22497         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
22498         (gl_WCHAR_H): Improve comments.
22499         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
22500
22501 2010-12-25  Bruno Haible  <bruno@clisp.org>
22502
22503         strtok_r: Fix C syntax error in autoconf macro.
22504         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
22505         characters in test program.
22506
22507 2010-12-24  Bruno Haible  <bruno@clisp.org>
22508
22509         ceil, trunc, round: Fix gcc warnings.
22510         * lib/ceil.c (MIN): Undefine before redefining.
22511         * lib/trunc.c (MIN): Likewise.
22512         * lib/round.c (MIN): Likewise.
22513         Include <math.h> first.
22514
22515 2010-12-24  Bruno Haible  <bruno@clisp.org>
22516
22517         select tests: Avoid failures on OSF/1 5.1.
22518         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
22519         failure of closing the last socket; it may fail with ECONNRESET.
22520
22521 2010-12-24  Eric Blake  <eblake@redhat.com>
22522
22523         stdint: avoid HP-UX 10.20 preprocessor bug
22524         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
22525         than #if.
22526         * tests/test-floor2.c (main): Likewise.
22527         Reported by Peter O'Gorman.
22528
22529         pipe: make obsoletion transition easier
22530         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
22531         * modules/pipe (Files): Include revived file.
22532         (Include): Drop reference, to mirror getdate's behavior.
22533
22534 2010-12-24  Bruno Haible  <bruno@clisp.org>
22535
22536         sys_socket: Hide mismatch of declarations on NonStop Kernel.
22537         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
22538         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
22539         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22540
22541 2010-12-24  Bruno Haible  <bruno@clisp.org>
22542
22543         gethostname: Ensure declaration on NonStop Kernel.
22544         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
22545         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22546
22547 2010-12-24  Bruno Haible  <bruno@clisp.org>
22548
22549         sys_select: Ensure all necessary types on NonStop Kernel.
22550         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
22551         include <sys/time.h>.
22552         * doc/posix-headers/sys_select.texi: Mention that it's missing on
22553         NonStop Kernel.
22554         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22555
22556 2010-12-24  Bruno Haible  <bruno@clisp.org>
22557
22558         sys_select: Remove unneeded include.
22559         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
22560         have <sys/select.h>.
22561
22562 2010-12-24  Bruno Haible  <bruno@clisp.org>
22563
22564         gethostname: Provide a fallback for HOST_NAME_MAX.
22565         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
22566         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
22567         instead.
22568         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22569
22570 2010-12-24  Bruno Haible  <bruno@clisp.org>
22571
22572         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
22573         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
22574         (SA_RESTART): Likewise.
22575         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22576
22577 2010-12-24  Bruno Haible  <bruno@clisp.org>
22578
22579         signal: Define NSIG.
22580         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
22581         * tests/test-signal.c (nsig): New variable.
22582         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22583
22584 2010-12-24  Bruno Haible  <bruno@clisp.org>
22585
22586         rename, renameat: Avoid test failures on OSF/1 5.1.
22587         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
22588         alternative error codes.
22589         * tests/test-renameat.c (main): Likewise.
22590
22591 2010-12-24  Bruno Haible  <bruno@clisp.org>
22592
22593         *printf: Detect large precisions bug on Solaris 10/SPARC.
22594         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
22595         by Paul Eggert.
22596         * tests/test-snprintf-posix.h (test_function): Add this test code here
22597         too.
22598         * tests/test-sprintf-posix.h (test_function): Likewise.
22599         * tests/test-vasnprintf-posix.c (test_function): Likewise.
22600         * tests/test-vasprintf-posix.c (test_function): Likewise.
22601         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
22602         around by gnulib.
22603         * doc/posix-functions/printf.texi: Likewise.
22604         * doc/posix-functions/snprintf.texi: Likewise.
22605         * doc/posix-functions/sprintf.texi: Likewise.
22606         * doc/posix-functions/vfprintf.texi: Likewise.
22607         * doc/posix-functions/vprintf.texi: Likewise.
22608         * doc/posix-functions/vsnprintf.texi: Likewise.
22609         * doc/posix-functions/vsprintf.texi: Likewise.
22610         * doc/posix-functions/dprintf.texi: Undo last commit.
22611         * doc/posix-functions/vdprintf.texi: Likewise.
22612
22613 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
22614
22615         tests: port test-fdutimensat.c to Solaris 8
22616         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
22617         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
22618         On Solaris 8, it fails with errno == ENOSYS, because there is no
22619         futimens (so it can't use the fd), and there is no lutimens (so it
22620         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
22621
22622         vsnprintf: make more consistent with snprintf; doc fixes
22623
22624         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
22625         the byte count return problem was promoted from the snprintf-posix
22626         to the snprintf module.
22627         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
22628         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
22629         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
22630         * tests/test-snprintf.c (main): Check the byte count returned.
22631         * tests/test-vsnprintf.c (main): Likewise.
22632
22633 2010-12-23  Eric Blake  <eblake@redhat.com>
22634
22635         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
22636         * modules/sigpipe (License): Relax license.
22637
22638 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
22639
22640         doc: document Solaris printf bug with large float precisions
22641         * doc/posix-functions/dprintf.texi (dprintf):
22642         * doc/posix-functions/fprintf.texi (fprintf):
22643         * doc/posix-functions/printf.texi (printf):
22644         * doc/posix-functions/snprintf.texi (snprintf):
22645         * doc/posix-functions/sprintf.texi (sprintf):
22646         * doc/posix-functions/vdprintf.texi (vdprintf):
22647         * doc/posix-functions/vfprintf.texi (vfprintf):
22648         * doc/posix-functions/vprintf.texi (vprintf):
22649         * doc/posix-functions/vsnprintf.texi (vsnprintf):
22650         * doc/posix-functions/vsprintf.texi (vsprintf):
22651         Mention that these functions mishandle large floating point
22652         precisions on Solaris 10.  The same bug is also present in Solaris
22653         8, and I assume earlier.  This causes "cd gnulib-tests; make
22654         check" to fail on Solaris 8 (and I assume, later) when building
22655         the latest coreutils, in test-vasprintf-posix's call to
22656         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
22657         the wide flavors (e.g., wprintf) so this patch just updates the
22658         documentation for the narrow ones.
22659
22660         test-posixtm.c: add two tests
22661         * tests/test-posixtm.c: Add two tests, to highlight the
22662         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
22663         around this bug; this is merely to document it.
22664
22665 2010-12-22  Bruno Haible  <bruno@clisp.org>
22666
22667         getlogin_r: Work around portability problem on OSF/1.
22668         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
22669         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
22670         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
22671         test for a truncated result.
22672         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
22673         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
22674         * modules/getlogin_r (Depends-on): Add memchr.
22675         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
22676
22677 2010-12-22  Bruno Haible  <bruno@clisp.org>
22678
22679         ptsname: Avoid test failure on OSF/1 5.1.
22680         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
22681         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
22682         (same_slave): New function.
22683         (main): Use it to compare ptsname's result with the expected file name.
22684
22685 2010-12-22  Bruno Haible  <bruno@clisp.org>
22686
22687         Port extended stdio modules to HP NonStop Kernel.
22688         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
22689         macros.
22690         * lib/fbufmode.c: Update comments.
22691         * lib/fflush.c: Likewise.
22692         * lib/fpurge.c: Likewise.
22693         * lib/freadable.c: Likewise.
22694         * lib/freadahead.c: Likewise.
22695         * lib/freading.c: Likewise.
22696         * lib/freadptr.c: Likewise.
22697         * lib/freadseek.c: Likewise.
22698         * lib/fseeko.c: Likewise.
22699         * lib/fseterr.c: Likewise.
22700         * lib/fwritable.c: Likewise.
22701         * lib/fwriting.c: Likewise.
22702         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22703
22704 2010-12-22  Bruno Haible  <bruno@clisp.org>
22705
22706         ttyname_r: Work around bug on OSF/1 5.1.
22707         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
22708         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
22709         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
22710         present.
22711         * lib/ttyname_r.c (ttyname_r): Update comments.
22712
22713 2010-12-22  Bruno Haible  <bruno@clisp.org>
22714
22715         round: Implement result sign according to IEEE 754.
22716         * lib/round.c (MIN, MINUS_ZERO): New macros.
22717         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
22718         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
22719         * tests/test-round-ieee.c (main): Likewise.
22720         * tests/test-roundl-ieee.c (main): Likewise.
22721
22722         trunc: Implement result sign according to IEEE 754.
22723         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
22724         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
22725         * tests/test-trunc2.c: Include minus-zero.h.
22726         (MINUS_ZERO): New macro.
22727         (trunc_reference): Keep in sync with lib/trunc.c.
22728         * tests/test-truncf2.c: Include minus-zero.h.
22729         (MINUS_ZERO): New macro.
22730         (truncf_reference): Keep in sync with lib/trunc.c.
22731         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
22732         * tests/test-trunc-ieee.c (main): Likewise.
22733         * tests/test-truncl-ieee.c (main): Likewise.
22734
22735         ceil: Implement result sign according to IEEE 754.
22736         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
22737         (FUNC): Return -0.0 for -1 < x < 0.
22738         * tests/test-ceil2.c: Include minus-zero.h.
22739         (MINUS_ZERO): New macro.
22740         (ceil_reference): Keep in sync with lib/ceil.c.
22741         * tests/test-ceilf2.c: Include minus-zero.h.
22742         (MINUS_ZERO): New macro.
22743         (ceilf_reference): Keep in sync with lib/ceil.c.
22744         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
22745         * tests/test-ceil-ieee.c (main): Likewise.
22746         * tests/test-ceill-ieee.c (main): Likewise.
22747
22748         floor: Implement result sign according to IEEE 754.
22749         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
22750         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
22751         * tests/test-floorf2.c (floorf_reference): Likewise.
22752         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
22753         * tests/test-floor-ieee.c (main): Likewise.
22754         * tests/test-floorl-ieee.c (main): Likewise.
22755
22756 2010-12-22  Bruno Haible  <bruno@clisp.org>
22757
22758         getaddrinfo: Update doc.
22759         * doc/posix-functions/gai_strerror.texi: Return type is also different
22760         on AIX and HP-UX.
22761
22762 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
22763
22764         getaddrinfo, inet_ntop: Update doc for Solaris.
22765         * doc/posix-functions/gai_strerror.texi: Return type is also an
22766         issue on Solaris 9 and earlier.
22767         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
22768         on Solaris 10 and earlier.
22769
22770 2010-12-21  Bruno Haible  <bruno@clisp.org>
22771
22772         New module 'roundl-ieee'.
22773         * modules/roundl-ieee: New file.
22774         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
22775         test whether roundl works according to ISO C 99 with IEC 60559.
22776         * m4/roundl-ieee.m4: New file.
22777         * modules/roundl-ieee-tests: New file.
22778         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
22779         * tests/test-roundl.c (main): Remove signbit tests.
22780         * modules/roundl-tests (Depends-on): Remove signbit.
22781         * doc/posix-functions/roundl.texi: Mention the new module.
22782
22783 2010-12-21  Bruno Haible  <bruno@clisp.org>
22784
22785         New module 'truncl-ieee'.
22786         * modules/truncl-ieee: New file.
22787         * modules/truncl-ieee-tests: New file.
22788         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
22789         * tests/test-truncl.c (main): Remove signbit tests.
22790         * modules/truncl-tests (Depends-on): Remove signbit.
22791         * doc/posix-functions/truncl.texi: Mention the new module.
22792
22793 2010-12-21  Bruno Haible  <bruno@clisp.org>
22794
22795         New module 'ceill-ieee'.
22796         * modules/ceill-ieee: New file.
22797         * modules/ceill-ieee-tests: New file.
22798         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
22799         * tests/test-ceill.c (main): Remove signbit tests.
22800         * modules/ceill-tests (Depends-on): Remove signbit.
22801         * doc/posix-functions/ceill.texi: Mention the new module.
22802
22803 2010-12-21  Bruno Haible  <bruno@clisp.org>
22804
22805         New module 'floorl-ieee'.
22806         * modules/floorl-ieee: New file.
22807         * modules/floorl-ieee-tests: New file.
22808         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
22809         * tests/test-floorl.c (main): Remove signbit tests.
22810         * modules/floorl-tests (Depends-on): Remove signbit.
22811         * doc/posix-functions/floorl.texi: Mention the new module.
22812
22813 2010-12-21  Bruno Haible  <bruno@clisp.org>
22814
22815         New module 'round-ieee'.
22816         * modules/round-ieee: New file.
22817         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
22818         whether round works according to ISO C 99 with IEC 60559.
22819         * m4/round-ieee.m4: New file.
22820         * modules/round-ieee-tests: New file.
22821         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
22822         * tests/test-round1.c (main): Remove signbit tests.
22823         * modules/round-tests (Depends-on): Remove 'signbit'.
22824         * doc/posix-functions/round.texi: Mention the new module.
22825
22826 2010-12-21  Bruno Haible  <bruno@clisp.org>
22827
22828         New module 'trunc-ieee'.
22829         * modules/trunc-ieee: New file.
22830         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
22831         whether trunc works according to ISO C 99 with IEC 60559.
22832         * m4/trunc-ieee.m4: New file.
22833         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
22834         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
22835         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
22836         * modules/trunc-ieee-tests: New file.
22837         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
22838         * tests/test-trunc1.c (main): Remove signbit tests.
22839         * modules/trunc-tests (Depends-on): Remove 'signbit'.
22840         * doc/posix-functions/trunc.texi: Mention the new module.
22841
22842 2010-12-21  Bruno Haible  <bruno@clisp.org>
22843
22844         New module 'ceil-ieee'.
22845         * modules/ceil-ieee: New file.
22846         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
22847         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
22848         ISO C 99 with IEC 60559.
22849         * m4/ceil-ieee.m4: New file.
22850         * modules/ceil (Files): Add lib/ceil.c.
22851         (Depends-on): Add 'float'.
22852         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
22853         * lib/math.in.h (ceil): New declaration.
22854         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
22855         REPLACE_CEIL.
22856         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
22857         * modules/ceil-ieee-tests: New file.
22858         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
22859         * tests/test-math-c++.cc: Check the signature of 'ceil'.
22860         * doc/posix-functions/ceil.texi: Mention the new module.
22861
22862 2010-12-21  Bruno Haible  <bruno@clisp.org>
22863
22864         New module 'floor-ieee'.
22865         * modules/floor-ieee: New file.
22866         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
22867         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
22868         ISO C 99 with IEC 60559.
22869         * m4/floor-ieee.m4: New file.
22870         * modules/floor (Files): Add lib/floor.c.
22871         (Depends-on): Add 'float'.
22872         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
22873         * lib/math.in.h (floor): New declaration.
22874         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
22875         REPLACE_FLOOR.
22876         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
22877         * modules/floor-ieee-tests: New file.
22878         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
22879         * tests/test-math-c++.cc: Check the signature of 'floor'.
22880         * doc/posix-functions/floor.texi: Mention the new module.
22881
22882 2010-12-21  Bruno Haible  <bruno@clisp.org>
22883
22884         New module 'roundf-ieee'.
22885         * modules/roundf-ieee: New file.
22886         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
22887         test whether roundf works according to ISO C 99 with IEC 60559.
22888         * m4/roundf-ieee.m4: New file.
22889         * modules/roundf-ieee-tests: New file.
22890         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
22891         * tests/test-roundf1.c (main): Remove signbit tests.
22892         * modules/roundf-tests (Depends-on): Remove 'signbit'.
22893         * doc/posix-functions/roundf.texi: Mention the new module.
22894
22895 2010-12-21  Bruno Haible  <bruno@clisp.org>
22896
22897         New module 'truncf-ieee'.
22898         * modules/truncf-ieee: New file.
22899         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
22900         test whether truncf works according to ISO C 99 with IEC 60559.
22901         * m4/truncf-ieee.m4: New file.
22902         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
22903         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
22904         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
22905         * modules/truncf-ieee-tests: New file.
22906         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
22907         * tests/test-truncf1.c (main): Remove signbit tests.
22908         * modules/truncf-tests (Depends-on): Remove 'signbit'.
22909         * doc/posix-functions/truncf.texi: Mention the new module.
22910
22911 2010-12-21  Bruno Haible  <bruno@clisp.org>
22912
22913         New module 'ceilf-ieee'.
22914         * modules/ceilf-ieee: New file.
22915         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
22916         test whether ceilf works according to ISO C 99 with IEC 60559.
22917         * m4/ceilf-ieee.m4: New file.
22918         * modules/ceilf-ieee-tests: New file.
22919         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
22920         * tests/test-ceilf1.c (main): Remove signbit tests.
22921         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
22922         * doc/posix-functions/ceilf.texi: Mention the new module.
22923
22924 2010-12-21  Bruno Haible  <bruno@clisp.org>
22925
22926         New module 'floorf-ieee'.
22927         * modules/floorf-ieee: New file.
22928         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
22929         test whether floorf works according to ISO C 99 with IEC 60559.
22930         * m4/floorf-ieee.m4: New file.
22931         * modules/floorf-ieee-tests: New file.
22932         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
22933         * tests/test-floorf1.c (main): Remove signbit tests.
22934         * modules/floorf-tests (Depends-on): Remove 'signbit'.
22935         * doc/posix-functions/floorf.texi: Mention the new module.
22936
22937 2010-12-21  Bruno Haible  <bruno@clisp.org>
22938
22939         Support for minus zero in autoconf macros.
22940         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
22941         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
22942         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
22943         * tests/minus-zero.h: Update comments.
22944
22945 2010-12-21  Bruno Haible  <bruno@clisp.org>
22946
22947         Tests for module 'ceil'.
22948         * modules/ceil-tests: New file.
22949         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
22950         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
22951
22952 2010-12-21  Bruno Haible  <bruno@clisp.org>
22953
22954         Tests for module 'floor'.
22955         * modules/floor-tests: New file.
22956         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
22957         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
22958
22959 2010-12-21  Bruno Haible  <bruno@clisp.org>
22960
22961         math: Fix indentation.
22962         * lib/math.in.h (floorf): Fix indentation.
22963
22964 2010-12-21  Bruno Haible  <bruno@clisp.org>
22965
22966         Fix cross-compilation guesses on Solaris.
22967         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
22968         not match "solaris2.10".
22969         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
22970         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
22971         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
22972
22973 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
22974
22975         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
22976         This fixes a problem observed with the latest coreutils snapshot
22977         that caused a test to fail on Solaris 8.  src/csplit.c's call
22978         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
22979         earlier, instead of returning the number of bytes that would have
22980         been generated; this causes csplit to incorrectly report memory
22981         exhaustion.
22982         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
22983         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
22984         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
22985         comments to match.
22986         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
22987         Fix typo in matching older versions of Solaris: "solaris2.10"
22988         is matched by the shell pattern "solaris2.[0-9]*".  This matters
22989         only for guessing while cross-compiling.
22990         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
22991
22992 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
22993
22994         ftoastr: fix comment again
22995         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
22996         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
22997         Also, simplify example a bit by using flags = 0.
22998
22999 2010-12-20  Bruno Haible  <bruno@clisp.org>
23000
23001         round*, trunc*: Update documentation regarding glibc.
23002         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
23003         * doc/posix-functions/round.texi: Likewise.
23004         * doc/posix-functions/roundl.texi: Likewise.
23005         * doc/posix-functions/truncf.texi: Likewise.
23006         * doc/posix-functions/trunc.texi: Likewise.
23007         * doc/posix-functions/truncl.texi: Likewise.
23008
23009 2010-12-20  Bruno Haible  <bruno@clisp.org>
23010
23011         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
23012         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
23013         * doc/posix-functions/round.texi: Likewise.
23014         * doc/posix-functions/roundl.texi: Likewise.
23015
23016 2010-12-20  Bruno Haible  <bruno@clisp.org>
23017
23018         ttyname_r: Add missing declaration on HP-UX 11.
23019         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
23020         HAVE_TTYNAME_R.
23021         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
23022         declared. Set HAVE_TTYNAME_R always.
23023         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23024         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
23025         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
23026         HAVE_TTYNAME_R.
23027         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
23028
23029 2010-12-20  Bruno Haible  <bruno@clisp.org>
23030
23031         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
23032         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
23033         * doc/posix-functions/getlogin_r.texi: Likewise.
23034         * tests/test-getlogin.c: Include <errno.h>.
23035         (main): Avoid test failure on HP-UX 11.11.
23036         * tests/test-getlogin_r.c (main): Likewise.
23037
23038 2010-12-20  Bruno Haible  <bruno@clisp.org>
23039
23040         getlogin_r: Add missing declaration on HP-UX 11.
23041         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
23042         declared also when it exists as a function.
23043         * doc/posix-functions/getlogin_r.texi: Document this workaround.
23044
23045 2010-12-20  Bruno Haible  <bruno@clisp.org>
23046
23047         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
23048         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
23049         through wcrtomb.
23050
23051 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
23052
23053         ftoastr: fix comment
23054         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
23055         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
23056
23057 2010-12-19  Bruno Haible  <bruno@clisp.org>
23058
23059         isnan: Ensure it is a macro.
23060         * lib/math.in.h (isnan): Define as a macro if not already a macro.
23061         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
23062         Solaris.
23063
23064 2010-12-19  Bruno Haible  <bruno@clisp.org>
23065
23066         ldexpl test: Fix link error on OSF/1 5.1.
23067         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
23068
23069 2010-12-19  Bruno Haible  <bruno@clisp.org>
23070
23071         wctype: Make it work in C++ mode on OSF/1 5.1.
23072         * lib/wctype.in.h (iswblank): Declare but not define here.
23073         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
23074         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
23075         * modules/wctype (Files): Add lib/iswblank.c.
23076
23077 2010-12-19  Bruno Haible  <bruno@clisp.org>
23078
23079         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
23080         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
23081         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
23082
23083 2010-12-19  Bruno Haible  <bruno@clisp.org>
23084
23085         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
23086         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
23087         _POSIX_PII_SOCKET.
23088         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
23089         * doc/posix-functions/recvfrom.texi: Likewise.
23090         * doc/posix-functions/send.texi: Likewise.
23091         * doc/posix-functions/sendto.texi: Likewise.
23092
23093 2010-12-19  Bruno Haible  <bruno@clisp.org>
23094
23095         tcgetsid: Add missing declaration on OSF/1 5.1.
23096         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
23097         HAVE_TCGETSID.
23098         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
23099         Don't set HAVE_TCGETSID.
23100         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
23101         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
23102         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
23103         HAVE_TCGETSID.
23104         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
23105
23106 2010-12-19  Bruno Haible  <bruno@clisp.org>
23107
23108         stdio: Fix problem with popen() declaration on OSF/1 5.1.
23109         * lib/stdio.in.h: During the include_next statement, let recursive
23110         includes of this file include only the system header file.
23111
23112 2010-12-19  Bruno Haible  <bruno@clisp.org>
23113
23114         iconv_open: Fix regression from 2010-12-04.
23115         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
23116         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
23117
23118 2010-12-19  Bruno Haible  <bruno@clisp.org>
23119
23120         stdbool test: Avoid a gcc warning.
23121         * tests/test-stdbool.c (main): Fail if e1 is false.
23122         Reported by Jim Meyering.
23123
23124 2010-12-19  Jim Meyering  <meyering@redhat.com>
23125
23126         setenv: restore to working order
23127         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
23128         mistakenly removed.
23129         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
23130         HAVE_SETENV.
23131         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
23132         HAVE_SETENV.
23133
23134 2010-12-19  Bruno Haible  <bruno@clisp.org>
23135
23136         Document some different function declarations on OSF/1 5.1.
23137         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
23138         * doc/posix-functions/inet_ntop.texi: Likewise.
23139         * doc/posix-functions/gethostname.texi: Likewise.
23140         * lib/unistd.in.h (gethostname): Update comment.
23141
23142 2010-12-19  Bruno Haible  <bruno@clisp.org>
23143
23144         doc: Mention vasprintf-posix module.
23145         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
23146         the 'vasprintf-posix' module.
23147         * doc/glibc-functions/vasprintf.texi: Likewise.
23148
23149 2010-12-19  Bruno Haible  <bruno@clisp.org>
23150
23151         unsetenv: Add missing declaration on OSF/1 5.1.
23152         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
23153         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
23154         Don't set HAVE_UNSETENV. In the test program, set _BSD.
23155         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
23156         not HAVE_UNSETENV.
23157         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
23158         HAVE_UNSETENV.
23159         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
23160
23161 2010-12-19  Bruno Haible  <bruno@clisp.org>
23162
23163         setenv: Add missing declaration on OSF/1 5.1.
23164         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
23165         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
23166         declared. Don't set HAVE_SETENV.
23167         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
23168         not HAVE_SETENV.
23169         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
23170         HAVE_SETENV.
23171         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
23172
23173 2010-12-19  Bruno Haible  <bruno@clisp.org>
23174
23175         nl_langinfo tests: Avoid gcc warning.
23176         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
23177
23178 2010-12-19  Bruno Haible  <bruno@clisp.org>
23179
23180         mknod: Avoid error in C++ mode on OSF/1 with GCC.
23181         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
23182         _GL_CXXALIAS_SYS.
23183
23184 2010-12-19  Bruno Haible  <bruno@clisp.org>
23185
23186         stdbool: Relax test.
23187         * tests/test-stdbool.c (e): Don't require that casts from a variable's
23188         address to 'bool' work in static initializer, for compilers other than
23189         GCC.
23190
23191 2010-12-19  Bruno Haible  <bruno@clisp.org>
23192
23193         ftello: Add missing declaration on OSF/1 5.1.
23194         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
23195         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
23196         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
23197         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
23198         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
23199
23200 2010-12-19  Bruno Haible  <bruno@clisp.org>
23201
23202         fseeko: Add missing declaration on OSF/1 5.1.
23203         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
23204         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
23205         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
23206         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
23207         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
23208
23209 2010-12-19  Bruno Haible  <bruno@clisp.org>
23210
23211         fchdir: Add missing declaration on OSF/1 5.1.
23212         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
23213         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
23214         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
23215         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
23216         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
23217
23218 2010-12-19  Bruno Haible  <bruno@clisp.org>
23219
23220         relocatable-prog-wrapper: Separate from relocatable-prog.
23221         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
23222         uninstall-relocwrapper rule here.
23223         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
23224         Reported by Ian Beckwith <ianb@erislabs.net>.
23225
23226 2010-12-19  Bruno Haible  <bruno@clisp.org>
23227
23228         unistr/u8-mbsnlen: Add missing dependency.
23229         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
23230         Reported by Ian Beckwith <ianb@erislabs.net>.
23231
23232 2010-12-19  Bruno Haible  <bruno@clisp.org>
23233
23234         iconv: Make it possible again to use this module without 'iconv-h'.
23235         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
23236         if it is not defined.
23237         Reported by Ian Beckwith <ianb@erislabs.net>.
23238
23239 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
23240
23241         acl: port to Solaris 8 when copying from tmpfs to ufs
23242         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
23243         error number.  Problem observed on Solaris 8 with latest
23244         coreutils, with "mv A B", where A is on a tmpfs file system and B
23245         is on a ufs file system.  This caused coreutils' mv/part-symlink
23246         test to fail.
23247
23248         tests: set fail=0 at start
23249         * tests/init.sh (setup_): Move fail=0 initialization here ...
23250         (mktempd_): ... from here, so that tests can rely on fail being
23251         set to 0 initially.  This fixes a problem in coreutils; see:
23252         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
23253
23254 2010-12-18  Bruno Haible  <bruno@clisp.org>
23255
23256         memmem-simple: Stylistic changes.
23257         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
23258         Fix preprocessor directive indentation.
23259
23260 2010-12-15  Pádraig Brady <P@draigBrady.com>
23261
23262         memmem, memmem-simple: reorganize and expand empty needle check
23263         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
23264         functional checks to memmem-simple so that one has a fully functional
23265         memmem by using just this module.
23266         Restrict the performance only check to the memmem module.
23267         Also expand the empty needle check to ensure the correct
23268         pointer is returned, not just a non NULL pointer.
23269         * doc/glibc-functions/memmem.texi: Rearrange the portability
23270         documentation to correlate with the rearranged checks.
23271         Clarify exactly how the memmem and memmem-simple modules
23272         relate to each other.
23273
23274 2010-12-15  Pádraig Brady <P@draigBrady.com>
23275             Bruno Haible  <bruno@clisp.org>
23276
23277         Improve cross-compilation guesses for uClibc.
23278         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
23279         that uClibc does not have the glibc bug.
23280         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
23281         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
23282
23283 2010-12-14  Eric Blake  <eblake@redhat.com>
23284
23285         configmake: provide fallbacks for oldest supported autotools
23286         * m4/configmake.m4: New file.
23287         * modules/configmake (Files): Ship it.
23288         (configure.ac): Use it to guarantee fallbacks.
23289
23290 2010-12-13  Pádraig Brady <P@draigBrady.com>
23291
23292         read-file: Improve handling of large files
23293         * lib/read-file.c (fread_file): Minimize realloc()s
23294         for regular files, and better manage sizes around SIZE_MAX.
23295
23296 2010-12-13  Eric Blake  <eblake@redhat.com>
23297
23298         cloexec, fcntl: relax license
23299         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
23300         consent from all contributors.
23301         * modules/fcntl (License): Likewise.
23302
23303 2010-12-10  Bruno Haible  <bruno@clisp.org>
23304
23305         Tests for module 'pipe-posix'.
23306         * modules/pipe-posix-tests: New file.
23307         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
23308
23309 2010-12-10  Bruno Haible  <bruno@clisp.org>
23310
23311         pipe-posix: Make it work in C++ mode.
23312         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
23313         (pipe): Use common idiom, not a macro definition.
23314         * lib/pipe.c: New file.
23315         * m4/pipe.m4: New file.
23316         * modules/pipe-posix (Description): Enhance.
23317         (Files): Add lib/pipe.c, m4/pipe.m4.
23318         (configure.ac): Invoke gl_FUNC_PIPE.
23319         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
23320         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
23321         * tests/test-unistd-c++.cc: Check the signature of pipe.
23322
23323 2010-12-10  Bruno Haible  <bruno@clisp.org>
23324
23325         Rename module 'pipe' to 'spawn-pipe'.
23326         * modules/spawn-pipe: New file, renamed from modules/pipe.
23327         (Files, configure.ac, Makefile.am): Update.
23328         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
23329         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
23330         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
23331         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
23332         "spawn-pipe.h" instead of "pipe.h".
23333         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
23334         to gl_SPAWN_PIPE.
23335         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
23336         (Files, Makefile.am): Update.
23337         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
23338         Update.
23339         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
23340         Include "spawn-pipe.h" instead of "pipe.h".
23341         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
23342         * lib/javacomp.c: Likewise.
23343         * lib/javaversion.c: Likewise.
23344         * lib/pipe-filter-gi.c: Likewise.
23345         * lib/pipe-filter-ii.c: Likewise.
23346         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
23347         * modules/javacomp (Depends-on): Likewise.
23348         * modules/javaversion (Depends-on): Likewise.
23349         * modules/pipe-filter-gi (Depends-on): Likewise.
23350         * modules/pipe-filter-ii (Depends-on): Likewise.
23351         * MODULES.html.sh (Executing programs): Update.
23352         * NEWS: Mention the change.
23353
23354 2010-12-10  Eric Blake  <eblake@redhat.com>
23355
23356         pipe-posix: new module
23357         * modules/pipe-posix: New file.
23358         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
23359         (gl_UNISTD_H): Check for declaration.
23360         * modules/unistd (Makefile.am): Substitute it.
23361         * lib/unistd.in.h (pipe): Provide it for mingw.
23362         * doc/posix-functions/pipe.texi (pipe): Update documentation.
23363         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
23364
23365 2010-12-07  Bruno Haible  <bruno@clisp.org>
23366
23367         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
23368         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
23369         u8_strcmp_gnu.
23370         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
23371
23372 2010-12-06  Bruno Haible  <bruno@clisp.org>
23373
23374         Update internal documentation.
23375         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
23376
23377 2010-12-04  Bruno Haible  <bruno@clisp.org>
23378
23379         Put more information about failed tests into the test return codes.
23380         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
23381         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
23382         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
23383         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
23384         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
23385         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
23386         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23387         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
23388         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
23389         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23390         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
23391         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
23392         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
23393         * m4/stdint.m4 (gl_STDINT_H): Likewise.
23394         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
23395         returns a bit mask.
23396         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
23397         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
23398         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
23399         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
23400         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
23401         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
23402         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
23403         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
23404         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
23405         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
23406         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
23407         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
23408         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
23409         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
23410         * m4/link.m4 (gl_FUNC_LINK): Likewise.
23411         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
23412         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
23413         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
23414         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
23415         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
23416         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23417         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
23418         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
23419         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
23420         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
23421         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
23422         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
23423         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
23424         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
23425         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
23426         gl_PRINTF_PRECISION): Likewise.
23427         * m4/regex.m4 (gl_REGEX): Likewise.
23428         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
23429         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
23430         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
23431         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23432         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
23433         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23434         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
23435         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
23436         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23437         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
23438         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
23439         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
23440         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
23441         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
23442         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
23443         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23444         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
23445         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
23446         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
23447         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
23448         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
23449         enumerated value.
23450         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
23451
23452 2010-12-04  Bruno Haible  <bruno@clisp.org>
23453
23454         Update for Solaris 11 2010-11.
23455         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
23456         Express, released in November 2010.
23457
23458 2010-12-04  Bruno Haible  <bruno@clisp.org>
23459
23460         nproc: Relax license.
23461         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
23462         and Paul Eggert.
23463         Requested by Ludovic Courtès <ludo@gnu.org>.
23464
23465 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
23466
23467         utimecmp: fine-grained src to nearby coarse-grained dest
23468
23469         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
23470         and the source is on a file system with higher-resolution time
23471         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
23472         not work, and the time stamps are close together, the algorithm to
23473         determine the exact resolution from the read-back mtime was buggy:
23474         it had a "!=" where it should have had an "==".  This bug has been
23475         in the code ever since it was introduced to gnulib.
23476         Problem reported by Dan Jacobson in
23477         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
23478
23479 2010-11-30  Bruno Haible  <bruno@clisp.org>
23480
23481         strerror_r-posix: Fix autoconf test.
23482         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
23483
23484 2010-11-28  Bruno Haible  <bruno@clisp.org>
23485             Paul Eggert  <eggert@cs.ucla.edu>
23486
23487         Tests for module 'getdomainname'.
23488         * modules/getdomainname-tests: New file.
23489         * tests/test-getdomainname.c: New file, based on
23490         tests/test-gethostname.c.
23491
23492 2010-11-28  Bruno Haible  <bruno@clisp.org>
23493             Paul Eggert  <eggert@cs.ucla.edu>
23494
23495         getdomainname: Use the system function when possible.
23496         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
23497         (getdomainname): Replace if needed. Provide the declaration if it is
23498         missing. Don't use _GL_CXXALIAS_SYS_CAST.
23499         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
23500         (getdomainname): When the system has getdomainname, call the system
23501         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
23502         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
23503         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
23504         found in libnsl. Look for the declaration also in <netdb.h>. Replace
23505         the function if its second argument is of type 'int' or if it is found
23506         in libnsl.
23507         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
23508         <sys/systeminfo.h> and sysinfo().
23509         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
23510         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23511         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
23512         HAVE_GETDOMAINNAME.
23513         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
23514         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
23515         * doc/glibc-functions/getdomainname.texi: Document the problems with
23516         the getdomainname declaration.
23517
23518 2010-11-28  Bruno Haible  <bruno@clisp.org>
23519
23520         sys_socket: Ensure ss_family field on AIX.
23521         * lib/sys_socket.in.h (ss_family): New macro definition.
23522         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
23523         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
23524         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
23525         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
23526         * modules/sys_socket (Makefile.am): Substitute
23527         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
23528         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
23529
23530 2010-11-27  Bruno Haible  <bruno@clisp.org>
23531
23532         readline: Improve configure output.
23533         * m4/readline.m4 (gl_FUNC_READLINE): Make the
23534         "checking for readline..." result understandable.
23535
23536 2010-11-27  Bruno Haible  <bruno@clisp.org>
23537
23538         *printf-posix: Detect a bug on Solaris 10/x86.
23539         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
23540         for floating-point output.
23541         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
23542         directive.
23543         * tests/test-snprintf-posix.h (test_function): Likewise.
23544         * tests/test-sprintf-posix.h (test_function): Likewise.
23545         * tests/test-vasprintf-posix.c (test_function): Likewise.
23546         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
23547         * doc/posix-functions/printf.texi: Likewise.
23548         * doc/posix-functions/snprintf.texi: Likewise.
23549         * doc/posix-functions/sprintf.texi: Likewise.
23550         * doc/posix-functions/vfprintf.texi: Likewise.
23551         * doc/posix-functions/vprintf.texi: Likewise.
23552         * doc/posix-functions/vsnprintf.texi: Likewise.
23553         * doc/posix-functions/vsprintf.texi: Likewise.
23554         * doc/glibc-functions/obstack_printf.texi: Likewise.
23555         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
23556
23557 2010-11-27  Bruno Haible  <bruno@clisp.org>
23558
23559         Fix link error when module libunistring-optional is in use.
23560         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
23561         * modules/striconveha-tests (Makefile.am): Likewise.
23562
23563 2010-11-27  Bruno Haible  <bruno@clisp.org>
23564
23565         regex: Mention link dependencies.
23566         * modules/regex (Link): New section.
23567         * modules/rpmatch (Link): Likewise.
23568         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
23569
23570 2010-11-27  Bruno Haible  <bruno@clisp.org>
23571
23572         ftoastr: Fix compilation error on Solaris.
23573         * lib/ftoastr.c: Include <config.h>.
23574
23575 2010-11-27  Bruno Haible  <bruno@clisp.org>
23576
23577         getloadavg: Update documentation.
23578         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
23579
23580 2010-11-27  Bruno Haible  <bruno@clisp.org>
23581
23582         sys_socket: Fix test whether the functions are declared.
23583         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
23584         not <sys/select.h>.
23585
23586 2010-11-27  Bruno Haible  <bruno@clisp.org>
23587
23588         getpass: Make sure to get system declaration on some platforms.
23589         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
23590         gl_USE_SYSTEM_EXTENSIONS.
23591         * modules/getpass (Depends-on): Add extensions.
23592
23593 2010-11-26  Bruno Haible  <bruno@clisp.org>
23594
23595         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
23596         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
23597         'iconv' module is present.
23598         (ICONV_CONST): New macro.
23599         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
23600         ICONV_CONST.
23601         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
23602         set ICONV_CONST.
23603         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
23604         here.
23605         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
23606         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
23607         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
23608         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
23609         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
23610         present.
23611
23612 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
23613
23614         ftoastr: comment fix
23615         * lib/ftoastr.c: "little" -> "little or no" in comment
23616
23617 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
23618
23619         stdint: port to GCC 4.3 + OSX + Octave
23620         On this platform, stdint.h is buggy and defines int64_t to long
23621         long int.  The replacement defined it to long int, causing
23622         problems with C++ style name mangling.  Instead, trust the system
23623         definition if INT64_MAX is defined, and likewise for the unsigned
23624         variant.   Problem reported by Jarno Rajahalme in
23625         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
23626         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
23627         and don't mess with int64_t and INT64_MAX in this case.
23628         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
23629
23630 2010-11-24  Bruno Haible  <bruno@clisp.org>
23631
23632         doc: Corrections regarding MacOS X 10.4 and 10.5.
23633         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
23634         MacOS X.
23635         Reported by Simon Josefsson.
23636
23637 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
23638
23639         Uninstall ".bin" files installed by relocwrapper.
23640         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
23641         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
23642         unless it is already there.
23643
23644 2010-11-21  Bruno Haible  <bruno@clisp.org>
23645
23646         Update for NetBSD 5.0.
23647         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
23648         NetBSD; the test fails on NetBSD 5.0.
23649         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
23650         about NetBSD.
23651
23652 2010-11-21  Bruno Haible  <bruno@clisp.org>
23653
23654         Update for HP-UX 11.23 and HP-UX 11.31.
23655         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
23656         HP-UX.
23657
23658 2010-11-21  Bruno Haible  <bruno@clisp.org>
23659
23660         Update for MacOS X 10.5.
23661         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
23662         MacOS X; the test fails on MacOS X 10.5.8.
23663         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
23664         about MacOS X.
23665
23666 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
23667
23668         bootstrap: add bootstrap_sync option.
23669         See discussion at
23670         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
23671         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
23672         * build-aux/bootstrap: Accept --bootstrap-sync to update
23673         bootstrap if it is not identical to the local gnulib's
23674         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
23675         enable this by default.  Accept --no-bootstrap-sync to disable
23676         it.
23677
23678 2010-11-20  Bruno Haible  <bruno@clisp.org>
23679
23680         Ensure that <features.h> is included before __GLIBC__ is tested.
23681         * lib/printf-parse.h: Include <features.h>.
23682         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
23683         Reported by Mike Frysinger <vapier@gentoo.org>.
23684
23685         Ensure that <features.h> is included before __GLIBC__ is tested.
23686         * lib/wchar.in.h: Include <features.h>.
23687         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
23688         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
23689         Reported by Mike Frysinger <vapier@gentoo.org>.
23690
23691         Ensure that <features.h> is included before __GLIBC__ is tested.
23692         * lib/arpa_inet.in.h: Include <features.h>.
23693         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
23694         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
23695         Reported by Mike Frysinger <vapier@gentoo.org>.
23696
23697         Ensure that <features.h> is included before __GLIBC__ is tested.
23698         * build-aux/link-warning.h: Include <features.h>.
23699         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
23700         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
23701         Reported by Mike Frysinger <vapier@gentoo.org>.
23702
23703         Ensure that <features.h> is included before __GLIBC__ is tested.
23704         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
23705         Reported by Mike Frysinger <vapier@gentoo.org>.
23706
23707 2010-11-20  Bruno Haible  <bruno@clisp.org>
23708
23709         memmem: Fix autoconf test.
23710         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
23711
23712 2010-11-20  Bruno Haible  <bruno@clisp.org>
23713
23714         Port to uClibc.
23715         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
23716         * lib/fcntl.in.h: Likewise.
23717         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
23718         * lib/mbrtowc.c (mbrtowc): Likewise.
23719         * lib/relocatable.c (find_shared_library_fullname): Likewise.
23720         * lib/strerror_r.c: Likewise.
23721         * lib/unistr/u8-strnlen.c: Likewise.
23722         * lib/vasnprintf.c (decimal_point_char): Likewise.
23723         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
23724         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
23725         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
23726         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
23727         * tests/test-sigaction.c (handler, main): Likewise.
23728         * lib/freading.h: Treat uClibc like a non-glibc platform.
23729         * lib/freading.c: Likewise.
23730         * lib/gettext.h: Likewise.
23731         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
23732         Likewise.
23733         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
23734         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
23735         * lib/propername.c (proper_name_utf8): Likewise.
23736         * lib/spawn.in.h: Likewise.
23737         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
23738         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
23739         mem_cd_iconveh_internal): Likewise.
23740         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
23741         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
23742         strstr, strcasestr): Likewise.
23743         * lib/unicodeio.c (unicode_to_mb): Likewise.
23744         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
23745         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
23746         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
23747         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
23748         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
23749         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
23750         * lib/unistr/u8-stpncpy.c: Likewise.
23751         * lib/vasnprintf.c (VASNPRINTF): Likewise.
23752         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
23753         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
23754         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23755         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
23756         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
23757         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
23758         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
23759         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
23760         Likewise.
23761         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
23762         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
23763         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
23764         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23765         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
23766         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
23767         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
23768         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
23769         * tests/test-getopt.h (OPTIND_MIN): Likewise.
23770         * tests/test-striconveha.c (main): Likewise.
23771         * tests/test-vasnprintf-posix.c (test_function): Likewise.
23772         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
23773         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
23774         * doc/posix-functions/getline.texi: Likewise.
23775         Reported by Mike Frysinger <vapier@gentoo.org>.
23776
23777 2010-11-20  Bruno Haible  <bruno@clisp.org>
23778
23779         nproc: Fix condition.
23780         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
23781         HAVE_PTHREAD_AFFINITY_NP.
23782
23783 2010-11-20  Bruno Haible  <bruno@clisp.org>
23784
23785         Fix a comment.
23786         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
23787
23788 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
23789
23790         ftoastr: don't assume snprintf
23791         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
23792         Implement a subset of snprintf here, by using sprintf safely.
23793         * modules/ftoastr (Depends-on): Remove snprintf.
23794
23795 2010-11-19  Jim Meyering  <meyering@redhat.com>
23796
23797         test-rename.h: fix compilation failure
23798         * tests/test-rename.h (test_rename): Add omitted "}".
23799
23800 2010-11-17  Jim Meyering  <meyering@redhat.com>
23801
23802         maint.mk: add a URL discussing the no-@acronym policy
23803         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
23804
23805 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
23806
23807         ftoastr: depend on snprintf, improve comments
23808         * lib/ftoastr.c: Also mention Loitsch's draft.
23809         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
23810         needed in the current implementation, but it might simplify
23811         speeding up the code later.
23812         * modules/ftoastr: Depend on snprintf; this improves portability.
23813         Suggested by Bruno Haible in the same email.
23814
23815         ftoastr: port to hosts lacking strtof and strtold
23816         Problem reported by Bruno Haible in
23817         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
23818         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
23819         environment and strtold (and presumably strtof) are not available.
23820         * modules/ftoastr (Files): Add m4/c-strtod.m4.
23821         (configure.ac): Require gl_C99_STRTOLD.
23822
23823 2010-11-18  Bruno Haible  <bruno@clisp.org>
23824
23825         c-strtold: Avoid link error on AIX 7.
23826         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
23827         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
23828         (gl_C_STRTOLD): Test whether strtold_l exists.
23829         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23830
23831 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
23832
23833         intprops: new macro INT_BITS_STRLEN_BOUND
23834         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
23835         ftoastr.h.  This exposes an internal of intprops.h that was formerly
23836         not exposed.  Also, it uses a slightly tighter bound than before;
23837         though this makes no practical difference, we might as well be as
23838         tight as we easily can.
23839
23840         ftoastr: new module, for lossless conversion of floats to short strings
23841         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
23842         * modules/ftoastr: New files.
23843
23844 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
23845
23846         bootstrap: port to Solaris sed
23847         * build-aux/bootstrap (get_version): Port to Solaris sed.
23848         See Ralf Wildenhues's note in
23849         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
23850
23851 2010-11-14  Jim Meyering  <meyering@redhat.com>
23852
23853         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
23854         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
23855         and move definition closer to sole use.
23856
23857 2010-11-13  Jim Meyering  <meyering@redhat.com>
23858
23859         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
23860         Now we require at least autoconf-2.59, which means the work-around
23861         is no longer needed.
23862         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
23863         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
23864         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
23865         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
23866         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
23867
23868 2010-11-13  Bruno Haible  <bruno@clisp.org>
23869
23870         rename, renameat: Avoid test failures at NFS mounted locations.
23871         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
23872         functions.
23873         (test_rename): Use assert_nonexistent.
23874         * tests/test-rename.c: Include <dirent.h>.
23875         * tests/test-renameat.c: Likewise.
23876         Reported by Gary V. Vaughan <gary@gnu.org>.
23877
23878         rename, renameat: Document Linux bug with NFS
23879         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
23880         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
23881         * doc/posix-functions/renameat.texi: Likewise.
23882         Suggested by Eric Blake.
23883
23884 2010-11-13  Bruno Haible  <bruno@clisp.org>
23885
23886         rename test: Add comments.
23887         * tests/test-rename.h (test_rename): Add structure and comments.
23888
23889 2010-11-13  Eric Blake  <eblake@redhat.com>
23890
23891         maintainer-makefile: cover a few more files
23892         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
23893         scripts generated within C files, for libvirt.
23894
23895 2010-11-13  Bruno Haible  <bruno@clisp.org>
23896
23897         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
23898         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
23899         character, return the number of bytes that belong together, not always
23900         1.
23901         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
23902         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
23903         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
23904         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
23905         number of bytes of an invalid character.
23906         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
23907         (main): Invoke it.
23908         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
23909         results.
23910         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
23911         malformed byte sequences.
23912         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
23913         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
23914         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
23915         Reported by Ben Pfaff and Paolo Bonzini.
23916
23917 2010-11-13  Bruno Haible  <bruno@clisp.org>
23918
23919         openat: Work around glibc bug with fchownat() and empty file names.
23920         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
23921         (gl_FUNC_FCHOWNAT): Invoke it.
23922         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
23923         * doc/posix-functions/fchownat.texi: Document the glibc bug.
23924         Reported by Gary V. Vaughan <gary@gnu.org>.
23925
23926 2010-11-13  Bruno Haible  <bruno@clisp.org>
23927
23928         openat: Ensure autoconf macro ordering.
23929         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
23930         gl_USE_SYSTEM_EXTENSIONS.
23931         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
23932
23933 2010-11-13  Bruno Haible  <bruno@clisp.org>
23934
23935         Update comments.
23936         * lib/unistr/u8-check.c: Update file name in comments.
23937         * lib/unistr/u8-mblen.c: Likewise.
23938         * lib/unistr/u8-prev.c: Likewise.
23939         * lib/unistr/u8-strmblen.c: Likewise.
23940         * lib/unistr/u8-strmbtouc.c: Likewise.
23941
23942 2010-11-13  Jim Meyering  <meyering@redhat.com>
23943
23944         tests: avoid test failure on Solaris 10 due to lack of PATH export
23945         * tests/test-update-copyright.sh: Don't forget to export PATH.
23946
23947         init.sh: ensure that IFS is defined, just in case...
23948         * tests/init.sh (setup_): Ensure that IFS is defined,
23949         so that saving and restoring it works as expected.  This
23950         appears to be useful at least for an old version of dash
23951         from a long time ago (RH 6).  See here for details:
23952         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
23953
23954         maint.mk: tighten "test a == b" check
23955         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
23956         test to files that contain something like #!/bin/sh.
23957         Without this, coreutils would get two false positives in
23958         the comments of C source files.
23959
23960 2010-11-12  Eric Blake  <eblake@redhat.com>
23961
23962         bootstrap: fix typo in previous attempt
23963         * build-aux/bootstrap (buildreq): Correct the grouping.
23964         Reported by Paul Eggert.
23965
23966         maintainer-makefile: prohibit test x == x
23967         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
23968         Based on a report by Matthias Bolte.
23969
23970         bootstrap: allow FreeBSD gzip
23971         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
23972         which has no '.' and goes to stderr.
23973         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
23974         Reported by Matthias Bolte.
23975
23976         maintainer-makefile: check for i18n setup
23977         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
23978         will likely work.
23979
23980 2010-11-12  Bruno Haible  <bruno@clisp.org>
23981
23982         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
23983         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
23984         * lib/nanosleep.c (nanosleep): Likewise.
23985
23986 2010-11-11  Bruno Haible  <bruno@clisp.org>
23987
23988         fcntl-h: Fix for use of C++ on glibc systems.
23989         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
23990         also on glibc systems in C++ mode.
23991         Reported by Gary V. Vaughan <gary@gnu.org>.
23992
23993 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
23994
23995         mknod: avoid false failure with dash
23996         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
23997
23998 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
23999
24000         unlink: Fix "is it should" typo in diagnostic.
24001         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
24002         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
24003
24004 2010-11-11  Bruno Haible  <bruno@clisp.org>
24005
24006         Tests for module 'strerror_r-posix'.
24007         * modules/strerror_r-posix-tests: New file.
24008         * tests/test-strerror_r.c: New file.
24009         * tests/test-string-c++.cc: Check the signature of strerror_r.
24010
24011         New module 'strerror_r-posix'.
24012         * lib/string.in.h (strerror_r): New declaration.
24013         * lib/strerror_r.c: New file.
24014         * m4/strerror_r.m4: New file.
24015         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
24016         of strerror_r.
24017         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
24018         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
24019         * modules/strerror_r-posix: New file.
24020         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
24021         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
24022         * doc/posix-functions/strerror_r.texi: Mention the new module and the
24023         portability problems.
24024
24025 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
24026
24027         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
24028         line is also considered for output. Quoted function name in shell
24029         command, so temporary files for functions like MyClass::operator()
24030         are removed correctly without errors.
24031
24032 2010-11-09  Bruno Haible  <bruno@clisp.org>
24033
24034         * doc/posix-functions/strerror.texi: List more failing platforms.
24035
24036         * doc/posix-functions/strerror.texi: Add a comment.
24037
24038 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
24039
24040         fdopendir: fix bug on MacOS X when low on file descriptors
24041
24042         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
24043         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
24044         All callers changed.
24045         (fdopendir): Invoke save_cwd at the top level, not after using
24046         multiple dup() calls to use up file descriptors.  Then retry
24047         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
24048         less than the maximum number of open file descriptors, because
24049         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
24050         on Mac OS X 10.6.4 for tar 1.24
24051         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
24052         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
24053         and for tar 1.25
24054         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
24055
24056 2010-11-07  Bruno Haible  <bruno@clisp.org>
24057
24058         vasnprintf: Support I flag on glibc systems.
24059         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
24060         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
24061         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
24062         snprintf function.
24063         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
24064         glibc systems.
24065         * tests/test-vasnprintf-posix3.c: New file.
24066         * modules/vasnprintf-posix-tests (Files): Add it.
24067         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
24068
24069 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
24070
24071         [html] Fix copy/paste bug: Use unique name for compiler warnings.
24072         * MODULES.html.sh: For compiler warnings, use name
24073         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
24074
24075 2010-11-05  Eric Blake  <eblake@redhat.com>
24076
24077         ceil, floor: avoid spurious failure with icc
24078         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
24079         [denormals-as-zero] when optimizing without -mieee-fp option.
24080         * tests/test-floorf2.c (floorf_reference): Likewise.
24081         * tests/test-ceilf1.c (dummy): New function.
24082         (main): Use it to outsmart icc's optimization.
24083         * tests/test-floorf1.c (dummy, main): Likewise.
24084
24085         tests: require working signbit
24086         * modules/ceilf-tests (Depends-on): Add signbit.
24087         * modules/ceill-tests (Depends-on): Likewise.
24088         * modules/floorf-tests (Depends-on): Likewise.
24089         * modules/floorl-tests (Depends-on): Likewise.
24090         * modules/round-tests (Depends-on): Likewise.
24091         * modules/roundf-tests (Depends-on): Likewise.
24092         * modules/roundl-tests (Depends-on): Likewise.
24093         * modules/trunc-tests (Depends-on): Likewise.
24094         * modules/truncf-tests (Depends-on): Likewise.
24095         * modules/truncl-tests (Depends-on): Likewise.
24096
24097         strtod: work around icc bug
24098         * lib/strtod.c (minus_zero): Define to working value.
24099         (strtod): Use it to avoid icc bug.
24100
24101         copysign: enhance tests
24102         * modules/copysign-tests (Files): Add minus-zero.h.
24103         * tests/test-copysign.c (main): Also test zeros.
24104
24105 2010-11-04  Eric Blake  <eblake@redhat.com>
24106
24107         ceil, floor, round, trunc: enhance tests of -0
24108         * tests/test-ceilf1.c (main): Ensure correct sign of result.
24109         * tests/test-ceill.c (main): Likewise.
24110         * tests/test-floorf1.c (main): Likewise.
24111         * tests/test-floorl.c (main): Likewise.
24112         * tests/test-round1.c (main): Likewise.
24113         * tests/test-roundf1.c (main): Likewise.
24114         * tests/test-roundl.c (main): Likewise.
24115         * tests/test-trunc1.c (main): Likewise.
24116         * tests/test-truncf1.c (main): Likewise.
24117         * tests/test-truncl.c (main): Likewise.
24118
24119 2010-11-04  Eric Blake  <eblake@redhat.com>
24120
24121         frexp, tests: work around ICC bug with -zero
24122         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
24123         works with more compilers.
24124         * tests/minus-zero.h: New file.
24125         * modules/ceilf-tests (Files): Include it.
24126         * modules/ceill-tests (Files): Likewise.
24127         * modules/floorf-tests (Files): Likewise.
24128         * modules/floorl-tests (Files): Likewise.
24129         * modules/frexp-nolibm-tests (Files): Likewise.
24130         * modules/frexp-tests (Files): Likewise.
24131         * modules/frexpl-nolibm-tests (Files): Likewise.
24132         * modules/frexpl-tests (Files): Likewise.
24133         * modules/isnan-tests (Files): Likewise.
24134         * modules/isnand-nolibm-tests (Files): Likewise.
24135         * modules/isnand-tests (Files): Likewise.
24136         * modules/isnanf-nolibm-tests (Files): Likewise.
24137         * modules/isnanf-tests (Files): Likewise.
24138         * modules/isnanl-nolibm-tests (Files): Likewise.
24139         * modules/isnanl-tests (Files): Likewise.
24140         * modules/round-tests (Files): Likewise.
24141         * modules/roundf-tests (Files): Likewise.
24142         * modules/roundl-tests (Files): Likewise.
24143         * modules/ldexpl-tests (Files): Likewise.
24144         * modules/signbit-tests (Files): Likewise.
24145         * modules/snprintf-posix-tests (Files): Likewise.
24146         * modules/sprintf-posix-tests (Files): Likewise.
24147         * modules/strtod-tests (Files): Likewise.
24148         * modules/trunc-tests (Files): Likewise.
24149         * modules/truncf-tests (Files): Likewise.
24150         * modules/truncl-tests (Files): Likewise.
24151         * modules/vsnprintf-posix-tests (Files): Likewise.
24152         * modules/vsprintf-posix-tests (Files): Likewise.
24153         * modules/vasnprintf-posix-tests (Files): Likewise.
24154         * modules/vasprintf-posix-tests (Files): Likewise.
24155         * tests/test-ceilf1.c (main): Use it.
24156         * tests/test-ceill.c (main): Likewise.
24157         * tests/test-floorf1.c (main): Likewise.
24158         * tests/test-floorl.c (main): Likewise.
24159         * tests/test-frexp.c (main): Likewise.
24160         * tests/test-frexpl.c (main): Likewise.
24161         * tests/test-isnan.c (main): Likewise.
24162         * tests/test-isnand.h (main): Likewise.
24163         * tests/test-isnanf.h (main): Likewise.
24164         * tests/test-isnanl.h (main): Likewise.
24165         * tests/test-ldexpl.c (main): Likewise.
24166         * tests/test-round.c (main): Likewise.
24167         * tests/test-roundf.c (main): Likewise.
24168         * tests/test-roundl.c (main): Likewise.
24169         * tests/test-signbit.c (test_signbitf, test_signbitd)
24170         (test_signbitl): Likewise.
24171         * tests/test-snprintf-posix.h (test_function): Likewise.
24172         * tests/test-sprintf-posix.h (test_function): Likewise.
24173         * tests/test-strtod.c (main): Likewise.
24174         * tests/test-trunc1.c (main): Likewise.
24175         * tests/test-truncf1.c (main): Likewise.
24176         * tests/test-truncl.c (main): Likewise.
24177
24178         isnanl: work around icc bug
24179         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
24180
24181 2010-11-03  Eric Blake  <eblake@redhat.com>
24182
24183         tests: fix compiler warnings
24184         * tests/test-getopt.h (test_getopt): Fix condition.
24185         * tests/test-getopt_long.h (test_getopt_long): Likewise.
24186         * tests/test-pipe2.c (main): Likewise.
24187         * tests/test-quotearg-simple.c (main): Avoid icc warning.
24188
24189         utimens: fix broken m4 test
24190         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
24191
24192 2010-10-28  Bruno Haible  <bruno@clisp.org>
24193
24194         posix_spawn*, getdtablesize: Relax license.
24195         * modules/posix_spawn (License): Change to LGPLv2+.
24196         * modules/posix_spawnp (License): Likewise.
24197         * modules/posix_spawn-internal (License): Likewise.
24198         * modules/posix_spawnattr_init (License): Likewise.
24199         * modules/posix_spawnattr_getflags (License): Likewise.
24200         * modules/posix_spawnattr_setflags (License): Likewise.
24201         * modules/posix_spawnattr_getpgroup (License): Likewise.
24202         * modules/posix_spawnattr_setpgroup (License): Likewise.
24203         * modules/posix_spawnattr_getschedparam (License): Likewise.
24204         * modules/posix_spawnattr_setschedparam (License): Likewise.
24205         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
24206         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
24207         * modules/posix_spawnattr_getsigdefault (License): Likewise.
24208         * modules/posix_spawnattr_setsigdefault (License): Likewise.
24209         * modules/posix_spawnattr_getsigmask (License): Likewise.
24210         * modules/posix_spawnattr_setsigmask (License): Likewise.
24211         * modules/posix_spawnattr_destroy (License): Likewise.
24212         * modules/posix_spawn_file_actions_init (License): Likewise.
24213         * modules/posix_spawn_file_actions_addclose (License): Likewise.
24214         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
24215         * modules/posix_spawn_file_actions_addopen (License): Likewise.
24216         * modules/posix_spawn_file_actions_destroy (License): Likewise.
24217         * modules/getdtablesize (License): Likewise.
24218         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
24219
24220 2010-10-26  Bruno Haible  <bruno@clisp.org>
24221
24222         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
24223         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
24224         Cygwin and mingw.
24225         Suggested by Eric Blake.
24226
24227 2010-10-26  Bruno Haible  <bruno@clisp.org>
24228
24229         stdio: Work around compilation error due to renameat() on Solaris 10.
24230         * lib/stdio.in.h: Include <unistd.h> on Solaris.
24231         * lib/renameat.c: Don't include <unistd.h> here.
24232         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
24233         Reported by Paul Eggert and Eric Blake.
24234
24235 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
24236
24237         renameat: port to Solaris 10, which declares renameat in unistd.h
24238
24239         * lib/renameat.c: Include unistd.h before stdio.h, because
24240         Solaris 10 declares renameat in unistd.h.  Problem encountered
24241         when building GNU tar 1.24 on Solaris 10.
24242
24243 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24244
24245         fdopendir: fix C89 compilation
24246         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
24247         compilers.
24248
24249 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
24250
24251         inttostr: simplify by removing unnecessary redundancy
24252         * lib/anytostr.c: Don't include verify.h.
24253         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
24254         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
24255         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
24256         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
24257         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
24258         Likewise.
24259         * modules/inttostr (Depends-on): Remove 'verify'.
24260
24261 2010-10-23  Bruno Haible  <bruno@clisp.org>
24262
24263         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
24264         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
24265         Reported by Eric Blake.
24266
24267 2010-10-23  Bruno Haible  <bruno@clisp.org>
24268
24269         Tests: Fix LOCALE_JA on MirBSD 10.
24270         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
24271         to an UTF-8 locale.
24272         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
24273         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
24274         Reported by Eric Blake.
24275
24276 2010-10-21  Bruno Haible  <bruno@clisp.org>
24277
24278         nl_langinfo test: Avoid test failure on NetBSD 5.
24279         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
24280         Reported by Eric Blake.
24281
24282 2010-10-21  Eric Blake  <eblake@redhat.com>
24283
24284         c-stack: work around libsigsegv 2.8 bug
24285         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
24286         overflow on at least PowerPC64.
24287
24288 2010-10-17  Bruno Haible  <bruno@clisp.org>
24289
24290         userspec: Drop redundant file.
24291         * modules/userspec (Files): Remove lib/inttostr.h.
24292
24293 2010-10-17  Bruno Haible  <bruno@clisp.org>
24294
24295         nl_langinfo tests: Silence some warnings.
24296         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
24297         Reported by Jim Meyering.
24298
24299 2010-10-17  Bruno Haible  <bruno@clisp.org>
24300
24301         Make use of GCC's attribute __alloc_size__.
24302         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
24303         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
24304         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
24305         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
24306         __alloc_size__.
24307         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
24308         Suggested by Jim Meyering.
24309
24310 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
24311
24312         bootstrap: anchor .gitignore entries.
24313         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
24314         with...
24315         (insert_vc_ignore): ... this new function, which prepends `/' to
24316         all .gitignore entries before passing them to
24317         insert_sorted_if_absent.
24318
24319 2010-10-16  Bruno Haible  <bruno@clisp.org>
24320
24321         nextafter: Fix configure check.
24322         * modules/nextafter (configure.ac): Correct expected prototype.
24323
24324 2010-10-16  Bruno Haible  <bruno@clisp.org>
24325
24326         termios: Update documentation.
24327         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
24328
24329 2010-10-16  Bruno Haible  <bruno@clisp.org>
24330
24331         tests: Make them compile with TinyCC.
24332         * tests/test-strstr.c (main): Remove parentheses around array
24333         initializer.
24334
24335 2010-10-15  Eric Blake  <eblake@redhat.com>
24336
24337         ignore-value: make header idempotent
24338         * lib/ignore-value.h: Add double-inclusion guards.
24339         Reported by Stefan Berger.
24340
24341 2010-10-15  Jim Meyering  <meyering@redhat.com>
24342
24343         GNUmakefile: handle "stable" target, not "major"
24344         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
24345         lists in maint.mk and announce-gen.  Without this, "make stable"
24346         would fail to ensure that $(VERSION) is up to date.
24347
24348 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
24349
24350         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
24351         & co.
24352
24353 2010-10-14  Bruno Haible  <bruno@clisp.org>
24354
24355         vasnprintf: Don't set errno to 0.
24356         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
24357         block that sets it to 0.
24358         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
24359
24360 2010-10-14  Bruno Haible  <bruno@clisp.org>
24361
24362         socketlib: Fix.
24363         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
24364         gl_PREREQ_SYS_H_WINSOCK2.
24365         Reported by Ian Beckwith <ianb@erislabs.net>.
24366
24367 2010-10-13  Jim Meyering  <meyering@redhat.com>
24368
24369         test-select-stdin.c: avoid warn_unused_result warnings
24370         * tests/test-select-stdin.c: Include "macros.h".
24371         ASSERT that read and fflush succeed.
24372
24373 2010-10-13  Jim Meyering  <meyering@redhat.com>
24374
24375         git-version-gen: do require git-VC'd files in cwd
24376         * build-aux/git-version-gen: Reject a git version string
24377         if there are no commits associated with the current directory.
24378         This avoids an unlikely false-positive (unrelated dir whose parent
24379         repository also contains a tag matching v*), as pointed out
24380         by Giuseppe Scrivano in
24381         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
24382
24383 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
24384
24385         argv-iter: omit nonconforming declaration
24386         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
24387         enum arg_iter_err declaration, which doesn't conform to C99.
24388         Solaris 10 cc warns about this.
24389
24390 2010-10-13  Eric Blake  <eblake@redhat.com>
24391
24392         termios: fix compilation on mingw
24393         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
24394         (gl_TERMIOS_H): Adjust it on mingw.
24395         * modules/termios (Makefile.am): Substitute new key.
24396         * lib/termios.in.h (includes): Make include_next conditional.
24397         * doc/posix-headers/termios.texi (termios.h): Update
24398         documentation.
24399         Reported by Daniel P. Berrange.
24400
24401 2010-10-13  Jim Meyering  <meyering@redhat.com>
24402
24403         git-version-gen: don't require that .git/ be in the current dir
24404         * build-aux/git-version-gen: Adjust this script so that it works
24405         when run from any working directory beneath the top-level .git/-
24406         containing directory.  Inspired by a patch from Giuseppe Scrivano,
24407         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
24408
24409         test-select: avoid warn_unused_result warnings
24410         * tests/test-select.c: Include "macros.h".
24411         ASSERT that each call to read, write, and pipe succeeds.
24412         While not technically required, also check each "close".
24413         * modules/select-tests (Files): Add tests/macros.h.
24414
24415         test-symlinkat: remove declaration of unused local
24416         * tests/test-symlinkat.c (main): Remove unused local, "buf".
24417
24418         test-inttostr: avoid shadowing warnings
24419         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
24420         and use malloc rather than the stack for the same reason as
24421         mentioned in the comment justifying the other allocation.
24422
24423 2010-10-11  Bruno Haible  <bruno@clisp.org>
24424
24425         stdlib: Allow multiple gnulib generated replacements to coexist.
24426         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
24427         Reported by Sam Steingold <sds@gnu.org>.
24428
24429 2010-10-11  Jim Meyering  <meyering@redhat.com>
24430
24431         fix a documentation typo
24432         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
24433
24434 2010-10-11  Eric Blake  <eblake@redhat.com>
24435
24436         futimens: work around Solaris 11 bug
24437         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
24438         * tests/test-futimens.h (test_futimens): Enhance, rather than
24439         weaken test.
24440         * doc/posix-functions/futimens.texi (futimens): Document the bug.
24441
24442 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
24443
24444         Indentation.
24445         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
24446         higher-level operators more to the left.
24447
24448 2010-10-11  Jim Meyering  <meyering@redhat.com>
24449
24450         test-futimens: avoid unwarranted test failure on Solaris 5.11
24451         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
24452         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
24453         because it tries to dereference the NULL name argument.
24454
24455 2010-10-11  Bruno Haible  <bruno@clisp.org>
24456
24457         Indentation.
24458         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
24459         indentation.
24460
24461 2010-10-11  Jim Meyering  <meyering@redhat.com>
24462
24463         spawn.in.h: make indentation consistent with parentheses
24464         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
24465         Make indentation consistent with parentheses.
24466
24467 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
24468
24469         Fix mismatched parens in previous commit
24470         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
24471         parens.
24472
24473 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
24474
24475         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
24476
24477         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
24478         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
24479         * lib/malloca.c: Include "verify.h".
24480         (verify1): Remove, replacing with a verify call.
24481         * lib/relocwrapper.c (verify1): Likewise.
24482         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
24483         Likewise.
24484         * modules/malloca (Depends-on): Add 'verify'.
24485         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
24486         * modules/vasnprintf (Depends-on): Add 'verify'.
24487         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
24488         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
24489         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
24490         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
24491         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
24492         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
24493         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
24494
24495         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
24496
24497         Formerly the style was sometimes 2*X - 1, because the C standard
24498         was wrongly thought to disallow ?: in integral constant expressions.
24499         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
24500         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
24501         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
24502         * lib/stdint.in.h (_verify_intmax_size): Likewise.
24503         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
24504         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
24505         verify that time_t cannot be floating.
24506
24507 2010-10-08  Eric Blake  <eblake@redhat.com>
24508
24509         time: enforce recent POSIX ruling that time_t is integral
24510         * lib/time.in.h (__time_t_must_be_integral): Detect any
24511         problematic systems, allowing the rest of gnulib to assume POSIX.
24512
24513 2010-10-08  Jim Meyering  <meyering@redhat.com>
24514
24515         fdopendir: fix a bug on systems lacking openat and /proc support
24516         OpenBSD 4.7 is one such system.  The most noticeable effect was
24517         failure of any application making nontrivial use of fts: rm, du,
24518         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
24519           ./rm: traversal failed: `a': Bad file descriptor
24520         Debugging that, you see that even though FD 6 was closed just
24521         prior to the opendir call in fd_clone_opendir, its resulting
24522         dir->dd_fd was 8, rather than the expected value of 6:
24523
24524         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
24525         93                close (fd);
24526         (gdb) n
24527         94                dir = fd_clone_opendir (dupfd);
24528         (gdb) n
24529         95                saved_errno = errno;
24530         (gdb) p dir->dd_fd
24531         $11 = 8
24532
24533         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
24534         The problem is that on OpenBSD, fd_clone_opendir has to resort
24535         to using the old-style save/restore CWD mechanism, due to its
24536         lack of openat/proc support, and *that* would steal the FD (6)
24537         that opendir was supposed to use.
24538
24539         The fix is to squirrel away the desired FD so that save_cwd uses a
24540         different one, and then free the dest FD right before calling opendir.
24541         That guarantees opendir will use the required file descriptor.
24542
24543         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
24544
24545 2010-10-08  Bruno Haible  <bruno@clisp.org>
24546
24547         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
24548         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
24549
24550 2010-10-08  Bruno Haible  <bruno@clisp.org>
24551
24552         nanosleep: Make replacement POSIX compliant.
24553         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
24554         is out of range.
24555         Reported by Jim Meyering.
24556
24557 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
24558
24559         bootstrap: add hook for altering gnulib.mk, for Bison
24560         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
24561         the Bison bootstrapping process can rewrite file names and variables
24562         in this file before later parts of 'bootstrap' use the file.
24563         Bison wants to include lib/gnulib.mk from the top-level makefile,
24564         so it needs the file names in this file to be relative to the top
24565         level, not relative to lib; plus it needs variable names to be
24566         rewritten.
24567         (slurp): Use the new function.
24568
24569         bootstrap: reformat for readability
24570         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
24571
24572 2010-10-08  Eric Blake  <eblake@redhat.com>
24573
24574         docs: update cygwin progress
24575         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
24576         1.7.7.
24577         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
24578         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
24579         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
24580         * doc/posix-functions/carg.texi (carg): Likewise.
24581         * doc/posix-functions/cargf.texi (cargf): Likewise.
24582         * doc/posix-functions/casin.texi (casin): Likewise.
24583         * doc/posix-functions/casinf.texi (casinf): Likewise.
24584         * doc/posix-functions/casinh.texi (casinh): Likewise.
24585         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
24586         * doc/posix-functions/catan.texi (catan): Likewise.
24587         * doc/posix-functions/catanf.texi (catanf): Likewise.
24588         * doc/posix-functions/catanh.texi (catanh): Likewise.
24589         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
24590         * doc/posix-functions/ccos.texi (ccos): Likewise.
24591         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
24592         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
24593         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
24594         * doc/posix-functions/cexp.texi (cexp): Likewise.
24595         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
24596         * doc/posix-functions/cimag.texi (cimag): Likewise.
24597         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
24598         * doc/posix-functions/clog.texi (clog): Likewise.
24599         * doc/posix-functions/clogf.texi (clogf): Likewise.
24600         * doc/posix-functions/conj.texi (conj): Likewise.
24601         * doc/posix-functions/conjf.texi (conjf): Likewise.
24602         * doc/posix-functions/cpow.texi (cpow): Likewise.
24603         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
24604         * doc/posix-functions/cproj.texi (cproj): Likewise.
24605         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
24606         * doc/posix-functions/creal.texi (creal): Likewise.
24607         * doc/posix-functions/crealf.texi (crealf): Likewise.
24608         * doc/posix-functions/csin.texi (csin): Likewise.
24609         * doc/posix-functions/csinf.texi (csinf): Likewise.
24610         * doc/posix-functions/csinh.texi (csinh): Likewise.
24611         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
24612         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
24613         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
24614         * doc/posix-functions/ctan.texi (ctan): Likewise.
24615         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
24616         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
24617         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
24618         * doc/posix-headers/complex.texi (complex.h): Likewise.
24619
24620 2010-10-07  Jim Meyering  <meyering@redhat.com>
24621
24622         parse-datetime: avoid compilation failure on OpenBSD 4.7
24623         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
24624         This works around a compilation failure on OpenBSD 4.7:
24625         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
24626
24627 2010-10-07  Eric Blake  <eblake@redhat.com>
24628
24629         docs: update cygwin progress
24630         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
24631         1.7.6.
24632         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
24633         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
24634         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
24635         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
24636         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
24637         Likewise.
24638         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
24639         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
24640         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
24641         Likewise.
24642         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
24643         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
24644         Likewise.
24645         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
24646         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
24647         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
24648         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
24649         Likewise.
24650         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
24651         Likewise.
24652         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
24653
24654         docs: update parse-datetime history
24655         * doc/parse-datetime.texi (Authors of parse_datetime): Better
24656         documentation of this function's history and alternatives.
24657
24658         cygwin: use more robust version check
24659         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
24660         exclude an eventual cygwin 1.9.1.
24661         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
24662         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
24663         (gl_FUNC_STRCASESTR): Likewise.
24664         Reported by Bruno Haible.
24665
24666 2010-10-06  Bruno Haible  <bruno@clisp.org>
24667
24668         string, sys_select: Avoid #including large headers unless necessary.
24669         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
24670         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
24671         OSF/1, BeOS, Haiku.
24672         Reported by Jim Meyering.
24673
24674 2010-10-05  Eric Blake  <eblake@redhat.com>
24675
24676         memmem, strstr, strcasestr: fix bug with long periodic needle
24677         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
24678         periodic needle having false positive.
24679         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
24680         and cygwin 1.7.7.
24681         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
24682         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
24683         (gl_FUNC_STRCASESTR): Likewise.
24684         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
24685         * tests/test-memmem.c (main): Expose the bug.
24686         * tests/test-strcasestr.c (main): Likewise.
24687         * tests/test-strstr.c (main): Likewise.
24688         * tests/test-c-strcasestr.c (main): Likewise.
24689         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
24690         * doc/posix-functions/strstr.texi (strstr): Likewise.
24691         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
24692         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
24693
24694 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
24695
24696         parse-datetime: do some more renaming
24697         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
24698         parse_datetime, not get_date.  Mention the renaming.
24699         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
24700         in comments.
24701         * m4/bison.m4: Likewise.
24702
24703 2010-10-05  Eric Blake  <eblake@redhat.com>
24704
24705         parse-datetime: better name than get_date
24706         * NEWS: Reword the deprecation notice.
24707         * modules/get_date: Rename to modules/parse-datetime.
24708         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
24709         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
24710         * lib/get_date.y: Rename to lib/parse-datetime.y.
24711         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
24712         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
24713         * doc/getdate.texi: Provide fallback wrapper.
24714         * lib/getdate.h: Move guts, and wrap...
24715         * lib/parse-datetime.h: ...new file.
24716         * lib/parse-datetime.y (get_date): Rename...
24717         (parse_datetime): ...to this.
24718         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
24719         (gl_PARSE_DATETIME): ...to this.
24720         * doc/posix-functions/getdate.texi (get_date): Provide fallback
24721         documentation.
24722         * modules/getdate (Files): Provide fallback docs and header.
24723         (Notice, Depends-on): Update references.
24724         * tests/test-parse-datetime.c: Likewise.
24725         * DEPENDENCIES: Likewise.
24726         * MODULES.html.sh (Date and time <time.h>): Likewise.
24727         * doc/parse-datetime.texi (Date input formats)
24728         (Authors of parse_datetime): Likewise.
24729         * modules/parse-datetime (Files, configure.ac, Makefile.am)
24730         (Include): Likewise.
24731         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
24732         * gnulib-tool: Likewise.
24733         * m4/bison.m4 (gl_BISON): Likewise.
24734         Suggested by Bruno Haible.
24735
24736 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
24737
24738         more ports to Solaris tr, which needs [] around ranges
24739         * gnulib-tool: Solaris tr needs [] around ranges.
24740         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
24741         * tests/test-pipe-filter-gi1.c (main): Likewise.
24742         * tests/test-pipe-filter-ii1.c (main): Likewise.
24743
24744 2010-10-05  Eric Blake  <eblake@redhat.com>
24745
24746         bootstrap: fix Solaris regression
24747         * build-aux/bootstrap (check_versions): Solaris tr still needs []
24748         around ranges.
24749         Reported by Pádraig Brady.
24750
24751         bootstrap: work with pkg-config
24752         * build-aux/bootstrap (check_versions): Also transliterate - in
24753         prerequisite name.
24754         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
24755         prerequisites that were already found, to avoid confusion.
24756         Reported by Justin Clift.
24757
24758         faccessat: remove unused wrappers
24759         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
24760         presence of these wrappers dragged in -lgen on Solaris.
24761         Reported by Clemens Brogi; fix suggested by Paul Eggert.
24762
24763 2010-10-05  Jim Meyering  <meyering@redhat.com>
24764
24765         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
24766         * Makefile (sc_pragma_columns): New syntax-check rule.
24767
24768 2010-10-04  Bruno Haible  <bruno@clisp.org>
24769
24770         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
24771         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
24772         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
24773         Reported by Bruce Korb and Eric Blake.
24774
24775 2010-10-04  Bruno Haible  <bruno@clisp.org>
24776
24777         threadlib: Make option --with-libpth-prefix work.
24778         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
24779         use $LIBPTH, not just -lpth.
24780
24781 2010-10-04  Bruno Haible  <bruno@clisp.org>
24782
24783         Avoid line length limitation from HP NonStop system header files.
24784         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
24785         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
24786         * lib/ctype.in.h: Likewise.
24787         * lib/dirent.in.h: Likewise.
24788         * lib/errno.in.h: Likewise.
24789         * lib/fcntl.in.h: Likewise.
24790         * lib/float.in.h: Likewise.
24791         * lib/getopt.in.h: Likewise.
24792         * lib/iconv.in.h: Likewise.
24793         * lib/inttypes.in.h: Likewise.
24794         * lib/langinfo.in.h: Likewise.
24795         * lib/locale.in.h: Likewise.
24796         * lib/math.in.h: Likewise.
24797         * lib/netdb.in.h: Likewise.
24798         * lib/netinet_in.in.h: Likewise.
24799         * lib/poll.in.h: Likewise.
24800         * lib/pthread.in.h: Likewise.
24801         * lib/pty.in.h: Likewise.
24802         * lib/sched.in.h: Likewise.
24803         * lib/se-selinux.in.h: Likewise.
24804         * lib/search.in.h: Likewise.
24805         * lib/signal.in.h: Likewise.
24806         * lib/spawn.in.h: Likewise.
24807         * lib/stdarg.in.h: Likewise.
24808         * lib/stddef.in.h: Likewise.
24809         * lib/stdint.in.h: Likewise.
24810         * lib/stdio.in.h: Likewise.
24811         * lib/stdlib.in.h: Likewise.
24812         * lib/string.in.h: Likewise.
24813         * lib/strings.in.h: Likewise.
24814         * lib/sys_file.in.h: Likewise.
24815         * lib/sys_ioctl.in.h: Likewise.
24816         * lib/sys_select.in.h: Likewise.
24817         * lib/sys_socket.in.h: Likewise.
24818         * lib/sys_stat.in.h: Likewise.
24819         * lib/sys_time.in.h: Likewise.
24820         * lib/sys_times.in.h: Likewise.
24821         * lib/sys_utsname.in.h: Likewise.
24822         * lib/sys_wait.in.h: Likewise.
24823         * lib/sysexits.in.h: Likewise.
24824         * lib/termios.in.h: Likewise.
24825         * lib/time.in.h: Likewise.
24826         * lib/unistd.in.h: Likewise.
24827         * lib/wchar.in.h: Likewise.
24828         * lib/wctype.in.h: Likewise.
24829         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
24830         * modules/ctype (Makefile.am): Likewise.
24831         * modules/dirent (Makefile.am): Likewise.
24832         * modules/errno (Makefile.am): Likewise.
24833         * modules/fcntl-h (Makefile.am): Likewise.
24834         * modules/float (Makefile.am): Likewise.
24835         * modules/getopt-posix (Makefile.am): Likewise.
24836         * modules/iconv-h (Makefile.am): Likewise.
24837         * modules/inttypes (Makefile.am): Likewise.
24838         * modules/langinfo (Makefile.am): Likewise.
24839         * modules/locale (Makefile.am): Likewise.
24840         * modules/math (Makefile.am): Likewise.
24841         * modules/netdb (Makefile.am): Likewise.
24842         * modules/netinet_in (Makefile.am): Likewise.
24843         * modules/poll-h (Makefile.am): Likewise.
24844         * modules/pthread (Makefile.am): Likewise.
24845         * modules/pty (Makefile.am): Likewise.
24846         * modules/sched (Makefile.am): Likewise.
24847         * modules/search (Makefile.am): Likewise.
24848         * modules/selinux-h (Makefile.am): Likewise.
24849         * modules/signal (Makefile.am): Likewise.
24850         * modules/spawn (Makefile.am): Likewise.
24851         * modules/stdarg (Makefile.am): Likewise.
24852         * modules/stddef (Makefile.am): Likewise.
24853         * modules/stdint (Makefile.am): Likewise.
24854         * modules/stdio (Makefile.am): Likewise.
24855         * modules/stdlib (Makefile.am): Likewise.
24856         * modules/string (Makefile.am): Likewise.
24857         * modules/strings (Makefile.am): Likewise.
24858         * modules/sys_file (Makefile.am): Likewise.
24859         * modules/sys_ioctl (Makefile.am): Likewise.
24860         * modules/sys_select (Makefile.am): Likewise.
24861         * modules/sys_socket (Makefile.am): Likewise.
24862         * modules/sys_stat (Makefile.am): Likewise.
24863         * modules/sys_time (Makefile.am): Likewise.
24864         * modules/sys_times (Makefile.am): Likewise.
24865         * modules/sys_utsname (Makefile.am): Likewise.
24866         * modules/sys_wait (Makefile.am): Likewise.
24867         * modules/sysexits (Makefile.am): Likewise.
24868         * modules/termios (Makefile.am): Likewise.
24869         * modules/time (Makefile.am): Likewise.
24870         * modules/unistd (Makefile.am): Likewise.
24871         * modules/wchar (Makefile.am): Likewise.
24872         * modules/wctype (Makefile.am): Likewise.
24873
24874 2010-10-04  Bruno Haible  <bruno@clisp.org>
24875
24876         read-file tests: Avoid a test failure on NonStop Kernel.
24877         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
24878         a regular file.
24879         Reported by Joachim Schmitz <schmitz@hp.com>.
24880
24881 2010-10-03  Bruno Haible  <bruno@clisp.org>
24882
24883         gnulib-tool: Fixes for --create-testdir with --libtool.
24884         * gnulib-tool (func_get_automake_snippet): Don't augment
24885         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
24886         an executable.
24887         (func_create_testdir): Handle module 'alloca' like func_import.
24888         Reported by Bruce Korb <bruce.korb@gmail.com>.
24889
24890 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
24891
24892         Avoid some lines longer than 80 characters.
24893         * lib/stdint.in.h: Break long comment lines.
24894         * lib/math.in.h: Likewise.
24895         (_GL_NUM_UINT_WORDS): New macro, for readability.
24896         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
24897         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
24898         * lib/stdlib.in.h: Likewise.
24899         * lib/spawn.in.h: Likewise.
24900         * lib/sys_socket.in.h: Update an URL.
24901         * lib/sys_stat.in.h: Break long line.
24902
24903 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
24904
24905         Improve pmccabe2html.
24906         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
24907         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
24908         when the sources change. Remove the line in the HTML about "Used
24909         ranges" (which implied that there might be other unused ranges),
24910         rename "Resume" to "Summary" (easier to understand for more users).
24911         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
24912         styles, and some unnecessary blank lines.
24913
24914 2010-10-03  Bruno Haible  <bruno@clisp.org>
24915             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
24916
24917         acl: Add support for ACLs on NonStop Kernel.
24918         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
24919         Check whether the function aclsort() exists.
24920         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
24921         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
24922         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
24923         (acl_nontrivial [HAVE_ACLSORT]: New function.
24924         (file_has_acl): Implement for NonStop Kernel.
24925         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
24926         (qset_acl): Implement for NonStop Kernel.
24927         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
24928         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
24929         (main): Implement for NonStop Kernel.
24930         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
24931         Kernel. Handle this flavor.
24932         * tests/test-set-mode-acl.sh: Likewise.
24933         * tests/test-copy-acl.sh: Likewise.
24934         * tests/test-copy-file.sh: Likewise.
24935
24936 2010-10-03  Bruno Haible  <bruno@clisp.org>
24937
24938         Info about ACLs on NonStop Kernel.
24939         * doc/acl-resources.txt: Add info about NonStop Kernel.
24940         References by Joachim Schmitz <schmitz@hp.com>.
24941
24942 2010-10-02  Bruno Haible  <bruno@clisp.org>
24943
24944         Define missing EDQUOT on NonStop Kernel.
24945         * lib/errno.in.h (EDQUOT): Assign a value if missing.
24946         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
24947         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
24948         missing.
24949         * doc/posix-headers/errno.texi: Mention the NSK bug.
24950         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
24951         Reported by Joachim Schmitz <schmitz@hp.com>.
24952
24953 2010-10-02  Bruno Haible  <bruno@clisp.org>
24954
24955         Update doc for POSIX:2008.
24956         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
24957         Update URL of POSIX specification.
24958
24959 2010-10-02  Bruno Haible  <bruno@clisp.org>
24960
24961         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
24962         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
24963         from gnulib, not from Automake.
24964
24965 2010-10-02  Bruno Haible  <bruno@clisp.org>
24966
24967         New module 'system-posix'.
24968         * modules/system-posix: New file.
24969         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
24970         module is present.
24971         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
24972         GNULIB_SYSTEM_POSIX.
24973         * modules/stdlib (Depends-on): Remove sys_wait.
24974         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
24975         * doc/posix-functions/system.texi: Mention the new module.
24976         * doc/posix-headers/stdlib.texi: Likewise.
24977         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
24978         define test_sys_wait_macros to a no-op.
24979         Reported by Sam Steingold <sds@gnu.org>.
24980
24981 2010-09-30  Bruno Haible  <bruno@clisp.org>
24982
24983         More renaming from 'getdate' to 'get_date'.
24984         * doc/get_date.texi: Renamed from doc/getdate.texi.
24985         * modules/get_date (Files): Update.
24986         * MODULES.html.sh (Date and time <time.h>): Update.
24987         * DEPENDENCIES: Update.
24988         * gnulib-tool: Update comment.
24989         * m4/bison.m4 (gl_BISON): Likewise.
24990         * m4/get_date.m4 (gl_GET_DATE): Likewise.
24991
24992 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
24993
24994         bootstrap: support ACLOCAL_FLAGS during aclocal
24995         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
24996         can add additional -I dir for third-party .m4 files.
24997
24998 2010-09-30  Eric Blake  <eblake@redhat.com>
24999
25000         bootstrap: use glibtoolize on MacOS
25001         * build-aux/bootstrap (check_versions): Convert libtool into
25002         libtoolize.
25003         (tool search): Move libtool check earlier, and look for
25004         glibtoolize for MacOS.
25005         (gnulib_tool_options): Auto-add --libtool when appropriate.
25006         Reported by Justin Clift.
25007
25008         poll: fix typo that broke test on MacOS
25009         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
25010         Reported by Justin Clift.
25011
25012         getdate: rename to get_date
25013         Note: getdate.h is not renamed, to minimize client impact.
25014         * modules/getdate: Mark obsolete.  Move old contents...
25015         * modules/get_date: ...to new module name.
25016         * modules/getdate-tests: Move...
25017         * modules/get_date-tests: ...here.
25018         * m4/getdate.m4: Move...
25019         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
25020         * lib/getdate.y: Move...
25021         * lib/get_date.y: ...here.
25022         * tests/test-getdate.c: Move...
25023         * tests/test-get_date.c: ...here.
25024         * doc/posix-functions/getdate.texi (getdate): Update name.
25025         * NEWS: Mention the change.
25026
25027 2010-09-29  Bruno Haible  <bruno@clisp.org>
25028
25029         Separate the module 'waitpid' from the module 'sys_wait'.
25030         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
25031         present.
25032         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
25033         gl_MODULE_INDICATOR_FOR_TESTS.
25034         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
25035         * modules/sys_wait (Depends-on): Remove waitpid.
25036         (Makefile.am): Substitute GNULIB_WAITPID.
25037         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
25038         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
25039         signature only if the 'waitpid' module is present.
25040         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
25041         * NEWS: Mention the change.
25042         * modules/grantpt (Depends-on): Add waitpid.
25043         * modules/wait-process (Depends-on): Likewise.
25044
25045 2010-09-29  Bruno Haible  <bruno@clisp.org>
25046
25047         More tests for module 'sys_wait'.
25048         * modules/sys_wait-c++-tests: New file.
25049         * tests/test-sys_wait-c++.cc: New file.
25050         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
25051         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
25052
25053 2010-09-29  Bruno Haible  <bruno@clisp.org>
25054
25055         New module 'waitpid'.
25056         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
25057         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
25058         Don't include <process.h>.
25059         (waitpid): Declare only, using modern idiom.
25060         * m4/waitpid.m4: New file.
25061         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
25062         * modules/waitpid: New file.
25063         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
25064         (Makefile.am): Update.
25065         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
25066
25067 2010-09-28  Bruno Haible  <bruno@clisp.org>
25068
25069         poll: Assume ANSI C.
25070         * lib/poll.c (poll): Use an ANSI C declaration.
25071
25072 2010-09-28  Bruno Haible  <bruno@clisp.org>
25073
25074         poll-h: Create poll.h on all platforms.
25075         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
25076         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
25077         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
25078         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
25079         (gl_REPLACE_POLL_H): Don't set POLL_H.
25080         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
25081         * modules/poll-h (Depends-on): Add include_next.
25082         (Makefile.am): Create poll.h unconditionally. Substitute also
25083         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
25084
25085 2010-09-28  Bruno Haible  <bruno@clisp.org>
25086
25087         Tests for module 'poll-h'.
25088         * modules/poll-h-c++-tests: New file.
25089         * tests/test-poll-h-c++.cc: New file.
25090
25091         Tests for module 'poll-h'.
25092         * modules/poll-h-tests: New file.
25093         * tests/test-poll-h.c: New file.
25094
25095 2010-09-28  Bruno Haible  <bruno@clisp.org>
25096
25097         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
25098         * modules/poll-h (Depends-on): Add 'extensions'.
25099
25100 2010-09-28  Bruno Haible  <bruno@clisp.org>
25101
25102         New module 'poll-h'.
25103         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
25104         (poll): Use modern idiom.
25105         * modules/poll-h: New file.
25106         * modules/poll (Files): Remove lib/poll.in.h.
25107         (Depends-on): Add poll-h.
25108         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
25109         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
25110         * m4/poll_h.m4: New file.
25111         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
25112         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
25113         and invoke gl_REPLACE_POLL_H.
25114         * lib/poll.c: Use common idiom.
25115         * tests/test-poll.c: Likewise.
25116         * doc/posix-headers/poll.texi: Mention the poll-h module.
25117         Suggested by Eric Blake.
25118
25119 2010-09-26  Bruno Haible  <bruno@clisp.org>
25120
25121         sys_wait: Implement WSTOPSIG.
25122         * lib/sys_wait.in.h (WSTOPSIG): New macro.
25123         Reported by Simon Josefsson.
25124
25125 2010-09-26  Simon Josefsson  <simon@josefsson.org>
25126
25127         stdlib, sys_wait: Avoid compilation error on mingw.
25128         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
25129
25130 2010-09-26  Bruno Haible  <bruno@clisp.org>
25131
25132         stdlib tests: Avoid code duplication.
25133         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
25134         * modules/sys_wait-tests (Files): Likewise.
25135         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
25136         * tests/test-stdlib.c: Include test-sys_wait.h.
25137         (main): Invoke test_sys_wait_macros.
25138         * tests/test-sys_wait.c: Include test-sys_wait.h.
25139         (main): Invoke test_sys_wait_macros.
25140
25141 2010-09-25  Simon Josefsson  <simon@josefsson.org>
25142
25143         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
25144         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
25145         sure Windows sockets are working before calling getaddrinfo.
25146         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
25147         * doc/gnulib.texi (Windows sockets): Fix typo.
25148
25149 2010-09-25  Bruno Haible  <bruno@clisp.org>
25150
25151         Tests for module 'regex-quote'.
25152         * modules/regex-quote-tests: New file.
25153         * tests/test-regex-quote.c: New file.
25154
25155         New module 'regex-quote'.
25156         * lib/regex-quote.h: New file.
25157         * lib/regex-quote.c: New file.
25158         * modules/regex-quote: New file.
25159         Suggested by Reuben Thomas <rrt@sc3d.org>.
25160
25161 2010-09-24  Bruno Haible  <bruno@clisp.org>
25162
25163         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
25164         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
25165
25166 2010-09-23  Bruno Haible  <bruno@clisp.org>
25167
25168         setenv: Relax license.
25169         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
25170         Blake.
25171         Requested by Eric Blake.
25172
25173 2010-09-22  Bruno Haible  <bruno@clisp.org>
25174
25175         termios: Relax license.
25176         * modules/termios (License): Change to LGPLv2+.
25177         Requested by Eric Blake.
25178
25179 2010-09-22  Bruno Haible  <bruno@clisp.org>
25180
25181         threadlib: Allow the package to change the default to 'no'.
25182         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
25183         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
25184         Reported by Paul Eggert.
25185
25186 2010-09-22  Pádraig Brady  <P@draigbrady.com>
25187             Bruno Haible  <bruno@clisp.org>
25188
25189         Fix endless loop in mbmemcasecoll.
25190         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
25191         byte.
25192         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
25193
25194 2010-09-22  Bruno Haible  <bruno@clisp.org>
25195
25196         Tests for module 'memcoll'.
25197         * modules/memcoll-tests: New file.
25198         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
25199
25200         memcoll, xmemcoll: Clarify size vs. length.
25201         * modules/memcoll.c (memcoll0): Clarify specification.
25202         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
25203         passed to collate_error.
25204
25205 2010-09-22  Bruno Haible  <bruno@clisp.org>
25206
25207         Tests for module 'memcasecmp'.
25208         * modules/memcasecmp-tests: New file.
25209         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
25210
25211 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
25212
25213         * lib/pthread.in.h: Add split double-inclusion guard, and include
25214         system <pthread.h> if there is one.  Use @@-style as in other
25215         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
25216         pthread.h doesn't.
25217         (pthread_mutexattr_destroy, pthread_mutexattr_init):
25218         (pthread_mutexattr_settype, pthread_mutex_trylock):
25219         New static inline functions, if there's no system <pthread.h>.
25220         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
25221         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
25222         Approximate with mutexes if the system lacks spinlocks, as in
25223         MacOS.
25224         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
25225         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
25226         @@-style.  Check for spinlocks separately.
25227         (gl_PTHREAD_DEFAULTS): New macro.
25228         * modules/pthread: Redo to use a more typical style for in.h files.
25229
25230 2010-09-21  Eric Blake  <eblake@redhat.com>
25231
25232         net_if: enhance tests
25233         * tests/test-net_if.c (main): Move signature checks earlier.
25234         Print failures to stderr.
25235         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
25236         Document the bug that we do not yet fix.
25237
25238 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
25239
25240         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
25241         about gnulib, not GSS.
25242
25243 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
25244
25245         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
25246         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
25247         for Emacs.
25248         * build-aux/pmccabe2html: Make Makefile.am example code more
25249         cut-and-paste friendly.
25250
25251 2010-09-21  Simon Josefsson  <simon@josefsson.org>
25252
25253         * tests/test-net_if.c: New file.
25254         * modules/net_if-tests: New file.
25255
25256 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
25257
25258         pthread: add pthread_spin_destroy
25259         * lib/pthread.in.h (pthread_spin_destroy): New function.
25260
25261 2010-09-19  Bruno Haible  <bruno@clisp.org>
25262
25263         gnulib-tool: Fix --help output.
25264         * gnulib-tool (func_usage): Fix help message.
25265         Reported by Reuben Thomas <rrt@sc3d.org>.
25266
25267 2010-09-18  Jim Meyering  <meyering@redhat.com>
25268
25269         maint.mk: avoid unexpanded \n in two diagnostics
25270         * top/maint.mk (sc_prohibit_always_true_header_tests):
25271         Don't use a literal \n in a halt=... assignment.  It would not be
25272         expanded, and the two \n bytes would appear in the diagnostic output
25273         rather than the desired newline.  Use halt=$$(printf ... instead.
25274         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
25275
25276 2010-09-18  Bruno Haible  <bruno@clisp.org>
25277
25278         netinet_in: Doc tweak.
25279         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
25280         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25281
25282 2010-09-18  Jim Meyering  <meyering@redhat.com>
25283
25284         init.sh: correct an outdated comment
25285         * tests/init.sh (create_exe_shims_):  s/function/alias/
25286
25287         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
25288         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
25289         a file named "*.exe" is removed between the glob expansion and the
25290         processing of that oddly named file.
25291
25292 2010-09-17  Eric Blake  <eblake@redhat.com>
25293
25294         mirbsd: add some more support
25295         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
25296         in BSD family.
25297         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
25298         devices as OpenBSD.
25299         * m4/host-os.m4 (mirbsd): Add MirBSD.
25300
25301         tests: fix unportable assumption on sys/wait.h
25302         * tests/test-sys_wait.c (main): Relax test.
25303         * tests/test-stdlib.c (main): Likewise.
25304
25305         init.sh: accomodate directory with no .exes
25306         * tests/init.sh: Accomodate directory containing only scripts.
25307
25308         tests: avoid compiler warning
25309         * tests/test-stdlib.c (main): Use the variable.
25310
25311         fdutimens, fdutimensat: update signature, again
25312         * lib/utimens.h (gl_futimens): Delete, and move signature...
25313         (fdutimens): ...here.
25314         (fdutimensat): Rearrange signature.
25315         (lutimensat): Rename variable for clarity.
25316         * lib/fdutimensat.c (fdutimensat): Update signature.
25317         * lib/utimens.c (fdutimens): Likewise.
25318         (gl_futimens): Delete.
25319         (utimens, lutimens): Update callers.
25320         * lib/futimens.c (futimens): Likewise.
25321         * tests/test-fdutimensat.c: Likewise.
25322         * tests/test-utimens.c: Likewise.
25323         * tests/test-futimens.h: Update comment.
25324         * NEWS: Mention this.
25325         Suggested by Paul Eggert.
25326
25327 2010-09-17  Bruno Haible  <bruno@clisp.org>
25328
25329         Take over the maintenance of some older macros from Autoconf.
25330         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
25331         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
25332         GNU Autoconf.
25333         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
25334         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
25335
25336 2010-09-17  Eric Blake  <eblake@redhat.com>
25337
25338         fdutimensat: drop atflag validation
25339         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
25340         with valid fd, to close a race scenario where futimens is
25341         unsupported and FILE was replaced by a symlink.
25342         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
25343         accordingly.
25344         Suggested by Paul Eggert.
25345
25346 2010-09-16  Bruno Haible  <bruno@clisp.org>
25347
25348         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
25349         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
25350
25351 2010-09-16  Bruno Haible  <bruno@clisp.org>
25352
25353         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
25354         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
25355         login_tty exists.
25356         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25357
25358 2010-09-16  Bruno Haible  <bruno@clisp.org>
25359
25360         login_tty: Make the replacement code work on BSD systems.
25361         * lib/login_tty.c: Include <sys/ioctl.h>.
25362         (login_tty): Use ioctl TIOCSCTTY when available.
25363         * modules/login_tty (Depends-on): Add sys_ioctl.
25364         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25365
25366 2010-09-16  Bruno Haible  <bruno@clisp.org>
25367
25368         login_tty: Stricter unit test.
25369         * modules/login_tty-tests (Depends-on): Add tcgetsid.
25370         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
25371         and tcgetsid() after login_tty.
25372         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25373
25374 2010-09-16  Bruno Haible  <bruno@clisp.org>
25375
25376         New module 'tcgetsid'.
25377         * lib/tcgetsid.c: New file.
25378         * m4/tcgetsid.m4: New file.
25379         * modules/tcgetsid: New file.
25380         * modules/termios (Depends-on): Add c++defs, warn-on-use.
25381         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
25382         GNULIB_TCGETSID, HAVE_TCGETSID.
25383         * lib/termios.in.h: Include <sys/types.h>.
25384         (tcgetsid): New declaration.
25385         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
25386         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
25387         * doc/posix-functions/tcgetsid.texi: Mention the new module.
25388         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
25389
25390 2010-09-16  Bruno Haible  <bruno@clisp.org>
25391
25392         Tests for module 'termios'.
25393         * modules/termios-c++-tests: New file.
25394         * modules/termios-tests: New file.
25395         * tests/test-termios-c++.cc: New file.
25396         * tests/test-termios.c: New file.
25397
25398         New module 'termios'.
25399         * modules/termios: New file.
25400         * lib/termios.in.h: New file.
25401         * m4/termios_h.m4: New file.
25402         * doc/posix-headers/termios.texi: Mention the new module.
25403
25404 2010-09-16  Eric Blake  <eblake@redhat.com>
25405
25406         fdutimensat: add an atflag parameter
25407         * lib/fdutimensat.c (fdutimensat): Add new parameter.
25408         * lib/utimens.h (fdutimensat): Update prototype.
25409         * tests/test-fdutimensat.c: Adjust test to match.
25410         * NEWS: Document the change.
25411         Suggested by Paul Eggert.
25412
25413 2010-09-16  Bruno Haible  <bruno@clisp.org>
25414
25415         Fix typos in comments.
25416         * lib/striconveh.h: Fix typo in comment.
25417         * lib/login_tty.c (login_tty): Likewise.
25418
25419 2010-09-15  Bruno Haible  <bruno@clisp.org>
25420
25421         stdlib: clarify MirBSD WEXITSTATUS bug
25422         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
25423         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25424
25425 2010-09-15  Eric Blake  <eblake@redhat.com>
25426
25427         stdlib: work around MirBSD WEXITSTATUS bug
25428         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
25429         * modules/stdlib (Depends-on): Add sys_wait.
25430         * tests/test-sys_wait.c (main): Enhance test.
25431         * tests/test-stdlib.c (main): Likewise.
25432         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
25433
25434         docs: mention MacOS issue with WEXITSTATUS(constant)
25435         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
25436         issue.
25437         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25438
25439         strnlen: add tests
25440         * modules/strnlen-tests: New file.
25441         * tests/test-strnlen.c: Likewise.
25442
25443 2010-09-14  Bruno Haible  <bruno@clisp.org>
25444
25445         unistr/base: Avoid link errors when module 'libunistring' is also used.
25446         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
25447         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
25448         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
25449         Declare also when HAVE_LIBUNISTRING is set.
25450         Reported by Pádraig Brady <P@draigbrady.com>.
25451
25452 2010-09-14  Eric Blake  <eblake@redhat.com>
25453
25454         test-rawmemchr: make more robust
25455         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
25456         (Depends-on, configure.ac): Add needed prerequisites to use it.
25457         * modules/memchr-tests (Files, Depends-on, configure.ac):
25458         Likewise, to avoid implicit reliance on memchr module prereqs.
25459         * tests/test-memchr.c (main): Ensure proper masking.
25460         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
25461         reads.
25462
25463         memchr: detect glibc Alpha bug
25464         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
25465         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
25466         Alpha.
25467         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
25468         * tests/test-memchr.c (main): Enhance test.
25469         Reported by Nelson H. F. Beebe.
25470
25471 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
25472
25473         fts, getcwd, glob: audit for dirfd returning -1
25474         * lib/fts.c (opendir): Remove #define; no longer used.
25475         (opendirat): New arg PDIR_FD.  All callers changed.
25476         (fts_build, _opendir2): Use new opendirat to avoid the need for
25477         dirfd, or for checking whether dirfd returns a negative value.
25478         Don't use opendir; always use openat followed by fdopendir.
25479         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
25480         it.
25481         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
25482         returns -1 here.
25483         * modules/fts (Depends-on): Remove dirfd.
25484         * modules/getcwd (Depends-on): Likewise.
25485
25486 2010-09-13  Eric Blake  <eblake@redhat.com>
25487
25488         float: fix broken MirBSD header
25489         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
25490         * doc/posix-headers/float.texi (float.h): Document it.
25491
25492 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
25493
25494         fts: use O_NOFOLLOW to avoid race condition when opening a directory
25495         * lib/fts.c (opendirat): New arg extra_flags.
25496         (__opendir2): Use it to avoid following symlinks when opening
25497         a directory, if symlinks are not supposed to be followed.  See
25498         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
25499
25500         fdopendir: preserve argument fd before returning
25501         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
25502         (fdopendir_with_dup, fd_clone_opendir): New static functions.
25503         (fdopendir): Use them, arranging for FD to be open to the same
25504         directory that it was when it started.  (It might be temporarily
25505         closed while fdopendir is running, so this not thread- or
25506         signal-safe.)  Be careful to do the right thing even when file
25507         descriptors are scarce and dup fails with errno == EMFILE.  See
25508         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
25509
25510 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
25511
25512         regex: Pass the system regex if its only problem is 32-bit regoff_t.
25513         * NEWS: Document change.
25514         * m4/regex.m4: Disable test for regoff_t size.
25515
25516 2010-09-13  Jim Meyering  <meyering@redhat.com>
25517
25518         fts: don't operate on an invalid file descriptor after failed dup
25519         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
25520         negative file descriptor.
25521
25522 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
25523
25524         savedir: add streamsavedir, deprecate fdsavedir
25525         * NEWS: Mention deprecation of fdsavedir.
25526         * lib/savedir.c (streamsavedir): New extern function, whose name
25527         ends in "savedir" to be consistent with the others.  This differs
25528         from savedirstream in that it doesn't close its argument.  The
25529         next version of GNU tar will use this instead of fdsavedir, to
25530         avoid some race conditions and conserve file descriptors.
25531         (savedirstream): Reimplement as a wrapper around streamsavedir.
25532         (fdsavedir): Add a comment deprecating this function.  As far as
25533         I know, only GNU tar used it, and GNU tar doesn't need it any more.
25534         * lib/savedir.h (streamsavedir): New decl.
25535         (fdsavedir): Add a comment deprecating this.
25536
25537 2010-09-10  Bruno Haible  <bruno@clisp.org>
25538
25539         langinfo: Fix last commit.
25540         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
25541         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
25542         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25543
25544 2010-09-10  Bruno Haible  <bruno@clisp.org>
25545
25546         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
25547         * lib/progreloc.c (O_EXEC): Define fallback.
25548
25549 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
25550
25551         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
25552         * NEWS: Document recent changes to fcntl-h.
25553         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
25554         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
25555         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
25556         Similarly for O_SEARCH; this last was already true, but not documented.
25557         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
25558         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
25559         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
25560         Likewise.
25561         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
25562         is zero, not whether it is defined.
25563         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
25564         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
25565         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
25566
25567 2010-09-10  Bruno Haible  <bruno@clisp.org>
25568
25569         langinfo, nl_langinfo: Fix for IRIX 5.3.
25570         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
25571         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
25572         HAVE_LANGINFO_YESEXPR.
25573         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
25574         HAVE_LANGINFO_YESEXPR.
25575         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
25576         HAVE_LANGINFO_T_FMT_AMPM is 0.
25577         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
25578         HAVE_LANGINFO_YESEXPR is 0.
25579         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
25580         NOEXPR.
25581         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
25582         * doc/posix-functions/nl_langinfo.texi: Likewise.
25583         Reported by Eric Blake.
25584
25585 2010-09-10  Bruno Haible  <bruno@clisp.org>
25586
25587         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
25588         * doc/glibc-functions/login_tty.texi: Mention the include file problem
25589         on FreeBSD 8.0 and OpenBSD 4.6.
25590         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
25591         * m4/pty_h.m4 (gl_PTY_H): Likewise.
25592         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
25593         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
25594         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
25595         ac_includes_default.
25596         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25597
25598 2010-09-09  Eric Blake  <eblake@redhat.com>
25599
25600         strsignal: work around NetBSD bug
25601         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
25602         * lib/string.in.h (includes): Likewise.
25603         * doc/posix-functions/strsignal.texi (strsignal): Document the
25604         bug.
25605         Reported by Nelson H. F. Beebe.
25606
25607         gnulib-tool: work with NetBSD /bin/sh
25608         * gnulib-tool (func_cache_var, func_cache_lookup_module)
25609         (func_get_description, func_get_comment, func_get_status)
25610         (func_get_notice, func_get_applicability, func_get_filelist)
25611         (func_get_dependencies, func_get_autoconf_early_snippet)
25612         (func_get_autoconf_snippet, func_get_automake_snippet)
25613         (func_get_include_directive, func_get_link_directive)
25614         (func_get_license, func_get_maintainer, func_import): Avoid
25615         shell syntax errors from parsing syntax extensions.
25616
25617 2010-09-09  Bruno Haible  <bruno@clisp.org>
25618
25619         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
25620         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
25621         a reliable way to determine whether the 'alias' command works.
25622
25623 2010-09-08  Jim Meyering  <meyering@redhat.com>
25624
25625         init.sh: penalize a set-x-impaired shell; don't disqualify it
25626         * tests/init.sh: Too many shells corrupt application stderr when
25627         you set -x, so we can't afford to disqualify them, since at least
25628         on Irix-6.5, that would disqualify all bourne shells.
25629         Instead, use a two-pass approach.
25630         On the first pass, try to find a shell that meets the stricter
25631         condition that set -x does not corrupt stderr.
25632         If no shell meets the stricter condition, retest each candidate
25633         shell, but without that extra condition.  Finally, when
25634         VERBOSE=yes is requested and set -x might cause trouble, simply
25635         issue a warning and refrain from enabling debug output.
25636
25637 2010-09-08  Eric Blake  <eblake@redhat.com>
25638
25639         unsetenv: fix OpenBSD bug
25640         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
25641         * doc/posix-functions/unsetenv.texi (unsetenv): Update
25642         documentation.
25643         Reported by Jim Meyering.
25644
25645         strtod: work around IRIX 6.5 bug
25646         * lib/strtod.c (strtod): Reparse number on shorter string if
25647         exponent parse was invalid.
25648         * tests/test-strtod.c (main): Add check for "0x1p 2".
25649         Reported by Tom G. Christensen.
25650
25651         getopt: optimize previous patch
25652         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
25653         empty variable.  Speed up awk script.
25654         Reported by Paolo Bonzini.
25655
25656 2010-09-08  Jim Meyering  <meyering@redhat.com>
25657
25658         test.sh: disqualify shells for which set -x corrupts stderr
25659         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
25660         and OpenBSD 4.7.  They make it so with "set -x", environment settings
25661         appear in stderr output.  For example, this command:
25662             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
25663         prints "P=1" on those two systems:
25664
25665 2010-09-08  Bruno Haible  <bruno@clisp.org>
25666
25667         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
25668         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
25669         commands, because some shells ignore redirections when there is an
25670         error in the command lookup.
25671         Reported by Eric Blake.
25672
25673 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
25674
25675         * lib/regex.h: Fix a mention of `regex_compile' (should be
25676         `re_compile_pattern').
25677         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
25678         (re_set_registers): Correct name of parameter in comment.
25679
25680         * doc/regex.texi: Add documentation for missing syntax flags.
25681         Remove commented-out documentation of defunct syntax option
25682         RE_NO_EMPTY_ALTS.
25683         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
25684         Add documentation of re_set_registers.
25685         Document trick to re-use a pattern buffer by setting fastmap manually.
25686         Update documentation of struct re_pattern_buffer per public members.
25687         Uncomment documentation of equivalence class operators and
25688         collating symbol operators, since they are now implemented,
25689         Explain leftmost-longest matching in relation to alternatives.
25690         Tidy documentation of substring matching.
25691         Remove POSIX documentation, which is done better in
25692         glibc, and refer the reader there. Keep BSD API documentation, as
25693         that is not readily available elsewhere.
25694
25695 2010-09-07  Eric Blake  <eblake@redhat.com>
25696
25697         getopt: handle POSIXLY_CORRECT set but not exported
25698         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
25699         export state of POSIXLY_CORRECT, due to bash set -o posix.
25700         Reported by Dustin J. Mitchell.
25701
25702 2010-09-05  Bruno Haible  <bruno@clisp.org>
25703
25704         gnulib-tool: Highlight the changed options.
25705         * gnulib-tool (func_usage): Display the --import, --add-import,
25706         --remove-import explanations in bold font.
25707
25708 2010-09-06  Karl Berry  <karl@gnu.org>
25709
25710         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
25711
25712 2010-09-05  Bruno Haible  <bruno@clisp.org>
25713
25714         uniwidth/width: Update comment.
25715         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
25716         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
25717
25718 2010-09-05  Bruno Haible  <bruno@clisp.org>
25719
25720         isinf, isnan: Relax license.
25721         * modules/isinf (License): Change from GPL to LGPL, with consent from
25722         Ben Pfaff.
25723         * modules/isnan (License): Likewise.
25724         Requested by Ludovic Courtès.
25725
25726 2010-09-04  Bruno Haible  <bruno@clisp.org>
25727
25728         gnulib-tool: Help migration from --import to --add-import or --update.
25729         * gnulib-tool: Emit a verbose error message when --import is used
25730         without any module name.
25731
25732 2010-09-04  Bruno Haible  <bruno@clisp.org>
25733
25734         Update doc about gnulib-tool.
25735         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
25736         'gnulib-tool --update' in more detail.
25737         Reported by Eric Blake.
25738
25739 2010-09-04  Bruno Haible  <bruno@clisp.org>
25740
25741         gnulib-tool: Change --import. New options --add/remove-import.
25742         * gnulib-tool: New options --add-import, --remove-import.
25743         (func_usage): Document them.
25744         (have_associative): Define always.
25745         (func_import): In import mode, don't merge the specified settings with
25746         the cached settings. Implement remove-import mode.
25747         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
25748         Explain when to use them versus --import.
25749         (Simple update): Use --add-import instead of --import.
25750         * NEWS: Mention the change.
25751
25752 2010-09-04  Bruno Haible  <bruno@clisp.org>
25753
25754         * doc/gnulib-tool.texi (Initial import): Update paragraph about
25755         separate gnulib.mk.
25756
25757 2010-09-04  Bruno Haible  <bruno@clisp.org>
25758
25759         gnulib-tool: Don't talk about CVS any more.
25760         * gnulib-tool (func_usage, func_import): Write "version control"
25761         instead of CVS.
25762
25763 2010-09-04  Jim Meyering  <meyering@redhat.com>
25764
25765         maint.mk: avoid obscure sc_copyright_check failure in coreutils
25766         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
25767         false positives (whose names may be ill-chosen) when searching
25768         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
25769         would cause a false-positive.
25770
25771         avoid coreutils "make distcheck" failure
25772         Coreutils tests with an absolute build directory name that contains
25773         a space.  Not quoting this directory name caused a failure.
25774         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
25775         * tests/test-vc-list-files-cvs.sh: Likewise.
25776
25777 2010-09-04  Bruno Haible  <bruno@clisp.org>
25778
25779         gnulib-tool: Avoid error when run in a package without Makefile.am.
25780         * gnulib-tool: When collecting the m4dirs in a package that does not
25781         have a Makefile.am, eliminate those directories that contain no
25782         gnulib-cache.m4. Fix expression that counts these directories.
25783
25784 2010-09-04  Bruno Haible  <bruno@clisp.org>
25785
25786         update-copyright test: Improve output when perl is missing or too old.
25787         * tests/test-update-copyright.sh: Move test of Perl version down after
25788         the test whether Perl exists. Provide an explanation relating Perl's
25789         error message to Automake's SKIP: message.
25790
25791 2010-09-04  Bruno Haible  <bruno@clisp.org>
25792
25793         Don't augment PATH in TESTS_ENVIRONMENT.
25794         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
25795         set abs_aux_dir instead of augmenting PATH.
25796         * modules/vc-list-files-tests (Makefile.am): Likewise.
25797         * tests/test-update-copyright.sh: Augment PATH here.
25798         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
25799         path_prepend_.
25800         * tests/test-vc-list-files-git.sh: Likewise.
25801
25802 2010-09-04  Jim Meyering  <meyering@redhat.com>
25803
25804         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
25805         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
25806
25807 2010-09-04  Bruno Haible  <bruno@clisp.org>
25808
25809         strdup: Fix compilation error in C++ mode.
25810         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
25811         the macro.
25812
25813 2010-09-04  Bruno Haible  <bruno@clisp.org>
25814
25815         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
25816         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
25817         macro into a function.
25818         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25819
25820 2010-09-04  Bruno Haible  <bruno@clisp.org>
25821
25822         Set PATH_SEPARATOR the same way autoconf does.
25823         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
25824         the value of PATH_SEPARATOR the same way autoconf-generated configure
25825         scripts do.
25826         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
25827         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
25828
25829 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
25830
25831         Set PATH_SEPARATOR the same way autoconf does.
25832         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
25833         the same way autoconf-generated configure scripts do.
25834         * posix-modules: Likewise.
25835
25836 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
25837
25838         hash: fix safe_hasher const typo
25839         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
25840         const; otherwise, there is a type error later.
25841
25842 2010-09-02  Jim Meyering  <meyering@redhat.com>
25843
25844         test-update-copyright.sh: require perl 5.8.0
25845         * tests/test-update-copyright.sh: Require 5.8.0,
25846         which Tom G. Christensen has confirmed is adequate,
25847         while 5.6.1 is not.
25848
25849 2010-09-02  Eric Blake  <eblake@redhat.com>
25850
25851         tests: init.sh improvements for re-exec'ing with zsh
25852         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
25853         -vx through shell re-exec.
25854         Reported by Tom G. Christensen.
25855
25856         wctype: fix typo in previous commit
25857         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
25858         Reported by Ludovic Courtès.
25859
25860 2010-09-02  Jim Meyering  <meyering@redhat.com>
25861
25862         test-update-copyright.sh: skip test if Perl is too old
25863         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
25864         Reported by Tom G. Christensen.
25865
25866 2010-09-02  Bruno Haible  <bruno@clisp.org>
25867
25868         wctype: Avoid compilation error on IRIX 6.5.30.
25869         * lib/wctype.in.h (iswblank): Declare with a replacement if
25870         REPLACE_ISWBLANK is set.
25871         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
25872         declared. Set REPLACE_ISWBLANK.
25873         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
25874         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
25875         * doc/posix-headers/wctype.texi: Likewise.
25876         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25877
25878 2010-09-01  Bruno Haible  <bruno@clisp.org>
25879
25880         New module 'socketlib'.
25881         * modules/socketlib: New file.
25882         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
25883         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
25884         * modules/sockets (Depends-on): Add socketlib.
25885         Suggested by Sam Steingold <sds@gnu.org>.
25886
25887 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
25888
25889         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
25890
25891         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
25892         when one needs search access to a directory but not read access.
25893         On systems where it is available, it works in some cases where
25894         O_RDONLY does not, namely on directories that are searchable but
25895         not readable, and which need only to be searchable.  If O_SEARCH
25896         is not available, fall back to the traditional method of using
25897         O_RDONLY.
25898
25899         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
25900         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
25901         when opening a directory that needs only to be searchable.
25902         * lib/chdir-safer.c (chdir_no_follow): Likewise.
25903         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
25904         * lib/openat-proc.c (openat_proc_name): Likewise.
25905         * lib/openat.c (openat_needs_fchdir): Likewise.
25906         * lib/save-cwd.c (save_cwd): Likewise.
25907         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
25908
25909 2010-08-28  Bruno Haible  <bruno@clisp.org>
25910
25911         New module 'host-cpu-c-abi'.
25912         * modules/host-cpu-c-abi: New file.
25913         * m4/host-cpu-c-abi.m4: New file, based on part of
25914         clisp/src/m4/general.m4.
25915         Requested by Sam Steingold <sds@gnu.org>.
25916
25917 2010-08-31  Eric Blake  <eblake@redhat.com>
25918         and Jim Meyering  <meyering@redhat.com>
25919
25920         hash: factor, and guard against misbehaving hasher function
25921         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
25922         of table->hasher's return value.  Also protect against a hash value
25923         so large that adding it to table->bucket results in a NULL pointer.
25924         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
25925         Use it in place of open-coded check-and-abort.
25926
25927 2010-08-30  Bruno Haible  <bruno@clisp.org>
25928
25929         hash: silence spurious clang warning
25930         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
25931         Reported by Eric Blake.
25932
25933 2010-08-30  Eric Blake  <eblake@redhat.com>
25934
25935         strstr, memmem, strcasestr: avoid leaked shell message
25936         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
25937         FreeBSD.
25938         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25939         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
25940
25941         tests: silence clang warning
25942         * tests/test-malloca.c (do_allocation): Avoid dead store.
25943
25944 2010-08-29  Bruno Haible  <bruno@clisp.org>
25945
25946         gettext: Fix recent mistake.
25947         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
25948
25949 2010-08-29  Bruno Haible  <bruno@clisp.org>
25950
25951         selinux-h: Offer a --without-selinux option.
25952         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
25953         --without-selinux was specified, skip all tests and define
25954         HAVE_SELINUX_SELINUX_H to 0.
25955         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
25956         set LIB_SELINUX to empty.
25957         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
25958         gl_LIBSELINUX. If --without-selinux was specified, replace
25959         selinux/context.h.
25960         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
25961
25962 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25963             Bruno Haible  <bruno@clisp.org>
25964
25965         Make the module 'realloc-gnu' work again on AIX and OSF/1.
25966         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
25967         of HAVE_REALLOC.
25968         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
25969         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
25970         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
25971         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
25972
25973 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25974             Bruno Haible  <bruno@clisp.org>
25975
25976         Make the module 'calloc-gnu' work again on AIX and OSF/1.
25977         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
25978         HAVE_CALLOC.
25979         * lib/xmalloc.c: Update accordingly.
25980         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
25981         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
25982         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
25983
25984 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25985             Bruno Haible  <bruno@clisp.org>
25986
25987         Make the module 'malloc-gnu' work again on AIX and OSF/1.
25988         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
25989         HAVE_MALLOC.
25990         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
25991         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
25992         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
25993
25994 2010-08-29  Bruno Haible  <bruno@clisp.org>
25995
25996         Update modules list.
25997         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
25998         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
25999         (String handling <string.h>): Add astrxfrm.
26000         (File system functions): Add readlinkat.
26001
26002 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26003
26004         Tests for module 'realloc-gnu'.
26005         * modules/realloc-gnu-tests: New file.
26006         * tests/test-realloc-gnu.c: New file.
26007
26008         Tests for module 'calloc-gnu'.
26009         * modules/calloc-gnu-tests: New file.
26010         * tests/test-calloc-gnu.c: New file.
26011
26012         Tests for module 'malloc-gnu'.
26013         * modules/malloc-gnu-tests: New file.
26014         * tests/test-malloc-gnu.c: New file.
26015
26016 2010-08-28  Bruno Haible  <bruno@clisp.org>
26017
26018         Rename module 'realloc' -> 'realloc-gnu'.
26019         * modules/realloc-gnu: New file, copied from modules/realloc.
26020         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
26021         obsolete.
26022         * modules/mgetgroups (Depends-on): Update.
26023         * doc/posix-functions/realloc.texi: Update.
26024         * NEWS: Mention the change.
26025
26026         Rename module 'calloc' -> 'calloc-gnu'.
26027         * modules/calloc-gnu: New file, copied from modules/calloc.
26028         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
26029         obsolete.
26030         * doc/posix-functions/calloc.texi: Update.
26031         * NEWS: Mention the change.
26032
26033         Rename module 'malloc' -> 'malloc-gnu'.
26034         * modules/malloc-gnu: New file, copied from modules/malloc.
26035         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
26036         obsolete.
26037         * modules/argp (Depends-on): Update.
26038         * modules/regex (Depends-on): Update.
26039         * doc/posix-functions/malloc.texi: Update.
26040         * NEWS: Mention the change.
26041
26042 2010-08-28  Eric Blake  <eblake@redhat.com>
26043
26044         pread, pwrite: add missing dependency
26045         * modules/pread (Depends-on): Add extensions.
26046         * modules/pwrite (Depends-on): Likewise.
26047
26048 2010-08-28  Bruno Haible  <bruno@clisp.org>
26049
26050         unistr/u*-strchr: Fix tests dependencies.
26051         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
26052         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
26053         Reported by Ian Beckwith <ianb@erislabs.net>.
26054
26055 2010-08-28  Bruno Haible  <bruno@clisp.org>
26056
26057         read-file: Don't occupy too much unused memory.
26058         * lib/read-file.c (fread_file): Shrink the buffer at the end.
26059
26060 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
26061             Eric Blake  <eblake@redhat.com>
26062             Bruno Haible  <bruno@clisp.org>
26063
26064         read-file: Avoid memory reallocations with regular files.
26065         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
26066         (fread_file): With regular files, use the remaining length as the
26067         initial buffer size.  Check against overflow.
26068         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
26069         sys_stat.
26070
26071 2010-08-28  Bruno Haible  <bruno@clisp.org>
26072
26073         ftello: Relax license.
26074         * modules/ftello (License): Relax to LGPLv2+.
26075         Reported by Eric Blake.
26076
26077 2010-08-28  Bruno Haible  <bruno@clisp.org>
26078
26079         Avoid relocwrapper link errors due to gnulib replacement functions.
26080         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
26081         function.
26082         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26083
26084 2010-08-28  Bruno Haible  <bruno@clisp.org>
26085
26086         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
26087         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
26088         defined.
26089         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
26090         Suggested by Eric Blake.
26091
26092 2010-08-28  Bruno Haible  <bruno@clisp.org>
26093
26094         sys_socket, netdb: Ensure socklen_t gets defined.
26095         * modules/sys_socket (Depends-on): Add socklen.
26096         * modules/netdb (Depends-on): Likewise.
26097         * modules/getaddrinfo (Depends-on): Remove socklen.
26098         * modules/getsockopt (Depends-on): Likewise.
26099         * modules/setsockopt (Depends-on): Likewise.
26100         * tests/test-sys_socket.c: Check that socklen_t is defined.
26101         * tests/test-netdb.c: Likewise.
26102         * m4/socklen.m4: Update comments.
26103         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26104
26105 2010-08-27  Eric Blake  <eblake@redhat.com>
26106
26107         login_tty: add missing dependency
26108         * modules/login_tty (Depends-on): Add pty.
26109
26110 2010-08-26  Eric Blake  <eblake@redhat.com>
26111
26112         lib-symbol-versions: fix m4 quoting
26113         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
26114         format for AC_LINK_IFELSE.
26115
26116         glob: fix compile test
26117         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
26118
26119         btowc: fix missing file
26120         * modules/btowc (Files): Also ship locale-fr.m4.
26121
26122         lseek: fix link test
26123         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
26124         AC_LINK_IFELSE.
26125
26126         include_next: silence autoconf 2.68 warning
26127         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
26128         AC_COMPILE_IFELSE as special.
26129         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
26130         autoconf < 2.68.
26131
26132         acl: fix compilation test
26133         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
26134         AC_COMPILE_IFELSE.
26135
26136 2010-08-26  Bruno Haible  <bruno@clisp.org>
26137
26138         Modernize AC_TRY_RUN invocations.
26139         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
26140         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
26141         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
26142         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
26143         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
26144         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
26145         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
26146         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
26147         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26148         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26149         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
26150         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
26151         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
26152         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
26153         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
26154         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
26155         gl_MBRLEN_NUL_RETVAL): Likewise.
26156         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
26157         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
26158         Likewise.
26159         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
26160         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
26161         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
26162         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
26163         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
26164         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
26165         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
26166         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
26167         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
26168         Likewise.
26169         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
26170         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
26171         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
26172         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
26173         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26174         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
26175         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
26176         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
26177         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
26178         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
26179
26180 2010-08-26  Bruno Haible  <bruno@clisp.org>
26181
26182         Modernize AC_TRY_LINK invocations.
26183         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
26184         AC_TRY_LINK.
26185         * m4/argp.m4 (gl_ARGP): Likewise.
26186         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
26187         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
26188         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
26189         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
26190         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
26191         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
26192         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
26193         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
26194         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
26195         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
26196         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
26197         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
26198         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
26199         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26200         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
26201         * m4/hostent.m4 (gl_HOSTENT): Likewise.
26202         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26203         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
26204         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
26205         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
26206         Likewise.
26207         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
26208         Likewise.
26209         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
26210         Likewise.
26211         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
26212         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
26213         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
26214         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
26215         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
26216         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
26217         * m4/servent.m4 (gl_SERVENT): Likewise.
26218         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
26219         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
26220         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
26221         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
26222         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
26223         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
26224         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
26225         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26226         * modules/tsearch-tests (configure.ac): Likewise.
26227
26228 2010-08-26  Bruno Haible  <bruno@clisp.org>
26229
26230         Modernize AC_TRY_COMPILE invocations.
26231         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
26232         AC_TRY_COMPILE.
26233         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
26234         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
26235         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
26236         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
26237         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
26238         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
26239         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
26240         * m4/lock.m4 (gl_LOCK): Likewise.
26241         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
26242         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
26243         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
26244         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
26245         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
26246         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
26247         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
26248         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
26249         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
26250         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
26251         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
26252         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
26253         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
26254         extraneous semicolon.
26255
26256 2010-08-26  Jim Meyering  <meyering@redhat.com>
26257
26258         stat-time: relax license LGPL
26259         * modules/stat-time (License): Change from GPL to LGPL,
26260         with consent from all contributors, for use in libguile.
26261         Requested by Ludovic Courtès.
26262
26263 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
26264
26265         poll: return immediately on POLLHUP.
26266         * lib/poll.c (poll): Always set timeout before wait_timeout is
26267         computed.
26268
26269 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26270
26271         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
26272         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
26273         rmdir ("dir/.//"), unlinkat.
26274
26275 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
26276
26277         stdbool: avoid spurious failure with modern xlc
26278         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
26279
26280 2010-08-24  Bruno Haible  <bruno@clisp.org>
26281
26282         getloadavg: simplify code
26283         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
26284         gl_have_func. Update comments.
26285
26286 2010-08-24  Eric Blake  <eblake@redhat.com>
26287
26288         getloadavg: don't define SVR4 on cygwin
26289         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
26290         only define SVR4 when -lkvm is required.
26291         Reported by Yaakov Selkowitz.
26292
26293 2010-08-24  Bruno Haible  <bruno@clisp.org>
26294
26295         priv-set: fix comment
26296         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
26297
26298 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
26299
26300         priv-set: fix comments
26301         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
26302         to match code, as suggested by David Bartley in:
26303         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
26304
26305 2010-08-23  Eric Blake  <eblake@redhat.com>
26306
26307         stdbool: avoid rejecting clang
26308         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
26309         * tests/test-stdbool.c: Enable more tests if using the system
26310         <stdbool.h> instead of the gnulib replacement.
26311         (main): Move xlc bug test to a runtime test for all compilers.
26312         Reported by Anders Kaseorg.
26313
26314         argz: fix shell quoting issue
26315         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
26316         Reported by Charles Wilson.
26317
26318 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
26319             Erik Faye-Lund <kusmabite@gmail.com>
26320
26321         poll, select: handle ERROR_BROKEN_PIPE.
26322         * lib/poll.c (win32_compute_revents): Return POLLHUP when
26323         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
26324         * lib/select.c (win32_compute_revents): Do not mark a pipe
26325         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
26326
26327 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
26328
26329         fts: allow compilation with C++
26330         * lib/fts_.h: Specify extern "C" linkage with C++.
26331
26332 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26333
26334         Fix gnulib-tool sed script de-commentation for AIX sed.
26335         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
26336         sed.
26337
26338 2010-08-17  Eric Blake  <eblake@redhat.com>
26339
26340         test-stddef: test for (some) offsetof bugs
26341         * tests/test-stddef.c: Enhance test to ensure correct type of
26342         offsetof.
26343         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
26344         that we are not fixing at this time.
26345
26346 2010-08-15  Bruno Haible  <bruno@clisp.org>
26347
26348         stpncpy: Allow stpncpy to be defined as a macro.
26349         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
26350         if it's already correctly declared.
26351         * lib/string.in.h (stpncpy): Undefine before redefining.
26352         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
26353
26354 2010-08-14  Bruno Haible  <bruno@clisp.org>
26355
26356         Rename module 'memxfrm' to 'amemxfrm'.
26357         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
26358         (amemxfrm): Renamed from memxfrm.
26359         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
26360         (amemxfrm): Renamed from memxfrm.
26361         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
26362         * NEWS: Mention the change.
26363         * MODULES.html.sh (String handling <string.h>): Update.
26364         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
26365         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
26366         * lib/unicase/u16-casexfrm.c: Likewise.
26367         * lib/unicase/u32-casexfrm.c: Likewise.
26368         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
26369         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
26370         * lib/uninorm/u16-normxfrm.c: Likewise.
26371         * lib/uninorm/u32-normxfrm.c: Likewise.
26372         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
26373         memxfrm.
26374         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
26375         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
26376         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
26377         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
26378         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
26379         Suggested by Paul Eggert.
26380
26381 2010-08-14  Bruno Haible  <bruno@clisp.org>
26382
26383         Tests for module 'astrxfrm'.
26384         * modules/astrxfrm-tests: New file.
26385         * tests/test-astrxfrm.c: New file.
26386
26387         New module 'astrxfrm'.
26388         * lib/astrxfrm.h: New file.
26389         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
26390         * modules/astrxfrm: New file.
26391
26392 2010-08-14  Reuben Thomas <rrt@sc3d.org>
26393
26394         regex: Tweak doc.
26395         * doc/regex.texi (Overview): Don't mention regex.c.
26396         (GNU Regular Expression Compiling): Likewise.
26397         (Match-end-of-line Operator): Mention 'not_eol'.
26398
26399 2010-08-14  Brian Gough  <bjg@gnu.org>
26400             Bruno Haible  <bruno@clisp.org>
26401
26402         git-merge-changelog: add doc relating to use with bzr and hg.
26403         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
26404
26405 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
26406
26407         pthread: fix pthread.h creation for srcdir != builddir
26408         * modules/pthread (Makefile.am): Fix the rule to work also in a
26409         non-srcdir build.
26410
26411 2010-08-13  Karl Berry  <karl@gnu.org>
26412
26413         * doc/regex.texi (Predefined Syntaxes): @smallexample.
26414         * doc/posix-*/*: force line break before @url of POSIX
26415         specifications.
26416         Suggested by Werner Lemberg.
26417
26418 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
26419
26420         strtod: fix const diagnostic
26421         * lib/strtod.c (strtod): Don't assign const char * to char *,
26422         as this elicits a warning from GCC when warnings are enabled.
26423
26424 2010-08-10  Pádraig Brady <P@draigbrady.com>
26425         and Eric Blake  <eblake@redhat.com>
26426
26427         copy-acl: ignore ENOTSUP on HP-UX
26428         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
26429         so that it is available for HP-UX.
26430         * lib/copy-acl.c (qcopy_acl): Use it.
26431         Reported by Patrick M. Callahan.
26432
26433 2010-08-10  Eric Blake  <eblake@redhat.com>
26434
26435         open, chown: relax license
26436         * modules/open (License): Change to LGPLv2+, with consent by all
26437         authors, for use in augeas.
26438         * modules/chown (License): Likewise.
26439         * modules/lchown (Likewise): Likewise.
26440         Requested by Adam Stokes.
26441
26442 2010-08-09  Karl Berry  <karl@gnu.org>
26443
26444         * build-aux/ar-lib: new file, import from Automake.
26445         * config/srclist.txt: autocheck for updates.
26446
26447 2010-08-09  Eric Blake  <eblake@redhat.com>
26448
26449         readlinkat: adjust client modules
26450         * modules/areadlinkat (Depends-on): Use readlinkat, not
26451         symlinkat.
26452         * modules/areadlinkat-with-size (Depends-on): Likewise.
26453
26454         mknod: be more vocal about danger of running tests as root
26455         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
26456         root, since that is just asking for problems.
26457         Suggested by Bruno Haible, based on a report by Rainer Tammer.
26458
26459         readlinkat: split into its own module
26460         * modules/symlinkat: Split readlinkat...
26461         * modules/readlinkat: ...into separate module.
26462         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
26463         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
26464         * lib/symlinkat.c (readlinkat): Move...
26465         * lib/readlinkat.c: ...into new file.
26466         * modules/symlinkat-tests: Split readlinkat test...
26467         * modules/readlinkat-tests: ...into separate module.
26468         * tests/test-symlinkat.c: Split...
26469         * tests/test-readlinkat.c: ...into new file.
26470         * NEWS: Document the split.
26471         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
26472         * lib/unistd.in.h (readlinkat): Likewise.
26473         Suggested by Bruno Haible.
26474
26475 2010-08-08  Bruno Haible  <bruno@clisp.org>
26476
26477         memxfrm: Speed up.
26478         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
26479         that usually only one call to strxfrm is necessary for each string
26480         part.
26481         Reported by Paul Eggert <eggert@cs.ucla.edu>.
26482
26483 2010-08-07  Karl Berry  <karl@gnu.org>
26484
26485         * doc/posix-headers/limits.texi,
26486         * doc/posix-functions/malloc.texi,
26487         * doc/posix-functions/strsignal.texi: missing @item.
26488         * doc/ld-version-script.texi: spurious leading i.
26489         * doc/regex.texi (Interval Operators): no commas inside @var.
26490
26491 2010-08-01  Bruno Haible  <bruno@clisp.org>
26492
26493         Integrate the regex documentation.
26494         * doc/gnulib.texi: Define 'cn' index.
26495         (Regular expressions): New a chapter that includes regex.texi and
26496         regexprops-generic.texi.
26497         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
26498         syntax.
26499
26500         Whitespace cleanup.
26501         * doc/regex.texi: Remove trailing spaces.
26502
26503         Add regex documentation.
26504         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
26505         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
26506         Written by Kathy A. Hargreaves and Karl Berry.
26507
26508 2010-08-01  Bruno Haible  <bruno@clisp.org>
26509
26510         link: Update documentation.
26511         * doc/posix-functions/link.texi: Update regarding Solaris.
26512
26513 2010-07-31  Bruno Haible  <bruno@clisp.org>
26514
26515         Update modules list.
26516         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
26517         (String handling <string.h>): Add memcmp2, memxfrm.
26518         (Container data structures): Add xlist, xsublist, xoset.
26519         (Core language properties): Add alignof, unused-parameter.
26520         (Process control, Numeric conversion functions <stdlib.h>): Renamed
26521         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
26522         (Unibyte characters <ctype.h>): New section.
26523         (String handling <string.h>): New section.
26524         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
26525         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
26526         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
26527         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
26528         tan, tanh, tanl, y0, y1, yn.
26529         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
26530         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
26531         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
26532         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
26533         unlockpt, vdprintf, vdprintf-posix.
26534         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
26535         (File system functions): Add concat-filename, sys_file, sys_ioctl,
26536         xconcat-filename.
26537         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
26538         getdtablesize, pipe2, pipe2-safer.
26539         (Security): New section.
26540         (Networking functions): Add accept4.
26541         (Signal handling): Add sigpipe.
26542         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
26543         mbmemcasecoll.
26544         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
26545         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
26546         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
26547         pipe-filter-ii.
26548         (Misc): Add argp-version-etc, login_tty, parse-duration.
26549
26550 2010-07-31  Bruno Haible  <bruno@clisp.org>
26551
26552         Improve doc in MODULES.html.
26553         * modules/linkat (Description): Add the word "function".
26554         * modules/mkfifo (Description): Likewise.
26555         * modules/mknod (Description): Likewise.
26556         * modules/remove (Description): Likewise.
26557         * modules/renameat (Description): Likewise.
26558         * modules/stat (Description): Likewise.
26559         * modules/symlink (Description): Likewise.
26560         * modules/unlink (Description): Likewise.
26561
26562 2010-07-31  Bruno Haible  <bruno@clisp.org>
26563
26564         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
26565         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
26566         option --enable/disable-c++ instead of --enable/disable-cxx.
26567         * NEWS: Mention the change.
26568
26569 2010-07-31  Bruno Haible  <bruno@clisp.org>
26570
26571         readlink, areadlink: Relax test a bit.
26572         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
26573         alternative to ENOTDIR.
26574         * tests/test-areadlink.h (test_areadlink): Likewise.
26575         Reported by Rainer Tammer.
26576
26577 2010-07-31  Bruno Haible  <bruno@clisp.org>
26578
26579         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
26580         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
26581         character, perform the search using U_STRCHR.
26582         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
26583         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
26584         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
26585         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
26586         Suggested by Paolo Bonzini.
26587
26588 2010-07-31  Bruno Haible  <bruno@clisp.org>
26589
26590         unistr/u*-strstr: Fix dependencies.
26591         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
26592         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
26593         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
26594
26595 2010-07-31  Bruno Haible  <bruno@clisp.org>
26596
26597         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
26598         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
26599         the beginning of the loop.
26600         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
26601         cases in 'switch' statement.
26602
26603         unistr/u8-strchr: Fix several bugs.
26604         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
26605         the string. When not found, return NULL, not a pointer near the end.
26606
26607         More tests for unistr/u8-strchr.
26608         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
26609         that the function does not read past the first occurrence of the byte
26610         being searched.
26611         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
26612         * tests/unistr/test-u16-strchr.c (main): New function.
26613         * tests/unistr/test-u32-strchr.c (main): New function.
26614
26615 2010-07-31  Bruno Haible  <bruno@clisp.org>
26616
26617         posix-modules: Ignore backup files of documentation files.
26618         * posix-modules: grep only through files named *.texi.
26619
26620 2010-07-31  Bruno Haible  <bruno@clisp.org>
26621
26622         symlinkat: Fix documentation.
26623         * doc/posix-functions/readlinkat.texi: Fix module name.
26624
26625 2010-07-31  Bruno Haible  <bruno@clisp.org>
26626
26627         fchownat: Replace also when chown has the trailing slash bug.
26628         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
26629         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
26630         introduced on 2010-04-10.
26631         Reported by Rainer Tammer.
26632
26633 2010-07-31  Bruno Haible  <bruno@clisp.org>
26634
26635         linkat: Work around AIX 7.1 bug.
26636         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
26637         whether linkat handles trailing slash correctly. If not, replace linkat
26638         and define LINKAT_TRAILING_SLASH_BUG.
26639         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
26640         check whether (fd1,file1) points to a directory if file1 or file2 ends
26641         in a slash. Code taken from lib/link.c.
26642         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
26643         Reported by Rainer Tammer.
26644
26645 2010-07-31  Bruno Haible  <bruno@clisp.org>
26646
26647         Correctly determine whether pow is available in libc on AIX 7 with xlc.
26648         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
26649         This disables an xlc optimization that was causing wrong test results.
26650         Reported by Rainer Tammer.
26651
26652 2010-07-31  Bruno Haible  <bruno@clisp.org>
26653
26654         iconv: Work around AIX 6.1..7.1 bug.
26655         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
26656         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
26657         cross-compiling, guess no on all versions of AIX.
26658         Reported by Rainer Tammer.
26659
26660 2010-07-31  Bruno Haible  <bruno@clisp.org>
26661
26662         readlink: Relax test a bit.
26663         * tests/test-readlink.h (test_readlink): Allow different errno value
26664         when readlink is called with a file name that ends in / and refers to
26665         a file.
26666         Suggested by Eric Blake.
26667         Reported by Rainer Tammer.
26668
26669 2010-07-31  Bruno Haible  <bruno@clisp.org>
26670
26671         copysign: Does not require -lm on glibc systems.
26672         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
26673         gl_COMMON_DOUBLE_MATHFUNC.
26674         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
26675
26676 2010-07-31  Bruno Haible  <bruno@clisp.org>
26677
26678         duplocale: Work around AIX 7.1 bug.
26679         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
26680         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
26681         * lib/duplocale.c (rpl_duplocale): Update comment.
26682         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
26683         Reported by Rainer Tammer.
26684
26685 2010-07-30  Bruno Haible  <bruno@clisp.org>
26686
26687         dirfd: Avoid link error on AIX 7.1.
26688         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
26689         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
26690         exist, set REPLACE_DIRFD.
26691         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
26692         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
26693         * doc/posix-functions/dirfd.texi: Update.
26694         Reported by Rainer Tammer.
26695
26696 2010-07-30  Eric Blake  <eblake@redhat.com>
26697
26698         strtod: next round of AIX fixes
26699         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
26700         exponent.
26701         * tests/test-strtod.c (main): Enhance tests.
26702         * doc/posix-functions/strtod.texi (strtod): Document next bug.
26703         Reported by Rainer Tammer.
26704
26705         futimens: fix configure check
26706         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
26707         Reported by Bruno Haible.
26708
26709 2010-07-30  Bruno Haible  <bruno@clisp.org>
26710
26711         getline: Update regarding AIX.
26712         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
26713         Reported by Rainer Tammer.
26714
26715 2010-07-30  Bruno Haible  <bruno@clisp.org>
26716
26717         wcwidth: Drop replacement on AIX 7.
26718         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
26719         AIX 7.
26720         Reported by Rainer Tammer.
26721
26722 2010-07-30  Bruno Haible  <bruno@clisp.org>
26723
26724         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
26725         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
26726         a 'char *'.
26727         Reported by Rainer Tammer.
26728
26729 2010-07-30  Bruno Haible  <bruno@clisp.org>
26730
26731         unlink: Update regarding AIX.
26732         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
26733         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
26734         Reported by Rainer Tammer.
26735
26736 2010-07-30  Bruno Haible  <bruno@clisp.org>
26737
26738         symlink: Update regarding AIX.
26739         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
26740         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
26741         Reported by Rainer Tammer.
26742
26743 2010-07-30  Bruno Haible  <bruno@clisp.org>
26744
26745         strndup: Update regarding AIX.
26746         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
26747         AIX 7.
26748         Reported by Rainer Tammer.
26749
26750 2010-07-30  Bruno Haible  <bruno@clisp.org>
26751
26752         stat: Update regarding AIX.
26753         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
26754         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
26755         Reported by Rainer Tammer.
26756
26757 2010-07-30  Bruno Haible  <bruno@clisp.org>
26758
26759         truncl: Fix autoconf test.
26760         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
26761         whether truncl works.
26762         Reported by Rainer Tammer.
26763
26764 2010-07-30  Bruno Haible  <bruno@clisp.org>
26765
26766         round: Update regarding AIX.
26767         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
26768         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
26769         Reported by Rainer Tammer.
26770
26771 2010-07-30  Bruno Haible  <bruno@clisp.org>
26772
26773         rename: Update regarding AIX.
26774         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
26775         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
26776         Reported by Rainer Tammer.
26777
26778 2010-07-30  Bruno Haible  <bruno@clisp.org>
26779
26780         printf.m4: Update regarding AIX.
26781         * m4/printf.m4: Update comments regarding AIX.
26782         Reported by Rainer Tammer.
26783
26784 2010-07-30  Bruno Haible  <bruno@clisp.org>
26785
26786         iconv: Update regarding AIX.
26787         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
26788         AIX 7.
26789         Reported by Rainer Tammer.
26790
26791 2010-07-30  Bruno Haible  <bruno@clisp.org>
26792
26793         getopt: Update regarding AIX.
26794         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
26795         no on AIX.
26796         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
26797         Reported by Rainer Tammer.
26798
26799 2010-07-30  Bruno Haible  <bruno@clisp.org>
26800
26801         ldexpl; Update regarding AIX.
26802         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
26803         on AIX 7.
26804         Reported by Rainer Tammer.
26805
26806 2010-07-30  Bruno Haible  <bruno@clisp.org>
26807
26808         frexpl: Update regarding AIX.
26809         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
26810         on AIX 7.
26811         Reported by Rainer Tammer.
26812
26813 2010-07-30  Bruno Haible  <bruno@clisp.org>
26814
26815         open, fopen: Update regarding AIX.
26816         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
26817         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
26818         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
26819         * doc/posix-functions/fopen.texi: Likewise.
26820         Reported by Rainer Tammer.
26821
26822 2010-07-30  Bruno Haible  <bruno@clisp.org>
26823
26824         chown: Update doc regarding AIX.
26825         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
26826         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
26827         Reported by Rainer Tammer.
26828
26829 2010-07-30  Eric Blake  <eblake@redhat.com>
26830
26831         strtod: fix bug in replacement function on AIX
26832         * lib/strtod.c (strtod): Special case broken "0x" parse in
26833         underlying strtod.
26834         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
26835         * doc/posix-functions/strtod.texi (strtod): Likewise.
26836         Reported by Rainer Tammer.
26837
26838 2010-07-30  Bruno Haible  <bruno@clisp.org>
26839
26840         mbrlen: Fix cross-compilation guess for AIX.
26841         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
26842         guess. Leftover from 2008-12-22.
26843
26844 2010-07-30  Bruno Haible  <bruno@clisp.org>
26845
26846         mbrtowc: Fix cross-compilation guess for AIX.
26847         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
26848         guess. Leftover from 2008-12-21.
26849
26850 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
26851
26852         init.sh: work around trap limitation of some shells
26853         * tests/init.sh (setup_): Move exit trap outside of shell function.
26854
26855 2010-07-29  Eric Blake  <eblake@redhat.com>
26856
26857         strtod: aid debugging
26858         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
26859         understanding why strtod is rejected.
26860
26861 2010-07-28  Bruno Haible  <bruno@clisp.org>
26862
26863         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
26864         * lib/unistr/u8-chr.c: Include <string.h>.
26865         * tests/unistr/test-u8-chr.c: Likewise.
26866         * tests/unistr/test-u16-chr.c: Likewise.
26867         * tests/unistr/test-u32-chr.c: Likewise.
26868         * tests/unistr/test-u8-strchr.c: Likewise.
26869         * tests/unistr/test-u16-strchr.c: Likewise.
26870         * tests/unistr/test-u32-strchr.c: Likewise.
26871         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
26872         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
26873         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
26874         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
26875
26876 2010-07-28  Bruno Haible  <bruno@clisp.org>
26877
26878         Use spaces for indentation, not tabs.
26879         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
26880
26881 2010-07-27  Bruno Haible  <bruno@clisp.org>
26882
26883         mbspcasecmp: Fix function specification.
26884         * lib/string.in.h (mbspcasecmp): Fix specification comment.
26885         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
26886         Reported by Eric Blake <eblake@redhat.com>.
26887
26888 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
26889
26890         timespec: use cast and not conditional, as truncation isn't possible
26891         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
26892         instead of a conditional.  Comment about the situation in more detail.
26893         This undoes most of the 2009-10-29 patch.
26894
26895 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
26896
26897         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
26898         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
26899         * lib/unistr/u8-strchr.c: Likewise.
26900         * modules/unistr/u8-chr: Depend on memchr.
26901
26902         unistr/u*-strchr: add tests
26903         * modules/unistr/u8-strchr-tests: New file.
26904         * modules/unistr/u16-strchr-tests: New file.
26905         * modules/unistr/u32-strchr-tests: New file.
26906         * tests/unistr/test-strchr.h: New file.
26907         * tests/unistr/test-u8-strchr.c: New file.
26908         * tests/unistr/test-u16-strchr.c: New file.
26909         * tests/unistr/test-u32-strchr.c: New file.
26910
26911         unistr/u*-chr: test multibyte sequences more
26912         * tests/unistr/test-chr.h: Do complete testing of the characters in the
26913         test vector.
26914         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
26915         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
26916         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
26917
26918         unistr/u*-chr: test multibyte sequences
26919         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
26920
26921         unistr/u*-chr: prepare for multibyte tests
26922         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
26923         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
26924         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
26925         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
26926         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
26927         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
26928
26929 2010-07-18  Bruno Haible  <bruno@clisp.org>
26930
26931         unistr/u8-strchr: Optimize non-ASCII argument case.
26932         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
26933         because the first byte often matches anyway.
26934         Reported by Pádraig Brady <P@draigbrady.com>.
26935
26936 2010-07-15  Karl Berry  <karl@gnu.org>
26937
26938         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
26939
26940 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
26941
26942         getcwd: on Solaris, work better if ancestors are inaccessible
26943         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
26944         buffer and size, try again with a large buffer.  This works better
26945         on Solaris, since its getcwd succeeds even if the path to the root
26946         is inaccessible, and this is helpful in common cases such as .zfs
26947         hidden directories.  Problem reported by J Chapman Flack in
26948         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
26949         Use system getcwd if it's declared, not merely if it's partly
26950         working; use the partly-working test only to avoid needless effort
26951         if the system getcwd fails.
26952         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
26953         comment that was already obsolete and is now even more obsolete.
26954         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
26955         now might call strdup.
26956
26957 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
26958
26959         pthread: Add enough so that coreutils/src/sort.c compiles.
26960         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
26961         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
26962         gnulib. Include <sched.h> and <time.h>, as per POSIX.
26963         Include <sys/types.h>, in case it defines pthread_t.
26964         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
26965         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
26966         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
26967         (pthread_rwlockattr_t, pthread_spinlock_t):
26968         New typedefs, if HAVE_PTHREAD_T is not defined.
26969         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
26970         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
26971         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
26972         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
26973         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
26974         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
26975         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
26976         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
26977         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
26978         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
26979         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
26980         New macros.
26981         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
26982         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
26983         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
26984         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
26985         (pthread_spin_unlock): New dummy functions.
26986         (pthread_create): Return EAGAIN; don't set errno.
26987         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
26988         require AC_C_INLINE.
26989         * modules/pthread (Depends-on): Add sched, time.
26990         (pthread.h): Use AM_V_GEN.
26991
26992 2010-07-13  Bruno Haible  <bruno@clisp.org>
26993
26994         striconveh: Don't malloc memory if the result buffer is sufficient.
26995         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
26996         buffer if its size is sufficient.
26997         Reported by Ludovic Courtès <ludo@gnu.org>.
26998
26999 2010-07-13  Bruno Haible  <bruno@clisp.org>
27000
27001         strtod: Add safety check.
27002         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
27003
27004 2010-07-12  Bruno Haible  <bruno@clisp.org>
27005
27006         Unify tests that set gl_cv_func_ldexpl_no_libm.
27007         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
27008         gl_FUNC_LDEXPL.
27009         (gl_FUNC_LDEXPL): Invoke it.
27010         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
27011
27012 2010-07-12  Bruno Haible  <bruno@clisp.org>
27013
27014         Unify tests that set gl_cv_func_ldexp_no_libm.
27015         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
27016         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
27017         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
27018         (configure.ac): Simply invoke gl_FUNC_LDEXP.
27019         * modules/strtod (Files): Add m4/ldexp.m4.
27020
27021 2010-07-12  Bruno Haible  <bruno@clisp.org>
27022
27023         Unify tests that set gl_cv_func_frexpl_no_libm.
27024         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
27025         gl_FUNC_FREXPL_NO_LIBM.
27026         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
27027         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
27028
27029 2010-07-12  Bruno Haible  <bruno@clisp.org>
27030
27031         Unify tests that set gl_cv_func_frexp_no_libm.
27032         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
27033         gl_FUNC_FREXP_NO_LIBM.
27034         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
27035         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
27036
27037 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
27038
27039         memcoll: clarify sizes versus lengths, document better, and tweak perf
27040         * lib/memcoll.c (strcoll_loop, memcoll0):
27041         Improve quality of descriptive comments.  Name variables
27042         consistently as to whether they are lengths (which do not include
27043         terminating null) versus sizes (which do).
27044         * lib/xmemcoll.c (xmemcoll0): Likewise.
27045         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
27046         returned when s1size == 0; this is easier to compile and saves
27047         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
27048
27049 2010-07-12  Bruno Haible  <bruno@clisp.org>
27050
27051         Tests for module '_Exit'.
27052         * modules/_Exit-tests: New file.
27053         * tests/test-_Exit.sh: New file.
27054         * tests/test-_Exit.c: New file.
27055
27056         New module '_Exit'.
27057         * lib/stdlib.in.h (__attribute__): New macro.
27058         (_Exit): New declaration.
27059         * lib/_Exit.c: New file.
27060         * m4/_Exit.m4: New file.
27061         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
27062         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
27063         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
27064         * modules/_Exit: New file.
27065         * tests/test-stdlib-c++.cc (_Exit): Check signature.
27066         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
27067
27068 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
27069
27070         strtod: make it more-accurate typically, and don't require libm
27071         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
27072         Include limits.h.  Don't include string.h.
27073         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
27074         (locale_isspace): New function, so that no casts are needed to
27075         check whether *s is a space.
27076         (ldexp): Provide an unused dummy if not available.
27077         (scale_radix_exp, parse_number, underlying_strtod): New functions.
27078         (strtod): Use them.  This implementation prefers to use the
27079         underlying strtod if available, falling back on our own code
27080         only to fix known bugs.  This is more likely to produce an
27081         accurate result.  Also, it avoids the use of libm functions.
27082         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
27083         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
27084         was absent, but it caused a test failure with coreutils.
27085         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
27086         with libm.
27087         * modules/strtod (Makefile.am, Link): libm is no longer needed.
27088         * modules/strtod-tests (Makefile.am): Likewise.
27089
27090 2010-07-11  Pádraig Brady  <P@draigBrady.com>
27091             Bruno Haible  <bruno@clisp.org>
27092
27093         unistr/u8-strchr: Optimize ASCII argument case.
27094         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
27095
27096 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
27097
27098         (x)memcoll: minor tweaks
27099         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
27100         is after the type that it qualifies.
27101         (memcoll0): Likewise.
27102         * lib/memcoll.h (memcoll0): Likewise.
27103         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
27104         * lib/xmemcoll.h (xmemcoll0): Likewise.
27105         * lib/memcoll.c (memcoll0): Correct the comment.  This function
27106         differs from memcoll in that the NUL byte is part of the argument.
27107         Omit the abort-checks, as performance is a real issue here.  Plus,
27108         the checks were wrong anyway (an off-by-one error).  Omit local
27109         variable 'diff', as it's a bit clearer that way.
27110         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
27111         no longer needed.
27112
27113 2010-07-08  Chen Guo <chenguo4@yahoo.com>
27114
27115         (x)memcoll: speedup when input is known to be NUL delimited
27116         * lib/memcoll.c: Include stdlib.
27117         (memcoll0): New function.
27118         (strcoll_loop): New function, refactored for use in both memcoll
27119         and memcoll0.
27120         * lib/memcoll.h (memcoll0): Add prototype.
27121         * lib/xmemcoll.c (xmemcoll0): New function.
27122         (collate_error): New function, refactored for use in both xmemcoll
27123         and xmemcoll0.
27124         * lib/xmemcoll.h (xmemcoll0): Add prototype.
27125         * m4/memcoll.m4: add inline invocation.
27126
27127 2010-07-06  Pádraig Brady  <P@draigBrady.com>
27128
27129         * build-aux/bootstrap: Remove any local translations
27130         from the translation project synchronization directory,
27131         so that local only translations are not distributed.
27132
27133 2010-07-04  Bruno Haible  <bruno@clisp.org>
27134
27135         fsusage: Clarify which code applies to which platforms.
27136         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
27137         platform.
27138         * lib/fsusage.c (get_fs_usage): Likewise.
27139
27140 2010-07-04  Bruno Haible  <bruno@clisp.org>
27141
27142         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
27143         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
27144         Reported by Martin Lambers <marlam@marlam.de>.
27145
27146 2010-07-04  Jim Meyering  <meyering@redhat.com>
27147
27148         hash: once again explicitly disallow insertion of NULL
27149         * lib/hash.c (hash_insert0): Reinstate just-removed test:
27150         inserting a NULL pointer cannot work with these functions.
27151         Add a comment with details.
27152         This reverts part of the 2010-07-01 commit, 5bef1a35
27153         "hash: extend module to deal with non-pointer keys".
27154
27155 2010-07-01  Bruno Haible  <bruno@clisp.org>
27156
27157         stdbool: Update doc.
27158         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
27159         Info from Christian Weisgerber <naddy@mips.inka.de>.
27160
27161 2010-07-01  Jim Meyering  <meyering@redhat.com>
27162
27163         hash: extend module to deal with non-pointer keys
27164         * lib/hash.c (hash_insert0): New interface, much like hash_insert
27165         but that allows insertion of non-pointer entries.
27166         Do not disallow an ENTRY value of NULL.
27167         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
27168         * lib/hash.h (hash_insert0): Declare.
27169
27170 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
27171
27172         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
27173         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
27174         not present (i.e. with autoconf 2.59 and when using gettextize, not
27175         gnulib), require AC_GNU_SOURCE instead.
27176
27177 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
27178
27179         idpriv-drop: Fix tests.
27180         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
27181         not to the test-idpriv-droptemp program.
27182
27183 2010-06-29  Bruno Haible  <bruno@clisp.org>
27184
27185         string: Fix syntax error with g++ 2.96.
27186         * lib/string.in.h (__pure__): Remove definition.
27187         (_GL_ATTRIBUTE_PURE): New macro.
27188         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
27189         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
27190         Reported by Christian Weisgerber <naddy@mips.inka.de>.
27191
27192 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
27193
27194         unitypes: Fix bug introduced on 2010-05-18.
27195         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
27196
27197 2010-06-22  Eric Blake  <eblake@redhat.com>
27198
27199         memmem: slight optimization
27200         * lib/str-two-way.h (critical_factorization): Update comments.
27201         Reduce work during factorization phase.
27202         Reported by Carlos Bueno <carlos@bueno.org>.
27203
27204 2010-06-21  Bruno Haible  <bruno@clisp.org>
27205
27206         Fix HAVE_CALLOC_POSIX misnomer.
27207         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
27208         !HAVE_CALLOC_POSIX.
27209         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
27210         HAVE_CALLOC_POSIX.
27211         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
27212         instead of HAVE_CALLOC_POSIX.
27213         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
27214         HAVE_CALLOC_POSIX.
27215
27216         Use modern idiom for calloc() replacement.
27217         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
27218         AC_FUNC_CALLOC.
27219         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
27220         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
27221         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27222         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
27223         (gl_REPLACE_CALLOC): New macro.
27224
27225 2010-06-21  Bruno Haible  <bruno@clisp.org>
27226
27227         Fix HAVE_REALLOC_POSIX misnomer.
27228         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
27229         !HAVE_REALLOC_POSIX.
27230         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
27231         HAVE_REALLOC_POSIX.
27232         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
27233         instead of HAVE_REALLOC_POSIX.
27234         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
27235         HAVE_REALLOC_POSIX.
27236
27237         Use modern idiom for realloc() replacement.
27238         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
27239         AC_FUNC_REALLOC.
27240         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
27241         Autoconf's AC_FUNC_REALLOC.
27242         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27243         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
27244         (gl_REPLACE_REALLOC): New macro.
27245         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
27246
27247 2010-06-21  Bruno Haible  <bruno@clisp.org>
27248
27249         Fix HAVE_MALLOC_POSIX misnomer.
27250         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
27251         !HAVE_MALLOC_POSIX.
27252         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
27253         HAVE_MALLOC_POSIX.
27254         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
27255         instead of HAVE_MALLOC_POSIX.
27256         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
27257         HAVE_MALLOC_POSIX.
27258
27259         Use modern idiom for malloc() replacement.
27260         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
27261         AC_FUNC_MALLOC.
27262         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
27263         Autoconf's AC_FUNC_MALLOC.
27264         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27265         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
27266         (gl_REPLACE_MALLOC): New macro.
27267         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
27268
27269 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
27270
27271         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
27272         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
27273         This macro takes 3 arguments, not 4.
27274
27275 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
27276
27277         ipv6: fix detection under mingw
27278         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
27279         in6_addr.
27280
27281 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
27282
27283         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
27284         that strtod() works when cross-compiling to a glibc version known
27285         to work.
27286
27287 2010-06-15  Bruno Haible  <bruno@clisp.org>
27288
27289         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
27290
27291 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
27292
27293         select: Correct timeout.
27294         * lib/select.c (rpl_select): Compute wait_timeout correctly.
27295
27296 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
27297
27298         git-version-gen: init shell var to avoid env var influence
27299         * build-aux/git-version-gen (v): Init shell var to empty.
27300
27301 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
27302
27303         priv-set: Don't assume that priv.h exists merely because getppriv does.
27304         See Jan Andersen's bug report about AIX 5L in
27305         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
27306         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
27307         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
27308         * lib/priv-set.h: Likewise.
27309         * tests/test-priv-set.c: Likewise.
27310
27311 2010-06-13  Bruno Haible  <bruno@clisp.org>
27312
27313         relocatable: Make it easier to test whether to install wrappers.
27314         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
27315         RELOCATABLE_VIA_WRAPPER.
27316
27317 2010-06-13  Bruno Haible  <bruno@clisp.org>
27318
27319         gnulib-tool: Display specified modules and dependencies differently.
27320         * gnulib-tool (func_show_module_list): New function.
27321         (func_import, func_create_testdir): Invoke it.
27322         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
27323
27324 2010-06-13  Bruno Haible  <bruno@clisp.org>
27325
27326         gnulib-tool: Align code of func_import and func_create_testdir.
27327         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
27328         specified_modules.
27329
27330 2010-06-12  Jim Meyering  <meyering@redhat.com>
27331
27332         test-inttostr: avoid spurious failure on Solaris 9
27333         * tests/test-inttostr.c (main): Skip the test when snprintf fails
27334         to accept "%ju".  Reported by Bruno Haible.
27335
27336 2010-06-11  Jim Meyering  <meyering@redhat.com>
27337
27338         test-sys_socket: mark variables as used more readably
27339         * tests/test-sys_socket.c (main): Mark otherwise unused variables
27340         as "used" explicitly via (void) statement casts.  This is more
27341         readable than using them in an artificial return expression.
27342         Suggestion from Bruno Haible.
27343
27344 2010-06-11  Bruno Haible  <bruno@clisp.org>
27345
27346         Avoid some more warnings from "gcc -Wwrite-strings".
27347         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
27348         to 'const char *'.
27349         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
27350         * tests/test-c-strcasestr.c (main): Likewise.
27351         * tests/test-mbscasestr1.c (main): Likewise.
27352         * tests/test-mbscasestr2.c (main): Likewise.
27353         * tests/test-memmem.c (main): Likewise.
27354         * tests/test-strstr.c (main): Likewise.
27355         * tests/test-strcasestr.c (main): Likewise.
27356
27357 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27358
27359         init.sh: change framework_failure_ to fail with status 99, not 1
27360         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
27361         automake's parallel-tests rule that this is an unexpected failure,
27362         even if the test is listed in XFAIL_TESTS.
27363
27364 2010-06-11  Jim Meyering  <meyering@redhat.com>
27365
27366         test-inttostr: avoid warnings about 4-6KB literal strings
27367         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
27368         Include "macros.h", for its definition of ASSERT.
27369         (CK): s/assert/ASSERT/
27370         * modules/inttostr-tests (Files): Add macros.h.
27371
27372         init.sh: don't use $ME_ or skip_ before they are defined
27373         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
27374         their first uses.  Also hoist their companions: warn_, fail_,
27375         framework_failure_, $stderr_fileno.  Prompted by a patch from
27376         Stefano Lattarini.
27377
27378         test-sys_socket: avoid set-but-not-used warnings from gcc
27379         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
27380         avoid warning about set-but-not-used variables.
27381
27382         test-xvasprintf: avoid 'const' discard warnings
27383         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
27384         "const" when assigning from literal strings.
27385         (test_xasprintf): Add "void" in function argument list to placate
27386         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
27387
27388         tests: avoid compilation warnings in argmatch and exclude tests...
27389         in packages that define ARGMATCH_DIE_DECL, like coreutils.
27390         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
27391         Since it always exits, declare with the "noreturn" attribute.
27392         * tests/test-argmatch.c: Likewise.
27393
27394         tests: avoid 'const' discard warnings in mbsstr tests
27395         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
27396         * tests/test-mbsstr2.c (main): Likewise.
27397
27398         test-verify: avoid warning from gcc's -Wmissing-declarations
27399         * tests/test-verify.c (function): Declare to be static.
27400
27401         test-inttostr.c: include <string.h> for use of strcmp
27402         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
27403
27404         test-linkat: avoid failed assertion on "other" architectures
27405         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
27406         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
27407         sparc: https://bugs.launchpad.net/bugs/591968
27408
27409 2010-06-11  Jim Meyering  <meyering@redhat.com>
27410
27411         printf.m4: avoid autoconf's "Expanded Before Required" warning
27412         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
27413         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
27414         autoconf warning.
27415
27416 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
27417
27418         Replacement header templates are now named with ".in", not "_".
27419         * doc/gnulib-intro.texi: Correct.
27420
27421 2010-06-10  Jim Meyering  <meyering@redhat.com>
27422
27423         inttostr-tests: depend on snprintf, not snprintf-posix
27424         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
27425         snprintf-posix, to avoid this aclocal failure:
27426           missing file gnulib-tests/vasnprintf.c
27427           configure.ac:45: error: expected source file, required through \
27428           AC_LIBSOURCES, not found
27429
27430 2010-06-10  Jim Meyering  <meyering@redhat.com>
27431
27432         inttostr: add a new function, inttostr, and tests
27433         The namesake function was not available.  The existence of the
27434         template file, inttostr.c makes its addition nontrivial.
27435         * lib/anytostr.c: Rename from inttostr.c.
27436         (anytostr): Rename from inttostr.
27437         * lib/inttostr.c: New file.
27438         * modules/inttostr (Files): Add anytostr.c.
27439         (Makefile.am): Set lib_SOURCES instead of ...
27440         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
27441         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
27442         * lib/offtostr.c: Likewise.
27443         * lib/uinttostr.c: Likewise.
27444         * lib/umaxtostr.c: Likewise.
27445         * modules/inttostr-tests: New file.
27446         * tests/test-inttostr.c: New file.  Test these functions.
27447
27448 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
27449             Bruno Haible  <bruno@clisp.org>
27450
27451         Add "Extending Gnulib" chapter to manual.
27452         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
27453         chapter.
27454         (Extending Gnulib): New chapter.
27455         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
27456         chapter.
27457
27458 2010-06-09  Bruno Haible  <bruno@clisp.org>
27459
27460         Avoid relocwrapper link errors due to gnulib replacement functions.
27461         * lib/areadlink.c: Use the system's malloc, realloc functions.
27462         (areadlink): Set errno to ENOMEM explicitly.
27463         * modules/areadlink (Depends-on): Remove malloc-posix.
27464         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27465
27466 2010-06-09  Bruno Haible  <bruno@clisp.org>
27467
27468         Avoid relocwrapper link errors due to gnulib replacement functions.
27469         * lib/canonicalize-lgpl.c: Use the system's malloc function.
27470         * lib/malloca.c: Likewise.
27471         * lib/relocatable.c: Likewise.
27472         * lib/progreloc.c: Use the system's malloc, sprintf functions.
27473         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
27474         * lib/setenv.c: Use the system's malloc, realloc functions.
27475         * lib/strerror.c: Use the system's sprintf function.
27476         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27477
27478 2010-06-04  Bruno Haible  <bruno@clisp.org>
27479
27480         Prefer documented low-level autoconf macro names.
27481         * m4/lib-link.m4: Use m4_translit instead of translit.
27482         * m4/environ.m4: Likewise.
27483         * m4/mathfunc.m4: Likewise.
27484         * m4/onceonly.m4: Likewise.
27485         * m4/stdint.m4: Likewise.
27486         Suggested by Eric Blake.
27487
27488 2010-06-04  Martin Lambers  <marlam@marlam.de>
27489             Bruno Haible  <bruno@clisp.org>
27490
27491         havelib: Allow library names with '+' characters.
27492         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
27493         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
27494
27495 2010-06-09  Bruno Haible  <bruno@clisp.org>
27496
27497         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
27498         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
27499         realloc failed.
27500
27501 2010-06-08  Peter Simons  <simons@cryp.to>
27502
27503         maint.mk: make the news-check rule more configurable
27504         * top/maint.mk (news-check-lines-spec): New variable.
27505         (news-check): Use "sed -n 1,10p" in place of "head".
27506
27507 2010-06-07  Jim Meyering  <meyering@redhat.com>
27508
27509         do-release-commit-and-tag: fix typo in --help
27510         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
27511
27512         regex: avoid new dead-code warning with gcc-4.6.0
27513         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
27514         if-block containing a while-loop.  It's been unused for at least
27515         5 years.
27516
27517 2010-06-05  Bruno Haible  <bruno@clisp.org>
27518
27519         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
27520         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
27521
27522 2010-06-04  Bruno Haible  <bruno@clisp.org>
27523
27524         Update to GNU gettext 0.18.1.
27525         * modules/gettext (configure.ac): Require gettext infrastructure from
27526         version 0.18.1.
27527
27528 2010-06-03  Bruno Haible  <bruno@clisp.org>
27529
27530         Don't use AC_LIBOBJ with file names in subdirectories.
27531         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
27532         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
27533         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
27534         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
27535         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
27536         gl_LIBUNISTRING_LIBSOURCE.
27537         (Makefile.am): Augment lib_SOURCES here, conditionally.
27538         * NEWS: Drop requirement for Automake option 'subdir-objects'.
27539
27540 2010-06-03  Bruno Haible  <bruno@clisp.org>
27541
27542         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
27543         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
27544         expansion does not end with a newline.
27545         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
27546         unnecessary newline.
27547
27548 2010-06-03  Bruno Haible  <bruno@clisp.org>
27549
27550         Reduce dependencies.
27551         * tests/test-quotearg.h: New file, extracted from
27552         tests/test-quotearg.c.
27553         * tests/test-quotearg-simple.c: New file, extracted from
27554         tests/test-quotearg.c.
27555         * tests/test-quotearg.c: Don't include <ctype.h>.
27556         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
27557         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
27558         use_quote_double_quotes, use_quotearg_colon): Moved to
27559         tests/test-quotearg.h.
27560         (results_g, flag_results, custom_quotes, custom_results): Moved
27561         to tests/test-quotearg-simple.c.
27562         (main): Moved the part that does not depend on gettext to
27563         tests/test-quotearg-simple.c. Return 77 if the test cannot be
27564         performed.
27565         * modules/quotearg-simple: New file.
27566         * modules/quotearg-simple-tests: New file.
27567         * modules/quotearg (Depends-on): Add quotearg-simple.
27568         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
27569         (Files): Add tests/test-quotearg.h.
27570         Reported by Paolo Bonzini.
27571
27572 2010-06-03  Bruno Haible  <bruno@clisp.org>
27573
27574         Reduce dependencies.
27575         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
27576
27577 2010-06-03  Bruno Haible  <bruno@clisp.org>
27578
27579         time: Undefine more broken macros.
27580         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
27581         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
27582         Reported by Eric Blake.
27583
27584 2010-06-03  Bruno Haible  <bruno@clisp.org>
27585
27586         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
27587         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
27588         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
27589         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
27590         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
27591         Reported by Ludovic Courtès <ludo@gnu.org>.
27592
27593 2010-06-02  Eric Blake  <eblake@redhat.com>
27594
27595         time: work with mingw + pthreads-win32 library
27596         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
27597         if timespec is defined only in pthread.h.
27598         * modules/time (Makefile.am): Substitute it.
27599         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
27600         <pthread.h>, when needed.
27601         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
27602         from the library.
27603
27604 2010-05-31  Bruno Haible  <bruno@clisp.org>
27605
27606         Avoid expanding two macros in the wrong order.
27607         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
27608         gl_LIBUNISTRING if it is defined.
27609         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
27610         autoconf >= 2.64.
27611         Reported by Ludovic Courtès <ludo@gnu.org>.
27612
27613 2010-05-27  Jim Meyering  <meyering@redhat.com>
27614
27615         maint.mk: also prohibit "#undef" of always-defined symbols
27616         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
27617         Allow more than one space before the symbol name.
27618         (sc_prohibit_always-defined_macros): Use grep's -E, now that
27619         the regexp uses alternation.
27620
27621 2010-05-26  Eric Blake  <eblake@redhat.com>
27622
27623         maint.mk: avoid echo -e
27624         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
27625         Convert all uses of echo -* to printf.
27626         Reported by Matthias Bolte.
27627
27628 2010-05-25  Bruno Haible  <bruno@clisp.org>
27629
27630         Update to GNU gettext 0.18, part 2.
27631         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
27632         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
27633
27634 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27635
27636         Add missing include in test-pwrite.c.
27637         * tests/test-pwrite.c: Include string.h, for strcmp.
27638
27639 2010-05-24  Bruno Haible  <bruno@clisp.org>
27640
27641         * NEWS: Mention requirement for Automake option 'subdir-objects'.
27642
27643 2010-05-24  Bruno Haible  <bruno@clisp.org>
27644
27645         Don't use conversion with transliteration in u{8,16,32}_strcoll.
27646         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
27647         iconveh_error argument.
27648         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
27649         U_STRCONV_TO_LOCALE.
27650         * lib/unistr/u16-strcoll.c: Likewise.
27651         * lib/unistr/u32-strcoll.c: Likewise.
27652         * modules/unistr/u8-strcoll (Depends-on): Add
27653         uniconv/u8-strconv-to-enc, localcharset. Remove
27654         uniconv/u8-strconv-to-locale.
27655         (configure.ac): Bump version number.
27656         * modules/unistr/u16-strcoll (Depends-on): Add
27657         uniconv/u16-strconv-to-enc, localcharset. Remove
27658         uniconv/u16-strconv-to-locale.
27659         (configure.ac): Bump version number.
27660         * modules/unistr/u32-strcoll (Depends-on): Add
27661         uniconv/u32-strconv-to-enc, localcharset. Remove
27662         uniconv/u32-strconv-to-locale.
27663         (configure.ac): Bump version number.
27664
27665 2010-05-24  Bruno Haible  <bruno@clisp.org>
27666
27667         Avoid a test failure on NetBSD 5.0.
27668         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
27669         an iconv() bug.
27670
27671 2010-05-24  Bruno Haible  <bruno@clisp.org>
27672
27673         Adjust #include directive style.
27674         * modules/regex (Includes): Recommend to write <regex.h>.
27675
27676 2010-05-24  Bruno Haible  <bruno@clisp.org>
27677
27678         regex: Don't require alloca.
27679         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
27680         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
27681         only inside if (0).
27682
27683 2010-05-23  Jim Meyering  <meyering@redhat.com>
27684
27685         test-renameat.c: include <sys/stat.h>
27686         * tests/test-renameat.c: Include <sys/stat.h>; required for
27687         definition of S_IS* macros.
27688
27689 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
27690
27691         Update maintainer documentation for 'relocatable-prog' module.
27692         * doc/relocatable-maint.texi: Update.
27693         Comments by Bruno Haible.
27694
27695 2010-05-23  Bruno Haible  <bruno@clisp.org>
27696
27697         git-merge-changelog: Enable --split-merged-entry by default.
27698         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
27699         (usage): Don't mention this option any more.
27700         Reported by Ralf Wildenhues.
27701
27702 2010-05-23  Jim Meyering  <meyering@redhat.com>
27703
27704         test-pwrite: do not leave behind a test file named "out"
27705         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
27706         The trivial-looking use of init.sh is really necessary.
27707         It ensures that the temporary file, "out", is created in
27708         a temporary directory, and removed upon termination.
27709         * tests/test-pwrite.sh: Re-add file.
27710         * modules/pwrite-tests: Reference it.
27711
27712 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27713
27714         Fix output redirection buglet in init.sh.
27715         * tests/init.sh: Fix redirection of stderr.
27716
27717 2010-05-20  Simon Josefsson  <simon@josefsson.org>
27718
27719         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
27720
27721 2010-05-17  Simon Josefsson  <simon@josefsson.org>
27722
27723         * modules/valgrind-tests: New file.
27724         * m4/valgrind-tests.m4: New file.
27725         * doc/valgrind-tests.texi: New file.
27726         * doc/gnulib.texi (Running self-tests under valgrind): New
27727         section.
27728
27729 2010-05-19  Bruno Haible  <bruno@clisp.org>
27730
27731         Clean up dead code in recent commit.
27732         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
27733         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
27734         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
27735         Suggested by Paolo Bonzini.
27736
27737 2010-05-19  Bruno Haible  <bruno@clisp.org>
27738
27739         Avoid valgrind error reports from libunistring.
27740         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
27741         * modules/libunistring (Files): Add it.
27742         * modules/libunistring-optional (Files): Likewise.
27743
27744 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
27745             Bruno Haible  <bruno@clisp.org>
27746
27747         New module 'libunistring-optional'.
27748         * modules/libunistring-optional: New file.
27749         * m4/libunistring-base.m4: New file.
27750         * m4/libunistring-optional.m4: New file.
27751         * lib/unicase.in.h: Renamed from lib/unicase.h.
27752         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
27753         * lib/unictype.in.h: Renamed from lib/unictype.h.
27754         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
27755         * lib/uniname.in.h: Renamed from lib/uniname.h.
27756         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
27757         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
27758         * lib/unistr.in.h: Renamed from lib/unistr.h.
27759         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
27760         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
27761         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
27762         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
27763         gl_LIBUNISTRING. If the library was found, determine the installed
27764         version and set LIBUNISTRING_VERSION.
27765         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
27766         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
27767         handle a configuration option --with-included-libunistring.
27768         * modules/libunistring (Files): Add m4/absolute-header.m4.
27769         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
27770         Add m4/libunistring-base.m4.
27771         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27772         (Makefile.am): Build unicase.h from unicase.in.h.
27773         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
27774         Add m4/libunistring-base.m4.
27775         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27776         (Makefile.am): Build uniconv.h from uniconv.in.h.
27777         * modules/unictype/base (Files): Use unictype.in.h instead of
27778         unictype.h. Add m4/libunistring-base.m4.
27779         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27780         (Makefile.am): Build unictype.h from unictype.in.h.
27781         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
27782         Add m4/libunistring-base.m4.
27783         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27784         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
27785         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
27786         Add m4/libunistring-base.m4.
27787         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27788         (Makefile.am): Build uniname.h from uniname.in.h.
27789         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
27790         Add m4/libunistring-base.m4.
27791         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27792         (Makefile.am): Build uninorm.h from uninorm.in.h.
27793         * modules/unistdio/base (Files): Use unistdio.in.h instead of
27794         unistdio.h. Add m4/libunistring-base.m4.
27795         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27796         (Makefile.am): Build unistdio.h from unistdio.in.h.
27797         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
27798         Add m4/libunistring-base.m4.
27799         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27800         (Makefile.am): Build unistr.h from unistr.in.h.
27801         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
27802         Add m4/libunistring-base.m4.
27803         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27804         (Makefile.am): Build unitypes.h from unitypes.in.h.
27805         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
27806         Add m4/libunistring-base.m4.
27807         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27808         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
27809         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
27810         uniwidth.h. Add m4/libunistring-base.m4.
27811         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27812         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
27813         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
27814         instead of augmenting lib_SOURCES.
27815         * modules/unicase/empty-suffix-context: Likewise.
27816         * modules/unicase/locale-language: Likewise.
27817         * modules/unicase/tolower: Likewise.
27818         * modules/unicase/totitle: Likewise.
27819         * modules/unicase/toupper: Likewise.
27820         * modules/unicase/u8-casecmp: Likewise.
27821         * modules/unicase/u8-casecoll: Likewise.
27822         * modules/unicase/u8-casefold: Likewise.
27823         * modules/unicase/u8-casexfrm: Likewise.
27824         * modules/unicase/u8-ct-casefold: Likewise.
27825         * modules/unicase/u8-ct-tolower: Likewise.
27826         * modules/unicase/u8-ct-totitle: Likewise.
27827         * modules/unicase/u8-ct-toupper: Likewise.
27828         * modules/unicase/u8-is-cased: Likewise.
27829         * modules/unicase/u8-is-casefolded: Likewise.
27830         * modules/unicase/u8-is-lowercase: Likewise.
27831         * modules/unicase/u8-is-titlecase: Likewise.
27832         * modules/unicase/u8-is-uppercase: Likewise.
27833         * modules/unicase/u8-prefix-context: Likewise.
27834         * modules/unicase/u8-suffix-context: Likewise.
27835         * modules/unicase/u8-tolower: Likewise.
27836         * modules/unicase/u8-totitle: Likewise.
27837         * modules/unicase/u8-toupper: Likewise.
27838         * modules/unicase/u16-casecmp: Likewise.
27839         * modules/unicase/u16-casecoll: Likewise.
27840         * modules/unicase/u16-casefold: Likewise.
27841         * modules/unicase/u16-casexfrm: Likewise.
27842         * modules/unicase/u16-ct-casefold: Likewise.
27843         * modules/unicase/u16-ct-tolower: Likewise.
27844         * modules/unicase/u16-ct-totitle: Likewise.
27845         * modules/unicase/u16-ct-toupper: Likewise.
27846         * modules/unicase/u16-is-cased: Likewise.
27847         * modules/unicase/u16-is-casefolded: Likewise.
27848         * modules/unicase/u16-is-lowercase: Likewise.
27849         * modules/unicase/u16-is-titlecase: Likewise.
27850         * modules/unicase/u16-is-uppercase: Likewise.
27851         * modules/unicase/u16-prefix-context: Likewise.
27852         * modules/unicase/u16-suffix-context: Likewise.
27853         * modules/unicase/u16-tolower: Likewise.
27854         * modules/unicase/u16-totitle: Likewise.
27855         * modules/unicase/u16-toupper: Likewise.
27856         * modules/unicase/u32-casecmp: Likewise.
27857         * modules/unicase/u32-casecoll: Likewise.
27858         * modules/unicase/u32-casefold: Likewise.
27859         * modules/unicase/u32-casexfrm: Likewise.
27860         * modules/unicase/u32-ct-casefold: Likewise.
27861         * modules/unicase/u32-ct-tolower: Likewise.
27862         * modules/unicase/u32-ct-totitle: Likewise.
27863         * modules/unicase/u32-ct-toupper: Likewise.
27864         * modules/unicase/u32-is-cased: Likewise.
27865         * modules/unicase/u32-is-casefolded: Likewise.
27866         * modules/unicase/u32-is-lowercase: Likewise.
27867         * modules/unicase/u32-is-titlecase: Likewise.
27868         * modules/unicase/u32-is-uppercase: Likewise.
27869         * modules/unicase/u32-prefix-context: Likewise.
27870         * modules/unicase/u32-suffix-context: Likewise.
27871         * modules/unicase/u32-tolower: Likewise.
27872         * modules/unicase/u32-totitle: Likewise.
27873         * modules/unicase/u32-toupper: Likewise.
27874         * modules/unicase/ulc-casecmp: Likewise.
27875         * modules/unicase/ulc-casecoll: Likewise.
27876         * modules/unicase/ulc-casexfrm: Likewise.
27877         * modules/uniconv/u8-conv-from-enc: Likewise.
27878         * modules/uniconv/u8-conv-to-enc: Likewise.
27879         * modules/uniconv/u8-strconv-from-enc: Likewise.
27880         * modules/uniconv/u8-strconv-from-locale: Likewise.
27881         * modules/uniconv/u8-strconv-to-enc: Likewise.
27882         * modules/uniconv/u8-strconv-to-locale: Likewise.
27883         * modules/uniconv/u16-conv-from-enc: Likewise.
27884         * modules/uniconv/u16-conv-to-enc: Likewise.
27885         * modules/uniconv/u16-strconv-from-enc: Likewise.
27886         * modules/uniconv/u16-strconv-from-locale: Likewise.
27887         * modules/uniconv/u16-strconv-to-enc: Likewise.
27888         * modules/uniconv/u16-strconv-to-locale: Likewise.
27889         * modules/uniconv/u32-conv-from-enc: Likewise.
27890         * modules/uniconv/u32-conv-to-enc: Likewise.
27891         * modules/uniconv/u32-strconv-from-enc: Likewise.
27892         * modules/uniconv/u32-strconv-from-locale: Likewise.
27893         * modules/uniconv/u32-strconv-to-enc: Likewise.
27894         * modules/uniconv/u32-strconv-to-locale: Likewise.
27895         * modules/unictype/bidicategory-byname: Likewise.
27896         * modules/unictype/bidicategory-name: Likewise.
27897         * modules/unictype/bidicategory-of: Likewise.
27898         * modules/unictype/bidicategory-test: Likewise.
27899         * modules/unictype/block-list: Likewise.
27900         * modules/unictype/block-test: Likewise.
27901         * modules/unictype/category-C: Likewise.
27902         * modules/unictype/category-Cc: Likewise.
27903         * modules/unictype/category-Cf: Likewise.
27904         * modules/unictype/category-Cn: Likewise.
27905         * modules/unictype/category-Co: Likewise.
27906         * modules/unictype/category-Cs: Likewise.
27907         * modules/unictype/category-L: Likewise.
27908         * modules/unictype/category-Ll: Likewise.
27909         * modules/unictype/category-Lm: Likewise.
27910         * modules/unictype/category-Lo: Likewise.
27911         * modules/unictype/category-Lt: Likewise.
27912         * modules/unictype/category-Lu: Likewise.
27913         * modules/unictype/category-M: Likewise.
27914         * modules/unictype/category-Mc: Likewise.
27915         * modules/unictype/category-Me: Likewise.
27916         * modules/unictype/category-Mn: Likewise.
27917         * modules/unictype/category-N: Likewise.
27918         * modules/unictype/category-Nd: Likewise.
27919         * modules/unictype/category-Nl: Likewise.
27920         * modules/unictype/category-No: Likewise.
27921         * modules/unictype/category-P: Likewise.
27922         * modules/unictype/category-Pc: Likewise.
27923         * modules/unictype/category-Pd: Likewise.
27924         * modules/unictype/category-Pe: Likewise.
27925         * modules/unictype/category-Pf: Likewise.
27926         * modules/unictype/category-Pi: Likewise.
27927         * modules/unictype/category-Po: Likewise.
27928         * modules/unictype/category-Ps: Likewise.
27929         * modules/unictype/category-S: Likewise.
27930         * modules/unictype/category-Sc: Likewise.
27931         * modules/unictype/category-Sk: Likewise.
27932         * modules/unictype/category-Sm: Likewise.
27933         * modules/unictype/category-So: Likewise.
27934         * modules/unictype/category-Z: Likewise.
27935         * modules/unictype/category-Zl: Likewise.
27936         * modules/unictype/category-Zp: Likewise.
27937         * modules/unictype/category-Zs: Likewise.
27938         * modules/unictype/category-and: Likewise.
27939         * modules/unictype/category-and-not: Likewise.
27940         * modules/unictype/category-byname: Likewise.
27941         * modules/unictype/category-name: Likewise.
27942         * modules/unictype/category-none: Likewise.
27943         * modules/unictype/category-of: Likewise.
27944         * modules/unictype/category-or: Likewise.
27945         * modules/unictype/category-test: Likewise.
27946         * modules/unictype/combining-class: Likewise.
27947         * modules/unictype/ctype-alnum: Likewise.
27948         * modules/unictype/ctype-alpha: Likewise.
27949         * modules/unictype/ctype-blank: Likewise.
27950         * modules/unictype/ctype-cntrl: Likewise.
27951         * modules/unictype/ctype-digit: Likewise.
27952         * modules/unictype/ctype-graph: Likewise.
27953         * modules/unictype/ctype-lower: Likewise.
27954         * modules/unictype/ctype-print: Likewise.
27955         * modules/unictype/ctype-punct: Likewise.
27956         * modules/unictype/ctype-space: Likewise.
27957         * modules/unictype/ctype-upper: Likewise.
27958         * modules/unictype/ctype-xdigit: Likewise.
27959         * modules/unictype/decimal-digit: Likewise.
27960         * modules/unictype/digit: Likewise.
27961         * modules/unictype/mirror: Likewise.
27962         * modules/unictype/numeric: Likewise.
27963         * modules/unictype/property-alphabetic: Likewise.
27964         * modules/unictype/property-ascii-hex-digit: Likewise.
27965         * modules/unictype/property-bidi-arabic-digit: Likewise.
27966         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
27967         * modules/unictype/property-bidi-block-separator: Likewise.
27968         * modules/unictype/property-bidi-boundary-neutral: Likewise.
27969         * modules/unictype/property-bidi-common-separator: Likewise.
27970         * modules/unictype/property-bidi-control: Likewise.
27971         * modules/unictype/property-bidi-embedding-or-override: Likewise.
27972         * modules/unictype/property-bidi-eur-num-separator: Likewise.
27973         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
27974         * modules/unictype/property-bidi-european-digit: Likewise.
27975         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
27976         * modules/unictype/property-bidi-left-to-right: Likewise.
27977         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
27978         * modules/unictype/property-bidi-other-neutral: Likewise.
27979         * modules/unictype/property-bidi-pdf: Likewise.
27980         * modules/unictype/property-bidi-segment-separator: Likewise.
27981         * modules/unictype/property-bidi-whitespace: Likewise.
27982         * modules/unictype/property-byname: Likewise.
27983         * modules/unictype/property-combining: Likewise.
27984         * modules/unictype/property-composite: Likewise.
27985         * modules/unictype/property-currency-symbol: Likewise.
27986         * modules/unictype/property-dash: Likewise.
27987         * modules/unictype/property-decimal-digit: Likewise.
27988         * modules/unictype/property-default-ignorable-code-point: Likewise.
27989         * modules/unictype/property-deprecated: Likewise.
27990         * modules/unictype/property-diacritic: Likewise.
27991         * modules/unictype/property-extender: Likewise.
27992         * modules/unictype/property-format-control: Likewise.
27993         * modules/unictype/property-grapheme-base: Likewise.
27994         * modules/unictype/property-grapheme-extend: Likewise.
27995         * modules/unictype/property-grapheme-link: Likewise.
27996         * modules/unictype/property-hex-digit: Likewise.
27997         * modules/unictype/property-hyphen: Likewise.
27998         * modules/unictype/property-id-continue: Likewise.
27999         * modules/unictype/property-id-start: Likewise.
28000         * modules/unictype/property-ideographic: Likewise.
28001         * modules/unictype/property-ids-binary-operator: Likewise.
28002         * modules/unictype/property-ids-trinary-operator: Likewise.
28003         * modules/unictype/property-ignorable-control: Likewise.
28004         * modules/unictype/property-iso-control: Likewise.
28005         * modules/unictype/property-join-control: Likewise.
28006         * modules/unictype/property-left-of-pair: Likewise.
28007         * modules/unictype/property-line-separator: Likewise.
28008         * modules/unictype/property-logical-order-exception: Likewise.
28009         * modules/unictype/property-lowercase: Likewise.
28010         * modules/unictype/property-math: Likewise.
28011         * modules/unictype/property-non-break: Likewise.
28012         * modules/unictype/property-not-a-character: Likewise.
28013         * modules/unictype/property-numeric: Likewise.
28014         * modules/unictype/property-other-alphabetic: Likewise.
28015         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
28016         * modules/unictype/property-other-grapheme-extend: Likewise.
28017         * modules/unictype/property-other-id-continue: Likewise.
28018         * modules/unictype/property-other-id-start: Likewise.
28019         * modules/unictype/property-other-lowercase: Likewise.
28020         * modules/unictype/property-other-math: Likewise.
28021         * modules/unictype/property-other-uppercase: Likewise.
28022         * modules/unictype/property-paired-punctuation: Likewise.
28023         * modules/unictype/property-paragraph-separator: Likewise.
28024         * modules/unictype/property-pattern-syntax: Likewise.
28025         * modules/unictype/property-pattern-white-space: Likewise.
28026         * modules/unictype/property-private-use: Likewise.
28027         * modules/unictype/property-punctuation: Likewise.
28028         * modules/unictype/property-quotation-mark: Likewise.
28029         * modules/unictype/property-radical: Likewise.
28030         * modules/unictype/property-sentence-terminal: Likewise.
28031         * modules/unictype/property-soft-dotted: Likewise.
28032         * modules/unictype/property-space: Likewise.
28033         * modules/unictype/property-terminal-punctuation: Likewise.
28034         * modules/unictype/property-test: Likewise.
28035         * modules/unictype/property-titlecase: Likewise.
28036         * modules/unictype/property-unassigned-code-value: Likewise.
28037         * modules/unictype/property-unified-ideograph: Likewise.
28038         * modules/unictype/property-uppercase: Likewise.
28039         * modules/unictype/property-variation-selector: Likewise.
28040         * modules/unictype/property-white-space: Likewise.
28041         * modules/unictype/property-xid-continue: Likewise.
28042         * modules/unictype/property-xid-start: Likewise.
28043         * modules/unictype/property-zero-width: Likewise.
28044         * modules/unictype/scripts: Likewise.
28045         * modules/unictype/syntax-c-ident: Likewise.
28046         * modules/unictype/syntax-c-whitespace: Likewise.
28047         * modules/unictype/syntax-java-ident: Likewise.
28048         * modules/unictype/syntax-java-whitespace: Likewise.
28049         * modules/unilbrk/u8-possible-linebreaks: Likewise.
28050         * modules/unilbrk/u8-width-linebreaks: Likewise.
28051         * modules/unilbrk/u16-possible-linebreaks: Likewise.
28052         * modules/unilbrk/u16-width-linebreaks: Likewise.
28053         * modules/unilbrk/u32-possible-linebreaks: Likewise.
28054         * modules/unilbrk/u32-width-linebreaks: Likewise.
28055         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
28056         * modules/unilbrk/ulc-width-linebreaks: Likewise.
28057         * modules/uniname/uniname: Likewise.
28058         * modules/uninorm/canonical-decomposition: Likewise.
28059         * modules/uninorm/composition: Likewise.
28060         * modules/uninorm/decomposing-form: Likewise.
28061         * modules/uninorm/decomposition: Likewise.
28062         * modules/uninorm/filter: Likewise.
28063         * modules/uninorm/nfc: Likewise.
28064         * modules/uninorm/nfd: Likewise.
28065         * modules/uninorm/nfkc: Likewise.
28066         * modules/uninorm/nfkd: Likewise.
28067         * modules/uninorm/u8-normalize: Likewise.
28068         * modules/uninorm/u8-normcmp: Likewise.
28069         * modules/uninorm/u8-normcoll: Likewise.
28070         * modules/uninorm/u8-normxfrm: Likewise.
28071         * modules/uninorm/u16-normalize: Likewise.
28072         * modules/uninorm/u16-normcmp: Likewise.
28073         * modules/uninorm/u16-normcoll: Likewise.
28074         * modules/uninorm/u16-normxfrm: Likewise.
28075         * modules/uninorm/u32-normalize: Likewise.
28076         * modules/uninorm/u32-normcmp: Likewise.
28077         * modules/uninorm/u32-normcoll: Likewise.
28078         * modules/uninorm/u32-normxfrm: Likewise.
28079         * modules/unistdio/u8-asnprintf: Likewise.
28080         * modules/unistdio/u8-asprintf: Likewise.
28081         * modules/unistdio/u8-snprintf: Likewise.
28082         * modules/unistdio/u8-sprintf: Likewise.
28083         * modules/unistdio/u8-u8-asnprintf: Likewise.
28084         * modules/unistdio/u8-u8-asprintf: Likewise.
28085         * modules/unistdio/u8-u8-snprintf: Likewise.
28086         * modules/unistdio/u8-u8-sprintf: Likewise.
28087         * modules/unistdio/u8-u8-vasnprintf: Likewise.
28088         * modules/unistdio/u8-u8-vasprintf: Likewise.
28089         * modules/unistdio/u8-u8-vsnprintf: Likewise.
28090         * modules/unistdio/u8-u8-vsprintf: Likewise.
28091         * modules/unistdio/u8-vasnprintf: Likewise.
28092         * modules/unistdio/u8-vasprintf: Likewise.
28093         * modules/unistdio/u8-vsnprintf: Likewise.
28094         * modules/unistdio/u8-vsprintf: Likewise.
28095         * modules/unistdio/u16-asnprintf: Likewise.
28096         * modules/unistdio/u16-asprintf: Likewise.
28097         * modules/unistdio/u16-snprintf: Likewise.
28098         * modules/unistdio/u16-sprintf: Likewise.
28099         * modules/unistdio/u16-u16-asnprintf: Likewise.
28100         * modules/unistdio/u16-u16-asprintf: Likewise.
28101         * modules/unistdio/u16-u16-snprintf: Likewise.
28102         * modules/unistdio/u16-u16-sprintf: Likewise.
28103         * modules/unistdio/u16-u16-vasnprintf: Likewise.
28104         * modules/unistdio/u16-u16-vasprintf: Likewise.
28105         * modules/unistdio/u16-u16-vsnprintf: Likewise.
28106         * modules/unistdio/u16-u16-vsprintf: Likewise.
28107         * modules/unistdio/u16-vasnprintf: Likewise.
28108         * modules/unistdio/u16-vasprintf: Likewise.
28109         * modules/unistdio/u16-vsnprintf: Likewise.
28110         * modules/unistdio/u16-vsprintf: Likewise.
28111         * modules/unistdio/u32-asnprintf: Likewise.
28112         * modules/unistdio/u32-asprintf: Likewise.
28113         * modules/unistdio/u32-snprintf: Likewise.
28114         * modules/unistdio/u32-sprintf: Likewise.
28115         * modules/unistdio/u32-u32-asnprintf: Likewise.
28116         * modules/unistdio/u32-u32-asprintf: Likewise.
28117         * modules/unistdio/u32-u32-snprintf: Likewise.
28118         * modules/unistdio/u32-u32-sprintf: Likewise.
28119         * modules/unistdio/u32-u32-vasnprintf: Likewise.
28120         * modules/unistdio/u32-u32-vasprintf: Likewise.
28121         * modules/unistdio/u32-u32-vsnprintf: Likewise.
28122         * modules/unistdio/u32-u32-vsprintf: Likewise.
28123         * modules/unistdio/u32-vasnprintf: Likewise.
28124         * modules/unistdio/u32-vasprintf: Likewise.
28125         * modules/unistdio/u32-vsnprintf: Likewise.
28126         * modules/unistdio/u32-vsprintf: Likewise.
28127         * modules/unistdio/ulc-asnprintf: Likewise.
28128         * modules/unistdio/ulc-asprintf: Likewise.
28129         * modules/unistdio/ulc-fprintf: Likewise.
28130         * modules/unistdio/ulc-snprintf: Likewise.
28131         * modules/unistdio/ulc-sprintf: Likewise.
28132         * modules/unistdio/ulc-vasnprintf: Likewise.
28133         * modules/unistdio/ulc-vasprintf: Likewise.
28134         * modules/unistdio/ulc-vfprintf: Likewise.
28135         * modules/unistdio/ulc-vsnprintf: Likewise.
28136         * modules/unistdio/ulc-vsprintf: Likewise.
28137         * modules/unistr/u8-check: Likewise.
28138         * modules/unistr/u8-chr: Likewise.
28139         * modules/unistr/u8-cmp: Likewise.
28140         * modules/unistr/u8-cmp2: Likewise.
28141         * modules/unistr/u8-cpy: Likewise.
28142         * modules/unistr/u8-cpy-alloc: Likewise.
28143         * modules/unistr/u8-endswith: Likewise.
28144         * modules/unistr/u8-mblen: Likewise.
28145         * modules/unistr/u8-mbsnlen: Likewise.
28146         * modules/unistr/u8-mbtouc: Likewise.
28147         * modules/unistr/u8-mbtouc-unsafe: Likewise.
28148         * modules/unistr/u8-mbtoucr: Likewise.
28149         * modules/unistr/u8-move: Likewise.
28150         * modules/unistr/u8-next: Likewise.
28151         * modules/unistr/u8-prev: Likewise.
28152         * modules/unistr/u8-set: Likewise.
28153         * modules/unistr/u8-startswith: Likewise.
28154         * modules/unistr/u8-stpcpy: Likewise.
28155         * modules/unistr/u8-stpncpy: Likewise.
28156         * modules/unistr/u8-strcat: Likewise.
28157         * modules/unistr/u8-strchr: Likewise.
28158         * modules/unistr/u8-strcmp: Likewise.
28159         * modules/unistr/u8-strcoll: Likewise.
28160         * modules/unistr/u8-strcpy: Likewise.
28161         * modules/unistr/u8-strcspn: Likewise.
28162         * modules/unistr/u8-strdup: Likewise.
28163         * modules/unistr/u8-strlen: Likewise.
28164         * modules/unistr/u8-strmblen: Likewise.
28165         * modules/unistr/u8-strmbtouc: Likewise.
28166         * modules/unistr/u8-strncat: Likewise.
28167         * modules/unistr/u8-strncmp: Likewise.
28168         * modules/unistr/u8-strncpy: Likewise.
28169         * modules/unistr/u8-strnlen: Likewise.
28170         * modules/unistr/u8-strpbrk: Likewise.
28171         * modules/unistr/u8-strrchr: Likewise.
28172         * modules/unistr/u8-strspn: Likewise.
28173         * modules/unistr/u8-strstr: Likewise.
28174         * modules/unistr/u8-strtok: Likewise.
28175         * modules/unistr/u8-to-u16: Likewise.
28176         * modules/unistr/u8-to-u32: Likewise.
28177         * modules/unistr/u8-uctomb: Likewise.
28178         * modules/unistr/u16-check: Likewise.
28179         * modules/unistr/u16-chr: Likewise.
28180         * modules/unistr/u16-cmp: Likewise.
28181         * modules/unistr/u16-cmp2: Likewise.
28182         * modules/unistr/u16-cpy: Likewise.
28183         * modules/unistr/u16-cpy-alloc: Likewise.
28184         * modules/unistr/u16-endswith: Likewise.
28185         * modules/unistr/u16-mblen: Likewise.
28186         * modules/unistr/u16-mbsnlen: Likewise.
28187         * modules/unistr/u16-mbtouc: Likewise.
28188         * modules/unistr/u16-mbtouc-unsafe: Likewise.
28189         * modules/unistr/u16-mbtoucr: Likewise.
28190         * modules/unistr/u16-move: Likewise.
28191         * modules/unistr/u16-next: Likewise.
28192         * modules/unistr/u16-prev: Likewise.
28193         * modules/unistr/u16-set: Likewise.
28194         * modules/unistr/u16-startswith: Likewise.
28195         * modules/unistr/u16-stpcpy: Likewise.
28196         * modules/unistr/u16-stpncpy: Likewise.
28197         * modules/unistr/u16-strcat: Likewise.
28198         * modules/unistr/u16-strchr: Likewise.
28199         * modules/unistr/u16-strcmp: Likewise.
28200         * modules/unistr/u16-strcoll: Likewise.
28201         * modules/unistr/u16-strcpy: Likewise.
28202         * modules/unistr/u16-strcspn: Likewise.
28203         * modules/unistr/u16-strdup: Likewise.
28204         * modules/unistr/u16-strlen: Likewise.
28205         * modules/unistr/u16-strmblen: Likewise.
28206         * modules/unistr/u16-strmbtouc: Likewise.
28207         * modules/unistr/u16-strncat: Likewise.
28208         * modules/unistr/u16-strncmp: Likewise.
28209         * modules/unistr/u16-strncpy: Likewise.
28210         * modules/unistr/u16-strnlen: Likewise.
28211         * modules/unistr/u16-strpbrk: Likewise.
28212         * modules/unistr/u16-strrchr: Likewise.
28213         * modules/unistr/u16-strspn: Likewise.
28214         * modules/unistr/u16-strstr: Likewise.
28215         * modules/unistr/u16-strtok: Likewise.
28216         * modules/unistr/u16-to-u32: Likewise.
28217         * modules/unistr/u16-to-u8: Likewise.
28218         * modules/unistr/u16-uctomb: Likewise.
28219         * modules/unistr/u32-check: Likewise.
28220         * modules/unistr/u32-chr: Likewise.
28221         * modules/unistr/u32-cmp: Likewise.
28222         * modules/unistr/u32-cmp2: Likewise.
28223         * modules/unistr/u32-cpy: Likewise.
28224         * modules/unistr/u32-cpy-alloc: Likewise.
28225         * modules/unistr/u32-endswith: Likewise.
28226         * modules/unistr/u32-mblen: Likewise.
28227         * modules/unistr/u32-mbsnlen: Likewise.
28228         * modules/unistr/u32-mbtouc: Likewise.
28229         * modules/unistr/u32-mbtouc-unsafe: Likewise.
28230         * modules/unistr/u32-mbtoucr: Likewise.
28231         * modules/unistr/u32-move: Likewise.
28232         * modules/unistr/u32-next: Likewise.
28233         * modules/unistr/u32-prev: Likewise.
28234         * modules/unistr/u32-set: Likewise.
28235         * modules/unistr/u32-startswith: Likewise.
28236         * modules/unistr/u32-stpcpy: Likewise.
28237         * modules/unistr/u32-stpncpy: Likewise.
28238         * modules/unistr/u32-strcat: Likewise.
28239         * modules/unistr/u32-strchr: Likewise.
28240         * modules/unistr/u32-strcmp: Likewise.
28241         * modules/unistr/u32-strcoll: Likewise.
28242         * modules/unistr/u32-strcpy: Likewise.
28243         * modules/unistr/u32-strcspn: Likewise.
28244         * modules/unistr/u32-strdup: Likewise.
28245         * modules/unistr/u32-strlen: Likewise.
28246         * modules/unistr/u32-strmblen: Likewise.
28247         * modules/unistr/u32-strmbtouc: Likewise.
28248         * modules/unistr/u32-strncat: Likewise.
28249         * modules/unistr/u32-strncmp: Likewise.
28250         * modules/unistr/u32-strncpy: Likewise.
28251         * modules/unistr/u32-strnlen: Likewise.
28252         * modules/unistr/u32-strpbrk: Likewise.
28253         * modules/unistr/u32-strrchr: Likewise.
28254         * modules/unistr/u32-strspn: Likewise.
28255         * modules/unistr/u32-strstr: Likewise.
28256         * modules/unistr/u32-strtok: Likewise.
28257         * modules/unistr/u32-to-u16: Likewise.
28258         * modules/unistr/u32-to-u8: Likewise.
28259         * modules/unistr/u32-uctomb: Likewise.
28260         * modules/uniwbrk/u8-wordbreaks: Likewise.
28261         * modules/uniwbrk/u16-wordbreaks: Likewise.
28262         * modules/uniwbrk/u32-wordbreaks: Likewise.
28263         * modules/uniwbrk/ulc-wordbreaks: Likewise.
28264         * modules/uniwbrk/wordbreak-property: Likewise.
28265         * modules/uniwidth/u8-strwidth: Likewise.
28266         * modules/uniwidth/u8-width: Likewise.
28267         * modules/uniwidth/u16-strwidth: Likewise.
28268         * modules/uniwidth/u16-width: Likewise.
28269         * modules/uniwidth/u32-strwidth: Likewise.
28270         * modules/uniwidth/u32-width: Likewise.
28271         * modules/uniwidth/width: Likewise.
28272         * modules/unicase/cased-tests (Makefile.am): Link all test programs
28273         with $(LIBUNISTRING).
28274         * modules/unicase/ignorable-tests: Likewise.
28275         * modules/unicase/locale-language-tests: Likewise.
28276         * modules/unicase/tolower-tests: Likewise.
28277         * modules/unicase/totitle-tests: Likewise.
28278         * modules/unicase/toupper-tests: Likewise.
28279         * modules/unicase/u8-casecmp-tests: Likewise.
28280         * modules/unicase/u8-casecoll-tests: Likewise.
28281         * modules/unicase/u8-casefold-tests: Likewise.
28282         * modules/unicase/u8-is-cased-tests: Likewise.
28283         * modules/unicase/u8-is-casefolded-tests: Likewise.
28284         * modules/unicase/u8-is-lowercase-tests: Likewise.
28285         * modules/unicase/u8-is-titlecase-tests: Likewise.
28286         * modules/unicase/u8-is-uppercase-tests: Likewise.
28287         * modules/unicase/u8-tolower-tests: Likewise.
28288         * modules/unicase/u8-totitle-tests: Likewise.
28289         * modules/unicase/u8-toupper-tests: Likewise.
28290         * modules/unicase/u16-casecmp-tests: Likewise.
28291         * modules/unicase/u16-casecoll-tests: Likewise.
28292         * modules/unicase/u16-casefold-tests: Likewise.
28293         * modules/unicase/u16-is-cased-tests: Likewise.
28294         * modules/unicase/u16-is-casefolded-tests: Likewise.
28295         * modules/unicase/u16-is-lowercase-tests: Likewise.
28296         * modules/unicase/u16-is-titlecase-tests: Likewise.
28297         * modules/unicase/u16-is-uppercase-tests: Likewise.
28298         * modules/unicase/u16-tolower-tests: Likewise.
28299         * modules/unicase/u16-totitle-tests: Likewise.
28300         * modules/unicase/u16-toupper-tests: Likewise.
28301         * modules/unicase/u32-casecmp-tests: Likewise.
28302         * modules/unicase/u32-casecoll-tests: Likewise.
28303         * modules/unicase/u32-casefold-tests: Likewise.
28304         * modules/unicase/u32-is-cased-tests: Likewise.
28305         * modules/unicase/u32-is-casefolded-tests: Likewise.
28306         * modules/unicase/u32-is-lowercase-tests: Likewise.
28307         * modules/unicase/u32-is-titlecase-tests: Likewise.
28308         * modules/unicase/u32-is-uppercase-tests: Likewise.
28309         * modules/unicase/u32-tolower-tests: Likewise.
28310         * modules/unicase/u32-totitle-tests: Likewise.
28311         * modules/unicase/u32-toupper-tests: Likewise.
28312         * modules/unicase/ulc-casecmp-tests: Likewise.
28313         * modules/unicase/ulc-casecoll-tests: Likewise.
28314         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
28315         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
28316         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
28317         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
28318         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
28319         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
28320         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
28321         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
28322         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
28323         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
28324         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
28325         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
28326         * modules/unictype/bidicategory-byname-tests: Likewise.
28327         * modules/unictype/bidicategory-name-tests: Likewise.
28328         * modules/unictype/bidicategory-of-tests: Likewise.
28329         * modules/unictype/bidicategory-test-tests: Likewise.
28330         * modules/unictype/block-list-tests: Likewise.
28331         * modules/unictype/block-of-tests: Likewise.
28332         * modules/unictype/block-test-tests: Likewise.
28333         * modules/unictype/category-C-tests: Likewise.
28334         * modules/unictype/category-Cc-tests: Likewise.
28335         * modules/unictype/category-Cf-tests: Likewise.
28336         * modules/unictype/category-Cn-tests: Likewise.
28337         * modules/unictype/category-Co-tests: Likewise.
28338         * modules/unictype/category-Cs-tests: Likewise.
28339         * modules/unictype/category-L-tests: Likewise.
28340         * modules/unictype/category-Ll-tests: Likewise.
28341         * modules/unictype/category-Lm-tests: Likewise.
28342         * modules/unictype/category-Lo-tests: Likewise.
28343         * modules/unictype/category-Lt-tests: Likewise.
28344         * modules/unictype/category-Lu-tests: Likewise.
28345         * modules/unictype/category-M-tests: Likewise.
28346         * modules/unictype/category-Mc-tests: Likewise.
28347         * modules/unictype/category-Me-tests: Likewise.
28348         * modules/unictype/category-Mn-tests: Likewise.
28349         * modules/unictype/category-N-tests: Likewise.
28350         * modules/unictype/category-Nd-tests: Likewise.
28351         * modules/unictype/category-Nl-tests: Likewise.
28352         * modules/unictype/category-No-tests: Likewise.
28353         * modules/unictype/category-P-tests: Likewise.
28354         * modules/unictype/category-Pc-tests: Likewise.
28355         * modules/unictype/category-Pd-tests: Likewise.
28356         * modules/unictype/category-Pe-tests: Likewise.
28357         * modules/unictype/category-Pf-tests: Likewise.
28358         * modules/unictype/category-Pi-tests: Likewise.
28359         * modules/unictype/category-Po-tests: Likewise.
28360         * modules/unictype/category-Ps-tests: Likewise.
28361         * modules/unictype/category-S-tests: Likewise.
28362         * modules/unictype/category-Sc-tests: Likewise.
28363         * modules/unictype/category-Sk-tests: Likewise.
28364         * modules/unictype/category-Sm-tests: Likewise.
28365         * modules/unictype/category-So-tests: Likewise.
28366         * modules/unictype/category-Z-tests: Likewise.
28367         * modules/unictype/category-Zl-tests: Likewise.
28368         * modules/unictype/category-Zp-tests: Likewise.
28369         * modules/unictype/category-Zs-tests: Likewise.
28370         * modules/unictype/category-and-not-tests: Likewise.
28371         * modules/unictype/category-and-tests: Likewise.
28372         * modules/unictype/category-byname-tests: Likewise.
28373         * modules/unictype/category-name-tests: Likewise.
28374         * modules/unictype/category-none-tests: Likewise.
28375         * modules/unictype/category-of-tests: Likewise.
28376         * modules/unictype/category-or-tests: Likewise.
28377         * modules/unictype/category-test-withtable-tests: Likewise.
28378         * modules/unictype/combining-class-tests: Likewise.
28379         * modules/unictype/ctype-alnum-tests: Likewise.
28380         * modules/unictype/ctype-alpha-tests: Likewise.
28381         * modules/unictype/ctype-blank-tests: Likewise.
28382         * modules/unictype/ctype-cntrl-tests: Likewise.
28383         * modules/unictype/ctype-digit-tests: Likewise.
28384         * modules/unictype/ctype-graph-tests: Likewise.
28385         * modules/unictype/ctype-lower-tests: Likewise.
28386         * modules/unictype/ctype-print-tests: Likewise.
28387         * modules/unictype/ctype-punct-tests: Likewise.
28388         * modules/unictype/ctype-space-tests: Likewise.
28389         * modules/unictype/ctype-upper-tests: Likewise.
28390         * modules/unictype/ctype-xdigit-tests: Likewise.
28391         * modules/unictype/decimal-digit-tests: Likewise.
28392         * modules/unictype/digit-tests: Likewise.
28393         * modules/unictype/mirror-tests: Likewise.
28394         * modules/unictype/numeric-tests: Likewise.
28395         * modules/unictype/property-alphabetic-tests: Likewise.
28396         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
28397         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
28398         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
28399         * modules/unictype/property-bidi-block-separator-tests: Likewise.
28400         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
28401         * modules/unictype/property-bidi-common-separator-tests: Likewise.
28402         * modules/unictype/property-bidi-control-tests: Likewise.
28403         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
28404         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
28405         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
28406         * modules/unictype/property-bidi-european-digit-tests: Likewise.
28407         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
28408         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
28409         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
28410         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
28411         * modules/unictype/property-bidi-pdf-tests: Likewise.
28412         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
28413         * modules/unictype/property-bidi-whitespace-tests: Likewise.
28414         * modules/unictype/property-byname-tests: Likewise.
28415         * modules/unictype/property-combining-tests: Likewise.
28416         * modules/unictype/property-composite-tests: Likewise.
28417         * modules/unictype/property-currency-symbol-tests: Likewise.
28418         * modules/unictype/property-dash-tests: Likewise.
28419         * modules/unictype/property-decimal-digit-tests: Likewise.
28420         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
28421         * modules/unictype/property-deprecated-tests: Likewise.
28422         * modules/unictype/property-diacritic-tests: Likewise.
28423         * modules/unictype/property-extender-tests: Likewise.
28424         * modules/unictype/property-format-control-tests: Likewise.
28425         * modules/unictype/property-grapheme-base-tests: Likewise.
28426         * modules/unictype/property-grapheme-extend-tests: Likewise.
28427         * modules/unictype/property-grapheme-link-tests: Likewise.
28428         * modules/unictype/property-hex-digit-tests: Likewise.
28429         * modules/unictype/property-hyphen-tests: Likewise.
28430         * modules/unictype/property-id-continue-tests: Likewise.
28431         * modules/unictype/property-id-start-tests: Likewise.
28432         * modules/unictype/property-ideographic-tests: Likewise.
28433         * modules/unictype/property-ids-binary-operator-tests: Likewise.
28434         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
28435         * modules/unictype/property-ignorable-control-tests: Likewise.
28436         * modules/unictype/property-iso-control-tests: Likewise.
28437         * modules/unictype/property-join-control-tests: Likewise.
28438         * modules/unictype/property-left-of-pair-tests: Likewise.
28439         * modules/unictype/property-line-separator-tests: Likewise.
28440         * modules/unictype/property-logical-order-exception-tests: Likewise.
28441         * modules/unictype/property-lowercase-tests: Likewise.
28442         * modules/unictype/property-math-tests: Likewise.
28443         * modules/unictype/property-non-break-tests: Likewise.
28444         * modules/unictype/property-not-a-character-tests: Likewise.
28445         * modules/unictype/property-numeric-tests: Likewise.
28446         * modules/unictype/property-other-alphabetic-tests: Likewise.
28447         * modules/unictype/property-other-default-ignorable-code-point-tests:
28448         Likewise.
28449         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
28450         * modules/unictype/property-other-id-continue-tests: Likewise.
28451         * modules/unictype/property-other-id-start-tests: Likewise.
28452         * modules/unictype/property-other-lowercase-tests: Likewise.
28453         * modules/unictype/property-other-math-tests: Likewise.
28454         * modules/unictype/property-other-uppercase-tests: Likewise.
28455         * modules/unictype/property-paired-punctuation-tests: Likewise.
28456         * modules/unictype/property-paragraph-separator-tests: Likewise.
28457         * modules/unictype/property-pattern-syntax-tests: Likewise.
28458         * modules/unictype/property-pattern-white-space-tests: Likewise.
28459         * modules/unictype/property-private-use-tests: Likewise.
28460         * modules/unictype/property-punctuation-tests: Likewise.
28461         * modules/unictype/property-quotation-mark-tests: Likewise.
28462         * modules/unictype/property-radical-tests: Likewise.
28463         * modules/unictype/property-sentence-terminal-tests: Likewise.
28464         * modules/unictype/property-soft-dotted-tests: Likewise.
28465         * modules/unictype/property-space-tests: Likewise.
28466         * modules/unictype/property-terminal-punctuation-tests: Likewise.
28467         * modules/unictype/property-test-tests: Likewise.
28468         * modules/unictype/property-titlecase-tests: Likewise.
28469         * modules/unictype/property-unassigned-code-value-tests: Likewise.
28470         * modules/unictype/property-unified-ideograph-tests: Likewise.
28471         * modules/unictype/property-uppercase-tests: Likewise.
28472         * modules/unictype/property-variation-selector-tests: Likewise.
28473         * modules/unictype/property-white-space-tests: Likewise.
28474         * modules/unictype/property-xid-continue-tests: Likewise.
28475         * modules/unictype/property-xid-start-tests: Likewise.
28476         * modules/unictype/property-zero-width-tests: Likewise.
28477         * modules/unictype/scripts-tests: Likewise.
28478         * modules/unictype/syntax-c-ident-tests: Likewise.
28479         * modules/unictype/syntax-c-whitespace-tests: Likewise.
28480         * modules/unictype/syntax-java-ident-tests: Likewise.
28481         * modules/unictype/syntax-java-whitespace-tests: Likewise.
28482         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
28483         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
28484         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
28485         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
28486         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
28487         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
28488         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
28489         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
28490         * modules/uniname/uniname-tests: Likewise.
28491         * modules/uninorm/canonical-decomposition-tests: Likewise.
28492         * modules/uninorm/compat-decomposition-tests: Likewise.
28493         * modules/uninorm/composition-tests: Likewise.
28494         * modules/uninorm/decomposing-form-tests: Likewise.
28495         * modules/uninorm/decomposition-tests: Likewise.
28496         * modules/uninorm/filter-tests: Likewise.
28497         * modules/uninorm/nfc-tests: Likewise.
28498         * modules/uninorm/nfd-tests: Likewise.
28499         * modules/uninorm/nfkc-tests: Likewise.
28500         * modules/uninorm/nfkd-tests: Likewise.
28501         * modules/uninorm/u8-normcmp-tests: Likewise.
28502         * modules/uninorm/u8-normcoll-tests: Likewise.
28503         * modules/uninorm/u16-normcmp-tests: Likewise.
28504         * modules/uninorm/u16-normcoll-tests: Likewise.
28505         * modules/uninorm/u32-normcmp-tests: Likewise.
28506         * modules/uninorm/u32-normcoll-tests: Likewise.
28507         * modules/unistdio/u8-asnprintf-tests: Likewise.
28508         * modules/unistdio/u8-vasnprintf-tests: Likewise.
28509         * modules/unistdio/u8-vasprintf-tests: Likewise.
28510         * modules/unistdio/u8-vsnprintf-tests: Likewise.
28511         * modules/unistdio/u8-vsprintf-tests: Likewise.
28512         * modules/unistdio/u16-asnprintf-tests: Likewise.
28513         * modules/unistdio/u16-vasnprintf-tests: Likewise.
28514         * modules/unistdio/u16-vasprintf-tests: Likewise.
28515         * modules/unistdio/u16-vsnprintf-tests: Likewise.
28516         * modules/unistdio/u16-vsprintf-tests: Likewise.
28517         * modules/unistdio/u32-asnprintf-tests: Likewise.
28518         * modules/unistdio/u32-vasnprintf-tests: Likewise.
28519         * modules/unistdio/u32-vasprintf-tests: Likewise.
28520         * modules/unistdio/u32-vsnprintf-tests: Likewise.
28521         * modules/unistdio/u32-vsprintf-tests: Likewise.
28522         * modules/unistdio/ulc-asnprintf-tests: Likewise.
28523         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
28524         * modules/unistdio/ulc-vasprintf-tests: Likewise.
28525         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
28526         * modules/unistdio/ulc-vsprintf-tests: Likewise.
28527         * modules/unistr/u8-check-tests: Likewise.
28528         * modules/unistr/u8-chr-tests: Likewise.
28529         * modules/unistr/u8-cmp-tests: Likewise.
28530         * modules/unistr/u8-cmp2-tests: Likewise.
28531         * modules/unistr/u8-cpy-alloc-tests: Likewise.
28532         * modules/unistr/u8-cpy-tests: Likewise.
28533         * modules/unistr/u8-mblen-tests: Likewise.
28534         * modules/unistr/u8-mbsnlen-tests: Likewise.
28535         * modules/unistr/u8-mbtouc-tests: Likewise.
28536         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
28537         * modules/unistr/u8-mbtoucr-tests: Likewise.
28538         * modules/unistr/u8-move-tests: Likewise.
28539         * modules/unistr/u8-next-tests: Likewise.
28540         * modules/unistr/u8-prev-tests: Likewise.
28541         * modules/unistr/u8-set-tests: Likewise.
28542         * modules/unistr/u8-stpcpy-tests: Likewise.
28543         * modules/unistr/u8-stpncpy-tests: Likewise.
28544         * modules/unistr/u8-strcat-tests: Likewise.
28545         * modules/unistr/u8-strcmp-tests: Likewise.
28546         * modules/unistr/u8-strcoll-tests: Likewise.
28547         * modules/unistr/u8-strcpy-tests: Likewise.
28548         * modules/unistr/u8-strdup-tests: Likewise.
28549         * modules/unistr/u8-strlen-tests: Likewise.
28550         * modules/unistr/u8-strmblen-tests: Likewise.
28551         * modules/unistr/u8-strmbtouc-tests: Likewise.
28552         * modules/unistr/u8-strncat-tests: Likewise.
28553         * modules/unistr/u8-strncmp-tests: Likewise.
28554         * modules/unistr/u8-strncpy-tests: Likewise.
28555         * modules/unistr/u8-strnlen-tests: Likewise.
28556         * modules/unistr/u8-to-u16-tests: Likewise.
28557         * modules/unistr/u8-to-u32-tests: Likewise.
28558         * modules/unistr/u8-uctomb-tests: Likewise.
28559         * modules/unistr/u16-check-tests: Likewise.
28560         * modules/unistr/u16-chr-tests: Likewise.
28561         * modules/unistr/u16-cmp-tests: Likewise.
28562         * modules/unistr/u16-cmp2-tests: Likewise.
28563         * modules/unistr/u16-cpy-alloc-tests: Likewise.
28564         * modules/unistr/u16-cpy-tests: Likewise.
28565         * modules/unistr/u16-mblen-tests: Likewise.
28566         * modules/unistr/u16-mbsnlen-tests: Likewise.
28567         * modules/unistr/u16-mbtouc-tests: Likewise.
28568         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
28569         * modules/unistr/u16-mbtoucr-tests: Likewise.
28570         * modules/unistr/u16-move-tests: Likewise.
28571         * modules/unistr/u16-next-tests: Likewise.
28572         * modules/unistr/u16-prev-tests: Likewise.
28573         * modules/unistr/u16-set-tests: Likewise.
28574         * modules/unistr/u16-stpcpy-tests: Likewise.
28575         * modules/unistr/u16-stpncpy-tests: Likewise.
28576         * modules/unistr/u16-strcat-tests: Likewise.
28577         * modules/unistr/u16-strcmp-tests: Likewise.
28578         * modules/unistr/u16-strcoll-tests: Likewise.
28579         * modules/unistr/u16-strcpy-tests: Likewise.
28580         * modules/unistr/u16-strdup-tests: Likewise.
28581         * modules/unistr/u16-strlen-tests: Likewise.
28582         * modules/unistr/u16-strmblen-tests: Likewise.
28583         * modules/unistr/u16-strmbtouc-tests: Likewise.
28584         * modules/unistr/u16-strncat-tests: Likewise.
28585         * modules/unistr/u16-strncmp-tests: Likewise.
28586         * modules/unistr/u16-strncpy-tests: Likewise.
28587         * modules/unistr/u16-strnlen-tests: Likewise.
28588         * modules/unistr/u16-to-u32-tests: Likewise.
28589         * modules/unistr/u16-to-u8-tests: Likewise.
28590         * modules/unistr/u16-uctomb-tests: Likewise.
28591         * modules/unistr/u32-check-tests: Likewise.
28592         * modules/unistr/u32-chr-tests: Likewise.
28593         * modules/unistr/u32-cmp-tests: Likewise.
28594         * modules/unistr/u32-cmp2-tests: Likewise.
28595         * modules/unistr/u32-cpy-alloc-tests: Likewise.
28596         * modules/unistr/u32-cpy-tests: Likewise.
28597         * modules/unistr/u32-mblen-tests: Likewise.
28598         * modules/unistr/u32-mbsnlen-tests: Likewise.
28599         * modules/unistr/u32-mbtouc-tests: Likewise.
28600         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
28601         * modules/unistr/u32-mbtoucr-tests: Likewise.
28602         * modules/unistr/u32-move-tests: Likewise.
28603         * modules/unistr/u32-next-tests: Likewise.
28604         * modules/unistr/u32-prev-tests: Likewise.
28605         * modules/unistr/u32-set-tests: Likewise.
28606         * modules/unistr/u32-stpcpy-tests: Likewise.
28607         * modules/unistr/u32-stpncpy-tests: Likewise.
28608         * modules/unistr/u32-strcat-tests: Likewise.
28609         * modules/unistr/u32-strcmp-tests: Likewise.
28610         * modules/unistr/u32-strcoll-tests: Likewise.
28611         * modules/unistr/u32-strcpy-tests: Likewise.
28612         * modules/unistr/u32-strdup-tests: Likewise.
28613         * modules/unistr/u32-strlen-tests: Likewise.
28614         * modules/unistr/u32-strmblen-tests: Likewise.
28615         * modules/unistr/u32-strmbtouc-tests: Likewise.
28616         * modules/unistr/u32-strncat-tests: Likewise.
28617         * modules/unistr/u32-strncmp-tests: Likewise.
28618         * modules/unistr/u32-strncpy-tests: Likewise.
28619         * modules/unistr/u32-strnlen-tests: Likewise.
28620         * modules/unistr/u32-to-u16-tests: Likewise.
28621         * modules/unistr/u32-to-u8-tests: Likewise.
28622         * modules/unistr/u32-uctomb-tests: Likewise.
28623         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
28624         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
28625         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
28626         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
28627         * modules/uniwidth/u8-strwidth-tests: Likewise.
28628         * modules/uniwidth/u8-width-tests: Likewise.
28629         * modules/uniwidth/u16-strwidth-tests: Likewise.
28630         * modules/uniwidth/u16-width-tests: Likewise.
28631         * modules/uniwidth/u32-strwidth-tests: Likewise.
28632         * modules/uniwidth/u32-width-tests: Likewise.
28633         * modules/uniwidth/width-tests: Likewise.
28634
28635 2010-05-18  Richard Jones  <rjones@redhat.com>
28636
28637         doc: users.txt: list hivex
28638         * users.txt: Add hivex.
28639
28640 2010-05-18  Richard Jones  <rjones@redhat.com>
28641
28642         doc: users.txt: list febootstrap
28643         * users.txt: Add febootstrap.
28644
28645 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
28646
28647         bootstrap: fix an error when gnulib is not used as a git submodule
28648         * build-aux/bootstrap (gnulib_path): If its length is zero then
28649         assign "gnulib" to it.
28650         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
28651
28652 2010-05-16  Bruno Haible  <bruno@clisp.org>
28653
28654         Avoid autoconf warnings about AM_ICONV.
28655         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
28656         2.64.
28657
28658 2010-05-16  Bruno Haible  <bruno@clisp.org>
28659
28660         absolute-header: Make the macro usable in more situations.
28661         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
28662         from gl_ABSOLUTE_HEADER.
28663         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
28664
28665 2010-05-16  James Youngman  <jay@gnu.org>
28666
28667         doc: update users.txt
28668         * users.txt: Add CSSC.
28669
28670 2010-05-16  Jim Meyering  <meyering@redhat.com>
28671
28672         init.sh: fix an error in the previous change; add more comments
28673         * tests/init.sh: Compare exit code in loop against 9, not 2.
28674         Patch by Bruno Haible.
28675         Make the two tests more similar by adding an empty "then" clause.
28676         Add comments.
28677
28678         init.sh: avoid unnecessary shell re-exec
28679         * tests/init.sh: Improve the re-exec-required check to first test the
28680         current shell.  If it passes the test, do not search for a shell that
28681         does pass, and do not re-exec.  This test is particularly contorted to
28682         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
28683         of $(...) evokes a syntax error and causes immediate shell exit with
28684         status 2.  Bruno Haible reported that the re-exec made it impossible
28685         to single-step through any init.sh-using script.
28686
28687 2010-05-16  Bruno Haible  <bruno@clisp.org>
28688
28689         Fix collision between gnulib's and libintl's printf replacements.
28690         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
28691         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
28692         (printf): When using GNU C, map the __printf__ function to rpl_printf
28693         via __asm__. When not using GNU C, define rpl_printf instead of
28694         __printf__.
28695         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
28696         commit.
28697         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
28698         commit.
28699         * m4/asm-underscore.m4: New file.
28700         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
28701         * modules/stdio (Files): Add m4/asm-underscore.m4.
28702         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
28703         Reported by Ben Pfaff.
28704
28705 2010-05-16  Bruno Haible  <bruno@clisp.org>
28706
28707         verify: Avoid skipping the test on openSUSE 11.0.
28708         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
28709
28710 2010-05-13  Bruno Haible  <bruno@clisp.org>
28711
28712         Avoid useless warnings from G++.
28713         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
28714         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
28715         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
28716
28717 2010-05-11  Jim Meyering  <meyering@redhat.com>
28718
28719         maint.mk: tweak preceding change
28720         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
28721         regexps tighter by anchoring at EOL, and make the new group "shy"
28722         for slightly decreased overhead.
28723
28724 2010-05-11  Eric Blake  <eblake@redhat.com>
28725
28726         maint.mk: gnulib doesn't guarantee NSIG
28727         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
28728
28729 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
28730
28731         test-pwrite.c: Remove unused variable declaration.
28732         * tests/test-pwrite.c (main): Remove read_buf declaration.
28733
28734         Remove useless test-pwrite.sh file.
28735         * tests/test-pwrite.sh: Delete file.
28736         * modules/pwrite-tests: Remove references.
28737         Reported by Bruno Haible.
28738
28739 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
28740
28741         init.sh: fix a typo
28742         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
28743
28744 2010-05-10  Jim Meyering  <meyering@redhat.com>
28745
28746         maint.mk: avoid using a temporary file in the always-defined-macros check
28747         * top/maint.mk (.re-defmac): Remove rule.
28748         (gl_trap_): Remove definition.
28749         (sc_prohibit_always-defined_macros): Rewrite not to create and
28750         depend on a temporary file.  Instead, depend on GNU grep's ability
28751         to read a list of regular expressions from stdin when given "-f -".
28752
28753 2010-05-09  Bruno Haible  <bruno@clisp.org>
28754
28755         Update to GNU gettext 0.18, part 1.
28756         * m4/gettext.m4: Update to GNU gettext 0.18.
28757         * m4/intl.m4: Likewise.
28758         * m4/po.m4: Likewise.
28759         * modules/gettext (Files): Add m4/fcntl-o.m4.
28760         (configure.ac): Require gettext infrastructure from version 0.18.
28761
28762 2010-05-09  Jim Meyering  <meyering@redhat.com>
28763
28764         init.sh: enable MALLOC_PERTURB_
28765         * tests/init.sh: Enable glibc's malloc-perturbing option.
28766
28767         maint.mk: improve sc_cross_check_PATH_usage_in_tests
28768         With my recent change in init.sh from the two-line form:
28769             -#   : ${srcdir=.}
28770             -#   . "$srcdir/init.sh"; path_prepend_ .
28771             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
28772         I noticed that using the one-line form would cause this test
28773         to fail with a false-positive, or to stop working altogether,
28774         depending on whether help-version changed or all the tests did.
28775         * top/maint.mk (_hv_regex): Remove this definition.
28776         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
28777         (_hv_regex_strong): Use a stronger regex to check for conformance.
28778         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
28779         Give a separate diagnostic for lack of conforming use.
28780
28781         maint.mk: prohibit definition of symbols defined by gnulib
28782         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
28783         definition of symbols defined by gnulib.
28784
28785 2010-05-09  Bruno Haible  <bruno@clisp.org>
28786
28787         acl: Avoid test failure on Cygwin-hosted mingw.
28788         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
28789
28790 2010-05-09  Bruno Haible  <bruno@clisp.org>
28791
28792         error: Use system's fcntl function.
28793         * lib/error.c (fcntl): Undefine.
28794
28795 2010-05-09  Jim Meyering  <meyering@redhat.com>
28796
28797         verify: adjust formatting to be more consistent
28798         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
28799         argument-list '('s, and after one comma.
28800
28801 2010-05-09  Bruno Haible  <bruno@clisp.org>
28802
28803         error: More reliable output on mingw.
28804         * lib/error.c: Include <windows.h>.
28805         (is_open): New function.
28806         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
28807         defined.
28808
28809 2010-05-09  Bruno Haible  <bruno@clisp.org>
28810
28811         vasnprintf: Fix syntax errors in libintl build on mingw.
28812         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
28813         pad_ourselves and prec_ourselves after use.
28814
28815 2010-05-08  Bruno Haible  <bruno@clisp.org>
28816
28817         * lib/config.charset: Update comments for Cygwin 1.7.
28818         * lib/localcharset.c: Likewise.
28819
28820 2010-05-07  Jim Meyering  <meyering@redhat.com>
28821
28822         init.sh: improve comments
28823         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
28824         . "${srcdir=.}/init.sh"; path_prepend_ .
28825         Add a note about path_prepend_ and the alternative of using
28826         TESTS_ENVIRONMENT.
28827
28828 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
28829
28830         exclude: Unescape hashed patterns in wildcard mode.
28831         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
28832         to the hash list.
28833         * tests/test-exclude8.sh: New test case.
28834         * modules/exclude-tests: Add new test.
28835
28836 2010-05-05  Eric Blake  <eblake@redhat.com>
28837
28838         verify: automate tests
28839         * modules/verify-tests: New module.
28840         * tests/test-verify.sh: New file.
28841         * tests/test-verify.c: Guard each negative test with a unique id.
28842         Also avoid warning about unused left hand of comma expressions.
28843
28844 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
28845
28846         Further improvements to verify.h, suggested by Eric Blake.
28847         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
28848         the GL_* versions, to avoid collision with OpenGL.
28849         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
28850         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
28851         than testing merely whether it's defined.
28852
28853         Modify verify.h to pacify gcc -Wredundant_decls.
28854         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
28855         These use the prefix "GL_" since they're likely to be useful elsewhere.
28856         We may need to break them out into a different .h file.
28857         (__COUNTER__): Define to 0 if the compiler doesn't support it.
28858         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
28859         of verify_function__.
28860
28861 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
28862
28863         Tests for module pwrite.
28864         * modules/pwrite-tests: New file.
28865         * tests/test-pwrite.sh: New file.
28866         * tests/test-pwrite.c: New file.
28867
28868         New module pwrite.
28869         * lib/unistd.in.h (pwrite): New declaration.
28870         * lib/pwrite.c: New file, from glibc with modifications.
28871         * m4/pwrite.m4: New file.
28872         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
28873         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
28874         REPLACE_PWRITE.
28875         * modules/pwrite: New file.
28876         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
28877         REPLACE_PWRITE.
28878         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
28879         * doc/posix-functions/pwrite.texi: Mention the new module.
28880
28881 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
28882
28883         pread: Update documentation.
28884         * doc/posix-functions/pread.texi: Mention the 'pread' module.
28885
28886 2010-05-04  Eric Blake  <eblake@redhat.com>
28887
28888         docs: update cygwin progress
28889         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
28890         this bug.
28891         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
28892         Added in cygwin 1.7.2.
28893         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
28894         Likewise.
28895         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
28896         Likewise.
28897         * doc/glibc-functions/dup3.texi (dup3): Likewise.
28898         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
28899         * doc/glibc-functions/accept4.texi (accept4): Likewise.
28900         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
28901         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
28902         Mention nproc module.
28903         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
28904         bug in cygwin 1.7.5 addition.
28905         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
28906         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
28907         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
28908         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
28909         1.7.5.
28910         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
28911         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
28912         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
28913         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
28914         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
28915         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
28916         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
28917         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
28918         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
28919         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
28920         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
28921         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
28922         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
28923         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
28924         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
28925         Likewise.
28926         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
28927         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
28928         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
28929         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
28930         Likewise.
28931         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
28932         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
28933         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
28934         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
28935         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
28936         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
28937         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
28938         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
28939         Likewise.
28940         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
28941         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
28942         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
28943         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
28944         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
28945         Likewise.
28946         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
28947         Likewise.
28948         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
28949         Likewise.
28950         * doc/glibc-functions/xdrrec_endofrecord.texi
28951         (xdrrec_endofrecord): Likewise.
28952         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
28953         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
28954         Likewise.
28955         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
28956         Likewise.
28957
28958 2010-05-04  Jim Meyering  <meyering@redhat.com>
28959
28960         gendocs.sh: make its "-s FILE" option more useful
28961         * build-aux/gendocs.sh: When honoring the -s FILE option, update
28962         $PACKAGE to reflect the probably-different basename of "FILE".
28963
28964 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
28965
28966         bootstrap: don't ignore download_po_files failure
28967         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
28968         failure.
28969
28970 2010-05-03  Jim Meyering  <meyering@redhat.com>
28971
28972         maint.mk: allow to pass options to gendocs.sh
28973         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
28974         (gendocs_options_): New overridable variable.
28975
28976         gnu-web-doc-update: don't ignore configure or build failure
28977         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
28978
28979         announce-gen: backslash-escape '@'s in --help output
28980         * build-aux/announce-gen: Fix syntax errors.
28981
28982         maint.mk, announce-gen: allow project-specific announcement mail headers
28983         * top/maint.mk (translation_project_): Define default.
28984         (announcement_Cc_, announcement_mail_headers_): Likewise.
28985         (announcement): Invoke announce-gen with new --mail-headers option.
28986         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
28987
28988         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
28989         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
28990         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
28991         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
28992         line in the "err2" output file when running "make check" in verbose
28993         mode (i.e., with set -x enabled).
28994
28995 2010-05-03  Bruno Haible  <bruno@clisp.org>
28996
28997         wctob: Fix for weird platforms.
28998         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
28999         argument value.
29000
29001 2010-05-03  Jim Meyering  <meyering@redhat.com>
29002
29003         maint.mk: prohibit unwarranted use of <strings.h>
29004         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
29005         strings.h in a file that does not also use strcasecmp, strncasecmp,
29006         ffs or ffsll.
29007
29008         maint.mk: remove obsolete comments
29009         * top/maint.mk: Remove stale, commented-out rules.
29010
29011 2010-05-02  Bruno Haible  <bruno@clisp.org>
29012
29013         wcwidth: Declare also when it's aliased.
29014         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
29015         macro.
29016
29017 2010-05-02  Bruno Haible  <bruno@clisp.org>
29018
29019         Fix regression from 2010-04-25.
29020         * gnulib-tool (func_modules_transitive_closure): Check the status of
29021         all modules, not only of the tests that are of the form foo-tests where
29022         foo is a module.
29023
29024 2010-05-02  Bruno Haible  <bruno@clisp.org>
29025
29026         wctob: Work around nasty Cygwin 1.7.2 bug.
29027         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
29028         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
29029
29030 2010-05-01  Bruno Haible  <bruno@clisp.org>
29031
29032         fpurge: Sharper test.
29033         * tests/test-fpurge.c (main): Add one more ftell check.
29034         * modules/fpurge-tests (Depends-on): Add ftell.
29035         Suggested by Eric Blake.
29036
29037 2010-05-01  Bruno Haible  <bruno@clisp.org>
29038
29039         ftello: Another test.
29040         * tests/test-ftello3.c: New file.
29041         * modules/ftello-tests (Files): Add it.
29042         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
29043         MOSTLYCLEANFILES.
29044
29045         ftell: Another test.
29046         * tests/test-ftell3.c: New file.
29047         * modules/ftell-tests (Files): Add it.
29048         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
29049         MOSTLYCLEANFILES.
29050
29051 2010-05-01  Bruno Haible  <bruno@clisp.org>
29052
29053         ftell, ftello: Work around Solaris bug.
29054         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
29055         * lib/ftello.c: Include stdio-impl.h.
29056         (ftello): On Solaris, when _IOWRT is set, compute the result without
29057         looking at _IOREAD.
29058         * modules/ftello (Files): Add lib/stdio-impl.h.
29059         * doc/posix-functions/ftell.texi: Mention Solaris bug.
29060         * doc/posix-functions/ftello.texi: Likewise.
29061         Reported by Eric Blake.
29062
29063 2010-05-01  Bruno Haible  <bruno@clisp.org>
29064
29065         freading: Adapt to special meaning of _IOREAD flag on Solaris.
29066         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
29067         the _IOWRT flag is also set.
29068
29069 2010-05-01  Bruno Haible  <bruno@clisp.org>
29070
29071         Fix doc about a HP-UX stdio bug.
29072         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
29073         * doc/posix-functions/ftello.texi: Likewise.
29074
29075 2010-05-01  Bruno Haible  <bruno@clisp.org>
29076
29077         lseek test: Fix failure on Solaris.
29078         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
29079         output.
29080
29081 2010-04-30  Jim Meyering  <meyering@redhat.com>
29082
29083         bootstrap: don't ignore failure to generate po*/Makevars
29084         * build-aux/bootstrap (with_gettext): Don't ignore failure
29085         to create po/Makevars or runtime-po/Makevars.
29086
29087 2010-04-29  Eric Blake  <eblake@redhat.com>
29088
29089         headers: relax license to LGPLv2+
29090         * modules/fcntl-h (License): Relax license.
29091         * modules/getopt-posix (License): Likewise.
29092         * modules/locale (License): Likewise.
29093         * modules/math (License): Likewise.
29094         * modules/pty (License): Likewise.
29095         * modules/sched (License): Likewise.
29096         * modules/search (License): Likewise.
29097         * modules/spawn (License): Likewise.
29098         * modules/stdarg (License): Likewise.
29099         * modules/sysexits (License): Likewise.
29100
29101 2010-04-29  Jim Meyering  <meyering@redhat.com>
29102
29103         inttypes: relax license to LGPLv2+
29104         * modules/inttypes (License): Relax license.
29105
29106 2010-04-29  Simon Josefsson  <simon@josefsson.org>
29107
29108         * top/maint.mk (indent): Run twice to produce idempotent results.
29109
29110 2010-04-28  Bruno Haible  <bruno@clisp.org>
29111
29112         getdate: Generate getdate.c in the source directory.
29113         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
29114         MOSTLYCLEANFILES.
29115         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
29116
29117 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
29118
29119         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
29120         is not declared as a const *; avoid warnings in that case.
29121
29122 2010-04-28  Eric Blake  <eblake@redhat.com>
29123
29124         canonicalize-lgpl: avoid compiler warning
29125         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
29126         declaration' / 'extraneous semicolon' warning with some compilers.
29127         Reported by Andreas Gruenbacher.
29128
29129 2010-04-28  Jim Meyering  <meyering@redhat.com>
29130
29131         init.sh: ensure a more reliable exit status when exiting via trap
29132         * tests/init.sh (setup_): Don't rely on $? in signal handler.
29133         Inspired by patches from Dmitry V. Levin.
29134         Also trap on signal 3 (SIGQUIT).
29135
29136 2010-04-27  Bruno Haible  <bruno@clisp.org>
29137
29138         Update doc about utimes().
29139         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
29140         'utimens' module.
29141         Reported by Andreas Gruenbacher <agruen@suse.de>.
29142
29143 2010-04-27  Eric Blake  <eblake@redhat.com>
29144
29145         full-read, full-write: relax license
29146         * modules/full-read (License): Drop to LGPLv2+.
29147         * modules/full-write (License): Likewise.
29148         * modules/safe-read (License): Likewise.
29149         * modules/safe-write (License): Likewise.
29150
29151         pthread: mention library for linking
29152         * modules/pthread (Link): Mention $(LIB_PTHREAD).
29153
29154 2010-04-27  Jim Meyering  <meyering@redhat.com>
29155
29156         maint.mk: fix a bug introduced in last change
29157         * top/maint.mk (gl_assured_headers_): Now that all names are on
29158         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
29159         is not anchored to end of word, it should be adequate.
29160
29161         maint.mk: avoid side-effect in latest syntax-check
29162         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
29163         to run commands via $(shell...), and hence to incur cost only when
29164         the new rule is actually run.
29165
29166         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
29167         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
29168         and use that to create a regexp used to detect all #if HAVE_..._H uses.
29169         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
29170         (gl_assured_headers_, az_, AZ_): Define.
29171         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
29172
29173 2010-04-26  Jim Meyering  <jim@meyering.net>
29174             Bruno Haible  <bruno@clisp.org>
29175
29176         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
29177         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
29178         Prompted by an exchange with Gilles Espinasse.
29179
29180 2010-04-26  Jim Meyering  <meyering@redhat.com>
29181
29182         git-version-gen: aesthetic tweak
29183         * build-aux/git-version-gen: Use "$nl" rather than a literal,
29184         so that the command remains on a single line.
29185
29186 2010-04-26  Eric Blake  <eblake@redhat.com>
29187
29188         git-version-gen: allow use on EBCDIC hosts
29189         * build-aux/git-version-gen (dirty): Use literal rather than tying
29190         ourselves to ascii.
29191         Reported by Steve Goetze.
29192
29193 2010-04-25  Bruno Haible  <bruno@clisp.org>
29194
29195         netdb: Add support for GNULIB_POSIXCHECK.
29196         * lib/netdb.in.h: Include warn-on-use.h.
29197         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
29198         functions are used when GNULIB_POSIXCHECK is defined and the
29199         getaddrinfo module is not in use.
29200         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
29201         freeaddrinfo, gai_strerror, getnameinfo are declared.
29202         * modules/netdb (Depends-on): Add warn-on-use.
29203         (Makefile.am): Include warn-on-use.h in netdb.h.
29204
29205 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
29206
29207         build: avoid "make check" failure without .git/ directory
29208         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
29209         there is no .git/ directory.
29210
29211 2010-04-25  Bruno Haible  <bruno@clisp.org>
29212
29213         ptsname: Fix misuse of ttyname_r.
29214         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
29215         of errno.
29216
29217 2010-04-25  Bruno Haible  <bruno@clisp.org>
29218
29219         ttyname_r: Make it work on Solaris 10.
29220         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
29221         if the system function has the POSIX declaration. Test whether the
29222         function fails if the buffer is less than 128 bytes large.
29223         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
29224         system's ttyname_r function. Provide a reasonably large buffer.
29225         * modules/ttyname_r (Depends-on): Add extensions.
29226         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
29227
29228 2010-04-25  Bruno Haible  <bruno@clisp.org>
29229
29230         Use the 'extensions' module for some more functions on Solaris.
29231         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
29232         module.
29233         * doc/posix-functions/ctime_r.texi: Likewise.
29234         * doc/posix-functions/getgrgid_r.texi: Likewise.
29235         * doc/posix-functions/getgrnam_r.texi: Likewise.
29236         * doc/posix-functions/getpwnam_r.texi: Likewise.
29237         * doc/posix-functions/getpwuid_r.texi: Likewise.
29238         * doc/posix-functions/readdir_r.texi: Likewise.
29239         * doc/posix-functions/sigwait.texi: Likewise.
29240         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
29241         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
29242
29243 2010-04-25  Bruno Haible  <bruno@clisp.org>
29244
29245         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
29246         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
29247         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
29248         * lib/ttyname_r.c: Include <limits.h>.
29249         (ttyname_r): Define using the system's ttyname_r function, if it exists
29250         and not on Solaris.
29251         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
29252         set.
29253         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
29254         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
29255         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
29256         Reported by Simon Josefsson.
29257
29258 2010-04-25  Bruno Haible  <bruno@clisp.org>
29259
29260         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
29261         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
29262         * doc/posix-functions/ctime_r.texi: Likewise.
29263         * doc/posix-functions/getgrgid_r.texi: Likewise.
29264         * doc/posix-functions/getgrnam_r.texi: Likewise.
29265         * doc/posix-functions/getlogin_r.texi: Likewise.
29266         * doc/posix-functions/getpwnam_r.texi: Likewise.
29267         * doc/posix-functions/getpwuid_r.texi: Likewise.
29268         * doc/posix-functions/readdir_r.texi: Likewise.
29269         * doc/posix-functions/sigwait.texi: Likewise.
29270         * doc/posix-functions/ttyname_r.texi: Likewise.
29271         Reported by Simon Josefsson.
29272
29273 2010-04-25  Bruno Haible  <bruno@clisp.org>
29274
29275         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
29276         * gnulib-tool (func_usage): Document that --with-*-tests options apply
29277         also to --create-testdir.
29278         (func_acceptable): Don't consider the status of *-tests modules here.
29279         (func_modules_transitive_closure): Consider it here, before including a
29280         test module.
29281         (func_import, func_create_testdir): Set inc_all_direct_tests,
29282         inc_all_indirect_tests.
29283         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
29284         --create-testdir and --create-megatestdir.
29285
29286 2010-04-25  Bruno Haible  <bruno@clisp.org>
29287
29288         gnulib-tool: Add --without-*-tests options.
29289         * gnulib-tool (func_usage): Document the --without-*-tests options.
29290         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
29291         excl_unportable_tests): New variables.
29292         Fail if they are specified with --import or --update.
29293         (func_acceptable): Respect the excl_*_tests variables.
29294         (func_import): Set the excl_*_tests variables to empty.
29295
29296 2010-04-25  Simon Josefsson  <simon@josefsson.org>
29297             Bruno Haible  <bruno@clisp.org>
29298
29299         Work around a MacOS X 10.4 bug with openpty.
29300         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
29301         * tests/test-openpty.c (main): Close the master side explicitly.
29302
29303 2010-04-25  Bruno Haible  <bruno@clisp.org>
29304
29305         strnlen: Fix a C++ test error on MacOS X and Solaris.
29306         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
29307         the function is not declared.
29308         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
29309         Simon Josefsson.
29310
29311 2010-04-24  Bruno Haible  <bruno@clisp.org>
29312
29313         Avoid a gcc warning.
29314         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
29315         of correct type for %08lx directive.
29316         Reported by Eric Blake.
29317
29318 2010-04-24  Bruno Haible  <bruno@clisp.org>
29319
29320         vasnprintf: Correct errno value in case of out-of-memory.
29321         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
29322         or sprintf. Use the errno value from SNPRINTF or sprintf.
29323         Reported by Ian Beckwith <ianb@erislabs.net>.
29324
29325 2010-04-24  Bruno Haible  <bruno@clisp.org>
29326
29327         ansi-c++-opt: Find correct compiler when cross-compiling.
29328         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
29329         AC_CHECK_PROGS.
29330         Reported by Simon Josefsson.
29331
29332 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
29333
29334         vc-list-files: Add support for subversion
29335         * build-aux/vc-list-files: Use "svn list" to generate the list of
29336         files controlled by subversion.
29337
29338 2010-04-23  Jim Meyering  <meyering@redhat.com>
29339
29340         vc-list-files tests: convert to use init.sh
29341         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
29342         path_prepend_.
29343         Use Exit, not exit.
29344         Use skip_ rather than open coding it.
29345         Remove trap set-up and compare definitions.
29346         * tests/test-vc-list-files-git.sh: Likewise.
29347         * modules/vc-list-files-tests (Files): Add tests/init.sh.
29348
29349 2010-04-22  Simon Josefsson  <simon@josefsson.org>
29350
29351         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
29352         backup files.
29353
29354 2010-04-21  Simon Josefsson  <simon@josefsson.org>
29355
29356         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
29357
29358 2010-04-20  Eric Blake  <eblake@redhat.com>
29359
29360         tests: be robust to ignored SIGPIPE
29361         * tests/test-select-in.sh: Consume all output.
29362         * tests/test-lseek.sh: Check correct exit status, while avoiding
29363         EPIPE.
29364
29365 2010-04-20  Simon Josefsson  <simon@josefsson.org>
29366             Bruno Haible  <bruno@clisp.org>
29367
29368         visibility: Don't use -fvisibility if it leads to a warning.
29369         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
29370         yes, don't pretend that visibility works if it leads to a warning.
29371         Reported by Mike Gran <spk121@yahoo.com>.
29372
29373 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
29374
29375         * build-aux/bootstrap: Use "git -h" for testing for supported options
29376         instead of "git --help".  The short-form option only shows a summary,
29377         and doesn't layout the full man page.  Grep for the full option name
29378         in the summary, too.
29379
29380 2010-04-19  Bruno Haible  <bruno@clisp.org>
29381
29382         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
29383         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
29384         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
29385         mention of RELOCATABLE_STRIP.
29386         Reported by Sylvain Beucler <beuc@beuc.net>.
29387
29388 2010-04-19  Bruno Haible  <bruno@clisp.org>
29389
29390         * lib/diffseq.h: Fix typo in comment.
29391         Reported by Eric Blake.
29392
29393 2010-04-19  Bruno Haible  <bruno@clisp.org>
29394
29395         ioctl: Move autoconf macro to a .m4 file.
29396         * m4/ioctl.m4: New file, extracted from modules/ioctl.
29397         * modules/ioctl (Files): Add it.
29398         (configure.ac): Simply invoke gl_FUNC_IOCTL.
29399         Reported by Ian Beckwith <ianb@erislabs.net>.
29400
29401 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
29402             Bruno Haible  <bruno@clisp.org>
29403
29404         diffseq: Accommodate use-case with abstract arrays.
29405         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
29406         is not defined.
29407         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
29408         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
29409
29410 2010-04-18  Bruno Haible  <bruno@clisp.org>
29411
29412         * doc/posix-headers/stdbool.texi: More precise wording.
29413
29414 2010-04-17  Jim Meyering  <meyering@redhat.com>
29415
29416         maint.mk: use gnu-style indentation in an embedded perl script
29417         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
29418         Rename variable: s/two/last_two_bytes/
29419
29420 2010-04-16  Eric Blake  <eblake@redhat.com>
29421
29422         test-stdbool: skip test that fails with Solaris CC
29423         * tests/test-stdbool.c (f): Skip test that causes compilation
29424         error under buggy C++ compiler.
29425         * lib/stdbool.in.h: Document the limitation.
29426         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
29427
29428         setenv: allow compilation with C++
29429         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
29430         register keyword.
29431
29432         stdint: allow test to pass with C++
29433         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
29434
29435         getopt: allow compilation with C++
29436         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
29437         struct.
29438         * lib/getopt.c (_getopt_internal_r): Use correct type.
29439         Reported by Dagobert Michelson, via Joel E. Denny.
29440
29441 2010-04-16  Bruno Haible  <bruno@clisp.org>
29442
29443         Override netdb.h always.
29444         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
29445         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
29446         Reported by Ludovic Courtès <ludo@gnu.org>.
29447
29448 2010-04-15  Bruno Haible  <bruno@clisp.org>
29449
29450         openpty: Fix mistake from 2010-03-21.
29451         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
29452         Reported by Simon Josefsson.
29453
29454 2010-04-15  Eric Blake  <eblake@redhat.com>
29455
29456         test-forkpty: fix expected signature
29457         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
29458         Reported by Simon Josefsson.
29459
29460 2010-04-15  Jim Meyering  <meyering@redhat.com>
29461
29462         maint.mk: texinfo_suffix_re_: correct the default regexp
29463         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
29464
29465         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
29466         make it configurable via texinfo_suffix_re_.
29467
29468 2010-04-14  Eric Blake  <eblake@redhat.com>
29469
29470         strtok_r: relax license to LGPLv2+
29471         * modules/strtok_r (License): Relax license.
29472         Reported by Matthias Bolte.
29473
29474 2010-04-14  Simon Josefsson  <simon@josefsson.org>
29475
29476         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
29477         version 1.4.4 by default instead of requiring the libgcrypt
29478         version used during build.  This makes it possible to use the
29479         application with older but still binary compatible libgcrypt
29480         versions.
29481
29482 2010-04-13  Eric Blake  <eblake@redhat.com>
29483
29484         getopt-gnu: match recent glibc fixes and posix ruling
29485         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
29486         '+' handling, when requesting extensions.
29487         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
29488         'W;' handling.
29489         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
29490         * doc/posix-functions/getopt.texi (getopt): Document this.
29491         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
29492         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29493         Likewise.
29494
29495         getopt: merge bug fixes from glibc
29496         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
29497         diagnostics.  Honor '+:' correctly.  Reject ';'.
29498
29499         getopt-posix: detect MacOS bug
29500         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
29501         optind when missing a required argument.
29502         * doc/posix-functions/getopt.texi (getopt): Document the bug.
29503         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
29504         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29505         Likewise.
29506
29507         getopt-posix: avoid spurious failure on Solaris
29508         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
29509         an indicator that setting optind=1 is sufficient for reset.
29510
29511         getopt-posix: avoid spurious failure on FreeBSD
29512         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
29513         in POSIX mode, since the m4 test uses it.
29514
29515         gnulib-tool: silence warning on BSD sh
29516         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
29517
29518 2010-04-13  Jim Meyering  <meyering@redhat.com>
29519
29520         doc: users.txt: GNU patch now uses gnulib
29521         * users.txt: Add patch.
29522
29523 2010-04-12  Jim Meyering  <meyering@redhat.com>
29524
29525         maint.mk: generate more concise timing data for syntax-check rules
29526         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
29527         " done" from each line that reports a syntax-check test duration.
29528
29529 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
29530
29531         git-version-gen: use "git update-index..." rather than "git status"
29532         * build-aux/git-version-gen: Use git update-index --refresh, not
29533         "git status".  With some versions of git, "git status" would fail
29534         to update the index and result in an unwarranted "-dirty" suffix.
29535
29536 2010-04-11  Jim Meyering  <meyering@redhat.com>
29537
29538         openat: correct formatting (no semantic change)
29539         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
29540         Suggested by Bruno Haible.
29541
29542 2010-04-11  Bruno Haible  <bruno@clisp.org>
29543
29544         Stricter declaration checking in testdirs.
29545         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
29546         If for_tests is true, augment AM_CPPFLAGS to define
29547         GNULIB_STRICT_CHECKING.
29548         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
29549         GNULIB_STRICT_CHECKING is defined, verify that the function is
29550         declared.
29551
29552 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
29553             Bruno Haible  <bruno@clisp.org>
29554
29555         libunistring: Improve configure output.
29556         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
29557         Don't say "consider installing GNU libunistring" when checking again
29558         with libiconv.
29559
29560 2010-04-11  Bruno Haible  <bruno@clisp.org>
29561
29562         libunistring: Correct value of $LTLIBUNISTRING.
29563         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
29564         correct the value of $LTLIBUNISTRING.
29565
29566 2010-04-11  Bruno Haible  <bruno@clisp.org>
29567
29568         havelib: Add static libraries to LIBS in the right order.
29569         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
29570         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
29571
29572 2010-04-11  Bruno Haible  <bruno@clisp.org>
29573
29574         libunistring: Detect libunistring also when it depends on libiconv.
29575         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
29576         the second AC_LIB_HAVE_LINKFLAGS invocation.
29577
29578 2010-04-11  James Youngman  <jay@gnu.org>
29579
29580         close-stream: declare local scalars to be "const"
29581         * lib/close-stream.c (close_stream): Make boolean variables const
29582         to document the fact that we set but do not change them.
29583
29584 2010-04-11  Bruno Haible  <bruno@clisp.org>
29585
29586         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
29587
29588 2010-04-11  Jim Meyering  <meyering@redhat.com>
29589
29590         maint.mk: don't include dist-check.mk
29591         * top/maint.mk: Remove bogus include directive.
29592
29593         maint.mk: improve empty-line-at-EOF check
29594         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
29595         solution, rather than tail+Perl-based one.  The latter would read
29596         a few kilobytes from the end of each file, and did not handle empty
29597         files properly.
29598
29599         maint.mk: print the elapsed time for each syntax-check rule
29600         * top/maint.mk (sc_m_rules_): Save start time in a file.
29601         (sc_z_rules_): New rules: remove temp file and print elapsed time.
29602         (local-check): Interpose the .z rules
29603
29604 2010-04-11  Jim Meyering  <meyering@redhat.com>
29605
29606         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
29607         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
29608         empty file with one that ends in an empty line.
29609
29610 2010-04-10  Bruno Haible  <bruno@clisp.org>
29611
29612         mkdir: Make it work on mingw64.
29613         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
29614         * lib/mkdir.c: Update comment.
29615         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
29616
29617 2010-04-10  Bruno Haible  <bruno@clisp.org>
29618
29619         Don't override improved macro from newer autoconf.
29620         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
29621         autoconf >= 2.62.
29622         Reported by Joel E. Denny <jdenny@clemson.edu>.
29623
29624 2010-04-10  Jim Meyering  <meyering@redhat.com>
29625
29626         maint.mk: new syntax-check rule: prohibit empty lines at end of file
29627         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
29628
29629         maint.mk: correct a diagnostic
29630         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
29631         in diagnostic; now use $prohibit.
29632
29633 2010-04-10  Bruno Haible  <address@hidden>
29634
29635         fchownat: Fix a C++ test error on Solaris 8.
29636         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
29637         the function does not exist.
29638
29639 2010-04-10  Bruno Haible  <bruno@clisp.org>
29640
29641         vasnprintf: Add more tests.
29642         * tests/test-vasnprintf-posix.c: Include <errno.h>.
29643         (test_function): Test converting an invalid wide string.
29644
29645         vasnprintf: Correct handling of unconvertible wide string arguments.
29646         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
29647         VASNPRINTF.
29648         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
29649         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
29650         smaller than the expected maximum need for the directive. Set errno to
29651         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
29652         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
29653         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
29654         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
29655         * modules/vasnprintf (Files): Add m4/printf.m4.
29656         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29657
29658 2010-04-10  Bruno Haible  <bruno@clisp.org>
29659
29660         vasnprintf: Fix crash in %ls directive.
29661         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
29662         string is passed as argument to %ls, with no precision and no width.
29663         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29664
29665 2010-04-10  Bruno Haible  <bruno@clisp.org>
29666
29667         vasnprintf: Fix multiple test failures on mingw.
29668         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
29669         _snprintf, or snwprintf, not _snwprintf.
29670
29671 2010-04-10  Bruno Haible  <bruno@clisp.org>
29672
29673         write: Fix a C++ test error on mingw.
29674         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
29675
29676 2010-04-10  Bruno Haible  <bruno@clisp.org>
29677
29678         vasnprintf test: Reduce code duplication.
29679         * tests/test-vasnprintf.c (test_function): New function, extracted from
29680         test_vasnprintf.
29681         (test_vasnprintf, test_asnprintf): Invoke it.
29682
29683 2010-04-10  Bruno Haible  <bruno@clisp.org>
29684
29685         strnlen: Fix warning in C++ mode on MacOS X.
29686         * lib/string.in.h (strnlen): Use the modern idiom.
29687         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
29688         defining strnlen as a macro already in <config.h>.
29689         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
29690         REPLACE_STRNLEN.
29691         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
29692         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29693
29694 2010-04-08  James Youngman  <jay@gnu.org>
29695
29696         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
29697         the example.
29698
29699 2010-04-09  Jim Meyering  <meyering@redhat.com>
29700
29701         maint.mk: print better diagnostic when there is no $(_hv_file)
29702         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
29703         announce that when $(_hv_file) (aka help-version) does not exist.
29704
29705         init.sh: run tr in the "C" locale to avoid multibyte interpretation
29706         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
29707         not try to interpret its random input bytes.  Jarno Rajahalme reported
29708         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
29709         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
29710         (mktempd_): Likewise, just in case.
29711
29712         ftruncate: add two years to projected module removal date: 2012
29713         * m4/ftruncate.m4: Adjust comments.
29714
29715         ftruncate: mark module as obsolete; even MinGW provides it, now
29716         * modules/ftruncate (Status): Obsolete.
29717         (Notice): Say that.
29718         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
29719         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
29720
29721 2010-04-08  Bruno Haible  <bruno@clisp.org>
29722
29723         Fix side effects from tests-related modules.
29724         * modules/dprintf-posix (Comment): New section.
29725         * modules/fprintf-posix (Comment): Likewise.
29726         * modules/obstack-printf-posix (Comment): Likewise.
29727         * modules/printf-posix (Comment): Likewise.
29728         * modules/snprintf-posix (Comment): Likewise.
29729         * modules/sprintf-posix (Comment): Likewise.
29730         * modules/vasnprintf-posix (Comment): Likewise.
29731         * modules/vasprintf-posix (Comment): Likewise.
29732         * modules/vdprintf-posix (Comment): Likewise.
29733         * modules/vfprintf-posix (Comment): Likewise.
29734         * modules/vprintf-posix (Comment): Likewise.
29735         * modules/vsnprintf-posix (Comment): Likewise.
29736         * modules/vsprintf-posix (Comment): Likewise.
29737         * modules/xprintf-posix (Comment): Likewise.
29738         * modules/xvasprintf-posix (Comment): Likewise.
29739         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
29740         * modules/floorf-tests (Depends-on): Likewise.
29741         * modules/round-tests (Depends-on): Likewise.
29742         * modules/roundf-tests (Depends-on): Likewise.
29743         * modules/trunc-tests (Depends-on): Likewise.
29744         * modules/truncf-tests (Depends-on): Likewise.
29745         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
29746         'fprintf-posix' module is not present.
29747         * tests/test-floorf2.c (check): Likewise.
29748         * tests/test-trunc2.c (check): Likewise.
29749         * tests/test-truncf2.c (check): Likewise.
29750         * tests/test-round2.c (equal): Likewise.
29751         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29752
29753 2010-04-07  Karl Berry  <karl@gnu.org>
29754
29755         * config/srclist.txt,
29756         * config/srclistvars.sh,
29757         * config/srclist-update: doc fixes.
29758
29759 2010-04-07  Jim Meyering  <meyering@redhat.com>
29760
29761         maint.mk: add a PATH crosschecking syntax-check rule
29762         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
29763         Useful if you use a test like the one in help-version (coreutils,
29764         diffutils, grep, gzip) that ensures $(VERSION) matches what is
29765         printed by prog --version.
29766
29767 2010-04-06  Bruno Haible  <bruno@clisp.org>
29768
29769         Fix link error on mingw.
29770         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
29771         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
29772
29773 2010-04-06  Bruno Haible  <bruno@clisp.org>
29774
29775         Assume rmdir exists.
29776         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
29777
29778 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
29779
29780         doc: update users.txt
29781         * users.txt: Add gcal.
29782
29783 2010-04-06  Jim Meyering  <meyering@redhat.com>
29784
29785         init.sh: simply unset TMPDIR rather than risking env -i
29786         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
29787         although it probably works fine on all Unix-based systems, some
29788         systems (Cygwin?) cannot tolerate a totally cleared environment.
29789         Suggestion from Eric Blake.
29790
29791 2010-04-06  Jim Meyering  <meyering@redhat.com>
29792
29793         init.sh: portability fix: use env's POSIX-specified -i option not -u
29794         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
29795         than unportable env -u.  Solaris 5.11's env lacks support for -u.
29796
29797 2010-04-05  Bruno Haible  <bruno@clisp.org>
29798
29799         btowc: Work around Cygwin 1.7.2 bug.
29800         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
29801         does not map NUL to 0.
29802         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
29803
29804 2010-04-05  Bruno Haible  <bruno@clisp.org>
29805
29806         Make the multithread modules work on Cygwin 1.7.2.
29807         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
29808         imported symbols can be declared weak, so that it returns "no" on
29809         Cygwin 1.7.2.
29810
29811 2010-04-05  Bruno Haible  <bruno@clisp.org>
29812
29813         Use the module 'strncat'.
29814         * modules/unistr/u8-strncat (Depends-on): Add strncat.
29815
29816         Tests for module 'strncat'.
29817         * modules/strncat-tests: New file.
29818         * tests/test-strncat.c: New file.
29819
29820         New module 'strncat'.
29821         * lib/string.in.h (strncat): New declaration.
29822         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
29823         * m4/strncat.m4: New file, based on m4/memchr.m4.
29824         * modules/strncat: New file.
29825         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
29826         is declared.
29827         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
29828         REPLACE_STRNCAT.
29829         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
29830         REPLACE_STRNCAT.
29831         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
29832         module.
29833         * tests/test-string-c++.cc: Check signature of strncat.
29834
29835 2010-04-05  Jim Meyering  <meyering@redhat.com>
29836
29837         xstrtoumax-tests: convert to use init.sh
29838         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
29839         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29840         Use Exit, not exit.
29841         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29842
29843         xstrtoimax-tests: convert to use init.sh
29844         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
29845         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29846         Use Exit, not exit.
29847         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29848
29849 2010-04-05  Bruno Haible  <bruno@clisp.org>
29850
29851         sys_socket: Avoid #define replacements in C++ mode.
29852         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
29853         warning to the function if possible, rather than #defining the symbol
29854         to a dysfunctional alias.
29855
29856 2010-04-05  Bruno Haible  <bruno@clisp.org>
29857
29858         fseeko: Fix C++ test error on mingw.
29859         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
29860         gl_FUNC_FSEEKO.
29861         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
29862         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
29863         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
29864         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
29865
29866 2010-04-05  Bruno Haible  <bruno@clisp.org>
29867
29868         duplocale: Improve test output.
29869         * tests/test-duplocale.c (main): Print reason for skipped test.
29870
29871 2010-04-05  Bruno Haible  <bruno@clisp.org>
29872
29873         Assume rmdir exists.
29874         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
29875         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
29876
29877 2010-04-05  Bruno Haible  <bruno@clisp.org>
29878
29879         Fix link error on Solaris 8 with cc.
29880         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
29881
29882 2010-04-05  Bruno Haible  <bruno@clisp.org>
29883
29884         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
29885         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
29886
29887 2010-04-05  Bruno Haible  <bruno@clisp.org>
29888
29889         vasprintf: Update documentation.
29890         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
29891
29892 2010-04-05  Bruno Haible  <bruno@clisp.org>
29893
29894         ptsname: Improve test.
29895         * tests/test-ptsname.c (main): Also try the various master names of BSD
29896         systems.
29897
29898 2010-04-05  Bruno Haible  <bruno@clisp.org>
29899
29900         memchr: Avoid a possible C++ test error.
29901         * lib/string.in.h (memchr): Provide declaration if function is missing.
29902         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
29903         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
29904         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
29905         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
29906
29907 2010-04-05  Bruno Haible  <bruno@clisp.org>
29908
29909         strtok_r: Improve idiom.
29910         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
29911         AC_LIBOBJ is used.
29912
29913 2010-04-05  Bruno Haible  <bruno@clisp.org>
29914
29915         strdup: Improve idiom.
29916         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
29917         AC_LIBOBJ is used.
29918         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
29919         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
29920         when AC_LIBOBJ is used.
29921
29922 2010-04-05  Bruno Haible  <bruno@clisp.org>
29923
29924         mbsinit, mbrtowc, wcrtomb: Improve idioms.
29925         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
29926         don't set REPLACE_MBSINIT to 1.
29927         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
29928         don't set REPLACE_MBRTOWC to 1.
29929         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
29930         exist, don't set REPLACE_MBSRTOWCS to 1.
29931         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
29932         exist, don't set REPLACE_MBSNRTOWCS to 1.
29933         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
29934         don't set REPLACE_WCRTOMB to 1.
29935         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
29936         exist, don't set REPLACE_WCSRTOMBS to 1.
29937         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
29938         exist, don't set REPLACE_WCSNRTOMBS to 1.
29939
29940 2010-04-05  Bruno Haible  <bruno@clisp.org>
29941
29942         ldexpl: Improve idiom.
29943         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
29944         make sure to set HAVE_DECL_LDEXPL to 0.
29945
29946 2010-04-05  Jim Meyering  <meyering@redhat.com>
29947
29948         xstrtol-tests: convert to use init.sh
29949         * modules/xstrtol-tests (Files): Add tests/init.sh.
29950         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29951         Use Exit, not exit.
29952         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29953
29954         atexit-tests: convert to use init.sh
29955         * modules/atexit-tests (Files): Add tests/init.sh.
29956         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29957         Use Exit, not exit.
29958         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29959
29960         init.sh: fix typo
29961         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
29962
29963         init.sh: make it easier for a test script to write to the tty, ...
29964         when using automake's parallel-tests mode.
29965         * tests/init.sh (stderr_fileno_): Define overridable variable.
29966         (warn_): New function, to use it.
29967         (fail_, skip_, framework_failure_): Use warn_.
29968
29969 2010-04-04  Bruno Haible  <bruno@clisp.org>
29970
29971         btowc: Avoid warning.
29972         * lib/btowc.c: Include <stdlib.h>.
29973         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
29974
29975 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
29976             Bruno Haible  <bruno@clisp.org>
29977
29978         wchar: Port to NetBSD 1.5.
29979         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
29980         * lib/wctype.in.h (WEOF): Likewise.
29981
29982 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
29983             Bruno Haible  <bruno@clisp.org>
29984
29985         Port extended stdio to NetBSD 1.5.
29986         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
29987         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
29988         older.
29989
29990 2010-04-04  Bruno Haible  <bruno@clisp.org>
29991
29992         string: Remove unused substitution.
29993         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
29994         HAVE_DECL_STRERROR.
29995         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
29996
29997 2010-04-04  Bruno Haible  <bruno@clisp.org>
29998
29999         strtod: Avoid a possible C++ test error.
30000         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
30001         set REPLACE_STRTOD.
30002
30003 2010-04-04  Bruno Haible  <bruno@clisp.org>
30004
30005         strerror: Update documentation.
30006         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
30007
30008 2010-04-04  Bruno Haible  <bruno@clisp.org>
30009
30010         stdio: Fix some C++ test errors on Solaris 8 with GCC.
30011         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
30012         _GL_CXXALIAS_SYS_CAST.
30013
30014 2010-04-04  Bruno Haible  <bruno@clisp.org>
30015
30016         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
30017         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
30018         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
30019         REPLACE_FREXPL to 1.
30020         * doc/posix-functions/frexpl.texi: Update documentation.
30021
30022 2010-04-04  Bruno Haible  <bruno@clisp.org>
30023
30024         math: Fix some C++ test errors on Solaris 8 and Cygwin.
30025         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
30026
30027 2010-04-04  Bruno Haible  <bruno@clisp.org>
30028
30029         Implement nanosleep for native Windows.
30030         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
30031
30032 2010-04-04  Bruno Haible  <bruno@clisp.org>
30033
30034         math: Fix some C++ test errors on Solaris 8.
30035         * lib/math.in.h (truncf, trunc): Use simpler idiom.
30036
30037 2010-04-04  Bruno Haible  <bruno@clisp.org>
30038
30039         math: Fix some C++ test errors on Cygwin.
30040         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
30041         truncl): Provide declaration if the system does not have it.
30042         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
30043         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
30044         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
30045         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
30046         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
30047         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
30048         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
30049         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
30050         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
30051         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
30052         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
30053         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
30054         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
30055         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
30056         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
30057         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
30058         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
30059         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
30060         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
30061         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
30062         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
30063         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
30064
30065 2010-04-04  Bruno Haible  <bruno@clisp.org>
30066
30067         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
30068         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
30069         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
30070         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
30071         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
30072         * m4/isinf.m4 (gl_ISINF): Likewise.
30073         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
30074
30075 2010-04-04  Bruno Haible  <bruno@clisp.org>
30076
30077         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
30078         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
30079
30080 2010-04-04  Bruno Haible  <bruno@clisp.org>
30081
30082         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
30083         * modules/tmpfile (configure.ac): Update.
30084
30085         tmpfile: Fix C++ test error on mingw.
30086         * lib/stdio.in.h (tmpfile): New declaration.
30087         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
30088         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
30089         * modules/tmpfile (Depends-on): Add stdio.
30090         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
30091         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
30092         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
30093         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
30094         REPLACE_TMPFILE.
30095         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
30096
30097 2010-04-04  Bruno Haible  <bruno@clisp.org>
30098
30099         ioctl: Fix C++ test error on mingw.
30100         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
30101         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
30102         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
30103
30104 2010-04-03  Bruno Haible  <bruno@clisp.org>
30105
30106         wcwidth: Fix C++ test error on mingw.
30107         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
30108         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
30109         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
30110
30111 2010-04-03  Bruno Haible  <bruno@clisp.org>
30112
30113         nanosleep: Fix C++ test error on mingw.
30114         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
30115         * lib/time.in.h (nanosleep): Use modern idiom.
30116         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
30117         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
30118         REPLACE_NANOSLEEP to 1.
30119         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
30120         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
30121
30122 2010-04-03  Bruno Haible  <bruno@clisp.org>
30123
30124         strptime: Fix C++ test error on mingw.
30125         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
30126         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
30127         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
30128         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
30129         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
30130         not REPLACE_STRPTIME.
30131         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
30132         REPLACE_STRPTIME.
30133
30134 2010-04-03  Bruno Haible  <bruno@clisp.org>
30135
30136         timegm: Fix C++ test error on mingw.
30137         * lib/time.in.h (timegm): Use modern idiom.
30138         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
30139         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
30140         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
30141         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
30142
30143 2010-04-03  Bruno Haible  <bruno@clisp.org>
30144
30145         timegm: Assume declaration if function exists.
30146         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
30147         if it exists. Don't clobber ac_cv_func_timegm.
30148
30149 2010-04-03  Bruno Haible  <bruno@clisp.org>
30150
30151         time_r: Fix C++ test error on mingw.
30152         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
30153         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
30154         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
30155         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
30156         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
30157
30158 2010-04-03  Bruno Haible  <bruno@clisp.org>
30159
30160         time_r: Minor updates.
30161         * modules/time_r (Description): Mention the provided functions.
30162         * lib/time_r.c: Don't include <string.h>.
30163         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
30164         * doc/posix-functions/localtime_r.texi: Likewise.
30165
30166 2010-04-03  Bruno Haible  <bruno@clisp.org>
30167
30168         time: Fix regression introduced on 2010-03-08.
30169         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
30170         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
30171
30172 2010-04-03  Jim Meyering  <meyering@redhat.com>
30173
30174         maint.mk: don't silently disable project-specific syntax-check rules
30175         * top/maint.mk (_prohibit_regexp): Define, to help people realize
30176         that they need to convert their project-specific syntax-check rules
30177         to use the new _sc_search_regexp.
30178
30179 2010-04-03  Bruno Haible  <bruno@clisp.org>
30180
30181         fchdir: Fix regression introduced on 2010-03-08.
30182         * lib/unistd.in.h (fchdir): Fix declaration.
30183         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
30184         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
30185         REPLACE_FCHDIR.
30186         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
30187         REPLACE_FCHDIR.
30188
30189 2010-04-03  Bruno Haible  <bruno@clisp.org>
30190
30191         getpagesize: Fix C++ test error on mingw.
30192         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
30193         system does not declare the function.
30194         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
30195         declared.
30196         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30197         HAVE_DECL_GETPAGESIZE.
30198         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
30199
30200 2010-04-03  Bruno Haible  <bruno@clisp.org>
30201
30202         stdio: Make C++ tests work on mingw.
30203         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
30204         does not declare the function.
30205
30206 2010-04-03  Bruno Haible  <bruno@clisp.org>
30207
30208         ftello: Fix C++ test error on mingw.
30209         * lib/stdio.in.h (ftello): Use modern idiom.
30210         * lib/ftello.c (ftello): Renamed from rpl_ftello.
30211         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
30212         is missing and that it needs to be replaced.
30213         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
30214         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
30215         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
30216
30217 2010-04-03  Bruno Haible  <bruno@clisp.org>
30218
30219         fseeko: Fix C++ test error on mingw.
30220         * lib/stdio.in.h (fseeko): Use modern idiom.
30221         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
30222         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
30223         is missing and that it needs to be replaced.
30224         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
30225         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
30226         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
30227
30228 2010-04-03  Bruno Haible  <bruno@clisp.org>
30229
30230         mkstemp: Fix C++ test error on mingw.
30231         * lib/stdlib.in.h (mkstemp): Use modern idiom.
30232         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
30233         function is missing and that it needs to be replaced.
30234         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
30235         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
30236
30237 2010-04-03  Bruno Haible  <bruno@clisp.org>
30238
30239         stpncpy: Fix C++ test error on mingw.
30240         * lib/string.in.h (stpncpy): Use modern idiom.
30241         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
30242         function is missing and that it needs to be replaced.
30243         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30244         REPLACE_STPNCPY.
30245         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
30246
30247 2010-04-03  Bruno Haible  <bruno@clisp.org>
30248
30249         sys_stat: Fix C++ test error on mingw.
30250         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
30251         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
30252
30253 2010-04-03  Bruno Haible  <bruno@clisp.org>
30254
30255         pty: Update doc.
30256         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
30257
30258 2010-04-03  Bruno Haible  <bruno@clisp.org>
30259
30260         unistd: Fix C++ test error on mingw.
30261         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
30262
30263 2010-04-03  Bruno Haible  <bruno@clisp.org>
30264
30265         Update doc regarding mingw.
30266         * doc/glibc-functions/openpty.texi: Update regarding mingw.
30267         * doc/glibc-functions/login_tty.texi: Likewise.
30268         * doc/glibc-functions/forkpty.texi: Likewise.
30269
30270 2010-04-03  Bruno Haible  <bruno@clisp.org>
30271
30272         stdlib: Avoid compilation failure of c-strtold on mingw.
30273         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
30274
30275 2010-04-03  Bruno Haible  <bruno@clisp.org>
30276
30277         locale: Make C++ tests work on Cygwin and mingw.
30278         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
30279         cannot provide the function.
30280         Reported by Simon Josefsson.
30281
30282 2010-04-03  Bruno Haible  <bruno@clisp.org>
30283
30284         localename: Port to MacOS X 10.6.
30285         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
30286         memory layout of the locales in MacOS X 10.6 as well.
30287         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
30288
30289 2010-04-02  Bruno Haible  <bruno@clisp.org>
30290
30291         gnulib-tool: Ensure that long-running tests are executed last.
30292         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
30293         running tests after the one for the other tests.
30294
30295 2010-04-02  Bruno Haible  <bruno@clisp.org>
30296
30297         gnulib-tool: Ensure the tests in the main directory are executed first.
30298         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
30299         start with the current directory.
30300
30301 2010-04-02  Bruno Haible  <bruno@clisp.org>
30302
30303         Tests for module 'havelib', moved here from GNU gettext.
30304         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
30305         modifications.
30306         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
30307         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
30308         with modifications.
30309         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
30310         modifications.
30311         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
30312         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
30313         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
30314         with modifications.
30315         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
30316         with modifications.
30317         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
30318         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
30319         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
30320         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
30321         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
30322         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
30323         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
30324         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
30325         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
30326         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
30327         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
30328         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
30329         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
30330         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
30331         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
30332         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
30333         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
30334         with modifications.
30335         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
30336         with modifications.
30337         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
30338         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
30339         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
30340         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
30341         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
30342         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
30343         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
30344         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
30345         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
30346         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
30347         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
30348         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
30349         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
30350         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
30351         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
30352         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
30353         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
30354         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
30355         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
30356         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
30357         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
30358         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
30359         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
30360         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
30361         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
30362         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
30363         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
30364         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
30365         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
30366         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
30367         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
30368         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
30369         * tests/havelib/rpathx/rpathx.c: New file, from
30370         gettext/autoconf-lib-link.
30371         * tests/havelib/rpathx/Makefile.am: New file, from
30372         gettext/autoconf-lib-link.
30373         * tests/havelib/rpathx/configure.ac: New file, from
30374         gettext/autoconf-lib-link with modifications.
30375         * tests/havelib/rpathy/rpathy.c: New file, from
30376         gettext/autoconf-lib-link.
30377         * tests/havelib/rpathy/Makefile.am: New file, from
30378         gettext/autoconf-lib-link.
30379         * tests/havelib/rpathy/configure.ac: New file, from
30380         gettext/autoconf-lib-link with modifications.
30381         * tests/havelib/rpathz/rpathz.c: New file, from
30382         gettext/autoconf-lib-link.
30383         * tests/havelib/rpathz/Makefile.am: New file, from
30384         gettext/autoconf-lib-link.
30385         * tests/havelib/rpathz/configure.ac: New file, from
30386         gettext/autoconf-lib-link with modifications.
30387         * tests/havelib/rpathlx/usex.c: New file, from
30388         gettext/autoconf-lib-link.
30389         * tests/havelib/rpathlx/Makefile.am: New file, from
30390         gettext/autoconf-lib-link.
30391         * tests/havelib/rpathlx/configure.ac: New file, from
30392         gettext/autoconf-lib-link with modifications.
30393         * tests/havelib/rpathly/usey.c: New file, from
30394         gettext/autoconf-lib-link.
30395         * tests/havelib/rpathly/Makefile.am: New file, from
30396         gettext/autoconf-lib-link.
30397         * tests/havelib/rpathly/configure.ac: New file, from
30398         gettext/autoconf-lib-link with modifications.
30399         * tests/havelib/rpathlz/usez.c: New file, from
30400         gettext/autoconf-lib-link.
30401         * tests/havelib/rpathlz/Makefile.am: New file, from
30402         gettext/autoconf-lib-link.
30403         * tests/havelib/rpathlz/configure.ac: New file, from
30404         gettext/autoconf-lib-link with modifications.
30405         * tests/havelib/rpathlyx/usey.c: New file, from
30406         gettext/autoconf-lib-link.
30407         * tests/havelib/rpathlyx/Makefile.am: New file, from
30408         gettext/autoconf-lib-link.
30409         * tests/havelib/rpathlyx/configure.ac: New file, from
30410         gettext/autoconf-lib-link with modifications.
30411         * tests/havelib/rpathlzyx/usez.c: New file, from
30412         gettext/autoconf-lib-link.
30413         * tests/havelib/rpathlzyx/Makefile.am: New file, from
30414         gettext/autoconf-lib-link.
30415         * tests/havelib/rpathlzyx/configure.ac: New file, from
30416         gettext/autoconf-lib-link with modifications.
30417         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
30418         with modifications.
30419
30420 2010-04-02  Bruno Haible  <bruno@clisp.org>
30421
30422         gnulib-tool: Create distributed built sources also for the tests.
30423         * gnulib-tool (func_create_testdir): Also generate distributed built
30424         sources in the tests directory.
30425
30426 2010-04-02  Bruno Haible  <bruno@clisp.org>
30427
30428         gnulib-tool: Obey user's environment variables.
30429         * gnulib-tool (func_create_testdir): When creating built sources,
30430         respect the environment variables for autoconf, automake, etc. given by
30431         the user.
30432
30433 2010-04-02  Bruno Haible  <bruno@clisp.org>
30434
30435         gnulib-tool: Provide the value of --m4-base to modules.
30436         * gnulib-tool (func_import, func_create_testdir): Emit a definition
30437         of gl_m4_base.
30438
30439 2010-04-02  Eric Blake  <eblake@redhat.com>
30440
30441         maint.mk: fix some fallout
30442         * NEWS: Document the incompatible change, and its effect on cfg.mk.
30443         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
30444
30445 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
30446
30447         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
30448         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
30449         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
30450         (sc_cast_of_x_alloc_return_value): Likewise.
30451         (sc_cast_of_alloca_return_value): Likewise.
30452         (sc_space_tab): Likewise.
30453         (sc_prohibit_atoi_atof): Likewise.
30454         (sc_prohibit_magic_number_exit): Likewise.
30455         (sc_error_exit_success): Likewise.
30456         (sc_file_system): Likewise.
30457         (sc_prohibit_have_config_h): Likewise.
30458         (sc_require_config_h): Likewise.
30459         (sc_prohibit_HAVE_MBRTOWC): Likewise.
30460         (sc_obsolete_symbols): Likewise.
30461         (sc_changelog): Likewise.
30462         (sc_program_name): Likewise.
30463         (sc_the_the): Likewise.
30464         (sc_trailing_blank): Likewise.
30465         (sc_two_space_separator_in_usage): Likewise.
30466         (sc_useless_cpp_parens): Likewise.
30467         (sc_GPL_version): Likewise.
30468         (sc_GFDL_version): Likewise.
30469         (sc_texinfo_acronym): Likewise.
30470         (sc_prohibit_cvs_keyword): Likewise.
30471         (sc_prohibit_stat_st_blocks): Likewise.
30472         (sc_prohibit_S_IS_definition): Likewise.
30473         (sc_redundant_const): Likewise.
30474         (sc_makefile_TAB_only_indentation): Likewise.
30475         (sc_m4_quote_check): Likewise.
30476         (sc_makefile_path_separator_check): Likewise.
30477         (sc_copyright_check): Likewise.
30478         (sc_Wundef_boolean): Likewise.
30479         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
30480
30481         maint.mk: match 0 or more whitespace-before-function-call '('
30482         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
30483         that have zero or two-and-more spaces between the function name
30484         and the open parenthesis.
30485         (sc_error_message_warn_fatal): Likewise.
30486         (sc_error_message_uppercase): Likewise.
30487         (sc_error_message_period): Likewise.
30488
30489 2010-03-31  Eric Blake  <eblake@redhat.com>
30490
30491         maint.mk: check for [ as well as test
30492         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
30493         Based on a libvirt report by Matthias Bolte.
30494
30495         gnumakefile: don't squelch _version output
30496         * top/GNUmakefile (_version): Create one-shot dependency rather
30497         than using $(shell) when version must be regenerated.
30498         (_autoreconf): Run verbosely, by default.
30499
30500         sys_time: avoid compiler warnings
30501         * lib/sys_time.in.h (includes): Ensure gcc pragma is
30502         unconditional, fixing regression from 2010-03-29.
30503         Reported by Simon Josefsson.
30504
30505 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
30506
30507         maint.mk: s/_header_without_use/_sc_header_without_use/
30508         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
30509         (sc_prohibit_assert_without_use): Use the new name.
30510         (sc_prohibit_close_stream_without_use): Likewise.
30511         (sc_prohibit_getopt_without_use): Likewise.
30512         (sc_prohibit_quotearg_without_use): Likewise.
30513         (sc_prohibit_quote_without_use): Likewise.
30514         (sc_prohibit_long_options_without_use): Likewise.
30515         (sc_prohibit_inttostr_without_use): Likewise.
30516         (sc_prohibit_ignore_value_without_use): Likewise.
30517         (sc_prohibit_error_without_use): Likewise.
30518         (sc_prohibit_xalloc_without_use): Likewise.
30519         (sc_prohibit_hash_without_use): Likewise.
30520         (sc_prohibit_hash_pjw_without_use): Likewise.
30521         (sc_prohibit_safe_read_without_use): Likewise.
30522         (sc_prohibit_argmatch_without_use): Likewise.
30523         (sc_prohibit_canonicalize_without_use): Likewise.
30524         (sc_prohibit_root_dev_ino_without_use): Likewise.
30525         (sc_prohibit_openat_without_use): Likewise.
30526         (sc_prohibit_c_ctype_without_use): Likewise.
30527         (sc_prohibit_signal_without_use): Likewise.
30528         (sc_prohibit_intprops_without_use): Likewise.
30529
30530 2010-03-30  Eric Blake  <eblake@redhat.com>
30531
30532         maint: improve module indicators
30533         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
30534         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
30535         columns, and avoid extra macro expansion.
30536
30537         fdopendir: work around FreeBSD bug
30538         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
30539         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
30540         * modules/dirent (Makefile.am): Substitute it.
30541         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
30542         declaration.
30543         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
30544         fix.
30545         Reported by Christian Weisgerber <naddy@mips.inka.de>.
30546
30547 2010-03-29  Bruno Haible  <bruno@clisp.org>
30548
30549         Emit #pragma system_header after the inclusion guard, not before.
30550         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
30551         guard that spans the entire file, not before. This enables an
30552         optimization in GCC's preprocessor.
30553         * lib/ctype.in.h: Likewise.
30554         * lib/dirent.in.h: Likewise.
30555         * lib/errno.in.h: Likewise.
30556         * lib/float.in.h: Likewise.
30557         * lib/getopt.in.h: Likewise.
30558         * lib/iconv.in.h: Likewise.
30559         * lib/langinfo.in.h: Likewise.
30560         * lib/locale.in.h: Likewise.
30561         * lib/math.in.h: Likewise.
30562         * lib/netdb.in.h: Likewise.
30563         * lib/netinet_in.in.h: Likewise.
30564         * lib/pty.in.h: Likewise.
30565         * lib/sched.in.h: Likewise.
30566         * lib/se-selinux.in.h: Likewise.
30567         * lib/search.in.h: Likewise.
30568         * lib/spawn.in.h: Likewise.
30569         * lib/stdarg.in.h: Likewise.
30570         * lib/stdint.in.h: Likewise.
30571         * lib/string.in.h: Likewise.
30572         * lib/strings.in.h: Likewise.
30573         * lib/sys_file.in.h: Likewise.
30574         * lib/sys_ioctl.in.h: Likewise.
30575         * lib/sys_time.in.h: Likewise.
30576         * lib/sys_times.in.h: Likewise.
30577         * lib/sys_utsname.in.h: Likewise.
30578         * lib/sys_wait.in.h: Likewise.
30579         * lib/sysexits.in.h: Likewise.
30580         * lib/wctype.in.h: Likewise.
30581
30582 2010-03-28  James Youngman  <jay@gnu.org>
30583
30584         save-cwd: don't leak a file descriptor when the caller execs.
30585         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
30586         saved file descriptor.
30587         * modules/save-cwd (Depends-on): Depend on cloexec.
30588
30589 2010-03-29  Bruno Haible  <bruno@clisp.org>
30590
30591         Remove vestiges of fts-lgpl module.
30592         * lib/fts_.h: Assume GNULIB_FTS is 1.
30593         * lib/fts.c: Likewise.
30594         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
30595
30596 2010-03-28  Bruno Haible  <bruno@clisp.org>
30597
30598         Fix definition of tests witness macro.
30599         * gnulib-tool (func_import): Fix definition of witness macro.
30600
30601 2010-03-28  Bruno Haible  <bruno@clisp.org>
30602
30603         Fix ioctl's protoype on glibc systems.
30604         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
30605         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
30606         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
30607         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
30608         signature. If not, arrange to replace the ioctl function.
30609         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
30610         REPLACE_IOCTL.
30611         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
30612         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
30613         Reported by Ludovic Courtès <ludo@gnu.org>.
30614
30615 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
30616
30617         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
30618         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
30619         made it so grep -r --include=GLOB* ... did not work.
30620
30621 2010-03-26  Jim Meyering  <meyering@redhat.com>
30622             Eric Blake  <eblake@redhat.com>
30623
30624         maint.mk: prohibit use of test's -o and -a operators
30625         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
30626
30627 2010-03-28  Bruno Haible  <bruno@clisp.org>
30628
30629         Remove unused GNULIB_XYZ macro definitions.
30630         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
30631         invocation.
30632
30633 2010-03-28  Bruno Haible  <bruno@clisp.org>
30634
30635         Mark privileged tests modules.
30636         * modules/idpriv-drop-tests (Status): New section.
30637         * modules/idpriv-droptemp-tests (Status): New section.
30638
30639 2010-03-28  Bruno Haible  <bruno@clisp.org>
30640
30641         Split C++ tests into separate tests modules.
30642         * modules/dirent-c++-tests: New file, extracted from
30643         modules/dirent-tests.
30644         * modules/dirent-tests: Depend on it.
30645         * modules/fcntl-h-c++-tests: New file, extracted from
30646         modules/fcntl-h-tests.
30647         * modules/fcntl-h-tests: Depend on it.
30648         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
30649         * modules/glob-tests: Depend on it.
30650         * modules/iconv-h-c++-tests: New file, extracted from
30651         modules/iconv-h-tests.
30652         * modules/iconv-h-tests: Depend on it.
30653         * modules/langinfo-c++-tests: New file, extracted from
30654         modules/langinfo-tests.
30655         * modules/langinfo-tests: Depend on it.
30656         * modules/locale-c++-tests: New file, extracted from
30657         modules/locale-tests.
30658         * modules/locale-tests: Depend on it.
30659         * modules/math-c++-tests: New file, extracted from modules/math-tests.
30660         * modules/math-tests: Depend on it.
30661         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
30662         * modules/pty-tests: Depend on it.
30663         * modules/search-c++-tests: New file, extracted from
30664         modules/search-tests.
30665         * modules/search-tests: Depend on it.
30666         * modules/signal-c++-tests: New file, extracted from
30667         modules/signal-tests.
30668         * modules/signal-tests: Depend on it.
30669         * modules/spawn-c++-tests: New file, extracted from
30670         modules/spawn-tests.
30671         * modules/spawn-tests: Depend on it.
30672         * modules/stdio-c++-tests: New file, extracted from
30673         modules/stdio-tests.
30674         * modules/stdio-tests: Depend on it.
30675         * modules/stdlib-c++-tests: New file, extracted from
30676         modules/stdlib-tests.
30677         * modules/stdlib-tests: Depend on it.
30678         * modules/string-c++-tests: New file, extracted from
30679         modules/string-tests.
30680         * modules/string-tests: Depend on it.
30681         * modules/sys_ioctl-c++-tests: New file, extracted from
30682         modules/sys_ioctl-tests.
30683         * modules/sys_ioctl-tests: Depend on it.
30684         * modules/sys_select-c++-tests: New file, extracted from
30685         modules/sys_select-tests.
30686         * modules/sys_select-tests: Depend on it.
30687         * modules/sys_socket-c++-tests: New file, extracted from
30688         modules/sys_socket-tests.
30689         * modules/sys_socket-tests: Depend on it.
30690         * modules/sys_stat-c++-tests: New file, extracted from
30691         modules/sys_stat-tests.
30692         * modules/sys_stat-tests: Depend on it.
30693         * modules/sys_time-c++-tests: New file, extracted from
30694         modules/sys_time-tests.
30695         * modules/sys_time-tests: Depend on it.
30696         * modules/time-c++-tests: New file, extracted from modules/time-tests.
30697         * modules/time-tests: Depend on it.
30698         * modules/unistd-c++-tests: New file, extracted from
30699         modules/unistd-tests.
30700         * modules/unistd-tests: Depend on it.
30701         * modules/wchar-c++-tests: New file, extracted from
30702         modules/wchar-tests.
30703         * modules/wchar-tests: Depend on it.
30704         * modules/wctype-c++-tests: New file, extracted from
30705         modules/wctype-tests.
30706         * modules/wctype-tests: Depend on it.
30707         Reported by Simon Josefsson.
30708
30709 2010-03-28  Bruno Haible  <bruno@clisp.org>
30710
30711         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
30712         * gnulib-tool (func_exists_module): New function, extracted from
30713         func_verify_module.
30714         (func_verify_module): Use it.
30715         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
30716         'foo' only if 'foo' exists.
30717         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
30718         module.
30719
30720 2010-03-28  Bruno Haible  <bruno@clisp.org>
30721
30722         gnulib-tool: Add support for special categories of tests.
30723         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
30724         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
30725         (func_usage): Document them.
30726         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
30727         inc_unportable_tests, inc_all_tests): New variables.
30728         (func_acceptable): Consider these variables.
30729         (func_modules_transitive_closure): Make it work when the 'Status' field
30730         consists of multiple words.
30731         (func_import): Store and restore the values of inc_cxx_tests,
30732         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
30733         inc_all_tests in gnulib-comp.m4.
30734         (func_create_testdir): Set inc_all_tests to true.
30735         * doc/gnulib.texi (Extra tests modules): New section.
30736         Suggested by Jim Meyering.
30737
30738 2010-03-28  Bruno Haible  <bruno@clisp.org>
30739
30740         ansi-c++-opt: Allow turning off the C++ build by default.
30741         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
30742         gl_CXX_CHOICE_DEFAULT_NO is defined.
30743         Requested by Eric Blake.
30744
30745 2010-03-28  Bruno Haible  <bruno@clisp.org>
30746
30747         unistd: Avoid #define replacements in C++ mode.
30748         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
30749         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
30750         setsockopt, shutdown, select): In C++, attach a warning to the function
30751         if possible, rather than #defining the symbol to a dysfunctional alias.
30752         Reported by John W. Eaton <jwe@gnu.org>.
30753
30754 2010-03-28  Bruno Haible  <bruno@clisp.org>
30755
30756         Fix link errors on mingw.
30757         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
30758         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
30759         $(LIBSOCKET).
30760         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
30761         $(LIBSOCKET).
30762
30763 2010-03-28  Bruno Haible  <bruno@clisp.org>
30764             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30765
30766         lib-ignore: Determine different options for different compilers.
30767         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
30768         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
30769         Add comments.
30770         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
30771         * NEWS: Mention the change.
30772
30773 2010-03-27  Bruno Haible  <bruno@clisp.org>
30774
30775         Remove unused GNULIB_XYZ macro definitions.
30776         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
30777         * modules/fseek (configure.ac): Likewise.
30778         * modules/ioctl (configure.ac): Likewise.
30779         * modules/open (configure.ac): Likewise.
30780         * modules/stdlib-safer (configure.ac): Likewise.
30781
30782 2010-03-27  Bruno Haible  <bruno@clisp.org>
30783
30784         Add a remark about certain modules.
30785         * modules/malloc (Comment): New section.
30786         * modules/realloc (Comment): Likewise.
30787         * modules/sigpipe (Comment): Likewise.
30788
30789 2010-03-27  Bruno Haible  <bruno@clisp.org>
30790
30791         Resolve conflict between the two kinds of module indicators.
30792         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
30793         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
30794         * modules/canonicalize (configure.ac): Invoke
30795         gl_MODULE_INDICATOR_FOR_TESTS.
30796         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
30797         GNULIB_XYZ.
30798         * tests/test-dirent-c++.cc: Likewise.
30799         * tests/test-dirent-safer.c: Likewise.
30800         * tests/test-dup2.c: Likewise.
30801         * tests/test-fchdir.c: Likewise.
30802         * tests/test-fcntl-h-c++.cc: Likewise.
30803         * tests/test-getopt.c: Likewise.
30804         * tests/test-getopt.h: Likewise.
30805         * tests/test-langinfo-c++.cc: Likewise.
30806         * tests/test-locale-c++.cc: Likewise.
30807         * tests/test-math-c++.cc: Likewise.
30808         * tests/test-pty-c++.cc: Likewise.
30809         * tests/test-search-c++.cc: Likewise.
30810         * tests/test-signal-c++.cc: Likewise.
30811         * tests/test-spawn-c++.cc: Likewise.
30812         * tests/test-stdio-c++.cc: Likewise.
30813         * tests/test-stdlib-c++.cc: Likewise.
30814         * tests/test-string-c++.cc: Likewise.
30815         * tests/test-sys_ioctl-c++.cc: Likewise.
30816         * tests/test-sys_select-c++.cc: Likewise.
30817         * tests/test-sys_socket-c++.cc: Likewise.
30818         * tests/test-sys_stat-c++.cc: Likewise.
30819         * tests/test-sys_time-c++.cc: Likewise.
30820         * tests/test-time-c++.cc: Likewise.
30821         * tests/test-unistd-c++.cc: Likewise.
30822         * tests/test-wchar-c++.cc: Likewise.
30823         * tests/uninorm/test-u8-nfc.c: Likewise.
30824         * tests/uninorm/test-u8-nfd.c: Likewise.
30825         * tests/uninorm/test-u8-nfkc.c: Likewise.
30826         * tests/uninorm/test-u8-nfkd.c: Likewise.
30827         * tests/uninorm/test-u16-nfc.c: Likewise.
30828         * tests/uninorm/test-u16-nfd.c: Likewise.
30829         * tests/uninorm/test-u16-nfkc.c: Likewise.
30830         * tests/uninorm/test-u16-nfkd.c: Likewise.
30831         * tests/uninorm/test-u32-nfc.c: Likewise.
30832         * tests/uninorm/test-u32-nfc-big.c: Likewise.
30833         * tests/uninorm/test-u32-nfd.c: Likewise.
30834         * tests/uninorm/test-u32-nfd-big.c: Likewise.
30835         * tests/uninorm/test-u32-nfkc.c: Likewise.
30836         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
30837         * tests/uninorm/test-u32-nfkd.c: Likewise.
30838         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
30839         * tests/uninorm/test-u32-normalize-big.c: Likewise.
30840
30841 2010-03-27  Bruno Haible  <bruno@clisp.org>
30842
30843         Distinguish two kinds of module indicators.
30844         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
30845         gl_MODULE_INDICATOR.
30846         (gl_MODULE_INDICATOR): New macro.
30847         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
30848         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
30849         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
30850         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
30851         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
30852         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
30853         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
30854         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
30855         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
30856         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
30857         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
30858         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
30859         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
30860         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
30861         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
30862         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
30863         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
30864         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
30865         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
30866         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
30867         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
30868         * modules/cloexec (configure.ac): Likewise.
30869         * modules/getopt-gnu (configure.ac): Likewise.
30870         * modules/uninorm/u8-normalize (configure.ac): Likewise.
30871         * modules/uninorm/u16-normalize (configure.ac): Likewise.
30872         * modules/uninorm/u32-normalize (configure.ac): Likewise.
30873         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
30874
30875 2010-03-27  Bruno Haible  <bruno@clisp.org>
30876
30877         New module description field 'Comment'.
30878         * gnulib-tool: New option --extract-comment.
30879         (func_usage): Document it.
30880         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
30881         (func_get_comment): New function.
30882         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
30883
30884 2010-03-27  Bruno Haible  <bruno@clisp.org>
30885
30886         Addendum to 2010-02-07 commit.
30887         * gnulib-tool (func_usage): Document --extract-applicability option.
30888
30889 2010-03-27  Bruno Haible  <bruno@clisp.org>
30890
30891         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
30892         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
30893         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
30894         rather than link errors.
30895
30896 2010-03-27  Bruno Haible  <bruno@clisp.org>
30897
30898         Avoid side effects from tests-related modules on the compilation of lib.
30899         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
30900         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
30901         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
30902         parameter. Emit into AM_CPPFLAGS a definition of the designated C
30903         macro.
30904         (func_import): Define a witness macro. Assign it a value that depends
30905         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
30906         tests-related modules.
30907         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
30908         Reported by Jim Meyering.
30909
30910 2010-03-27  Bruno Haible  <bruno@clisp.org>
30911
30912         Factorize common .m4 code.
30913         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
30914         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
30915         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
30916         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
30917         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
30918         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
30919         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
30920         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
30921         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
30922         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
30923         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
30924         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
30925         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
30926         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
30927         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
30928         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
30929         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
30930         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
30931         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
30932         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
30933         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
30934         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
30935         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
30936         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
30937         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
30938         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
30939         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
30940         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
30941         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
30942         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
30943         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
30944         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
30945
30946 2010-03-27  Bruno Haible  <bruno@clisp.org>
30947
30948         Fix a compilation error on Cygwin with g++ >= 4.3.
30949         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
30950         if it is undefined or if we alias it to chmod.
30951         (lstat): Don't warn about the use of this function if it is undefined
30952         or if we alias it to stat.
30953         Reported by Simon Josefsson.
30954
30955 2010-03-27  Bruno Haible  <bruno@clisp.org>
30956
30957         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
30958         * modules/getlogin (configure.ac): Update.
30959
30960         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
30961         * modules/getlogin_r (configure.ac): Update.
30962
30963         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
30964         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
30965         * modules/inet_ntop (configure.ac): Update.
30966
30967         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
30968         * modules/inet_pton (configure.ac): Update.
30969
30970         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
30971         * modules/mbslen (configure.ac): Update.
30972
30973         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
30974         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
30975         * modules/forkpty (configure.ac): Update.
30976         * modules/openpty (configure.ac): Update.
30977
30978 2010-03-26  Simon Josefsson  <simon@josefsson.org>
30979
30980         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
30981         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
30982
30983 2010-03-25  Eric Blake  <eblake@redhat.com>
30984
30985         maint: use pragma consistently across replacement headers
30986         * lib/ctype.in.h (system_header): Hoist for consistent placement.
30987         * lib/dirent.in.h (system_header): Likewise.
30988         * lib/errno.in.h (system_header): Likewise.
30989         * lib/float.in.h (system_header): Likewise.
30990         * lib/getopt.in.h (system_header): Likewise.
30991         * lib/iconv.in.h (system_header): Likewise.
30992         * lib/inttypes.in.h (system_header): Likewise.
30993         * lib/langinfo.in.h (system_header): Likewise.
30994         * lib/locale.in.h (system_header): Likewise.
30995         * lib/math.in.h (system_header): Likewise.
30996         * lib/netdb.in.h (system_header): Likewise.
30997         * lib/netinet_in.in.h (system_header): Likewise.
30998         * lib/pty.in.h (system_header): Likewise.
30999         * lib/sched.in.h (system_header): Likewise.
31000         * lib/se-selinux.in.h (system_header): Likewise.
31001         * lib/search.in.h (system_header): Likewise.
31002         * lib/spawn.in.h (system_header): Likewise.
31003         * lib/stdarg.in.h (system_header): Likewise.
31004         * lib/stdint.in.h (system_header): Likewise.
31005         * lib/string.in.h (system_header): Likewise.
31006         * lib/strings.in.h (system_header): Likewise.
31007         * lib/sys_file.in.h (system_header): Likewise.
31008         * lib/sys_ioctl.in.h (system_header): Likewise.
31009         * lib/sys_socket.in.h (system_header): Likewise.
31010         * lib/sys_times.in.h (system_header): Likewise.
31011         * lib/sys_utsname.in.h (system_header): Likewise.
31012         * lib/sys_wait.in.h (system_header): Likewise.
31013         * lib/sysexits.in.h (system_header): Likewise.
31014         * lib/unistd.in.h (system_header): Likewise.
31015         * lib/wctype.in.h (system_header): Likewise.
31016
31017         arpa/inet: fix mingw compilation warning
31018         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
31019         Reported by Matthew Bolte.
31020
31021 2010-03-25  Bruno Haible  <bruno@clisp.org>
31022
31023         Avoid collision between gnulib wrapper and libintl wrapper.
31024         * lib/printf.c (printf): Don't define if a printf wrapper is already
31025         defined in intl/printf.c.
31026         Reported by Michel Boaventura <michel@michelboaventura.com>.
31027
31028 2010-03-25  Bruno Haible  <bruno@clisp.org>
31029
31030         Use ANSI C.
31031         * lib/readutmp.h (getutent): Provide ANSI C prototype.
31032
31033 2010-03-25  Bruno Haible  <bruno@clisp.org>
31034
31035         Minor formatting changes.
31036         * lib/acosl.c: Insert space before function argument list.
31037         * lib/argz.c: Likewise.
31038         * lib/asinl.c: Likewise.
31039         * lib/expl.c: Likewise.
31040         * lib/gen-uni-tables.c: Likewise.
31041         * lib/gettext.h: Likewise.
31042         * lib/glthread/lock.h: Likewise.
31043         * lib/tanl.c: Likewise.
31044         * lib/uniname/uniname.c: Likewise.
31045         * tests/test-idpriv-drop.c: Likewise.
31046         * tests/test-idpriv-droptemp.c: Likewise.
31047         * tests/test-lock.c: Likewise.
31048         * tests/test-tls.c: Likewise.
31049         * lib/argp-help.c: Insert space before function-like macro argument
31050         list.
31051         * lib/memcmp.c: Likewise.
31052         * tests/test-base64.c: Likewise.
31053         * lib/localename.c: Insert space before sizeof's argument list.
31054         * lib/safe-alloc.h: Likewise.
31055         * lib/file-set.h: Insert space before macro argument list.
31056         * tests/test-argp.c: Likewise.
31057         * lib/argp-namefrob.h: Insert space before function parameter list.
31058         * lib/getaddrinfo.c: Likewise.
31059         * lib/netdb.in.h: Likewise.
31060         * lib/parse-duration.h: Likewise.
31061         * lib/parse-duration.c: Likewise.
31062         * lib/poll.c: Likewise.
31063         * lib/select.c: Likewise.
31064         * lib/trim.h: Likewise.
31065         * tests/test-usleep.c: Likewise.
31066         * lib/ldexpl.c: Insert space before function parameter list and before
31067         function argument list.
31068         * lib/logl.c: Likewise.
31069         * lib/sqrtl.c: Likewise.
31070         * lib/trim.c: Likewise.
31071         * lib/cosl.c: Use GNU style indentation. Insert space before function
31072         argument list.
31073         * lib/sinl.c: Likewise.
31074         * lib/tsearch.c: Insert space after 'for'.
31075         Reported by Jim Meyering.
31076
31077 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
31078
31079         * maint.mk (sc_Wundef_boolean): Check for the presence of the
31080         config header before grepping, as it's not present before
31081         autoreconf/configure are run.  Reported by Simon Josefsson.
31082
31083 2010-03-23  Bruno Haible  <bruno@clisp.org>
31084
31085         pt_chown: Make it work with automake < 1.11.
31086         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
31087         Reported by Simon Josefsson.
31088
31089 2010-03-23  Bruno Haible  <bruno@clisp.org>
31090
31091         pt_chown: Don't depend on GPLed modules.
31092         * lib/pt_chown.c: Don't include idpriv.h.
31093         (main): Don't drop privileges.
31094         * modules/pt_chown (Depends-on): Remove idpriv-drop.
31095         Reported by Simon Josefsson.
31096
31097 2010-03-24  Simon Josefsson  <simon@josefsson.org>
31098
31099         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
31100         suggestions from karl@freefriends.org (Karl Berry).
31101
31102 2010-03-22  Eric Blake  <eblake@redhat.com>
31103
31104         gethostname: further tweaks
31105         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
31106         are overriding gethostname.
31107         Suggested by Bruno Haible.
31108
31109 2010-03-21  Bruno Haible  <bruno@clisp.org>
31110
31111         Fix comments.
31112         * lib/forkpty.c (rpl_forkpty): Fix comment.
31113         * lib/openpty.c (rpl_openpty): Likewise.
31114         Reported by Eric Blake.
31115
31116 2010-03-22  Eric Blake  <eblake@redhat.com>
31117
31118         gethostname: fix build on mingw
31119         * lib/unistd.in.h (includes): Work around fact that mingw
31120         <winsock2.h> re-includes <unistd.h>, by avoiding any
31121         redeclarations if we are being included by <winsock2.h>.
31122         Reported by Matthias Bolte.
31123
31124 2010-03-21  Bruno Haible  <bruno@clisp.org>
31125
31126         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
31127         * lib/forkpty.c (forkpty): New replacement function, from glibc with
31128         modifications.
31129         * lib/pty.in.h (forkpty): Update declaration. Add comments.
31130         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
31131         provide the replacement.
31132         * modules/forkpty (Depends-on): Add openpty, login_tty.
31133         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
31134         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
31135         * doc/glibc-functions/forkpty.texi: More supported platforms.
31136         * config/srclist.txt: Add forkpty.c (commented).
31137
31138 2010-03-21  Bruno Haible  <bruno@clisp.org>
31139
31140         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
31141         (Makefile.am): Verify that PTY_LIB is defined.
31142
31143         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
31144
31145 2010-03-21  Bruno Haible  <bruno@clisp.org>
31146
31147         Tests for module 'login_tty'.
31148         * modules/login_tty-tests: New file.
31149         * tests/test-login_tty.c: New file.
31150
31151         New module 'login_tty'.
31152         * lib/login_tty.c: New file.
31153         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
31154         * modules/login_tty: New file.
31155         * doc/glibc-functions/login_tty.texi: Mention the new module.
31156
31157 2010-03-21  Bruno Haible  <bruno@clisp.org>
31158
31159         login_tty: Documentation.
31160         * doc/glibc-functions/login_tty.texi: New file.
31161         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
31162
31163 2010-03-21  Bruno Haible  <bruno@clisp.org>
31164
31165         pty: Consistent macro naming.
31166         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
31167         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
31168         * modules/pty (configure.ac): Update.
31169
31170 2010-03-21  Bruno Haible  <bruno@clisp.org>
31171
31172         Tests for openpty: Make stricter.
31173         * tests/test-openpty.c (main): Add test of canonical processing and
31174         erase.
31175         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
31176
31177         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
31178         * lib/openpty.c (openpty): New replacement function.
31179         * lib/pty.in.h: Include <termios.h>.
31180         (openpty): Update declaration. Add comments.
31181         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
31182         is not declared, arrange to provide the replacement. Check for _getpty
31183         and posix_openpt.
31184         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
31185         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
31186         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
31187         * modules/pty-tests (test_pty_c___LDADD): New variable.
31188         * doc/glibc-functions/openpty.texi: More supported platforms.
31189
31190 2010-03-21  Bruno Haible  <bruno@clisp.org>
31191
31192         setenv: Tweaks.
31193         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
31194         the test program.
31195         * doc/posix-functions/setenv.texi: Update platforms list.
31196
31197 2010-03-21  Bruno Haible  <bruno@clisp.org>
31198
31199         New module 'unlockpt'.
31200         * lib/unlockpt.c: New file, from glibc with modifications.
31201         * m4/unlockpt.m4: New file.
31202         * modules/unlockpt: New file.
31203         * lib/stdlib.in.h (unlockpt): New declaration.
31204         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
31205         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
31206         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
31207         HAVE_UNLOCKPT.
31208         * doc/posix-functions/unlockpt.texi: Mention the new module.
31209         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
31210         * config/srclist.txt: Add unlockpt.c (commented).
31211
31212 2010-03-21  Jim Meyering  <meyering@redhat.com>
31213
31214         maint.mk: prohibit inclusion of "intprops.h" without use
31215         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
31216
31217 2010-03-21  Bruno Haible  <bruno@clisp.org>
31218
31219         New module 'grantpt'.
31220         * lib/grantpt.c: New file, from glibc with modifications.
31221         * m4/grantpt.m4: New file.
31222         * modules/grantpt: New file.
31223         * lib/stdlib.in.h (grantpt): New declaration.
31224         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
31225         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
31226         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
31227         HAVE_GRANTPT.
31228         * doc/posix-functions/grantpt.texi: Mention the new module.
31229         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
31230         * config/srclist.txt: Add grantpt.c (commented).
31231
31232 2010-03-21  Bruno Haible  <bruno@clisp.org>
31233
31234         New module 'pt_chown'.
31235         * lib/pt_chown.c: New file, from glibc with modifications.
31236         * lib/pty-private.h: New file, from glibc with modifications.
31237         * modules/pt_chown: New file.
31238         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
31239
31240 2010-03-21  Bruno Haible  <bruno@clisp.org>
31241
31242         Tests for module 'ptsname'.
31243         * modules/ptsname-tests: New file.
31244         * tests/test-ptsname.c: New file.
31245
31246         New module 'ptsname'.
31247         * lib/ptsname.c: New file, from glibc with modifications.
31248         * m4/ptsname.m4: New file.
31249         * modules/ptsname: New file.
31250         * lib/stdlib.in.h (ptsname): New declaration.
31251         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
31252         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
31253         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
31254         HAVE_PTSNAME.
31255         * doc/posix-functions/ptsname.texi: Mention the new module.
31256         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
31257         * config/srclist.txt: Add ptsname.c (commented).
31258
31259 2010-03-21  Bruno Haible  <bruno@clisp.org>
31260
31261         Tests for module 'ttyname_r'.
31262         * modules/ttyname_r-tests: New file.
31263         * tests/test-ttyname_r.c: New file.
31264
31265         New module 'ttyname_r'.
31266         * lib/ttyname_r.c: New file.
31267         * m4/ttyname_r.m4: New file.
31268         * modules/ttyname_r: New file.
31269         * lib/unistd.in.h (ttyname_r): New declaration.
31270         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
31271         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
31272         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
31273         HAVE_TTYNAME_R.
31274         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
31275         * doc/posix-functions/ttyname_r.texi: Mention the new module.
31276
31277 2010-03-20  Bruno Haible  <bruno@clisp.org>
31278
31279         signal: Undefine macro definitions in C++ mode.
31280         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
31281         sigfillset): Undefine macro definitions from the system header in C++
31282         mode.
31283         Reported by John W. Eaton <jwe@gnu.org>.
31284
31285 2010-03-20  Bruno Haible  <bruno@clisp.org>
31286
31287         Ensure no #include statements inside extern "C" { ... }.
31288         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
31289         contain #include statements.
31290         * lib/time.in.h: Likewise.
31291
31292 2010-03-20  Bruno Haible  <bruno@clisp.org>
31293
31294         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
31295         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
31296         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
31297         Reported by John W. Eaton <jwe@gnu.org>.
31298
31299 2010-03-20  Bruno Haible  <bruno@clisp.org>
31300
31301         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
31302         Reported by Jim Meyering.
31303
31304 2010-03-20  Bruno Haible  <bruno@clisp.org>
31305
31306         pipe: Set errno upon failure.
31307         * lib/pipe.h: Specify that when -1 is returned, errno is set.
31308         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
31309         errno value in error message.
31310
31311 2010-03-20  Bruno Haible  <bruno@clisp.org>
31312             Jim Meyering  <meyering@redhat.com>
31313
31314         lchown: Avoid "unused variable" warning.
31315         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
31316
31317 2010-03-20  Bruno Haible  <bruno@clisp.org>
31318
31319         Work around unlink() bug on MacOS X 10.5.6.
31320         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
31321         attempting to unlink a parent directory.
31322         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
31323         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
31324         activate for the replacement function.
31325         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
31326
31327 2010-03-20  Bruno Haible  <bruno@clisp.org>
31328
31329         Fix link errors on Solaris 8.
31330         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
31331         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
31332
31333 2010-03-19  Jim Meyering  <meyering@redhat.com>
31334
31335         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
31336         The _LIBC implementation of build_range_exp correctly honors the
31337         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
31338         However, the non-_LIBC implementation would ignore that syntax-bit
31339         flag and return REG_ERANGE unconditionally.
31340         This change makes it honor that flag.
31341         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
31342         Make two pointer parameters "const".
31343         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
31344         (parse_bracket_exp): Update caller.
31345
31346         regex.m4: correct the reversed range endpoint ([b-a]) test
31347         * m4/regex.m4: When requiring that [b-a] evoke failure,
31348         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
31349         test pass once again for x86-based systems.
31350
31351 2010-03-19  Bruno Haible  <bruno@clisp.org>
31352
31353         scandir: Fix link error on Solaris 8.
31354         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
31355         macros.
31356
31357 2010-03-19  Bruno Haible  <bruno@clisp.org>
31358
31359         getusershell: Fix documentation.
31360         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
31361         module.
31362         * doc/glibc-functions/setusershell.texi: Likewise.
31363
31364         getusershell: Provide declaration, missing on Solaris 9.
31365         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
31366         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
31367         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
31368         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
31369         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31370         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
31371         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
31372         HAVE_GETUSERSHELL.
31373         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
31374
31375 2010-03-19  Bruno Haible  <bruno@clisp.org>
31376
31377         wctype: Provide iswblank function.
31378         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
31379         exists and is fine.
31380         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
31381         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
31382         * tests/test-wctype.c (main): Re-enable the iswblank tests.
31383         * doc/posix-functions/iswblank.texi: Update.
31384
31385 2010-03-19  Bruno Haible  <bruno@clisp.org>
31386
31387         Tests of module 'pty' in C++ mode.
31388         * modules/pty-tests: New file.
31389         * tests/test-pty-c++.cc: New file.
31390         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31391
31392 2010-03-19  Eric Blake  <eblake@redhat.com>
31393
31394         logb: fix documentation
31395         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
31396         1.5 declaration bug.
31397
31398         forkpty, openpty: prefer glibc's const-safe prototype
31399         * lib/forkpty.c (rpl_forkpty): New file.
31400         * lib/openpty.c (rpl_openpty): Likewise.
31401         * modules/forkpty (Files): Distribute it.
31402         * modules/openpty (Files): Likewise.
31403         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
31404         check...
31405         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
31406         replacement for for non-const BSD signature.
31407         * modules/pty (Makefile.am): Substitute witnesses.
31408         * lib/pty.in.h (forkpty, openpty): Declare replacements.
31409         * tests/test-forkpty.c: Update signature check.
31410         * tests/test-openpty.c: Likewise.
31411         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
31412         * doc/glibc-functions/openpty.texi (openpty): Likewise.
31413
31414         forkpty, openpty: split functions into new modules
31415         * modules/pty (Makefile.am): Substitute new witnesses.
31416         (Libraries): Move library detection...
31417         * modules/forkpty: ...into new module.
31418         * modules/openpty: Another new module.
31419         * modules/pty-tests: Rename and split...
31420         * modules/forkpty-tests: ...to this...
31421         * modules/openpty-tests: ...and this.
31422         * tests/test-pty.c: Rename and split...
31423         * tests/test-forkpty.c: ...to this...
31424         * tests/test-openpty.c: ...and this.
31425         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
31426         (gl_PTY): Split library searching...
31427         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
31428         (gl_FORKPTY, gl_OPENPTY): New macros.
31429         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
31430         * NEWS: Mention the split.
31431         * MODULES.html.sh (Misc): Document the modules.
31432         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
31433         * doc/glibc-functions/openpty.texi (openpty): Likewise.
31434
31435         pty: improve replacement header
31436         * lib/pty.in.h: New file.
31437         * modules/pty (Files): Ship it.
31438         (Makefile.am): Always build replacement.
31439         * m4/pty.m4: Rename...
31440         * m4/pty_h.m4: ...to this.
31441         (gl_PTY): Modernize setting of witness macros; update check of
31442         forkpty to take proper advantage of cache.
31443         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
31444
31445         getopt: avoid compiler warning
31446         * lib/getopt.c (attribute_hidden): Remove unused macro.
31447
31448 2010-03-18  Bruno Haible  <bruno@clisp.org>
31449
31450         Fix link errors on Solaris 8.
31451         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
31452         * modules/search-tests (test_search_c___LDADD): Likewise.
31453         * modules/signal-tests (test_signal_c___LDADD): Likewise.
31454         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
31455         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
31456         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
31457         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
31458         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
31459         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
31460
31461 2010-03-18  Bruno Haible  <bruno@clisp.org>
31462
31463         Fix bug introduced on 2010-03-14.
31464         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
31465         (gl_SPAWN_H): Require it.
31466         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
31467         Reported by Simon Josefsson.
31468
31469 2010-03-18  Bruno Haible  <bruno@clisp.org>
31470
31471         Fix typo introduced on 2009-12-31.
31472         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
31473         posix_spawn_file_actions_adddup2.
31474
31475 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
31476         and Eric Blake  <eblake@redhat.com>
31477
31478         test-vc-list-files-git: make more robust
31479         * tests/test-vc-list-files-git.sh: Unset problematic environment
31480         variables.  Chain commands together.
31481
31482 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
31483
31484         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
31485         `AC_CHECK_DECL' invocation.
31486
31487 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
31488
31489         * lib/inttostr.c (inttostr): Make sure the invocation of verify
31490         appears before executable statements. Suggested by Petr Sumbera
31491         <Petr.Sumbera@Sun.COM>.
31492
31493 2010-03-14  Bruno Haible  <bruno@clisp.org>
31494
31495         * tests/test-flock.c (test_exclusive): Comment out a test that causes
31496         portability problems. Instead use a simpler test.
31497         (main): Check that invalid arguments are rejected only on Linux.
31498
31499 2010-03-14  Bruno Haible  <bruno@clisp.org>
31500
31501         Fix bug introduced on 2009-12-31.
31502         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
31503         gl_PREREQ_SYS_H_WINSOCK2 always.
31504         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
31505         SYS_SOCKET_H variable.
31506         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
31507         Update comments.
31508         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
31509         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
31510         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
31511         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
31512         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
31513
31514 2010-03-14  Bruno Haible  <bruno@clisp.org>
31515
31516         Fix values returned by sinl, cosl.
31517         * lib/trigl.h: Add specification comments.
31518         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
31519         that combines the values from the precomputed table with the values of
31520         the Chebyshev polynomials.
31521
31522 2010-03-14  Bruno Haible  <bruno@clisp.org>
31523
31524         Fix compilation error when modules 'posix_spawn[p]' are not used.
31525         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
31526         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
31527
31528 2010-03-14  Bruno Haible  <bruno@clisp.org>
31529
31530         Fix compilation error on mingw when module 'time_r' is not used.
31531         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
31532         is 1.
31533         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
31534         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
31535         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
31536         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
31537
31538 2010-03-14  Bruno Haible  <bruno@clisp.org>
31539
31540         Fix compilation error with Sun C.
31541         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
31542         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
31543         instead of GCC specific ULONG_LONG_MAX.
31544         * lib/xstrtoll.c: Likewise.
31545         * lib/xstrtoull.c: Likewise.
31546
31547 2010-03-13  Bruno Haible  <bruno@clisp.org>
31548
31549         Allow the user to disable C++ code and tests.
31550         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
31551         (gl_PROG_ANSI_CXX): Require it.
31552
31553 2010-03-13  Bruno Haible  <bruno@clisp.org>
31554
31555         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
31556         cases.
31557
31558 2010-03-13  Bruno Haible  <bruno@clisp.org>
31559
31560         Test that gnulib does not break the standard C++ headers.
31561         * tests/test-locale-c++2.cc: New file.
31562         * modules/locale-tests (Files): Add it.
31563         (Makefile.am): Compile it for test-locale-c++.
31564         * tests/test-math-c++2.cc: New file.
31565         * modules/math-tests (Files): Add it.
31566         (Makefile.am): Compile it for test-math-c++.
31567         * tests/test-signal-c++2.cc: New file.
31568         * modules/signal-tests (Files): Add it.
31569         (Makefile.am): Compile it for test-signal-c++.
31570         * tests/test-stdio-c++2.cc: New file.
31571         * modules/stdio-tests (Files): Add it.
31572         (Makefile.am): Compile it for test-stdio-c++.
31573         * tests/test-stdlib-c++2.cc: New file.
31574         * modules/stdlib-tests (Files): Add it.
31575         (Makefile.am): Compile it for test-stdlib-c++.
31576         * tests/test-string-c++2.cc: New file.
31577         * modules/string-tests (Files): Add it.
31578         (Makefile.am): Compile it for test-string-c++.
31579         * tests/test-time-c++2.cc: New file.
31580         * modules/time-tests (Files): Add it.
31581         (Makefile.am): Compile it for test-time-c++.
31582         Reported by John W. Eaton <jwe@gnu.org>.
31583
31584 2010-03-13  Bruno Haible  <bruno@clisp.org>
31585
31586         * gnulib-tool (func_usage): Clarify which options are available for
31587         --create-testdir and --create-megatestdir.
31588
31589 2010-03-13  Bruno Haible  <bruno@clisp.org>
31590
31591         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
31592         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
31593         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
31594         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
31595         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
31596         when appropriate.
31597         Reported by Jim Meyering.
31598
31599 2010-03-12  Simon Josefsson  <simon@josefsson.org>
31600
31601         * gnulib-tool (func_import): Explain origin of code.
31602
31603 2010-03-12  Bruno Haible  <bruno@clisp.org>
31604
31605         Fix problem with automake's definition of CXXLINK.
31606         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
31607         Reported by Simon Josefsson and Ludovic Courtès.
31608
31609 2010-03-12  Bruno Haible  <bruno@clisp.org>
31610
31611         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
31612         stable releases.
31613
31614 2010-03-11  Bruno Haible  <bruno@clisp.org>
31615
31616         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
31617         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
31618         whether the system provides one variant or multiple variants of the
31619         function.
31620         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
31621         C++ compilers.
31622         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
31623         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
31624         Reported by Jim Meyering.
31625
31626 2010-03-09  Simon Josefsson  <simon@josefsson.org>
31627
31628         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
31629
31630 2010-03-08  Bruno Haible  <bruno@clisp.org>
31631
31632         gnulib-tool: Add support for --libtool in --create-testdir.
31633         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
31634         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
31635
31636 2010-03-08  Eric Blake  <eblake@redhat.com>
31637
31638         gnulib-tool.texi: mention possibility of git submodule
31639         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
31640         submodules.
31641         * doc/.gitignore: Ignore another generated file.
31642
31643 2010-03-08  Karl Berry  <karl@gnu.org>
31644
31645         * doc/gnulib-tool.texi (VCS Issues): Mention third option
31646         of committing gnulib files while skipping others.
31647
31648 2010-03-07  Bruno Haible  <bruno@clisp.org>
31649
31650         Tests of module 'wctype' in C++ mode.
31651         * tests/test-wctype-c++.cc: New file.
31652         * modules/wctype-tests (Files): Add it and tests/signature.h.
31653         (Depends-on): Add ansi-c++-opt.
31654         (Makefile.am): Arrange to compile and run test-wctype-c++.
31655
31656         Tests of module 'wchar' in C++ mode.
31657         * tests/test-wchar-c++.cc: New file.
31658         * modules/wchar-tests (Files): Add it and tests/signature.h.
31659         (Depends-on): Add ansi-c++-opt.
31660         (Makefile.am): Arrange to compile and run test-wchar-c++.
31661         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
31662         gl_MODULE_INDICATOR.
31663
31664         Tests of module 'unistd' in C++ mode.
31665         * tests/test-unistd-c++.cc: New file.
31666         * modules/unistd-tests (Files): Add it and tests/signature.h.
31667         (Depends-on): Add ansi-c++-opt.
31668         (Makefile.am): Arrange to compile and run test-unistd-c++.
31669         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
31670         gl_MODULE_INDICATOR.
31671
31672         Tests of module 'time' in C++ mode.
31673         * tests/test-time-c++.cc: New file.
31674         * modules/time-tests (Files): Add it and tests/signature.h.
31675         (Depends-on): Add ansi-c++-opt.
31676         (Makefile.am): Arrange to compile and run test-time-c++.
31677         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31678
31679         Tests of module 'sys_time' in C++ mode.
31680         * tests/test-sys_time-c++.cc: New file.
31681         * modules/sys_time-tests (Files): Add it and tests/signature.h.
31682         (Depends-on): Add ansi-c++-opt.
31683         (Makefile.am): Arrange to compile and run test-sys_time-c++.
31684         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
31685         gl_MODULE_INDICATOR.
31686
31687         Tests of module 'sys_stat' in C++ mode.
31688         * tests/test-sys_stat-c++.cc: New file.
31689         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
31690         (Depends-on): Add ansi-c++-opt.
31691         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
31692         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
31693         gl_MODULE_INDICATOR.
31694
31695         Tests of module 'sys_socket' in C++ mode.
31696         * tests/test-sys_socket-c++.cc: New file.
31697         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
31698         (Depends-on): Add ansi-c++-opt.
31699         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
31700         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
31701         gl_MODULE_INDICATOR.
31702
31703         Tests of module 'sys_select' in C++ mode.
31704         * tests/test-sys_select-c++.cc: New file.
31705         * modules/sys_select-tests (Files): Add it and tests/signature.h.
31706         (Depends-on): Add ansi-c++-opt.
31707         (Makefile.am): Arrange to compile and run test-sys_select-c++.
31708         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
31709         gl_MODULE_INDICATOR.
31710
31711         Tests of module 'sys_ioctl' in C++ mode.
31712         * tests/test-sys_ioctl-c++.cc: New file.
31713         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
31714         (Depends-on): Add ansi-c++-opt.
31715         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
31716         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
31717         gl_MODULE_INDICATOR.
31718
31719         Tests of module 'string' in C++ mode.
31720         * tests/test-string-c++.cc: New file.
31721         * modules/string-tests (Files): Add it and tests/signature.h.
31722         (Depends-on): Add ansi-c++-opt.
31723         (Makefile.am): Arrange to compile and run test-string-c++.
31724         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
31725         gl_MODULE_INDICATOR.
31726
31727         Tests of module 'stdlib' in C++ mode.
31728         * tests/test-stdlib-c++.cc: New file.
31729         * modules/stdlib-tests (Files): Add it and tests/signature.h.
31730         (Depends-on): Add ansi-c++-opt.
31731         (Makefile.am): Arrange to compile and run test-stdlib-c++.
31732         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
31733         gl_MODULE_INDICATOR.
31734
31735         Tests of module 'stdio' in C++ mode.
31736         * tests/test-stdio-c++.cc: New file.
31737         * modules/stdio-tests (Files): Add it and tests/signature.h.
31738         (Depends-on): Add ansi-c++-opt.
31739         (Makefile.am): Arrange to compile and run test-stdio-c++.
31740         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
31741         gl_MODULE_INDICATOR.
31742
31743         Tests of module 'spawn' in C++ mode.
31744         * tests/test-spawn-c++.cc: New file.
31745         * modules/spawn-tests (Files): Add it and tests/signature.h.
31746         (Depends-on): Add ansi-c++-opt.
31747         (Makefile.am): Arrange to compile and run test-spawn-c++.
31748         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
31749         gl_MODULE_INDICATOR.
31750
31751         Tests of module 'signal' in C++ mode.
31752         * tests/test-signal-c++.cc: New file.
31753         * modules/signal-tests (Files): Add it and tests/signature.h.
31754         (Depends-on): Add ansi-c++-opt.
31755         (Makefile.am): Arrange to compile and run test-signal-c++.
31756         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
31757         gl_MODULE_INDICATOR.
31758
31759         Tests of module 'search' in C++ mode.
31760         * tests/test-search-c++.cc: New file.
31761         * modules/search-tests (Files): Add it and tests/signature.h.
31762         (Depends-on): Add ansi-c++-opt.
31763         (Makefile.am): Arrange to compile and run test-search-c++.
31764         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
31765         gl_MODULE_INDICATOR.
31766
31767         Tests of module 'math' in C++ mode.
31768         * tests/test-math-c++.cc: New file.
31769         * modules/math-tests (Files): Add it and tests/signature.h.
31770         (Depends-on): Add ansi-c++-opt.
31771         (Makefile.am): Arrange to compile and run test-math-c++.
31772         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31773
31774         Tests of module 'locale' in C++ mode.
31775         * tests/test-locale-c++.cc: New file.
31776         * modules/locale-tests (Files): Add it and tests/signature.h.
31777         (Depends-on): Add ansi-c++-opt.
31778         (Makefile.am): Arrange to compile and run test-locale-c++.
31779         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
31780         gl_MODULE_INDICATOR.
31781
31782         Tests of module 'langinfo' in C++ mode.
31783         * tests/test-langinfo-c++.cc: New file.
31784         * modules/langinfo-tests (Files): Add it and tests/signature.h.
31785         (Depends-on): Add ansi-c++-opt.
31786         (Makefile.am): Arrange to compile and run test-langinfo-c++.
31787         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
31788         gl_MODULE_INDICATOR.
31789
31790         Tests of module 'iconv-h' in C++ mode.
31791         * tests/test-iconv-h-c++.cc: New file.
31792         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
31793         (Depends-on): Add ansi-c++-opt.
31794         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
31795
31796         Tests of module 'glob' in C++ mode.
31797         * tests/test-glob-c++.cc: New file.
31798         * modules/glob-tests (Files): Add it.
31799         (Depends-on): Add ansi-c++-opt.
31800         (Makefile.am): Arrange to compile and run test-glob-c++.
31801
31802         Tests of module 'fcntl-h' in C++ mode.
31803         * tests/test-fcntl-h-c++.cc: New file.
31804         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
31805         (Depends-on): Add ansi-c++-opt.
31806         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
31807         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
31808         gl_MODULE_INDICATOR.
31809
31810         Tests of module 'dirent' in C++ mode.
31811         * tests/test-dirent-c++.cc: New file.
31812         * modules/dirent-tests (Files): Add it and tests/signature.h.
31813         (Depends-on): Add ansi-c++-opt.
31814         (Makefile.am): Arrange to compile and run test-dirent-c++.
31815         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
31816         gl_MODULE_INDICATOR.
31817
31818         New module 'ansi-c++-opt'.
31819         * modules/ansi-c++-opt: New file.
31820         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
31821
31822         Document C++ namespace mode.
31823         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
31824
31825         wctype: Avoid #define replacements in C++ mode.
31826         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
31827         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
31828         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
31829         In C++, define a namespaced alias symbol.
31830         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
31831         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
31832         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
31833         rule.
31834
31835         wchar: Avoid #define replacements in C++ mode.
31836         * lib/wchar.in.h: Include c++defs.h.
31837         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
31838         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
31839         symbol.
31840         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
31841         * modules/wchar (Depends-on): Add c++defs.
31842         (Makefile.am): Update wchar.h rule.
31843
31844         unistd: Avoid #define replacements in C++ mode.
31845         * lib/unistd.in.h: Include c++defs.h.
31846         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
31847         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
31848         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
31849         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
31850         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
31851         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
31852         symbol.
31853         (environ): Update.
31854         * modules/unistd (Depends-on): Add c++defs.
31855         (Makefile.am): Update unistd.h rule.
31856
31857         time: Avoid #define replacements in C++ mode.
31858         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
31859         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
31860         define a namespaced alias symbol.
31861         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
31862         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
31863         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
31864         * modules/time (Depends-on): Add c++defs, warn-on-use.
31865         (Makefile.am): Update time.h rule.
31866         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
31867         * modules/nanosleep (configure.ac): Likewise.
31868         * modules/strptime (configure.ac): Likewise.
31869         * modules/timegm (configure.ac): Likewise.
31870
31871         sys_time: Avoid #define replacements in C++ mode.
31872         * lib/sys_time.in.h: Include c++defs.h.
31873         (gettimeofday): In C++, define a namespaced alias symbol.
31874         * modules/sys_time (Depends-on): Add c++defs.
31875         (Makefile.am): Update sys/time.h rule.
31876
31877         sys_stat: Avoid #define replacements in C++ mode.
31878         * lib/sys_stat.in.h: Include c++defs.h.
31879         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
31880         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
31881         namespaced alias symbol.
31882         In C++, define a namespaced alias symbol.
31883         * modules/sys_stat (Depends-on): Add c++defs.
31884         (Makefile.am): Update sys/stat.h rule.
31885
31886         sys_socket: Avoid #define replacements in C++ mode.
31887         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
31888         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
31889         definitions also when the system has a <sys/socket.h>.
31890         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
31891         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
31892         In C++, define a namespaced alias symbol.
31893         * modules/sys_socket (Depends-on): Add c++defs.
31894         (Makefile.am): Update sys/socket.h rule.
31895
31896         sys_select: Avoid #define replacements in C++ mode.
31897         * lib/sys_select.in.h: Include c++defs.h. Enable the function
31898         definitions also when the system has a <sys/select.h>.
31899         (select): In C++, define a namespaced alias symbol.
31900         * modules/sys_select (Depends-on): Add c++defs.
31901         (Makefile.am): Update sys/select.h rule.
31902
31903         sys_ioctl: Avoid #define replacements in C++ mode.
31904         * lib/sys_ioctl.in.h: Include c++defs.h.
31905         (ioctl): In C++, define a namespaced alias symbol.
31906         * modules/sys_ioctl (Depends-on): Add c++defs.
31907         (Makefile.am): Update sys/ioctl.h rule.
31908
31909         string: Avoid #define replacements in C++ mode.
31910         * lib/string.in.h: Include c++defs.h.
31911         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
31912         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
31913         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
31914         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
31915         strsignal, strverscmp): In C++, define a namespaced alias symbol.
31916         * modules/string (Depends-on): Add c++defs.
31917         (Makefile.am): Update string.h rule.
31918
31919         stdlib: Avoid #define replacements in C++ mode.
31920         * lib/stdlib.in.h: Include c++defs.h.
31921         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
31922         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
31923         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
31924         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
31925         symbol.
31926         * modules/stdlib (Depends-on): Add c++defs.
31927         (Makefile.am): Update stdlib.h rule.
31928
31929         stdio: Avoid #define replacements in C++ mode.
31930         * lib/stdio.in.h: Include c++defs.h.
31931         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
31932         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
31933         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
31934         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
31935         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
31936         namespaced alias symbol.
31937         * modules/stdio (Depends-on): Add c++defs.
31938         (Makefile.am): Update stdio.h rule.
31939
31940         spawn: Avoid #define replacements in C++ mode.
31941         * lib/spawn.in.h: Include c++defs.h.
31942         (posix_spawn, posix_spawnp, posix_spawnattr_init,
31943         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
31944         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
31945         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
31946         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
31947         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
31948         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
31949         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
31950         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
31951         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
31952         In C++, define a namespaced alias symbol.
31953         * modules/spawn (Depends-on): Add c++defs.
31954         (Makefile.am): Update spawn.h rule.
31955
31956         signal: Avoid #define replacements in C++ mode.
31957         * lib/signal.in.h: Include c++defs.h.
31958         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
31959         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
31960         namespaced alias symbol.
31961         * modules/signal (Depends-on): Add c++defs.
31962         (Makefile.am): Update signal.h rule.
31963
31964         search: Avoid #define replacements in C++ mode.
31965         * lib/search.in.h: Include c++defs.h.
31966         (_gl_search_compar_fn, _gl_search_action_fn): New types.
31967         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
31968         symbol.
31969         * modules/search (Depends-on): Add c++defs.
31970         (Makefile.am): Update search.h rule.
31971
31972         math: Avoid #define replacements in C++ mode.
31973         * lib/math.in.h: Include c++defs.h.
31974         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
31975         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
31976         trunc, truncl): In C++, define a namespaced alias symbol.
31977         * modules/math (Depends-on): Add c++defs.
31978         (Makefile.am): Update math.h rule.
31979
31980         locale: Avoid #define replacements in C++ mode.
31981         * lib/locale.in.h: Include c++defs.h.
31982         (duplocale): In C++, define a namespaced alias symbol.
31983         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
31984         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
31985         * modules/locale (Depends-on): Add c++defs.
31986         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
31987
31988         langinfo: Avoid #define replacements in C++ mode.
31989         * lib/langinfo.in.h: Include c++defs.h.
31990         (nl_langinfo): In C++, define a namespaced alias symbol.
31991         * modules/langinfo (Depends-on): Add c++defs.
31992         (Makefile.am): Update langinfo.h rule.
31993
31994         iconv-h: Avoid #define replacements in C++ mode.
31995         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
31996         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
31997         symbol.
31998         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
31999         whenever iconv is present.
32000         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
32001         (Makefile.am): Update iconv.h rule.
32002
32003         glob: Avoid #define replacements in C++ mode.
32004         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
32005         (_gl_glob_errfunc_fn): New type.
32006         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
32007         symbol.
32008         * modules/glob (Depends-on): Add c++defs, warn-on-use.
32009         (Makefile.am): Update glob.h rule.
32010
32011         fcntl-h: Avoid #define replacements in C++ mode.
32012         * lib/fcntl.in.h: Include c++defs.h.
32013         (fcntl, open, openat): In C++, define a namespaced alias symbol.
32014         * modules/fcntl-h (Depends-on): Add c++defs.
32015         (Makefile.am): Update fcntl.h rule.
32016
32017         dirent: Avoid #define replacements in C++ mode.
32018         * lib/dirent.in.h: Include c++defs.h.
32019         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
32020         namespaced alias symbol.
32021         (dirfd): Update declaration.
32022         * modules/dirent (Depends-on): Add c++defs.
32023         (Makefile.am): Update dirent.h rule.
32024
32025         ctype: Make it usable in C++ code.
32026         * lib/ctype.in.h: Include c++defs.h.
32027         (isblank): Declare as extern "C".
32028         * modules/ctype (Depends-on): Add c++defs.
32029         (Makefile.am): Update ctype.h rule.
32030
32031         New module 'c++defs'.
32032         * modules/c++defs: New file.
32033         * build-aux/c++defs.h: New file.
32034         Reported by John W. Eaton <jwe@gnu.org>.
32035
32036 2010-03-07  Bruno Haible  <bruno@clisp.org>
32037
32038         logb: Provide missing declaration for Cygwin.
32039         * lib/math.in.h (logb): New declaration.
32040         * m4/logb.m4: New file.
32041         * modules/logb (Files): Add m4/logb.m4.
32042         (Depends-on): Add math.
32043         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
32044         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
32045         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
32046         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
32047         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
32048
32049 2010-03-07  Bruno Haible  <bruno@clisp.org>
32050
32051         Fix test-cond link error.
32052         * tests/test-cond.c: Include <stdio.h>.
32053
32054 2010-03-07  Bruno Haible  <bruno@clisp.org>
32055
32056         Fix test-dirent-safer link error.
32057         * modules/dirent-safer-tests (Makefile.am): Define
32058         test_dirent_safer_LDADD.
32059
32060 2010-03-07  Bruno Haible  <bruno@clisp.org>
32061
32062         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
32063         among default module list.
32064
32065 2010-03-07  Bruno Haible  <bruno@clisp.org>
32066
32067         Fix link error on platforms with GNU libiconv.
32068         * modules/unistr/u8-strcoll-tests (Makefile): Define
32069         test_u8_strcoll_LDADD.
32070         * modules/unistr/u16-strcoll-tests (Makefile): Define
32071         test_u16_strcoll_LDADD.
32072         * modules/unistr/u32-strcoll-tests (Makefile): Define
32073         test_u32_strcoll_LDADD.
32074
32075 2010-03-07  Bruno Haible  <bruno@clisp.org>
32076
32077         Use POSIX declarations for socket functions.
32078         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
32079         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
32080         rpl_sendto): Change declaration to match POSIX.
32081         * lib/connect.c (rpl_connect): Likewise.
32082         * lib/accept.c (rpl_accept): Likewise.
32083         * lib/bind.c (rpl_bind): Likewise.
32084         * lib/getpeername.c (rpl_getpeername): Likewise.
32085         * lib/getsockname.c (rpl_getsockname): Likewise.
32086         * lib/recv.c (rpl_recv): Likewise.
32087         * lib/send.c (rpl_send): Likewise.
32088         * lib/recvfrom.c (rpl_recvfrom): Likewise.
32089         * lib/sendto.c (rpl_sendto): Likewise.
32090
32091 2010-03-06  Bruno Haible  <bruno@clisp.org>
32092
32093         Clarify access, euidaccess, faccessat.
32094         * doc/posix-functions/faccessat.texi: Mention security problem under
32095         "Other problems", not "Portability problems".
32096         * doc/posix-functions/access.texi: Likewise. Mention a related security
32097         problem.
32098         * doc/glibc-functions/euidaccess.texi: Mention security problems.
32099         * lib/euidaccess.c: Add comments about platforms.
32100         * lib/unistd.in.h (access, euidaccess): Add warnings.
32101
32102 2010-03-07  Bruno Haible  <bruno@clisp.org>
32103
32104         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
32105         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
32106         (POSIX_SPAWN_SETSCHEDULER): Likewise.
32107         (POSIX_SPAWN_USEVFORK): Define in a way that works when
32108         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
32109         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
32110         declare when POSIX_SPAWN_SETSCHEDULER is zero.
32111         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
32112         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
32113         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
32114         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
32115         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
32116         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
32117         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
32118         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
32119         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
32120         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
32121         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
32122         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
32123         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
32124         Likewise.
32125         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
32126         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
32127         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
32128         Likewise.
32129         * tests/test-spawn.c (main): Make it work when
32130         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
32131
32132 2010-03-07  Bruno Haible  <bruno@clisp.org>
32133
32134         Fix incorrect Makefile.am generation in German locale.
32135         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32136         Execute sed command with character range in C locale.
32137
32138 2010-03-06  Bruno Haible  <bruno@clisp.org>
32139
32140         Tests for module 'iconv-h'.
32141         * modules/iconv-h-tests: New file.
32142         * tests/test-iconv-h.c: New file.
32143
32144         New module 'iconv-h'.
32145         * modules/iconv-h: New file.
32146         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
32147         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
32148         (configure.ac): Remove gl_ICONV_H.
32149         (Makefile.am): Remove rule for iconv.h.
32150
32151 2010-03-06  Bruno Haible  <bruno@clisp.org>
32152
32153         More consistent naming of *.m4 files.
32154         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
32155         * modules/wctype (Files): Update.
32156
32157         More consistent naming of *.m4 files.
32158         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
32159         * modules/wchar (Files): Update.
32160
32161 2010-03-06  Jim Meyering  <meyering@redhat.com>
32162
32163         euidaccess: relax license to LGPLv2+
32164         * modules/euidaccess (License): Relax to LGPLv2+.
32165
32166 2010-03-06  Bruno Haible  <bruno@clisp.org>
32167
32168         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
32169         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
32170         (Makefile.am): Augment lib_SOURCES instead.
32171
32172 2010-03-04  Jim Meyering  <meyering@redhat.com>
32173
32174         utime: remove obsolete module
32175         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
32176         unnecessary for years, and has been marked as obsolete for 10 months.
32177         * modules/utime: Remove file.
32178         * lib/utime.c: Remove file.
32179         * m4/utime.m4: Remove file.
32180         * m4/utimes-null.m4: Remove file.
32181         * doc/posix-functions/utime.texi (utime): Remove reference to
32182         the module.  Move the sole "fixed by gnulib" item into the
32183         "problems not fixed by Gnulib" list.
32184         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
32185
32186 2010-03-05  Simon Josefsson  <simon@josefsson.org>
32187
32188         * modules/exit (License): Relax license to LGPLv2+.
32189         (Status): Mark as obsolete.
32190         * NEWS: Mention deprecated 'exit' module.
32191         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
32192         of now obsolete 'exit'.
32193
32194 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32195
32196         fts-lgpl: remove unused module
32197         * modules/fts-lgpl: Remove.
32198         * MODULES.html.sh (func_all_modules): Adjust.
32199         * check-module (find_included_lib_files): Adjust.
32200         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
32201
32202 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
32203
32204         copy-acl: enhance Solaris ACL error handling
32205         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
32206         * lib/set-mode-acl.c (qset_acl): Likewise.
32207
32208 2010-03-02  Bruno Haible  <bruno@clisp.org>
32209
32210         spawn: Don't override the system defined values on FreeBSD 8.
32211         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
32212         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
32213         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
32214         if HAVE_POSIX_SPAWN is 1.
32215         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
32216
32217 2010-03-01  Bruno Haible  <bruno@clisp.org>
32218
32219         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
32220         regarding Automake.
32221
32222 2010-02-25  Bruno Haible  <bruno@clisp.org>
32223
32224         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
32225         * gnulib-tool: Define 'echo' as a function only before the ksh alias
32226         setting, not afterwards.
32227         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
32228
32229 2010-02-24  Eric Blake  <eblake@redhat.com>
32230
32231         bootstrap, git-version-gen: use timestamp
32232         * build-aux/git-version-gen (scriptversion): Force UTC.
32233         * build-aux/bootstrap (scriptversion): New variable.
32234
32235         bootstrap: allow older git
32236         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
32237         older than 1.6.4.  Requested by the libvirt project.
32238
32239 2010-02-23  Eric Blake  <eblake@redhat.com>
32240
32241         warn-on-use: work with old autoconf
32242         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
32243         AS_VAR semantics of autoconf 2.60.
32244         Reported by Bruno Haible.
32245
32246         bootstrap: improve some comments
32247         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
32248         clarification comments.
32249
32250         gettimeofday: provide correct function
32251         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
32252         when replacement is declared, otherwise provide gettimeofday.
32253         Reported by Michael Goffioul.
32254
32255 2010-02-23  Jim Meyering  <meyering@redhat.com>
32256
32257         lib-ignore: relax license to "unlimited", not LGPLv2+
32258         * modules/lib-ignore (License): Relax to "unlimited".
32259
32260 2010-02-23  Jim Meyering  <meyering@redhat.com>
32261
32262         lib-ignore: relax license to LGPLv2+
32263         * modules/lib-ignore (License): Relax to LGPLv2+.
32264
32265 2010-02-22  Eric Blake  <eblake@redhat.com>
32266
32267         lseek: avoid bash 3.2 broken pipe bug
32268         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
32269         warning from bash 3.2.
32270         Reported by Ben Pfaff, with analysis from Bruno Haible.
32271
32272         bootstrap: support non-FSF copyright holder
32273         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
32274         bootstrap.conf override of COPYRIGHT_HOLDER.
32275         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
32276
32277         bootstrap: interoperate with gettext 0.14.1
32278         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
32279
32280         bootstrap: allow for alternate submodule location
32281         * build-aux/bootstrap (gnulib_path): New variable; use instead of
32282         hardcoding submodule location.
32283         (gnulib_mk): Allow direct use of Makefile.am.
32284
32285         bootstrap: use GNULIB_SRCDIR to reduce disk usage
32286         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
32287         rather than reconfiguring where the submodule points.
32288
32289         gettimeofday: restore support for platforms that lack function
32290         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
32291         replacement if function is missing.
32292         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
32293         * modules/sys_time (Makefile.am): Substitute it.
32294         * lib/sys_time.in.h (gettimeofday): Check it.
32295         Reported by Michael Goffioul.
32296
32297 2010-02-21  Bruno Haible  <bruno@clisp.org>
32298
32299         * lib/stdio.in.h (obstack_printf): Fix typo.
32300
32301 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
32302
32303         vc-list-files: use bzr ls's -R option
32304         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
32305         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
32306
32307 2010-02-21  Jim Meyering  <meyering@redhat.com>
32308
32309         init.sh: fix EXEEXT shims to work also for names like test-prog
32310         * tests/init.sh: Re-exec a better shell, when needed.
32311         If the current shell lacks support for posix $(...), an init.sh-using
32312         test will now try to find a shell that supports that.  If EXEEXT is
32313         nonempty, we also require support for hyphen-in-alias-name and shell
32314         substitutions like ${var#glob}.  Failure to find such a shell results
32315         in a skipped test.
32316
32317 2010-02-21  Bruno Haible  <bruno@clisp.org>
32318
32319         Really work around around "broken pipe" error message from bash 3.2.
32320         * gnulib-tool (func_reset_sigpipe): Remove function.
32321         (echo): In bash 3.2, define to a function that uses printf.
32322         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
32323
32324 2010-02-20  Bruno Haible  <bruno@clisp.org>
32325
32326         Restore support for automake 1.9.6 with autoconf 2.61.
32327         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
32328         Reported by James Youngman <jay@gnu.org>.
32329
32330 2010-02-20  Bruno Haible  <bruno@clisp.org>
32331
32332         Improve *printf warning condition.
32333         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
32334         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
32335         and the function is overridden due to SIGPIPE emulation.
32336
32337 2010-02-20  Bruno Haible  <bruno@clisp.org>
32338
32339         * lib/stdio.in.h: Tweak comments.
32340
32341 2010-02-19  Bruno Haible  <bruno@clisp.org>
32342
32343         Make it easier to find modules. New gnulib-tool option '--find'.
32344         * gnulib-tool: New option --find.
32345         (func_usage): Document it.
32346         (func_sanitize_modulelist): New function, extracted from
32347         func_all_modules.
32348         (func_all_modules): Invoke it.
32349         * doc/gnulib-tool.texi (Which modules?): New node.
32350
32351 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
32352
32353         * lib/sys_select.in.h: Provide select replacement even if
32354         sys/select.h exists on a system, for Interix.
32355
32356 2010-02-18  Jim Meyering  <meyering@redhat.com>
32357
32358         init.sh: don't use $(...) just yet
32359         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
32360         to accommodate e.g., Solaris' /bin/sh.
32361
32362 2010-02-17  Bruno Haible  <bruno@clisp.org>
32363
32364         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
32365         Reported by Ludovic Courtès <ludo@gnu.org>.
32366
32367 2010-02-16  Simon Josefsson  <simon@josefsson.org>
32368
32369         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
32370         linking with -lintl.
32371
32372 2010-02-17  Simon Josefsson  <simon@josefsson.org>
32373
32374         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
32375         if not provided by the system's netdb.h.  Reported by
32376         ludo@gnu.org (Ludovic Courtès).
32377
32378 2010-02-15  Jim Meyering  <meyering@redhat.com>
32379
32380         init.sh: improve portability and efficiency
32381         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
32382         "dummy" in a for loop.
32383         Use '!', not '^' to select the complement of a character set used
32384         in a "case" statement.
32385         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
32386         Suggestions from Eric Blake.
32387
32388         init.sh: automatically accommodate programs with the .exe suffix
32389         Automatically arrange for an invocation of "prog" to execute the
32390         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
32391         may use the simpler "prog", yet still work when built on a system
32392         that requires specifying the added suffix.
32393         Do this by constructing a function named "prog" that invokes
32394         "prog.exe" for each .exe file in selected directories.
32395         * tests/init.sh (find_exe_basenames_): New function.
32396         (create_exe_shim_functions_): New function.
32397         (path_prepend_): Use it.
32398
32399         maint.mk: mark syntax-check sc_*.m rules as .PHONY
32400         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
32401         "make -t syntax-check" doesn't create a ton of sc_*.m files.
32402
32403 2010-02-14  Jim Meyering  <meyering@redhat.com>
32404
32405         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
32406         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
32407         (sc_prohibit_hash_pjw_without_use): New rule.
32408
32409         maint.mk: allow the default upload destination dir to be overridden
32410         * top/maint.mk (upload_dest_dir_): Define with a default that
32411         preserves the status quo.
32412         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
32413         Reported by Peter Simons.
32414
32415         maint.mk: prohibit inclusion of "hash.h" without_use
32416         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
32417
32418 2010-02-10  Jim Meyering  <meyering@redhat.com>
32419
32420         maint.mk: prohibit inclusion of "ignore-value.h" without_use
32421         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
32422
32423 2010-02-09  Eric Blake  <ebb9@byu.net>
32424         and Bruno Haible  <bruno@clisp.org>
32425
32426         obstack-printf-posix: ensure declaration
32427         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
32428         extracted from gl_FUNC_OBSTACK_PRINTF.
32429         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
32430         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
32431         Likewise.
32432         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
32433         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
32434         0.
32435
32436 2010-02-08  Bruno Haible  <bruno@clisp.org>
32437
32438         gnulib-tool: Fix typo in 2010-02-07 commit.
32439         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
32440         Reported by Eric Blake.
32441
32442 2010-02-07  Bruno Haible  <bruno@clisp.org>
32443
32444         gnulib-tool: Fix up caching patches.
32445         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
32446         option --no-cache. Use associative arrays when supported by the shell.
32447         (sed_comments): New variable.
32448         (modcache): Renamed from do_cache.
32449         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
32450         abbreviate unnecessarily.
32451         (have_associative): New variable.
32452         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
32453         way also for ksh and zsh.
32454         (func_init_sed_convert_to_cache_statements): New function, extracted
32455         from func_cache_lookup_module. Add support for associative arrays.
32456         Don't set the c_MODULE_cached variable here. Ignore all lines before
32457         the first field header. Remove only the final newline, not all trailing
32458         newlines. Support empty fields correctly. Limit the use of 'eval' to
32459         assignments.
32460         (func_get_description, func_get_status, func_get_notice,
32461         func_get_applicability, func_get_filelist, func_get_dependencies,
32462         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
32463         func_get_automake_snippet, func_get_include_directive,
32464         func_get_link_directive, func_get_license, func_get_maintainer):
32465         Update documentation. List the unoptimized code first. Add support for
32466         associative arrays. Limit the use of 'eval' to assignments.
32467         (func_get_applicability): Undo stylistic pessimisations.
32468         (func_get_automake_snippet, func_get_include_directive): Reduce code
32469         duplication.
32470         (func_modules_transitive_closure, func_modules_add_dummy,
32471         func_modules_notice, func_modules_to_filelist, func_add_file,
32472         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
32473         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
32474         func_create_testdir, func_create_megatestdir): Update documentation.
32475
32476 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32477
32478         * gnulib-tool (func_cache_lookup_module): Store the module name
32479         belonging to the cache variable; error out if two different
32480         module names map to the same cache variable name.
32481
32482 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32483
32484         gnulib-tool: Make caching optional.
32485         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
32486         Update matching short versions of --no-changelog.
32487         (func_usage): Update.
32488         (sed_extract_cache_prog): Renamed from ...
32489         (sed_extract_prog): ... this; revert to old extraction script.
32490         (func_get_description, func_get_status)
32491         (func_get_notice, func_get_applicability, func_get_filelist)
32492         (func_get_dependencies, func_get_autoconf_early_snippet)
32493         (func_get_autoconf_snippet, func_get_automake_snippet)
32494         (func_get_include_directive, func_get_link_directive)
32495         (func_get_license, func_get_maintainer): If $do_cache is false,
32496         use old, non-caching extraction scripts.
32497         Suggestion by Bruno Haible.
32498
32499 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32500
32501         gnulib-tool: cache module metainformation.
32502         * gnulib-tool (sed_extract_prog): Match newline before each
32503         header, and rewrite header to a shell variable suffix.
32504         (func_cache_var, func_cache_lookup_module): New functions,
32505         to turn a module name into a cache variable prefix, and to
32506         look up and cache module metainformation.
32507         (func_get_description, func_get_status)
32508         (func_get_notice, func_get_applicability, func_get_filelist)
32509         (func_get_dependencies, func_get_autoconf_early_snippet)
32510         (func_get_autoconf_snippet, func_get_automake_snippet)
32511         (func_get_include_directive, func_get_link_directive)
32512         (func_get_license, func_get_maintainer): Use
32513         func_cache_lookup_module.
32514
32515 2010-02-07  Bruno Haible  <bruno@clisp.org>
32516
32517         fnctl: Fix missing dependency.
32518         * modules/fcntl (Depends-on): Add getdtablesize.
32519         Reported by John W. Eaton <jwe@gnu.org>.
32520
32521 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32522
32523         Argp: fix recognition of short alias options.
32524
32525         * lib/argp-parse.c (convert_options): Fix improper use of
32526         `|' between character values.
32527         * tests/test-argp.c (group1_option): New alias option
32528         --read (-r).
32529         (group1_parser): Special handling for 'r'.
32530         (test15): New test case.
32531         (test_fun): Add test15.
32532         * tests/test-argp-2.sh: Update expected --help and --usage
32533         outputs.
32534
32535 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32536
32537         * tests/test-argp.c: Fix indentation.
32538
32539 2010-02-04  Eric Blake  <ebb9@byu.net>
32540
32541         gettimeofday: expose type of second argument
32542         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
32543         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
32544         * tests/test-gettimeofday.c: Use it to silence warning.
32545         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
32546         the issue.
32547
32548 2010-02-03  Jim Meyering  <meyering@redhat.com>
32549
32550         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
32551         * lib/regcomp.c (TYPE_SIGNED): Define.
32552         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
32553
32554         regcomp.c: avoid a new -Wshadow warning
32555         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
32556
32557 2010-02-01  Jim Meyering  <meyering@redhat.com>
32558
32559         removing useless parentheses in cpp #define directives
32560         For motivation, see commit c0221df4, "define STREQ(a,b)
32561         consistently, removing useless parentheses"
32562         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
32563         * lib/mountlist.c (MNT_IGNORE): Likewise.
32564         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
32565
32566 2010-02-01  Eric Blake  <ebb9@byu.net>
32567
32568         sys_time: use link-warning
32569         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
32570         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
32571         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
32572         * modules/sys_time (Depends-on): Add warn-on-use.
32573         (Makefile.am): Always build replacement.
32574         (configure.ac): Update substitutions.
32575         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
32576         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
32577         bother with SYS_TIME_H.
32578         * modules/gettimeofday (configure.ac): Declare indicator.
32579         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
32580         in use.
32581
32582         closein-tests: silence compiler warning
32583         * tests/test-closein.c (main): Ignore fread result.
32584         * modules/closein-tests (Depends-on): Add ignore-value.
32585
32586         tests: silence warning about system return
32587         * tests/test-areadlink-with-size.c (main): Ignore system result.
32588         * tests/test-areadlink.c (main): Likewise.
32589         * tests/test-areadlinkat-with-size.c (main): Likewise.
32590         * tests/test-areadlinkat.c (main): Likewise.
32591         * tests/test-canonicalize-lgpl.c (main): Likewise.
32592         * tests/test-canonicalize.c (main): Likewise.
32593         * tests/test-chown.c (main): Likewise.
32594         * tests/test-fchownat.c (main): Likewise.
32595         * tests/test-fdutimensat.c (main): Likewise.
32596         * tests/test-fstatat.c (main): Likewise.
32597         * tests/test-futimens.c (main): Likewise.
32598         * tests/test-lchown.c (main): Likewise.
32599         * tests/test-link.c (main): Likewise.
32600         * tests/test-linkat.c (main): Likewise.
32601         * tests/test-lstat.c (main): Likewise.
32602         * tests/test-mkdir.c (main): Likewise.
32603         * tests/test-mkdirat.c (main): Likewise.
32604         * tests/test-mkfifo.c (main): Likewise.
32605         * tests/test-mkfifoat.c (main): Likewise.
32606         * tests/test-mknod.c (main): Likewise.
32607         * tests/test-readlink.c (main): Likewise.
32608         * tests/test-remove.c (main): Likewise.
32609         * tests/test-rename.c (main): Likewise.
32610         * tests/test-renameat.c (main): Likewise.
32611         * tests/test-rmdir.c (main): Likewise.
32612         * tests/test-symlink.c (main): Likewise.
32613         * tests/test-symlinkat.c (main): Likewise.
32614         * tests/test-unlink.c (main): Likewise.
32615         * tests/test-unlinkat.c (main): Likewise.
32616         * tests/test-utimens.c (main): Likewise.
32617         * tests/test-utimensat.c (main): Likewise.
32618         * modules/areadlink-tests (Depends-on): Add ignore-value.
32619         * modules/areadlink-with-size-tests (Depends-on): Likewise.
32620         * modules/areadlinkat-tests (Depends-on): Likewise.
32621         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
32622         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
32623         * modules/canonicalize-tests (Depends-on): Likewise.
32624         * modules/chown-tests (Depends-on): Likewise.
32625         * modules/fdutimensat-tests (Depends-on): Likewise.
32626         * modules/futimens-tests (Depends-on): Likewise.
32627         * modules/lchown-tests (Depends-on): Likewise.
32628         * modules/link-tests (Depends-on): Likewise.
32629         * modules/linkat-tests (Depends-on): Likewise.
32630         * modules/lstat-tests (Depends-on): Likewise.
32631         * modules/mkdir-tests (Depends-on): Likewise.
32632         * modules/mkfifo-tests (Depends-on): Likewise.
32633         * modules/mkfifoat-tests (Depends-on): Likewise.
32634         * modules/mknod-tests (Depends-on): Likewise.
32635         * modules/openat-tests (Depends-on): Likewise.
32636         * modules/readlink-tests (Depends-on): Likewise.
32637         * modules/remove-tests (Depends-on): Likewise.
32638         * modules/rename-tests (Depends-on): Likewise.
32639         * modules/renameat-tests (Depends-on): Likewise.
32640         * modules/rmdir-tests (Depends-on): Likewise.
32641         * modules/symlink-tests (Depends-on): Likewise.
32642         * modules/symlinkat-tests (Depends-on): Likewise.
32643         * modules/unlink-tests (Depends-on): Likewise.
32644         * modules/utimens-tests (Depends-on): Likewise.
32645         * modules/utimensat-tests (Depends-on): Likewise.
32646
32647 2010-01-31  Bruno Haible  <bruno@clisp.org>
32648
32649         Perform the same test for many <math.h> functions.
32650         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
32651         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
32652         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
32653         of gl_MATHFUNC.
32654         * modules/acos (configure.ac): Likewise.
32655         * modules/asin (configure.ac): Likewise.
32656         * modules/atan (configure.ac): Likewise.
32657         * modules/atan2 (configure.ac): Likewise.
32658         * modules/cbrt (configure.ac): Likewise.
32659         * modules/copysign (configure.ac): Likewise.
32660         * modules/cos (configure.ac): Likewise.
32661         * modules/cosh (configure.ac): Likewise.
32662         * modules/erf (configure.ac): Likewise.
32663         * modules/erfc (configure.ac): Likewise.
32664         * modules/exp (configure.ac): Likewise.
32665         * modules/fmod (configure.ac): Likewise.
32666         * modules/hypot (configure.ac): Likewise.
32667         * modules/j0 (configure.ac): Likewise.
32668         * modules/j1 (configure.ac): Likewise.
32669         * modules/jn (configure.ac): Likewise.
32670         * modules/lgamma (configure.ac): Likewise.
32671         * modules/log (configure.ac): Likewise.
32672         * modules/log10 (configure.ac): Likewise.
32673         * modules/log1p (configure.ac): Likewise.
32674         * modules/pow (configure.ac): Likewise.
32675         * modules/remainder (configure.ac): Likewise.
32676         * modules/sin (configure.ac): Likewise.
32677         * modules/sinh (configure.ac): Likewise.
32678         * modules/tan (configure.ac): Likewise.
32679         * modules/tanh (configure.ac): Likewise.
32680         * modules/y0 (configure.ac): Likewise.
32681         * modules/y1 (configure.ac): Likewise.
32682         * modules/yn (configure.ac): Likewise.
32683         Suggested by Paolo Bonzini.
32684
32685 2010-01-31  Bruno Haible  <bruno@clisp.org>
32686
32687         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
32688
32689 2010-01-31  Bruno Haible  <bruno@clisp.org>
32690
32691         Work around getdelim() bug on FreeBSD 8.0.
32692         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
32693         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
32694         not work.
32695         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
32696         is 1.
32697         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
32698         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
32699         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
32700         a non-zero size.
32701         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
32702
32703 2010-01-31  Bruno Haible  <bruno@clisp.org>
32704
32705         Work around getline() bug on FreeBSD 8.0.
32706         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
32707         and a non-zero size.
32708         * tests/test-getline.c (main): Likewise.
32709         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
32710         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
32711
32712 2010-01-28  Eric Blake  <ebb9@byu.net>
32713
32714         regex: fix build failure
32715         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
32716         platforms.
32717
32718 2010-01-28  Jim Meyering  <meyering@redhat.com>
32719
32720         regex: do not ignore memory allocation failure
32721         * lib/regex_internal.c (create_cd_newstate): Detect
32722         re_node_set_init_copy failure.   Extracted from glibc commit
32723         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
32724
32725         regex: sync more white-space changes from libc
32726         * lib/regex_internal.c: White-space only changes.
32727         * lib/regexec.c: Likewise.
32728
32729         regex: add many uses of __attribute_warn_unused_result__
32730         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
32731         * lib/regexec.c: Likewise.
32732         Extracted from a messy glibc commit.
32733
32734         regcomp.c: spelling and merge-artifact from glibc
32735         * lib/regcomp.c: Merge remainder of glibc's
32736         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
32737
32738         regcomp.c: sync white-space changes from glibc
32739         * lib/regcomp.c: Merge to accommodate white space
32740         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
32741
32742         regcomp.c: do not ignore internal return values
32743         * lib/regcomp.c: Do not ignore internal return values.
32744         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
32745         but without its white-space changes and spelling fixes.
32746
32747         regex_internal.h: define __attribute_warn_unused_result__
32748         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
32749
32750         maint: add a syntax-check rule to check for vulnerable Makefile.in
32751         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
32752
32753 2010-01-27  Jim Meyering  <meyering@redhat.com>
32754
32755         ncftpput-ftp: clean up spaces
32756         * build-aux/ncftpput-ftp: Make Copyright line consistent.
32757         Remove trailing blanks.
32758
32759 2010-01-27  Simon Josefsson  <simon@josefsson.org>
32760
32761         * build-aux/git-version-gen: Fix copyright statement.
32762         * build-aux/gnupload: Likewise.
32763         * tests/test-arcfour.c: Likewise.
32764         * tests/test-arctwo.c: Likewise.
32765         * tests/test-count-one-bits.c: Likewise.
32766         * tests/test-crc.c: Likewise.
32767         * tests/test-des.c: Likewise.
32768         * tests/test-gc-arcfour.c: Likewise.
32769         * tests/test-gc-arctwo.c: Likewise.
32770         * tests/test-gc-des.c: Likewise.
32771         * tests/test-gc-hmac-md5.c: Likewise.
32772         * tests/test-gc-hmac-sha1.c: Likewise.
32773         * tests/test-gc-md2.c: Likewise.
32774         * tests/test-gc-md4.c: Likewise.
32775         * tests/test-gc-md5.c: Likewise.
32776         * tests/test-gc-pbkdf2-sha1.c: Likewise.
32777         * tests/test-gc-rijndael.c: Likewise.
32778         * tests/test-gc-sha1.c: Likewise.
32779         * tests/test-gc.c: Likewise.
32780         * tests/test-gethostname.c: Likewise.
32781         * tests/test-gettimeofday.c: Likewise.
32782         * tests/test-hash.c: Likewise.
32783         * tests/test-hmac-md5.c: Likewise.
32784         * tests/test-hmac-sha1.c: Likewise.
32785         * tests/test-md2.c: Likewise.
32786         * tests/test-md4.c: Likewise.
32787         * tests/test-md5.c: Likewise.
32788         * tests/test-memchr.c: Likewise.
32789         * tests/test-memchr2.c: Likewise.
32790         * tests/test-memcmp.c: Likewise.
32791         * tests/test-memmem.c: Likewise.
32792         * tests/test-memrchr.c: Likewise.
32793         * tests/test-rawmemchr.c: Likewise.
32794         * tests/test-read-file.c: Likewise.
32795         * tests/test-rijndael.c: Likewise.
32796         * tests/test-sockets.c: Likewise.
32797         * tests/test-strchrnul.c: Likewise.
32798         * tests/test-strstr.c: Likewise.
32799         * tests/test-strtod.c: Likewise.
32800         * build-aux/ncftpput-ftp: Likewise.
32801
32802 2010-01-26  Eric Blake  <ebb9@byu.net>
32803
32804         ignore-value: update recommended header name
32805         * modules/ignore-value (Include): Only use <> for headers that
32806         exist in glibc.
32807
32808 2010-01-26  Jim Meyering  <meyering@redhat.com>
32809
32810         test-userspec.c: avoid compiler warnings
32811         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
32812         and "initialization discards qualifiers..." warnings.
32813         Put the first "uid" in its own scope, and make char* members "const".
32814
32815 2010-01-25  Bruno Haible  <bruno@clisp.org>
32816
32817         gnulib-tool: Make warning diagnostics consistent.
32818         * gnulib-tool (func_warning): New function.
32819         Use it everywhere where gnulib-tool produces output to stderr and it is
32820         not a fatal error.
32821
32822 2010-01-25  Bruno Haible  <bruno@clisp.org>
32823
32824         Fix test dependencies.
32825         * modules/xstrtol-tests (Depends-on): Add inttypes.
32826         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
32827
32828 2010-01-25 Pádraig Brady <P@draigBrady.com>
32829
32830         syntax-check: detect incorrect boolean macro values in config.h
32831         * modules/maintainer-makefile (configure.ac): Parameterize the location
32832         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
32833         The logic is from Eric Blake and the location indicated by Jim Meyering.
32834         Note the more natural CONFIG_HEADER name is prohibited by automake
32835         for backwards compatibility reasons.
32836         * top/maint.mk (sc_Wundef_boolean): New rule.
32837
32838 2010-01-25  Jim Meyering  <meyering@redhat.com>
32839
32840         bootstrap: detect MacOS 10.6's shasum, too
32841         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
32842         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
32843
32844 2010-01-23  Jim Meyering  <meyering@redhat.com>
32845
32846         xstrtoll: new module
32847         * modules/xstrtoll: New file.
32848         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
32849         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
32850         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
32851         ./configure fails if you use this module and lack "long long".
32852         * modules/xstrtoll-tests: New module.
32853         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
32854         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
32855         new init.sh-based test framework.
32856
32857 2010-01-24  Bruno Haible  <bruno@clisp.org>
32858
32859         Tests for module 'yn'.
32860         * modules/yn-tests: New file.
32861         * tests/test-yn.c: New file.
32862
32863         Tests for module 'y1'.
32864         * modules/y1-tests: New file.
32865         * tests/test-y1.c: New file.
32866
32867         Tests for module 'y0'.
32868         * modules/y0-tests: New file.
32869         * tests/test-y0.c: New file.
32870
32871         Tests for module 'tanh'.
32872         * modules/tanh-tests: New file.
32873         * tests/test-tanh.c: New file.
32874
32875         Tests for module 'tan'.
32876         * modules/tan-tests: New file.
32877         * tests/test-tan.c: New file.
32878
32879         Tests for module 'sqrt'.
32880         * modules/sqrt-tests: New file.
32881         * tests/test-sqrt.c: New file.
32882
32883         Tests for module 'sinh'.
32884         * modules/sinh-tests: New file.
32885         * tests/test-sinh.c: New file.
32886
32887         Tests for module 'sin'.
32888         * modules/sin-tests: New file.
32889         * tests/test-sin.c: New file.
32890
32891         Tests for module 'rint'.
32892         * modules/rint-tests: New file.
32893         * tests/test-rint.c: New file.
32894
32895         Tests for module 'remainder'.
32896         * modules/remainder-tests: New file.
32897         * tests/test-remainder.c: New file.
32898
32899         Tests for module 'pow'.
32900         * modules/pow-tests: New file.
32901         * tests/test-pow.c: New file.
32902
32903         Tests for module 'nextafter'.
32904         * modules/nextafter-tests: New file.
32905         * tests/test-nextafter.c: New file.
32906
32907         Tests for module 'modf'.
32908         * modules/modf-tests: New file.
32909         * tests/test-modf.c: New file.
32910
32911         Tests for module 'logb'.
32912         * modules/logb-tests: New file.
32913         * tests/test-logb.c: New file.
32914
32915         Tests for module 'log1p'.
32916         * modules/log1p-tests: New file.
32917         * tests/test-log1p.c: New file.
32918
32919         Tests for module 'log10'.
32920         * modules/log10-tests: New file.
32921         * tests/test-log10.c: New file.
32922
32923         Tests for module 'log'.
32924         * modules/log-tests: New file.
32925         * tests/test-log.c: New file.
32926
32927         Tests for module 'lgamma'.
32928         * modules/lgamma-tests: New file.
32929         * tests/test-lgamma.c: New file.
32930
32931         Tests for module 'ldexp'.
32932         * modules/ldexp-tests: New file.
32933         * tests/test-ldexp.c: New file.
32934
32935         Tests for module 'jn'.
32936         * modules/jn-tests: New file.
32937         * tests/test-jn.c: New file.
32938
32939         Tests for module 'j1'.
32940         * modules/j1-tests: New file.
32941         * tests/test-j1.c: New file.
32942
32943         Tests for module 'j0'.
32944         * modules/j0-tests: New file.
32945         * tests/test-j0.c: New file.
32946
32947         Tests for module 'hypot'.
32948         * modules/hypot-tests: New file.
32949         * tests/test-hypot.c: New file.
32950
32951         Tests for module 'fmod'.
32952         * modules/fmod-tests: New file.
32953         * tests/test-fmod.c: New file.
32954
32955         Tests for module 'fabs'.
32956         * modules/fabs-tests: New file.
32957         * tests/test-fabs.c: New file.
32958
32959         Tests for module 'exp'.
32960         * modules/exp-tests: New file.
32961         * tests/test-exp.c: New file.
32962
32963         Tests for module 'erfc'.
32964         * modules/erfc-tests: New file.
32965         * tests/test-erfc.c: New file.
32966
32967         Tests for module 'erf'.
32968         * modules/erf-tests: New file.
32969         * tests/test-erf.c: New file.
32970
32971         Tests for module 'cosh'.
32972         * modules/cosh-tests: New file.
32973         * tests/test-cosh.c: New file.
32974
32975         Tests for module 'cos'.
32976         * modules/cos-tests: New file.
32977         * tests/test-cos.c: New file.
32978
32979         Tests for module 'copysign'.
32980         * modules/copysign-tests: New file.
32981         * tests/test-copysign.c: New file.
32982
32983         Tests for module 'cbrt'.
32984         * modules/cbrt-tests: New file.
32985         * tests/test-cbrt.c: New file.
32986
32987         Tests for module 'atan2'.
32988         * modules/atan2-tests: New file.
32989         * tests/test-atan2.c: New file.
32990
32991         Tests for module 'atan'.
32992         * modules/atan-tests: New file.
32993         * tests/test-atan.c: New file.
32994
32995         Tests for module 'asin'.
32996         * modules/asin-tests: New file.
32997         * tests/test-asin.c: New file.
32998
32999         Tests for module 'acos'.
33000         * modules/acos-tests: New file.
33001         * tests/test-acos.c: New file.
33002
33003 2010-01-24  Bruno Haible  <bruno@clisp.org>
33004
33005         Fix tests for common <math.h> functions.
33006         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
33007         code snippet that references the function pointer, rather than merely
33008         calling the function. Substitute the FUNC_LIBM variable.
33009         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
33010         * modules/acos (configure.ac): Likewise.
33011         * modules/asin (configure.ac): Likewise.
33012         * modules/atan (configure.ac): Likewise.
33013         * modules/atan2 (configure.ac): Likewise.
33014         * modules/cbrt (configure.ac): Likewise.
33015         * modules/copysign (configure.ac): Likewise.
33016         * modules/cos (configure.ac): Likewise.
33017         * modules/cosh (configure.ac): Likewise.
33018         * modules/erf (configure.ac): Likewise.
33019         * modules/erfc (configure.ac): Likewise.
33020         * modules/exp (configure.ac): Likewise.
33021         * modules/fabs (configure.ac): Likewise.
33022         * modules/fmod (configure.ac): Likewise.
33023         * modules/hypot (configure.ac): Likewise.
33024         * modules/j0 (configure.ac): Likewise.
33025         * modules/j1 (configure.ac): Likewise.
33026         * modules/jn (configure.ac): Likewise.
33027         * modules/ldexp (configure.ac): Likewise.
33028         * modules/lgamma (configure.ac): Likewise.
33029         * modules/log (configure.ac): Likewise.
33030         * modules/log10 (configure.ac): Likewise.
33031         * modules/log1p (configure.ac): Likewise.
33032         * modules/logb (configure.ac): Likewise.
33033         * modules/modf (configure.ac): Likewise.
33034         * modules/nextafter (configure.ac): Likewise.
33035         * modules/pow (configure.ac): Likewise.
33036         * modules/remainder (configure.ac): Likewise.
33037         * modules/rint (configure.ac): Likewise.
33038         * modules/sin (configure.ac): Likewise.
33039         * modules/sinh (configure.ac): Likewise.
33040         * modules/tan (configure.ac): Likewise.
33041         * modules/tanh (configure.ac): Likewise.
33042         * modules/y0 (configure.ac): Likewise.
33043         * modules/y1 (configure.ac): Likewise.
33044         * modules/yn (configure.ac): Likewise.
33045
33046 2010-01-24  Bruno Haible  <bruno@clisp.org>
33047
33048         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
33049         * tests/test-acosl.c (x): New variable.
33050         (main): Store argument in x and fetch it from x.
33051         * tests/test-asinl.c (x): New variable.
33052         (main): Store argument in x and fetch it from x.
33053         * tests/test-atanl.c (x): New variable.
33054         (main): Store argument in x and fetch it from x.
33055         * tests/test-cosl.c (x): New variable.
33056         (main): Store argument in x and fetch it from x.
33057         * tests/test-expl.c (x): New variable.
33058         (main): Store argument in x and fetch it from x.
33059         * tests/test-logl.c (x): New variable.
33060         (main): Store argument in x and fetch it from x.
33061         * tests/test-sinl.c (x): New variable.
33062         (main): Store argument in x and fetch it from x.
33063         * tests/test-sqrtl.c (x): New variable.
33064         (main): Store argument in x and fetch it from x.
33065         * tests/test-tanl.c (x): New variable.
33066         (main): Store argument in x and fetch it from x.
33067
33068 2010-01-24  Bruno Haible  <bruno@clisp.org>
33069
33070         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
33071         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
33072         assignments to the initial TESTS_ENVIRONMENT.
33073         * doc/gnulib.texi (Unit test modules): Document it.
33074         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
33075         TESTS_ENVIRONMENT.
33076         * modules/btowc-tests (Makefile.am): Likewise.
33077         * modules/c-stack-tests (Makefile.am): Likewise.
33078         * modules/c-strcase-tests (Makefile.am): Likewise.
33079         * modules/copy-file-tests (Makefile.am): Likewise.
33080         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
33081         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
33082         * modules/mbrtowc-tests (Makefile.am): Likewise.
33083         * modules/mbscasecmp-tests (Makefile.am): Likewise.
33084         * modules/mbscasestr-tests (Makefile.am): Likewise.
33085         * modules/mbschr-tests (Makefile.am): Likewise.
33086         * modules/mbscspn-tests (Makefile.am): Likewise.
33087         * modules/mbsinit-tests (Makefile.am): Likewise.
33088         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
33089         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
33090         * modules/mbspbrk-tests (Makefile.am): Likewise.
33091         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
33092         * modules/mbsrchr-tests (Makefile.am): Likewise.
33093         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
33094         * modules/mbsspn-tests (Makefile.am): Likewise.
33095         * modules/mbsstr-tests (Makefile.am): Likewise.
33096         * modules/nl_langinfo-tests (Makefile.am): Likewise.
33097         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
33098         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
33099         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
33100         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
33101         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
33102         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
33103         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
33104         * modules/wcrtomb-tests (Makefile.am): Likewise.
33105         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
33106         * modules/wcsrtombs-tests (Makefile.am): Likewise.
33107         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
33108         assignments from TESTS_ENVIRONMENT.
33109         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
33110         augmentation.
33111         * modules/argp-version-etc-tests (Makefile.am): Likewise.
33112         * modules/atexit-tests (Makefile.am): Likewise.
33113         * modules/binary-io-tests (Makefile.am): Likewise.
33114         * modules/closein-tests (Makefile.am): Likewise.
33115         * modules/dprintf-posix-tests (Makefile.am): Likewise.
33116         * modules/exclude-tests (Makefile.am): Likewise.
33117         * modules/fflush-tests (Makefile.am): Likewise.
33118         * modules/fpending-tests (Makefile.am): Likewise.
33119         * modules/fprintf-posix-tests (Makefile.am): Likewise.
33120         * modules/freadahead-tests (Makefile.am): Likewise.
33121         * modules/freadptr-tests (Makefile.am): Likewise.
33122         * modules/freadseek-tests (Makefile.am): Likewise.
33123         * modules/fseek-tests (Makefile.am): Likewise.
33124         * modules/fseeko-tests (Makefile.am): Likewise.
33125         * modules/ftell-tests (Makefile.am): Likewise.
33126         * modules/ftello-tests (Makefile.am): Likewise.
33127         * modules/idpriv-drop-tests (Makefile.am): Likewise.
33128         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
33129         * modules/lseek-tests (Makefile.am): Likewise.
33130         * modules/parse-duration-tests (Makefile.am): Likewise.
33131         * modules/perror-tests (Makefile.am): Likewise.
33132         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
33133         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
33134         * modules/pipe-tests (Makefile.am): Likewise.
33135         * modules/pread-tests (Makefile.am): Likewise.
33136         * modules/printf-posix-tests (Makefile.am): Likewise.
33137         * modules/select-tests (Makefile.am): Likewise.
33138         * modules/sigpipe-tests (Makefile.am): Likewise.
33139         * modules/tsearch-tests (Makefile.am): Likewise.
33140         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
33141         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
33142         * modules/uniname/uniname-tests (Makefile.am): Likewise.
33143         * modules/uniwidth/width-tests (Makefile.am): Likewise.
33144         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
33145         * modules/version-etc-tests (Makefile.am): Likewise.
33146         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
33147         * modules/vprintf-posix-tests (Makefile.am): Likewise.
33148         * modules/xalloc-die-tests (Makefile.am): Likewise.
33149         * modules/xprintf-posix-tests (Makefile.am): Likewise.
33150         * modules/xstrtoimax-tests (Makefile.am): Likewise.
33151         * modules/xstrtol-tests (Makefile.am): Likewise.
33152         * modules/xstrtoumax-tests (Makefile.am): Likewise.
33153         * modules/yesno-tests (Makefile.am): Likewise.
33154         Suggested by Jim Meyering.
33155
33156 2010-01-24  Bruno Haible  <bruno@clisp.org>
33157
33158         More documentation.
33159         * doc/gnulib.texi (Writing modules): New chapter.
33160         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
33161         the new chapter.
33162
33163 2010-01-24  Jim Meyering  <meyering@redhat.com>
33164
33165         maint.mk: do not prepend "./" after filtering
33166         * top/maint.mk (_prepend_srcdir_prefix): New variable
33167         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
33168         "./" when $(srcdir) is ".".
33169
33170         define STREQ(a,b) consistently, removing useless parentheses
33171         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
33172         since the only risk is that "a" or "b" contains an unparenthesized
33173         comma, but if either did that, STREQ would have 3 or more arguments.
33174         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
33175         * lib/fts.c (STREQ): Remove unnecessary parentheses.
33176         * lib/hash-triple.c (STREQ): Likewise.
33177         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
33178         * lib/getugroups.c (STREQ): Likewise.
33179
33180 2010-01-23  Jim Meyering  <meyering@redhat.com>
33181
33182         maint.mk: fix syntax-check in a non-srcdir build directory
33183         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
33184         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
33185
33186 2010-01-22  Jim Meyering  <meyering@redhat.com>
33187
33188         userspec: add unit tests
33189         * tests/test-userspec.c: New file.
33190         * modules/userspec-tests: Likewise.
33191
33192 2010-01-21  Jim Meyering  <meyering@redhat.com>
33193
33194         maint.mk: handle source file names containing "." robustly
33195         * top/maint.mk (_dot_escaped_srcdir): Define.
33196         (VC_LIST): Use it in LHS of sed substitution.
33197
33198 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
33199
33200         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
33201         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
33202         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
33203         from a non-srcdir build.
33204
33205 2010-01-20  Eric Blake  <ebb9@byu.net>
33206
33207         warn-on-use: use instead of link-warning
33208         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
33209         * modules/unistd (Depends-on, Makefile.am): Likewise.
33210         * modules/arpa_inet (Depends-on): Replace link-warning with
33211         warn-on-use.
33212         (Makefile.am): Update rules accordingly.
33213         * modules/ctype (Depends-on, Makefile.am): Likewise.
33214         * modules/dirent (Depends-on, Makefile.am): Likewise.
33215         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
33216         * modules/inttypes (Depends-on, Makefile.am): Likewise.
33217         * modules/langinfo (Depends-on, Makefile.am): Likewise.
33218         * modules/locale (Depends-on, Makefile.am): Likewise.
33219         * modules/math (Depends-on, Makefile.am): Likewise.
33220         * modules/search (Depends-on, Makefile.am): Likewise.
33221         * modules/signal (Depends-on, Makefile.am): Likewise.
33222         * modules/spawn (Depends-on, Makefile.am): Likewise.
33223         * modules/stdlib (Depends-on, Makefile.am): Likewise.
33224         * modules/string (Depends-on, Makefile.am): Likewise.
33225         * modules/strings (Depends-on, Makefile.am): Likewise.
33226         * modules/sys_file (Depends-on, Makefile.am): Likewise.
33227         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
33228         * modules/sys_select (Depends-on, Makefile.am): Likewise.
33229         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
33230         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
33231         * modules/sys_times (Depends-on, Makefile.am): Likewise.
33232         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
33233         * modules/wchar (Depends-on, Makefile.am): Likewise.
33234         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
33235         should be poisoned.
33236         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
33237         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
33238         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
33239         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
33240         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
33241         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
33242         * m4/math_h.m4 (gl_MATH_H): Likewise.
33243         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
33244         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
33245         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
33246         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
33247         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
33248         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
33249         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
33250         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
33251         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
33252         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33253         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
33254         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
33255         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
33256         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
33257         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
33258         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33259         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
33260         GL_LINK_WARNING.
33261         * lib/ctype.in.h: Likewise.
33262         * lib/dirent.in.h: Likewise.
33263         * lib/fcntl.in.h: Likewise.
33264         * lib/inttypes.in.h: Likewise.
33265         * lib/langinfo.in.h: Likewise.
33266         * lib/locale.in.h: Likewise.
33267         * lib/math.in.h: Likewise.
33268         * lib/search.in.h: Likewise.
33269         * lib/signal.in.h: Likewise.
33270         * lib/spawn.in.h: Likewise.
33271         * lib/stdio.in.h: Likewise.
33272         * lib/stdlib.in.h: Likewise.
33273         * lib/string.in.h: Likewise.
33274         * lib/strings.in.h: Likewise.
33275         * lib/sys_file.in.h: Likewise.
33276         * lib/sys_ioctl.in.h: Likewise.
33277         * lib/sys_select.in.h: Likewise.
33278         * lib/sys_socket.in.h: Likewise.
33279         * lib/sys_stat.in.h: Likewise.
33280         * lib/sys_times.in.h: Likewise.
33281         * lib/sys_utsname.in.h: Likewise.
33282         * lib/unistd.in.h: Likewise.
33283         * lib/wchar.in.h: Likewise.
33284
33285 2010-01-20  Bruno Haible  <bruno@clisp.org>
33286
33287         Avoid duplicate -lm.
33288         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
33289         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
33290         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
33291         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
33292         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
33293         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
33294         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
33295         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
33296         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
33297         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
33298         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
33299         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
33300         Reported by Paolo Bonzini.
33301
33302 2010-01-19  Bruno Haible  <bruno@clisp.org>
33303
33304         langinfo, nl_langinfo: Relicense under LGPLv2+.
33305         * modules/langinfo (License): Change to LGPLv2+.
33306         * modules/nl_langinfo (License): Likewise.
33307         Patch by David Lutterkort <lutter@redhat.com>.
33308
33309 2010-01-19  Bruno Haible  <bruno@clisp.org>
33310
33311         Avoid compilation error with cc on OSF/1 5.1.
33312         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
33313         statement, not before.
33314         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33315
33316 2010-01-18  Bruno Haible  <bruno@clisp.org>
33317
33318         Avoid a link error due to the __printf__ symbol.
33319         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
33320         and 2.6.x.
33321         (__format__, __printf__): Remove definitions.
33322         * lib/argp-fmtstream.h: Likewise.
33323         * lib/argp.h: Likewise.
33324         * lib/error.h: Likewise.
33325         * lib/vasnprintf.h: Likewise.
33326         * lib/xprintf.h: Likewise.
33327         * lib/xvasprintf.h: Likewise.
33328         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33329
33330 2010-01-18  Bruno Haible  <bruno@clisp.org>
33331
33332         Tests for module 'tanl'.
33333         * modules/tanl-tests: New file.
33334         * tests/test-tanl.c: New file.
33335
33336         Tests for module 'sqrtl'.
33337         * modules/sqrtl-tests: New file.
33338         * tests/test-sqrtl.c: New file.
33339
33340         Tests for module 'sinl'.
33341         * modules/sinl-tests: New file.
33342         * tests/test-sinl.c: New file.
33343
33344         Tests for module 'logl'.
33345         * modules/logl-tests: New file.
33346         * tests/test-logl.c: New file.
33347
33348         Tests for module 'expl'.
33349         * modules/expl-tests: New file.
33350         * tests/test-expl.c: New file.
33351
33352         Tests for module 'cosl'.
33353         * modules/cosl-tests: New file.
33354         * tests/test-cosl.c: New file.
33355
33356         Tests for module 'atanl'.
33357         * modules/atanl-tests: New file.
33358         * tests/test-atanl.c: New file.
33359
33360         Tests for module 'asinl'.
33361         * modules/asinl-tests: New file.
33362         * tests/test-asinl.c: New file.
33363
33364         Tests for module 'acosl'.
33365         * modules/acosl-tests: New file.
33366         * tests/test-acosl.c: New file.
33367
33368         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
33369         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
33370         tanl): Use the standard gnulib idiom.
33371         * lib/cosl.c: Don't include trigl.c and sincosl.c.
33372         * lib/sinl.c: Likewise.
33373         * lib/tanl.c: Don't include trigl.c.
33374         (kernel_tanl): Make static.
33375         * lib/sincosl.c: Include trigl.h first.
33376         * lib/trigl.c: Likewise.
33377         * m4/acosl.m4: New file.
33378         * m4/asinl.m4: New file.
33379         * m4/atanl.m4: New file.
33380         * m4/cosl.m4: New file.
33381         * m4/expl.m4: New file.
33382         * m4/logl.m4: New file.
33383         * m4/sinl.m4: New file.
33384         * m4/sqrtl.m4: New file.
33385         * m4/tanl.m4: New file.
33386         * m4/mathl.m4: Remove file.
33387         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
33388         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
33389         Don't initialize GNULIB_MATHL.
33390         * modules/acosl: New file.
33391         * modules/asinl: New file.
33392         * modules/atanl: New file.
33393         * modules/cosl: New file.
33394         * modules/expl: New file.
33395         * modules/logl: New file.
33396         * modules/sinl: New file.
33397         * modules/sqrtl: New file.
33398         * modules/tanl: New file.
33399         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
33400         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
33401         substitute GNULIB_MATHL.
33402         * modules/mathl: Rewritten.
33403         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
33404         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
33405         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
33406         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
33407         * doc/posix-functions/expl.texi: Mention the 'expl' module.
33408         * doc/posix-functions/logl.texi: Mention the 'logl' module.
33409         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
33410         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
33411         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
33412
33413 2010-01-18  Bruno Haible  <bruno@clisp.org>
33414
33415         sqrt: Make gl_FUNC_SQRT requirable.
33416         * m4/sqrt.m4: New file.
33417         * modules/sqrt (Files): Add it.
33418         (configure.ac): Invoke gl_FUNC_SQRT.
33419
33420 2010-01-18  Bruno Haible  <bruno@clisp.org>
33421
33422         New modules for common <math.h> functions.
33423         * m4/mathfunc.m4: New file.
33424         * modules/acos: New file.
33425         * modules/asin: New file.
33426         * modules/atan: New file.
33427         * modules/atan2: New file.
33428         * modules/cbrt: New file.
33429         * modules/copysign: New file.
33430         * modules/cos: New file.
33431         * modules/cosh: New file.
33432         * modules/erf: New file.
33433         * modules/erfc: New file.
33434         * modules/exp: New file.
33435         * modules/fabs: New file.
33436         * modules/fmod: New file.
33437         * modules/hypot: New file.
33438         * modules/j0: New file.
33439         * modules/j1: New file.
33440         * modules/jn: New file.
33441         * modules/ldexp: New file.
33442         * modules/lgamma: New file.
33443         * modules/log: New file.
33444         * modules/log10: New file.
33445         * modules/log1p: New file.
33446         * modules/logb: New file.
33447         * modules/modf: New file.
33448         * modules/nextafter: New file.
33449         * modules/pow: New file.
33450         * modules/remainder: New file.
33451         * modules/rint: New file.
33452         * modules/sin: New file.
33453         * modules/sinh: New file.
33454         * modules/sqrt: New file.
33455         * modules/tan: New file.
33456         * modules/tanh: New file.
33457         * modules/y0: New file.
33458         * modules/y1: New file.
33459         * modules/yn: New file.
33460         * doc/posix-functions/acos.texi: Mention the 'acos' module.
33461         * doc/posix-functions/asin.texi: Mention the 'asin' module.
33462         * doc/posix-functions/atan.texi: Mention the 'atan' module.
33463         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
33464         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
33465         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
33466         * doc/posix-functions/cos.texi: Mention the 'cos' module.
33467         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
33468         * doc/posix-functions/erf.texi: Mention the 'erf' module.
33469         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
33470         * doc/posix-functions/exp.texi: Mention the 'exp' module.
33471         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
33472         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
33473         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
33474         * doc/posix-functions/j0.texi: Mention the 'j0' module.
33475         * doc/posix-functions/j1.texi: Mention the 'j1' module.
33476         * doc/posix-functions/jn.texi: Mention the 'jn' module.
33477         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
33478         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
33479         * doc/posix-functions/log.texi: Mention the 'log' module.
33480         * doc/posix-functions/log10.texi: Mention the 'log10' module.
33481         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
33482         * doc/posix-functions/logb.texi: Mention the 'logb' module.
33483         * doc/posix-functions/modf.texi: Mention the 'modf' module.
33484         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
33485         * doc/posix-functions/pow.texi: Mention the 'pow' module.
33486         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
33487         * doc/posix-functions/rint.texi: Mention the 'rint' module.
33488         * doc/posix-functions/sin.texi: Mention the 'sin' module.
33489         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
33490         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
33491         * doc/posix-functions/tan.texi: Mention the 'tan' module.
33492         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
33493         * doc/posix-functions/y0.texi: Mention the 'y0' module.
33494         * doc/posix-functions/y1.texi: Mention the 'y1' module.
33495         * doc/posix-functions/yn.texi: Mention the 'yn' module.
33496
33497 2010-01-18  Jim Meyering  <meyering@redhat.com>
33498
33499         ignore-value: relax license to LGPLv2+
33500         * modules/ignore-value (License): Relax to LGPLv2+.
33501
33502         getdate: don't leak when TZ contains two or more '"'s
33503         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
33504         double quote in TZ after the first one.
33505
33506         readtokens: do not leak internal token_lengths buffer
33507         * lib/readtokens.c (readtokens): Free the local, lengths,
33508         when the supplied "token_lengths" parameter is NULL.
33509
33510 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33511
33512         Fix a couple of missing LIBTHREAD link failures on AIX.
33513         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
33514         $(LIBTHREAD).
33515         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
33516
33517         Link test-poll against INET_PTON_LIB.
33518         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
33519         for inet_pton on Solaris 10.
33520
33521 2010-01-17  Bruno Haible  <bruno@clisp.org>
33522
33523         unistdio/*-sprintf: Fix typo in module description.
33524         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
33525         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
33526         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
33527         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
33528         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
33529         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
33530         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
33531         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33532
33533 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33534
33535         gnulib-tool: fix filelist for AIX, HP-UX ksh.
33536         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
33537         variables in shell case patterns, for AIX and HP-UX ksh.
33538
33539         Split large sed scripts, for HP-UX sed.
33540         * modules/stdio: Split sed scripts around 50 sed commands,
33541         to avoid HP-UX limit of 99 commands, in the near future.
33542         * modules/string: Likewise.
33543         * modules/unistd: Likewise.
33544
33545         gnulib-tool: avoid writing in the current directory.
33546         * gnulib-tool (func_emit_lib_Makefile_am)
33547         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
33548         not in the current directory, so concurrent gnulib-tool
33549         instances do not interfere.
33550
33551 2010-01-16  Jim Meyering  <meyering@redhat.com>
33552
33553         doc: update users.txt
33554         * users.txt: Add grep.
33555         (diffutils, gzip): Update URLs.
33556
33557 2010-01-12  Bruno Haible  <bruno@clisp.org>
33558
33559         posix_spawn: Avoid test failure on Cygwin.
33560         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
33561         characters.
33562         Reported by Simon Josefsson.
33563
33564 2010-01-12  Bruno Haible  <bruno@clisp.org>
33565
33566         * tests/test-cond.c (main): When skipping the test, show the reason.
33567
33568 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33569
33570         * lib/striconv.c (str_cd_iconv): Avoid if before free.
33571
33572 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33573
33574         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
33575         VC_LIST_ALWAYS_EXCLUDE_REGEX.
33576
33577 2010-01-12  Eric Blake  <ebb9@byu.net>
33578
33579         build: guarantee AS_VAR_IF
33580         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
33581         (gl_AS_VAR_IF): Move...
33582         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
33583         Reported by Simon Josefsson.
33584
33585 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33586
33587         * lib/stdio.in.h: Fix typo.
33588
33589 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33590
33591         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
33592         libgpg-error.
33593
33594 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33595
33596         * tests/test-xalloc-die.sh: Use $EXEEXT.
33597
33598 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33599             Bruno Haible  <bruno@clisp.org>
33600
33601         getlogin, getlogin_r: Avoid test failure.
33602         * tests/test-getlogin.c: Include <stdio.h>.
33603         (main): Skip the test when the function fails because stdin is not a
33604         tty.
33605         * tests/test-getlogin_r.c: Include <stdio.h>.
33606         (main): Skip the test when the function fails because stdin is not a
33607         tty.
33608
33609 2010-01-11  Eric Blake  <ebb9@byu.net>
33610
33611         tests: avoid more large file warnings
33612         * tests/test-fflush.c: Avoid warning about ftell use.
33613         * tests/test-fseek.c: Avoid warning about fseek use.
33614
33615 2010-01-10  Bruno Haible  <bruno@clisp.org>
33616
33617         nproc: Work better on Linux when /proc and /sys are not mounted.
33618         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
33619         as lower bound when, on glibc/Linux systems,
33620         sysconf (_SC_NPROCESSORS_CONF) returns 1.
33621         Suggested by Pádraig Brady <P@draigbrady.com>.
33622         Reported by Dmitry V. Levin <ldv@altlinux.org>.
33623
33624         nproc: Refactor.
33625         * lib/nproc.c (num_processors_via_affinity_mask): New function,
33626         extracted from num_processors.
33627         (num_processors): Call it.
33628
33629 2010-01-11  Jim Meyering  <meyering@redhat.com>
33630
33631         utimecmp: avoid new warning from upcoming gcc-4.5.0
33632         * lib/utimecmp.c (BILLION): Define using #define rather than an
33633         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
33634
33635 2010-01-11  Eric Blake  <ebb9@byu.net>
33636
33637         math: add portability warnings for classification macros
33638         * modules/math (Depends-on): Add warn-on-use.
33639         (Makefile.am): Provide new substitutions.
33640         * m4/math_h.m4 (gl_MATH_H): Require inline.
33641         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
33642         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
33643         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
33644         implement warnings.
33645
33646         unistd: warn on use of environ without module
33647         * modules/unistd (Depends-on): Add warn-on-use.
33648         (Makefile.am): Provide new substitutions.
33649         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
33650         * lib/unistd.in.h (environ): Wrap with a warning helper function.
33651
33652         stdio: warn on suspicious uses
33653         * modules/stdio (Depends-on): Add warn-on-use.
33654         (Makefile.am): Provide new substitutions.
33655         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
33656         fseeko.
33657         * lib/stdio.in.h (gets): Always warn on use.
33658         (fseek, ftell): Adjust when warnings are issued, and honor
33659         _GL_NO_LARGE_FILES as a way to silence the warning.
33660         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
33661         any warning about large file offsets.
33662         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
33663         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
33664         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
33665         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
33666         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
33667         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
33668         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
33669         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
33670
33671         warn-on-use: new module
33672         * modules/warn-on-use: New file.
33673         * build-aux/warn-on-use.h: Likewise.
33674         * m4/warn-on-use.m4: Likewise.
33675         * MODULES.html.sh (Support for building): Mention it.
33676
33677 2010-01-10  Bruno Haible  <bruno@clisp.org>
33678
33679         Tests for module 'unistr/u32-strdup'.
33680         * modules/unistr/u32-strdup-tests: New file.
33681         * tests/unistr/test-u32-strdup.c: New file.
33682
33683         Tests for module 'unistr/u16-strdup'.
33684         * modules/unistr/u16-strdup-tests: New file.
33685         * tests/unistr/test-u16-strdup.c: New file.
33686
33687         Tests for module 'unistr/u8-strdup'.
33688         * modules/unistr/u8-strdup-tests: New file.
33689         * tests/unistr/test-u8-strdup.c: New file.
33690         * tests/unistr/test-strdup.h: New file.
33691
33692         Tests for module 'unistr/u32-strncmp'.
33693         * modules/unistr/u32-strncmp-tests: New file.
33694         * tests/unistr/test-u32-strncmp.c: New file.
33695
33696         Tests for module 'unistr/u16-strncmp'.
33697         * modules/unistr/u16-strncmp-tests: New file.
33698         * tests/unistr/test-u16-strncmp.c: New file.
33699
33700         Tests for module 'unistr/u8-strncmp'.
33701         * modules/unistr/u8-strncmp-tests: New file.
33702         * tests/unistr/test-u8-strncmp.c: New file.
33703         * tests/unistr/test-strncmp.h: New file.
33704
33705         Tests for module 'unistr/u32-strcoll'.
33706         * modules/unistr/u32-strcoll-tests: New file.
33707         * tests/unistr/test-u32-strcoll.c: New file.
33708
33709         Tests for module 'unistr/u16-strcoll'.
33710         * modules/unistr/u16-strcoll-tests: New file.
33711         * tests/unistr/test-u16-strcoll.c: New file.
33712
33713         Tests for module 'unistr/u8-strcoll'.
33714         * modules/unistr/u8-strcoll-tests: New file.
33715         * tests/unistr/test-u8-strcoll.c: New file.
33716
33717         Tests for module 'unistr/u32-strcmp'.
33718         * modules/unistr/u32-strcmp-tests: New file.
33719         * tests/unistr/test-u32-strcmp.c: New file.
33720         * tests/unistr/test-u32-strcmp.h: New file.
33721
33722         Tests for module 'unistr/u16-strcmp'.
33723         * modules/unistr/u16-strcmp-tests: New file.
33724         * tests/unistr/test-u16-strcmp.c: New file.
33725         * tests/unistr/test-u16-strcmp.h: New file.
33726
33727         Tests for module 'unistr/u8-strcmp'.
33728         * modules/unistr/u8-strcmp-tests: New file.
33729         * tests/unistr/test-u8-strcmp.c: New file.
33730         * tests/unistr/test-u8-strcmp.h: New file.
33731         * tests/unistr/test-strcmp.h: New file.
33732
33733         Tests for module 'unistr/u32-strncat'.
33734         * modules/unistr/u32-strncat-tests: New file.
33735         * tests/unistr/test-u32-strncat.c: New file.
33736
33737         Tests for module 'unistr/u16-strncat'.
33738         * modules/unistr/u16-strncat-tests: New file.
33739         * tests/unistr/test-u16-strncat.c: New file.
33740
33741         Tests for module 'unistr/u8-strncat'.
33742         * modules/unistr/u8-strncat-tests: New file.
33743         * tests/unistr/test-u8-strncat.c: New file.
33744         * tests/unistr/test-strncat.h: New file.
33745
33746         Tests for module 'unistr/u32-strcat'.
33747         * modules/unistr/u32-strcat-tests: New file.
33748         * tests/unistr/test-u32-strcat.c: New file.
33749
33750         Tests for module 'unistr/u16-strcat'.
33751         * modules/unistr/u16-strcat-tests: New file.
33752         * tests/unistr/test-u16-strcat.c: New file.
33753
33754         Tests for module 'unistr/u8-strcat'.
33755         * modules/unistr/u8-strcat-tests: New file.
33756         * tests/unistr/test-u8-strcat.c: New file.
33757         * tests/unistr/test-strcat.h: New file.
33758
33759         Tests for module 'unistr/u32-stpncpy'.
33760         * modules/unistr/u32-stpncpy-tests: New file.
33761         * tests/unistr/test-u32-stpncpy.c: New file.
33762
33763         Tests for module 'unistr/u16-stpncpy'.
33764         * modules/unistr/u16-stpncpy-tests: New file.
33765         * tests/unistr/test-u16-stpncpy.c: New file.
33766
33767         Tests for module 'unistr/u8-stpncpy'.
33768         * modules/unistr/u8-stpncpy-tests: New file.
33769         * tests/unistr/test-u8-stpncpy.c: New file.
33770         * tests/unistr/test-stpncpy.h: New file.
33771
33772         Tests for module 'unistr/u32-strncpy'.
33773         * modules/unistr/u32-strncpy-tests: New file.
33774         * tests/unistr/test-u32-strncpy.c: New file.
33775
33776         Tests for module 'unistr/u16-strncpy'.
33777         * modules/unistr/u16-strncpy-tests: New file.
33778         * tests/unistr/test-u16-strncpy.c: New file.
33779
33780         Tests for module 'unistr/u8-strncpy'.
33781         * modules/unistr/u8-strncpy-tests: New file.
33782         * tests/unistr/test-u8-strncpy.c: New file.
33783         * tests/unistr/test-strncpy.h: New file.
33784
33785         Tests for module 'unistr/u32-stpcpy'.
33786         * modules/unistr/u32-stpcpy-tests: New file.
33787         * tests/unistr/test-u32-stpcpy.c: New file.
33788
33789         Tests for module 'unistr/u16-stpcpy'.
33790         * modules/unistr/u16-stpcpy-tests: New file.
33791         * tests/unistr/test-u16-stpcpy.c: New file.
33792
33793         Tests for module 'unistr/u8-stpcpy'.
33794         * modules/unistr/u8-stpcpy-tests: New file.
33795         * tests/unistr/test-u8-stpcpy.c: New file.
33796         * tests/unistr/test-stpcpy.h: New file.
33797
33798         Tests for module 'unistr/u32-strcpy'.
33799         * modules/unistr/u32-strcpy-tests: New file.
33800         * tests/unistr/test-u32-strcpy.c: New file.
33801
33802         Tests for module 'unistr/u16-strcpy'.
33803         * modules/unistr/u16-strcpy-tests: New file.
33804         * tests/unistr/test-u16-strcpy.c: New file.
33805
33806         Tests for module 'unistr/u8-strcpy'.
33807         * modules/unistr/u8-strcpy-tests: New file.
33808         * tests/unistr/test-u8-strcpy.c: New file.
33809         * tests/unistr/test-strcpy.h: New file.
33810
33811         Tests for module 'unistr/u32-strnlen'.
33812         * modules/unistr/u32-strnlen-tests: New file.
33813         * tests/unistr/test-u32-strnlen.c: New file.
33814
33815         Tests for module 'unistr/u16-strnlen'.
33816         * modules/unistr/u16-strnlen-tests: New file.
33817         * tests/unistr/test-u16-strnlen.c: New file.
33818
33819         Tests for module 'unistr/u8-strnlen'.
33820         * modules/unistr/u8-strnlen-tests: New file.
33821         * tests/unistr/test-u8-strnlen.c: New file.
33822         * tests/unistr/test-strnlen.h: New file.
33823
33824         Tests for module 'unistr/u32-strlen'.
33825         * modules/unistr/u32-strlen-tests: New file.
33826         * tests/unistr/test-u32-strlen.c: New file.
33827
33828         Tests for module 'unistr/u16-strlen'.
33829         * modules/unistr/u16-strlen-tests: New file.
33830         * tests/unistr/test-u16-strlen.c: New file.
33831
33832         Tests for module 'unistr/u8-strlen'.
33833         * modules/unistr/u8-strlen-tests: New file.
33834         * tests/unistr/test-u8-strlen.c: New file.
33835
33836         Tests for module 'unistr/u32-prev'.
33837         * modules/unistr/u32-prev-tests: New file.
33838         * tests/unistr/test-u32-prev.c: New file.
33839
33840         Tests for module 'unistr/u16-prev'.
33841         * modules/unistr/u16-prev-tests: New file.
33842         * tests/unistr/test-u16-prev.c: New file.
33843
33844         Tests for module 'unistr/u8-prev'.
33845         * modules/unistr/u8-prev-tests: New file.
33846         * tests/unistr/test-u8-prev.c: New file.
33847
33848         Tests for module 'unistr/u32-next'.
33849         * modules/unistr/u32-next-tests: New file.
33850         * tests/unistr/test-u32-next.c: New file.
33851
33852         Tests for module 'unistr/u16-next'.
33853         * modules/unistr/u16-next-tests: New file.
33854         * tests/unistr/test-u16-next.c: New file.
33855
33856         Tests for module 'unistr/u8-next'.
33857         * modules/unistr/u8-next-tests: New file.
33858         * tests/unistr/test-u8-next.c: New file.
33859
33860         Tests for module 'unistr/u32-strmbtouc'.
33861         * modules/unistr/u32-strmbtouc-tests: New file.
33862         * tests/unistr/test-u32-strmbtouc.c: New file.
33863
33864         Tests for module 'unistr/u16-strmbtouc'.
33865         * modules/unistr/u16-strmbtouc-tests: New file.
33866         * tests/unistr/test-u16-strmbtouc.c: New file.
33867
33868         Tests for module 'unistr/u8-strmbtouc'.
33869         * modules/unistr/u8-strmbtouc-tests: New file.
33870         * tests/unistr/test-u8-strmbtouc.c: New file.
33871
33872         Tests for module 'unistr/u32-strmblen'.
33873         * modules/unistr/u32-strmblen-tests: New file.
33874         * tests/unistr/test-u32-strmblen.c: New file.
33875
33876         Tests for module 'unistr/u16-strmblen'.
33877         * modules/unistr/u16-strmblen-tests: New file.
33878         * tests/unistr/test-u16-strmblen.c: New file.
33879
33880         Tests for module 'unistr/u8-strmblen'.
33881         * modules/unistr/u8-strmblen-tests: New file.
33882         * tests/unistr/test-u8-strmblen.c: New file.
33883
33884         Tests for module 'unistr/u32-cpy-alloc'.
33885         * modules/unistr/u32-cpy-alloc-tests: New file.
33886         * tests/unistr/test-u32-cpy-alloc.c: New file.
33887
33888         Tests for module 'unistr/u16-cpy-alloc'.
33889         * modules/unistr/u16-cpy-alloc-tests: New file.
33890         * tests/unistr/test-u16-cpy-alloc.c: New file.
33891
33892         Tests for module 'unistr/u8-cpy-alloc'.
33893         * modules/unistr/u8-cpy-alloc-tests: New file.
33894         * tests/unistr/test-u8-cpy-alloc.c: New file.
33895         * tests/unistr/test-cpy-alloc.h: New file.
33896
33897         Tests for module 'unistr/u32-mbsnlen'.
33898         * modules/unistr/u32-mbsnlen-tests: New file.
33899         * tests/unistr/test-u32-mbsnlen.c: New file.
33900
33901         Tests for module 'unistr/u16-mbsnlen'.
33902         * modules/unistr/u16-mbsnlen-tests: New file.
33903         * tests/unistr/test-u16-mbsnlen.c: New file.
33904
33905         Tests for module 'unistr/u8-mbsnlen'.
33906         * modules/unistr/u8-mbsnlen-tests: New file.
33907         * tests/unistr/test-u8-mbsnlen.c: New file.
33908
33909         Tests for module 'unistr/u32-chr'.
33910         * modules/unistr/u32-chr-tests: New file.
33911         * tests/unistr/test-u32-chr.c: New file.
33912
33913         Tests for module 'unistr/u16-chr'.
33914         * modules/unistr/u16-chr-tests: New file.
33915         * tests/unistr/test-u16-chr.c: New file.
33916
33917         Tests for module 'unistr/u8-chr'.
33918         * modules/unistr/u8-chr-tests: New file.
33919         * tests/unistr/test-u8-chr.c: New file.
33920         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
33921
33922         Tests for module 'unistr/u32-cmp2'.
33923         * modules/unistr/u32-cmp2-tests: New file.
33924         * tests/unistr/test-u32-cmp2.c: New file.
33925
33926         Tests for module 'unistr/u16-cmp2'.
33927         * modules/unistr/u16-cmp2-tests: New file.
33928         * tests/unistr/test-u16-cmp2.c: New file.
33929
33930         Tests for module 'unistr/u8-cmp2'.
33931         * modules/unistr/u8-cmp2-tests: New file.
33932         * tests/unistr/test-u8-cmp2.c: New file.
33933         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
33934
33935         Tests for module 'unistr/u32-cmp'.
33936         * modules/unistr/u32-cmp-tests: New file.
33937         * tests/unistr/test-u32-cmp.c: New file.
33938
33939         Tests for module 'unistr/u16-cmp'.
33940         * modules/unistr/u16-cmp-tests: New file.
33941         * tests/unistr/test-u16-cmp.c: New file.
33942
33943         Tests for module 'unistr/u8-cmp'.
33944         * modules/unistr/u8-cmp-tests: New file.
33945         * tests/unistr/test-u8-cmp.c: New file.
33946         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
33947
33948         Tests for module 'unistr/u32-set'.
33949         * modules/unistr/u32-set-tests: New file.
33950         * tests/unistr/test-u32-set.c: New file.
33951
33952         Tests for module 'unistr/u16-set'.
33953         * modules/unistr/u16-set-tests: New file.
33954         * tests/unistr/test-u16-set.c: New file.
33955
33956         Tests for module 'unistr/u8-set'.
33957         * modules/unistr/u8-set-tests: New file.
33958         * tests/unistr/test-u8-set.c: New file.
33959         * tests/unistr/test-set.h: New file.
33960
33961         Tests for module 'unistr/u32-move'.
33962         * modules/unistr/u32-move-tests: New file.
33963         * tests/unistr/test-u32-move.c: New file.
33964
33965         Tests for module 'unistr/u16-move'.
33966         * modules/unistr/u16-move-tests: New file.
33967         * tests/unistr/test-u16-move.c: New file.
33968
33969         Tests for module 'unistr/u8-move'.
33970         * modules/unistr/u8-move-tests: New file.
33971         * tests/unistr/test-u8-move.c: New file.
33972         * tests/unistr/test-move.h: New file.
33973
33974         Tests for module 'unistr/u32-cpy'.
33975         * modules/unistr/u32-cpy-tests: New file.
33976         * tests/unistr/test-u32-cpy.c: New file.
33977
33978         Tests for module 'unistr/u16-cpy'.
33979         * modules/unistr/u16-cpy-tests: New file.
33980         * tests/unistr/test-u16-cpy.c: New file.
33981
33982         Tests for module 'unistr/u8-cpy'.
33983         * modules/unistr/u8-cpy-tests: New file.
33984         * tests/unistr/test-u8-cpy.c: New file.
33985         * tests/unistr/test-cpy.h: New file.
33986
33987 2010-01-09  Bruno Haible  <bruno@clisp.org>
33988
33989         Tests for module 'unistr/u32-uctomb'.
33990         * modules/unistr/u32-uctomb-tests: New file.
33991         * tests/unistr/test-u32-uctomb.c: New file.
33992
33993         Tests for module 'unistr/u16-uctomb'.
33994         * modules/unistr/u16-uctomb-tests: New file.
33995         * tests/unistr/test-u16-uctomb.c: New file.
33996
33997         Tests for module 'unistr/u8-uctomb'.
33998         * modules/unistr/u8-uctomb-tests: New file.
33999         * tests/unistr/test-u8-uctomb.c: New file.
34000
34001         Tests for module 'unistr/u32-mbtoucr'.
34002         * modules/unistr/u32-mbtoucr-tests: New file.
34003         * tests/unistr/test-u32-mbtoucr.c: New file.
34004
34005         Tests for module 'unistr/u16-mbtoucr'.
34006         * modules/unistr/u16-mbtoucr-tests: New file.
34007         * tests/unistr/test-u16-mbtoucr.c: New file.
34008
34009         Tests for module 'unistr/u8-mbtoucr'.
34010         * modules/unistr/u8-mbtoucr-tests: New file.
34011         * tests/unistr/test-u8-mbtoucr.c: New file.
34012
34013         Tests for module 'unistr/u32-mbtouc'.
34014         * modules/unistr/u32-mbtouc-tests: New file.
34015         * tests/unistr/test-u32-mbtouc.c: New file.
34016
34017         Tests for module 'unistr/u16-mbtouc'.
34018         * modules/unistr/u16-mbtouc-tests: New file.
34019         * tests/unistr/test-u16-mbtouc.c: New file.
34020
34021         Tests for module 'unistr/u8-mbtouc'.
34022         * modules/unistr/u8-mbtouc-tests: New file.
34023         * tests/unistr/test-u8-mbtouc.c: New file.
34024
34025         Tests for module 'unistr/u32-mbtouc-unsafe'.
34026         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
34027         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
34028         * tests/unistr/test-u32-mbtouc.h: New file.
34029
34030         Tests for module 'unistr/u16-mbtouc-unsafe'.
34031         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
34032         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
34033         * tests/unistr/test-u16-mbtouc.h: New file.
34034
34035         Tests for module 'unistr/u8-mbtouc-unsafe'.
34036         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
34037         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
34038         * tests/unistr/test-u8-mbtouc.h: New file.
34039
34040         Tests for module 'unistr/u32-mblen'.
34041         * modules/unistr/u32-mblen-tests: New file.
34042         * tests/unistr/test-u32-mblen.c: New file.
34043
34044         Tests for module 'unistr/u16-mblen'.
34045         * modules/unistr/u16-mblen-tests: New file.
34046         * tests/unistr/test-u16-mblen.c: New file.
34047
34048         Tests for module 'unistr/u8-mblen'.
34049         * modules/unistr/u8-mblen-tests: New file.
34050         * tests/unistr/test-u8-mblen.c: New file.
34051
34052         Tests for module 'unistr/u32-to-u16'.
34053         * modules/unistr/u32-to-u16-tests: New file.
34054         * tests/unistr/test-u32-to-u16.c: New file.
34055
34056         Tests for module 'unistr/u32-to-u8'.
34057         * modules/unistr/u32-to-u8-tests: New file.
34058         * tests/unistr/test-u32-to-u8.c: New file.
34059
34060         Tests for module 'unistr/u16-to-u32'.
34061         * modules/unistr/u16-to-u32-tests: New file.
34062         * tests/unistr/test-u16-to-u32.c: New file.
34063
34064         Tests for module 'unistr/u16-to-u8'.
34065         * modules/unistr/u16-to-u8-tests: New file.
34066         * tests/unistr/test-u16-to-u8.c: New file.
34067
34068         Tests for module 'unistr/u8-to-u32'.
34069         * modules/unistr/u8-to-u32-tests: New file.
34070         * tests/unistr/test-u8-to-u32.c: New file.
34071
34072         Tests for module 'unistr/u8-to-u16'.
34073         * modules/unistr/u8-to-u16-tests: New file.
34074         * tests/unistr/test-u8-to-u16.c: New file.
34075
34076         Tests for module 'unistr/u32-check'.
34077         * modules/unistr/u32-check-tests: New file.
34078         * tests/unistr/test-u32-check.c: New file.
34079
34080         Tests for module 'unistr/u16-check'.
34081         * modules/unistr/u16-check-tests: New file.
34082         * tests/unistr/test-u16-check.c: New file.
34083
34084         Tests for module 'unistr/u8-check'.
34085         * modules/unistr/u8-check-tests: New file.
34086         * tests/unistr/test-u8-check.c: New file.
34087
34088         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
34089         (category_equals): New function.
34090         (main): Add more tests.
34091         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
34092
34093         * tests/unictype/test-bidi_byname.c (main): Add more tests.
34094
34095 2010-01-10  Bruno Haible  <bruno@clisp.org>
34096
34097         unistr/u*-strcoll: Try harder to distinguish different strings.
34098         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
34099         compare s1 and s2 to see if they are different.
34100
34101 2010-01-10  Bruno Haible  <bruno@clisp.org>
34102
34103         unistr/u*-stpncpy: Fix the return value.
34104         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
34105         description of the return value consistent with stpncpy in glibc.
34106         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
34107         written non-NUL unit.
34108
34109 2010-01-10  Bruno Haible  <bruno@clisp.org>
34110
34111         unistr/u*-next: Add missing dependencies.
34112         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
34113         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
34114         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
34115
34116 2010-01-10  Bruno Haible  <bruno@clisp.org>
34117
34118         unistr/u8-mbsnlen: Fix return value for incomplete character.
34119         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
34120         u8_mblen.
34121         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
34122         Remove unistr/u8-mblen.
34123         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
34124         u16_mblen.
34125         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
34126         Remove unistr/u16-mblen.
34127
34128 2010-01-10  Bruno Haible  <bruno@clisp.org>
34129
34130         wchar: Fix compilation error when <wchar.h> is used from coreutils.
34131         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
34132         Reported by Brian Gough <bjg@gnu.org> and
34133         Chris Clayton <chris2553@googlemail.com> via
34134         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
34135
34136 2010-01-09  Bruno Haible  <bruno@clisp.org>
34137
34138         unistr/u16-to-u32: Reject invalid input.
34139         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
34140         u16_mbtouc.
34141         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
34142         Remove unistr/u16-mbtouc.
34143
34144         unistr/u16-to-u8: Reject invalid input.
34145         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
34146         u16_mbtouc.
34147         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
34148         Remove unistr/u16-mbtouc.
34149
34150         unistr/u8-to-u32: Reject invalid input.
34151         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
34152         u8_mbtouc.
34153         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
34154         Remove unistr/u8-mbtouc.
34155
34156         unistr/u8-to-u16: Reject invalid input.
34157         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
34158         u8_mbtouc.
34159         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
34160         Remove unistr/u8-mbtouc.
34161
34162 2010-01-09  Bruno Haible  <bruno@clisp.org>
34163
34164         Tests for module 'getlogin'.
34165         * modules/getlogin-tests: New file.
34166         * tests/test-getlogin.c: New file.
34167
34168         New module 'getlogin'.
34169         * lib/unistd.in.h (getlogin): New declaration.
34170         * lib/getlogin.c: New file.
34171         * m4/getlogin.m4: New file.
34172         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
34173         HAVE_GETLOGIN.
34174         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
34175         HAVE_GETLOGIN.
34176         * modules/getlogin: New file.
34177         * doc/posix-functions/getlogin.texi: Mention the new module.
34178         Reported by John W. Eaton <jwe@gnu.org>.
34179
34180 2010-01-09  Bruno Haible  <bruno@clisp.org>
34181
34182         getlogin_r: Support for native Windows.
34183         * lib/getlogin_r.c: Include <windows.h>
34184         (getlogin_r): Implement for native Windows.
34185         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
34186         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
34187         via John W. Eaton <jwe@gnu.org>.
34188
34189 2010-01-09  Bruno Haible  <bruno@clisp.org>
34190
34191         getlogin_r: Small fixes.
34192         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
34193         succeeds.
34194         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
34195         before testing whether getlogin_r is declared. No need to set
34196         HAVE_DECL_GETLOGIN_R to 1.
34197         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
34198
34199 2010-01-09  Bruno Haible  <bruno@clisp.org>
34200
34201         * lib/unistd.in.h (getlogin_r): Add comment.
34202
34203 2010-01-09  Bruno Haible  <bruno@clisp.org>
34204
34205         Tests for module 'getlogin_r'.
34206         * modules/getlogin_r-tests: New file.
34207         * tests/test-getlogin_r.c: New file.
34208
34209 2010-01-09  Jim Meyering  <meyering@redhat.com>
34210
34211         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
34212         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
34213         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
34214
34215 2010-01-08  Simon Josefsson  <simon@josefsson.org>
34216
34217         * lib/dup2.c (rpl_dup2): Improve comment.
34218
34219 2010-01-08  Eric Blake  <ebb9@byu.net>
34220
34221         maint.mk: allow packages to add makefile @@ exceptions
34222         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
34223         (sc_makefile_check): Rename...
34224         (sc_makefile_at_at_check): ...to this, and use hook.
34225
34226         dup2: work around mingw bug
34227         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
34228         Reported by Simon Josefsson.
34229
34230 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
34231
34232         glob: Fix C++ compilation.
34233         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
34234         C++.
34235
34236 2010-01-07  Bruno Haible  <bruno@clisp.org>
34237
34238         Fix indentation of wctype.in.h, broken since 2007-01-06.
34239         * lib/wctype.in.h: Fix indentation of preprocessor directives.
34240
34241 2010-01-07  Bruno Haible  <bruno@clisp.org>
34242
34243         mbslen: Avoid collision with system function.
34244         * lib/string.in.h [MirBSD]: Include <wchar.h>.
34245         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
34246         * m4/mbslen.m4: New file.
34247         * modules/mbslen (Files): Add it.
34248         (configure.ac): Invoke gl_MBSLEN.
34249         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
34250         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
34251         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
34252         via Ian Beckwith <ianb@erislabs.net>.
34253
34254 2010-01-07  Bruno Haible  <bruno@clisp.org>
34255
34256         dirent: Document the last fix.
34257         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
34258
34259 2010-01-07  Bruno Haible  <bruno@clisp.org>
34260
34261         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
34262         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
34263         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
34264         va_list are defined.
34265         * doc/posix-headers/stdio.texi: Document the bug of missing types.
34266         Reported by Eric Blake.
34267
34268 2010-01-07  Bruno Haible  <bruno@clisp.org>
34269
34270         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
34271         * modules/xlist (Depends-on): Add 'list',
34272         * modules/xoset (Depends-on): Add 'oset'.
34273         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34274
34275 2010-01-07  Bruno Haible  <bruno@clisp.org>
34276
34277         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
34278         * doc/posix-functions/strncasecmp.texi: Likewise.
34279
34280 2010-01-07  Bruno Haible  <bruno@clisp.org>
34281
34282         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
34283
34284 2010-01-07  John W. Eaton  <jwe@octave.org>
34285
34286         wctype: allow C++ use
34287         * lib/wctype.in.h: Add extern "C" block for C++.
34288
34289 2010-01-06  Eric Blake  <ebb9@byu.net>
34290
34291         maint.mk: detect incorrect GFDL usage
34292         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
34293
34294 2010-01-06  Jim Meyering  <meyering@redhat.com>
34295         and Eric Blake  <ebb9@byu.net>
34296
34297         maint.mk: ignore multi-line copyright in NEWS
34298         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
34299
34300 2010-01-06  Eric Blake  <ebb9@byu.net>
34301
34302         select: add missing dependency
34303         * modules/select-tests (Depends-on): Move sockets dependency...
34304         * modules/select (Depends-on): ...here.
34305         Reported by Ian Beckwith.
34306
34307         doc: regenerate INSTALL
34308         * doc/INSTALL: Reflect recent autoconf update.
34309         * doc/INSTALL.ISO: Likewise.
34310         * doc/INSTALL.UTF-8: Likewise.
34311
34312         pread: fix compilation on glibc
34313         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
34314         Reported by Ralf Wildenhues.
34315
34316         dirent: fix test failure
34317         * lib/dirent.in.h (includes): Guarantee ino_t.
34318         Reported by Ralf Wildenhues.
34319
34320 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
34321
34322         linkat, renameat: avoid bad free
34323         * lib/at-func2.c (at_func2): Fix typo.
34324         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
34325
34326 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34327
34328         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
34329         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
34330         to avoid failure of symlink test later.
34331
34332 2010-01-06  Eric Blake  <ebb9@byu.net>
34333
34334         stdio, unistd: guarantee ssize_t
34335         * lib/unistd.in.h (includes): Ensure that types required by POSIX
34336         2008 are exposed when needed.
34337         * lib/stdio.in.h (includes): Likewise.
34338         Reported by Ralf Wildenhues.
34339
34340 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
34341
34342         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
34343         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
34344         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
34345
34346 2010-01-06  Jim Meyering  <meyering@redhat.com>
34347
34348         readtokens: this module *does* require xalloc.h
34349         It uses only functions that were omitted by the old syntax-check rule.
34350         * lib/readtokens.c: Include "xalloc.h" once again.
34351         * modules/readtokens (Depends-on): Add xalloc.
34352         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
34353
34354 2010-01-05  Eric Blake  <ebb9@byu.net>
34355
34356         maint: support 'make announcement' from a VPATH build
34357         * top/maint.mk (announcement): Look for correct NEWS file.
34358
34359 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
34360
34361         utimens (fdutimens): ignore a negative FD, per contract
34362         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
34363         when we have a valid file descriptor.  Otherwise, using a brand
34364         new glibc (with just-patched futimens that now fails with EBADF)
34365         would cause this function to fail with ENOSYS.
34366         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
34367         See also http://bugzilla.redhat.com/552320.
34368
34369 2010-01-05  Eric Blake  <ebb9@byu.net>
34370
34371         strcase: document what it provides
34372         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
34373         gnulib module.
34374         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
34375         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
34376
34377 2010-01-05  Jim Meyering  <meyering@redhat.com>
34378
34379         maint: remove useless inclusions of "xalloc.h"
34380         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
34381         * lib/readtokens.c: Likewise.
34382         * lib/same.c: Likewise.
34383         * modules/getloadavg (Depends-on): Remove xalloc.
34384         * modules/readtokens: Likewise.
34385         * modules/same: Likewise.
34386
34387         maint.mk: include 4 more function names in alloca.h-checking regexp
34388         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
34389         regexp.  Before, we would give a false-positive (saying alloca.h
34390         is included unnecessarily) when the only uses involved omitted symbols.
34391
34392         xalloc.h: use consistent formatting
34393         * lib/xalloc.h: Move declarations to start in the first column.
34394
34395 2010-01-05  Eric Blake  <ebb9@byu.net>
34396
34397         mkdir: avoid xalloc
34398         * lib/mkdir.c (includes): Drop unused header.
34399         Reported by John W. Eaton.
34400
34401 2010-01-04  Jim Meyering  <meyering@redhat.com>
34402
34403         nl_langinfo: avoid configure-time syntax error
34404         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
34405         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
34406         the empty string.  Don't let that provoke a shell syntax error.
34407
34408         regcomp, regexec, fnmatch: avoid array bounds read error
34409         * lib/regcomp.c (build_equiv_class): From glibc:
34410         Use only the low 24 bits of a findidx return value as an index
34411         into the weights array.  Patch by Ulrich Drepper:
34412         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
34413         * lib/regexec.c (check_node_accept_bytes): Likewise.
34414         * lib/fnmatch_loop.c (FCT): Likewise.
34415
34416         regcomp: skip collseq lookup when there are no rules
34417         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
34418         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
34419
34420         regcomp: recognize ill-formed { } expressions
34421         * lib/regcomp.c (parse_dup_op): From glibc:
34422         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
34423
34424         regcomp: fix typo in comment
34425         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
34426         s/satisfy/satisfies/.
34427
34428         regcomp: sync from glibc: remove dead store
34429         * lib/regcomp.c (duplicate_node_closure): Remove useless
34430         search_duplicated_node call and dead store.
34431
34432         regcomp: sync from glibc; always use nl_langinfo
34433         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
34434         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
34435         * modules/regex (Depends-on): Add nl_langinfo.
34436
34437 2010-01-04  Eric Blake  <ebb9@byu.net>
34438
34439         fdopendir: fix configure test
34440         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
34441
34442 2010-01-01  Bruno Haible  <bruno@clisp.org>
34443
34444         wchar: Remove unused configure check.
34445         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
34446
34447 2010-01-01  Eric Blake  <ebb9@byu.net>
34448
34449         headers: make check of system header explicit
34450         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
34451         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
34452         ourselves.
34453         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
34454         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34455         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
34456         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
34457         internals.
34458         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
34459         missing.
34460         Suggested by Bruno Haible.
34461
34462 2010-01-01  Jim Meyering  <meyering@redhat.com>
34463
34464         ChangeLog: tweak to eliminate unnecessary copyright line
34465         * ChangeLog: Remove a copyright line that was mistakenly updated
34466         by today's update-copyright run.  Reported by Eric Blake.
34467
34468         test-update-copyright: don't let envvar setting cause test failure
34469         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
34470
34471 2010-01-01  Bruno Haible  <bruno@clisp.org>
34472
34473         localename: Avoid gcc warning.
34474         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
34475         function if it is not used.
34476
34477 2010-01-01  Jim Meyering  <meyering@redhat.com>
34478
34479         update nearly all FSF copyright year lists to include 2010
34480         Use the same procedure as for 2009, outlined in
34481         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
34482
34483         version-etc: set COPYRIGHT_YEAR to 2010
34484         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
34485
34486 2009-12-31  Eric Blake  <ebb9@byu.net>
34487
34488         doc: correct availability of cygwin 1.5.x getopt
34489         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
34490         variables.
34491         * doc/posix-functions/opterr.texi (opterr): Likewise.
34492         * doc/posix-functions/optind.texi (optind): Likewise.
34493         * doc/posix-functions/optopt.texi (optopt): Likewise.
34494         * doc/posix-functions/tzname.texi (tzname): Likewise.
34495
34496         openat: update maintainer
34497         * modules/openat (Maintainer): Add myself.
34498
34499         utimens: avoid shadowing warning
34500         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
34501         buffers into one, to avoid shadowing, as well as avoiding a
34502         redundant stat.
34503         Reported by Jim Meyering.
34504
34505         test-dup2: avoid compiler warning
34506         * tests/test-dup2.c (is_inheritable): Only define if used.
34507
34508 2010-01-01  Bruno Haible  <bruno@clisp.org>
34509
34510         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
34511         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
34512         defined, use wctomb instead of wcrtomb.
34513
34514 2010-01-01  Bruno Haible  <bruno@clisp.org>
34515
34516         iconv: Reject native Solaris iconv.
34517         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
34518         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
34519
34520 2009-12-31  Bruno Haible  <bruno@clisp.org>
34521
34522         * tests/test-signal.c (main): Remove test of 'SIG'.
34523
34524 2009-12-31  Bruno Haible  <bruno@clisp.org>
34525
34526         spawn: Fix incomplete fix.
34527         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
34528         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
34529         warnings for GNULIB_POSIXCHECK again.
34530         Reported by Eric Blake.
34531
34532 2009-12-31  Bruno Haible  <bruno@clisp.org>
34533
34534         Avoid namespace pollution on glibc systems.
34535         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
34536         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
34537         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
34538         glibc systems.
34539
34540 2009-12-31  Bruno Haible  <bruno@clisp.org>
34541
34542         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
34543         (gl_REPLACE_WCHAR_H): Turn into a no-op.
34544         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
34545         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
34546         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
34547         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
34548         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
34549
34550 2009-12-31  Bruno Haible  <bruno@clisp.org>
34551
34552         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
34553         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
34554         afterwards.
34555
34556 2009-12-31  Bruno Haible  <bruno@clisp.org>
34557
34558         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
34559         SYS_UTSNAME_H.
34560
34561 2009-12-31  Bruno Haible  <bruno@clisp.org>
34562
34563         spawn: Fix misapplied patch.
34564         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
34565         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
34566         warnings for GNULIB_POSIXCHECK.
34567
34568 2009-12-31  Bruno Haible  <bruno@clisp.org>
34569
34570         times: Update after sys_times changed.
34571         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
34572         * modules/times (Files): Add it.
34573         (configure.ac): Invoke gl_FUNC_TIMES.
34574
34575 2009-12-31  Bruno Haible  <bruno@clisp.org>
34576
34577         Use AC_C_INLINE where necessary.
34578         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
34579         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
34580         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
34581         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
34582         * m4/mbfile.m4 (gl_MBFILE): Likewise.
34583         * m4/mbiter.m4 (gl_MBITER): Likewise.
34584         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
34585         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
34586         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
34587         * modules/u64 (configure.ac): Likewise.
34588
34589 2009-12-31  Bruno Haible  <bruno@clisp.org>
34590
34591         Use AC_C_INLINE instead of module 'inline' where possible.
34592         * modules/inline (Description): Clarify purpose.
34593         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
34594         * modules/count-one-bits (Depends-on): Remove inline.
34595         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
34596         * modules/openat (Depends-on): Remove inline.
34597         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
34598         instead of depending on module 'inline'.
34599         * modules/filevercmp (Depends-on, configure.ac): Likewise.
34600         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
34601         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
34602         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
34603         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
34604         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
34605         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
34606         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
34607         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
34608         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
34609         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
34610         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
34611         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
34612         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
34613         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
34614         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
34615         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
34616         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
34617         Likewise.
34618         * modules/unictype/property-ascii-hex-digit (Depends-on,
34619         configure.ac): Likewise.
34620         * modules/unictype/property-bidi-arabic-digit (Depends-on,
34621         configure.ac): Likewise.
34622         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
34623         configure.ac): Likewise.
34624         * modules/unictype/property-bidi-block-separator (Depends-on,
34625         configure.ac): Likewise.
34626         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
34627         configure.ac): Likewise.
34628         * modules/unictype/property-bidi-common-separator (Depends-on,
34629         configure.ac): Likewise.
34630         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
34631         Likewise.
34632         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
34633         configure.ac): Likewise.
34634         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
34635         configure.ac): Likewise.
34636         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
34637         configure.ac): Likewise.
34638         * modules/unictype/property-bidi-european-digit (Depends-on,
34639         configure.ac): Likewise.
34640         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
34641         configure.ac): Likewise.
34642         * modules/unictype/property-bidi-left-to-right (Depends-on,
34643         configure.ac): Likewise.
34644         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
34645         configure.ac): Likewise.
34646         * modules/unictype/property-bidi-other-neutral (Depends-on,
34647         configure.ac): Likewise.
34648         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
34649         Likewise.
34650         * modules/unictype/property-bidi-segment-separator (Depends-on,
34651         configure.ac): Likewise.
34652         * modules/unictype/property-bidi-whitespace (Depends-on,
34653         configure.ac): Likewise.
34654         * modules/unictype/property-combining (Depends-on, configure.ac):
34655         Likewise.
34656         * modules/unictype/property-composite (Depends-on, configure.ac):
34657         Likewise.
34658         * modules/unictype/property-currency-symbol (Depends-on,
34659         configure.ac): Likewise.
34660         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
34661         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
34662         Likewise.
34663         * modules/unictype/property-default-ignorable-code-point (Depends-on,
34664         configure.ac): Likewise.
34665         * modules/unictype/property-deprecated (Depends-on, configure.ac):
34666         Likewise.
34667         * modules/unictype/property-diacritic (Depends-on, configure.ac):
34668         Likewise.
34669         * modules/unictype/property-extender (Depends-on, configure.ac):
34670         Likewise.
34671         * modules/unictype/property-format-control (Depends-on, configure.ac):
34672         Likewise.
34673         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
34674         Likewise.
34675         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
34676         Likewise.
34677         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
34678         Likewise.
34679         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
34680         Likewise.
34681         * modules/unictype/property-hyphen (Depends-on, configure.ac):
34682         Likewise.
34683         * modules/unictype/property-id-continue (Depends-on, configure.ac):
34684         Likewise.
34685         * modules/unictype/property-id-start (Depends-on, configure.ac):
34686         Likewise.
34687         * modules/unictype/property-ideographic (Depends-on, configure.ac):
34688         Likewise.
34689         * modules/unictype/property-ids-binary-operator (Depends-on,
34690         configure.ac): Likewise.
34691         * modules/unictype/property-ids-trinary-operator (Depends-on,
34692         configure.ac): Likewise.
34693         * modules/unictype/property-ignorable-control (Depends-on,
34694         configure.ac): Likewise.
34695         * modules/unictype/property-iso-control (Depends-on, configure.ac):
34696         Likewise.
34697         * modules/unictype/property-join-control (Depends-on, configure.ac):
34698         Likewise.
34699         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
34700         Likewise.
34701         * modules/unictype/property-line-separator (Depends-on, configure.ac):
34702         Likewise.
34703         * modules/unictype/property-logical-order-exception (Depends-on,
34704         configure.ac): Likewise.
34705         * modules/unictype/property-lowercase (Depends-on, configure.ac):
34706         Likewise.
34707         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
34708         * modules/unictype/property-non-break (Depends-on, configure.ac):
34709         Likewise.
34710         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
34711         Likewise.
34712         * modules/unictype/property-numeric (Depends-on, configure.ac):
34713         Likewise.
34714         * modules/unictype/property-other-alphabetic (Depends-on,
34715         configure.ac): Likewise.
34716         * modules/unictype/property-other-default-ignorable-code-point
34717         (Depends-on, configure.ac): Likewise.
34718         * modules/unictype/property-other-grapheme-extend (Depends-on,
34719         configure.ac): Likewise.
34720         * modules/unictype/property-other-id-continue (Depends-on,
34721         configure.ac): Likewise.
34722         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
34723         Likewise.
34724         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
34725         Likewise.
34726         * modules/unictype/property-other-math (Depends-on, configure.ac):
34727         Likewise.
34728         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
34729         Likewise.
34730         * modules/unictype/property-paired-punctuation (Depends-on,
34731         configure.ac): Likewise.
34732         * modules/unictype/property-paragraph-separator (Depends-on,
34733         configure.ac): Likewise.
34734         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
34735         Likewise.
34736         * modules/unictype/property-pattern-white-space (Depends-on,
34737         configure.ac): Likewise.
34738         * modules/unictype/property-private-use (Depends-on, configure.ac):
34739         Likewise.
34740         * modules/unictype/property-punctuation (Depends-on, configure.ac):
34741         Likewise.
34742         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
34743         Likewise.
34744         * modules/unictype/property-radical (Depends-on, configure.ac):
34745         Likewise.
34746         * modules/unictype/property-sentence-terminal (Depends-on,
34747         configure.ac): Likewise.
34748         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
34749         Likewise.
34750         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
34751         * modules/unictype/property-terminal-punctuation (Depends-on,
34752         configure.ac): Likewise.
34753         * modules/unictype/property-titlecase (Depends-on, configure.ac):
34754         Likewise.
34755         * modules/unictype/property-unassigned-code-value (Depends-on,
34756         configure.ac): Likewise.
34757         * modules/unictype/property-unified-ideograph (Depends-on,
34758         configure.ac): Likewise.
34759         * modules/unictype/property-uppercase (Depends-on, configure.ac):
34760         Likewise.
34761         * modules/unictype/property-variation-selector (Depends-on,
34762         configure.ac): Likewise.
34763         * modules/unictype/property-white-space (Depends-on, configure.ac):
34764         Likewise.
34765         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
34766         Likewise.
34767         * modules/unictype/property-xid-start (Depends-on, configure.ac):
34768         Likewise.
34769         * modules/unictype/property-zero-width (Depends-on, configure.ac):
34770         Likewise.
34771         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
34772         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
34773         Likewise.
34774
34775 2009-12-31  Bruno Haible  <bruno@clisp.org>
34776
34777         Remove unnecessary AC_C_INLINE invocation.
34778         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
34779         since 2009-08-21.
34780
34781 2009-12-31  Jim Meyering  <meyering@redhat.com>
34782
34783         maint.mk: don't require explicit gpg_key_ID in cfg.mk
34784         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
34785         With this change, we can all remove the gpg_key_ID = ... definition
34786         from our respective cfg.mk files.
34787
34788         maint.mk: create announcement template in ~/, not in /tmp
34789         * top/maint.mk (emit_upload_commands): Adjust.
34790         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
34791         Remove temporary file, .ci-msg.
34792
34793 2009-12-31  Eric Blake  <ebb9@byu.net>
34794
34795         link-warning: always build headers with link warnings
34796         * modules/arpa_inet (Makefile.am): Always build replacement
34797         header.
34798         * modules/ctype (Makefile.am): Likewise.
34799         * modules/dirent (Makefile.am): Likewise.
34800         * modules/inttypes (Makefile.am): Likewise.
34801         * modules/langinfo (Makefile.am): Likewise.
34802         * modules/locale (Makefile.am): Likewise.
34803         * modules/spawn (Makefile.am): Likewise.
34804         * modules/sys_file (Makefile.am): Likewise.
34805         * modules/sys_ioctl (Makefile.am): Likewise.
34806         * modules/sys_select (Makefile.am): Likewise.
34807         * modules/sys_socket (Makefile.am): Likewise.
34808         * modules/sys_times (Makefile.am): Likewise.
34809         * modules/sys_utsname (Makefile.am): Likewise.
34810         * modules/sys_wait (Makefile.am): Likewise.
34811         * modules/wchar (Makefile.am): Likewise.
34812         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
34813         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
34814         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
34815         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
34816         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
34817         Likewise.
34818         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
34819         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
34820         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
34821         Likewise.
34822         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
34823         Likewise.
34824         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
34825         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
34826         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
34827         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34828         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
34829         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
34830         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
34831         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
34832         (gl_WCHAR_H_DEFAULTS): Likewise.
34833
34834 2009-12-31  Eric Blake  <ebb9@byu.net>
34835
34836         signal, spawn: use link warnings
34837         * lib/signal.in.h (sigset_t): Make unconditional.
34838         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
34839         (sigpending, sigprocmask, sigaction): Add link warnings.
34840         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
34841         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
34842         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
34843         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
34844         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
34845         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
34846         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
34847         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
34848         (posix_spawn_file_actions_destroy)
34849         (posix_spawn_file_actions_addopen)
34850         (posix_spawn_file_actions_addclose)
34851         (posix_spawn_file_actions_adddup2): Likewise.
34852         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
34853         * tests/test-signal.c (main): Enhance test.
34854
34855         spawn: improve wrapper support
34856         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
34857         (gl_SPAWN_H_DEFAULTS): New defaults.
34858         * modules/spawn (Makefile.am): Substitute them.
34859         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
34860         Only declare if missing or broken.
34861
34862         sys_times, sys_utsname: use include_next
34863         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
34864         header.
34865         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
34866         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
34867         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
34868         * modules/sys_times (Depends-on): Add include_next.
34869         (Makefile.am): Substitute additional values.
34870         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
34871         * lib/sys_times.in.h (includes): Include native header, if
34872         available.
34873         * lib/sys_utsname.in.h (includes): Likewise.
34874         * tests/test-sys_times.c (main): Enhance test.
34875
34876         fdutimensat: revert prior patch
34877         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
34878         utimens.h.
34879         Reported by Bruno Haible.
34880
34881 2009-12-30  Eric Blake  <ebb9@byu.net>
34882
34883         sys_wait: drop link-warning dependency
34884         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
34885         link-warning efforts.
34886         * lib/sys_wait.in.h: Likewise.
34887
34888         fdutimensat: remove bogus dependency
34889         * modules/fdutimensat (Depends-on): Drop inline.
34890
34891         unistd: fix typo
34892         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
34893
34894 2009-12-30  Bruno Haible  <bruno@clisp.org>
34895
34896         Fix compilation error with Solaris cc.
34897         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
34898         * lib/unicase/u16-is-invariant.c: Likewise.
34899         * lib/unicase/u32-is-invariant.c: Likewise.
34900         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
34901
34902 2009-12-30  Bruno Haible  <bruno@clisp.org>
34903
34904         Fix test crash.
34905         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
34906         locales.
34907         Reported by Simon Josefsson <simon@josefsson.org>.
34908
34909 2009-12-30  Bruno Haible  <bruno@clisp.org>
34910
34911         Fix compilation error on most platforms.
34912         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
34913         Reported by Simon Josefsson <simon@josefsson.org>
34914         and Nelson H. F. Beebe <beebe@math.utah.edu>.
34915
34916 2009-12-30  Eric Blake  <ebb9@byu.net>
34917
34918         futimens, utimensat: work around ntfs-3g bug
34919         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
34920         a ctime bug is present, and expand workaround to cover ntfs-3g.
34921         * lib/utimens.c (fdutimens, lutimens): Likewise.
34922         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
34923         (validate_timespec): Adjust return value.
34924         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
34925         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
34926         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
34927
34928 2009-12-29  Eric Blake  <ebb9@byu.net>
34929
34930         link-warning: make usage consistent
34931         * modules/ctype (Depends-on): Add link-warning.
34932         (Makefile.am): Update rules accordingly.
34933         * modules/langinfo (Depends-on, Makefile.am): Likewise.
34934         * modules/locale (Depends-on, Makefile.am): Likewise.
34935         * modules/sys_file (Makefile.am): Likewise.
34936         * modules/getopt-posix (Makefile.am): Delete unused link warning
34937         efforts.
34938         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
34939         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
34940         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
34941         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
34942
34943         stdio: remove unused variables
34944         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
34945         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
34946         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
34947
34948         tests: test more substitute headers
34949         * modules/ctype-tests: New file.
34950         * modules/dirent-tests: Likewise.
34951         * modules/spawn-tests: Likewise.
34952         * modules/sys_file-tests: Likewise.
34953         * modules/sys_ioctl-tests: Likewise.
34954         * modules/sys_wait-tests: Likewise.
34955         * tests/test-ctype.c: Likewise.
34956         * tests/test-dirent.c: Likewise.
34957         * tests/test-spawn.c: Likewise.
34958         * tests/test-sys_file.c: Likewise.
34959         * tests/test-sys_ioctl.c: Likewise.
34960         * tests/test-sys_wait.c: Likewise.
34961         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
34962         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
34963         whether or not flock is in use.
34964
34965         tests: remove License section from module
34966         * modules/arpa_inet-tests: Remove unneeded section.
34967         * modules/byteswap-tests: Likewise.
34968         * modules/ceilf-tests: Likewise.
34969         * modules/ceill-tests: Likewise.
34970         * modules/crypto/des-tests: Likewise.
34971         * modules/crypto/gc-arcfour-tests: Likewise.
34972         * modules/crypto/gc-arctwo-tests: Likewise.
34973         * modules/crypto/gc-des-tests: Likewise.
34974         * modules/crypto/gc-hmac-md5-tests: Likewise.
34975         * modules/crypto/gc-hmac-sha1-tests: Likewise.
34976         * modules/crypto/gc-md2-tests: Likewise.
34977         * modules/crypto/gc-md4-tests: Likewise.
34978         * modules/crypto/gc-md5-tests: Likewise.
34979         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
34980         * modules/crypto/gc-rijndael-tests: Likewise.
34981         * modules/crypto/gc-sha1-tests: Likewise.
34982         * modules/crypto/gc-tests: Likewise.
34983         * modules/crypto/md2-tests: Likewise.
34984         * modules/crypto/md4-tests: Likewise.
34985         * modules/fcntl-h-tests: Likewise.
34986         * modules/floorf-tests: Likewise.
34987         * modules/floorl-tests: Likewise.
34988         * modules/frexp-nolibm-tests: Likewise.
34989         * modules/frexp-tests: Likewise.
34990         * modules/frexpl-nolibm-tests: Likewise.
34991         * modules/frexpl-tests: Likewise.
34992         * modules/getaddrinfo-tests: Likewise.
34993         * modules/inttypes-tests: Likewise.
34994         * modules/isfinite-tests: Likewise.
34995         * modules/isinf-tests: Likewise.
34996         * modules/ldexpl-tests: Likewise.
34997         * modules/locale-tests: Likewise.
34998         * modules/math-tests: Likewise.
34999         * modules/netdb-tests: Likewise.
35000         * modules/netinet_in-tests: Likewise.
35001         * modules/printf-frexp-tests: Likewise.
35002         * modules/printf-frexpl-tests: Likewise.
35003         * modules/priv-set-tests: Likewise.
35004         * modules/random_r-tests: Likewise.
35005         * modules/round-tests: Likewise.
35006         * modules/roundf-tests: Likewise.
35007         * modules/roundl-tests: Likewise.
35008         * modules/search-tests: Likewise.
35009         * modules/select-tests: Likewise.
35010         * modules/signal-tests: Likewise.
35011         * modules/stdbool-tests: Likewise.
35012         * modules/stddef-tests: Likewise.
35013         * modules/stdint-tests: Likewise.
35014         * modules/stdio-tests: Likewise.
35015         * modules/stdlib-tests: Likewise.
35016         * modules/string-tests: Likewise.
35017         * modules/strings-tests: Likewise.
35018         * modules/sys_select-tests: Likewise.
35019         * modules/sys_socket-tests: Likewise.
35020         * modules/sys_stat-tests: Likewise.
35021         * modules/sys_time-tests: Likewise.
35022         * modules/sys_utsname-tests: Likewise.
35023         * modules/sysexits-tests: Likewise.
35024         * modules/time-tests: Likewise.
35025         * modules/trunc-tests: Likewise.
35026         * modules/truncf-tests: Likewise.
35027         * modules/truncl-tests: Likewise.
35028         * modules/tsearch-tests: Likewise.
35029         * modules/unistd-tests: Likewise.
35030         * modules/wchar-tests: Likewise.
35031         * modules/wctype-tests: Likewise.
35032
35033         tests: fix license on several tests
35034         * tests/test-des.c: Update to GPLv3+.
35035         * tests/test-flock.c: Likewise.
35036         * tests/test-fsync.c: Likewise.
35037         * tests/test-futimens.h: Likewise.
35038         * tests/test-gc-arcfour.c: Likewise.
35039         * tests/test-gc-arctwo.c: Likewise.
35040         * tests/test-gc-des.c: Likewise.
35041         * tests/test-gc-hmac-md5.c: Likewise.
35042         * tests/test-gc-hmac-sha1.c: Likewise.
35043         * tests/test-gc-md2.c: Likewise.
35044         * tests/test-gc-md4.c: Likewise.
35045         * tests/test-gc-md5.c: Likewise.
35046         * tests/test-gc-pbkdf2-sha1.c: Likewise.
35047         * tests/test-gc-rijndael.c: Likewise.
35048         * tests/test-gc-sha1.c: Likewise.
35049         * tests/test-gc.c: Likewise.
35050         * tests/test-getcwd.c: Likewise.
35051         * tests/test-link.c: Likewise.
35052         * tests/test-link.h: Likewise.
35053         * tests/test-lutimens.h: Likewise.
35054         * tests/test-md2.c: Likewise.
35055         * tests/test-md4.c: Likewise.
35056         * tests/test-mkdir.h: Likewise.
35057         * tests/test-rename.c: Likewise.
35058         * tests/test-rename.h: Likewise.
35059         * tests/test-safe-alloc.c: Likewise.
35060         * tests/test-utimens-common.h: Likewise.
35061         * tests/test-utimens.h: Likewise.
35062
35063         maint: sync license texts
35064         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
35065         * doc/gpl-3.0.texi: Revert copyright year update.
35066         * doc/lgpl-3.0.texi: Likewise.
35067
35068 2009-12-29  Jim Meyering  <meyering@redhat.com>
35069
35070         update nearly all FSF copyright year lists to include 2009
35071         The files named by the following are exempted:
35072             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
35073               test -f "$dst" && { echo "$dst"; continue; }
35074               test -d "$dst" || continue
35075               echo "$dst"/$(basename "$src")
35076             done > exempt
35077             git ls-files tests/unictype >> exempt
35078         In the remaining files, convert to all-interval notation if
35079         - there is already at least one year interval like 2000-2003
35080         - the file is maintained by me
35081         - the file is in lib/uni*/, where that style already prevails
35082         Otherwise, use update-copyright's default.
35083
35084 2009-12-29  Simon Josefsson  <simon@josefsson.org>
35085         and Eric Blake  <ebb9@byu.net>
35086
35087         tests: don't require debug system() to pass
35088         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
35089         * tests/test-rmdir.h (test_rmdir_func): Likewise.
35090         * tests/test-unlink.h (test_unlink_func): Likewise.
35091         * tests/test-fstatat.c (main): ...into callers.
35092         * tests/test-lstat.c (main): Likewise.
35093         * tests/test-rmdir.c (main): Likewise.
35094         * tests/test-unlink.c (main): Likewise.
35095         * tests/test-unlinkat.c (main): Likewise.
35096         * tests/test-areadlink-with-size.c (main): Don't require a
35097         debug-only system call to pass, aiding cross-testing to mingw.
35098         * tests/test-areadlink.c (main): Likewise.
35099         * tests/test-areadlinkat-with-size.c (main): Likewise.
35100         * tests/test-areadlinkat.c (main): Likewise.
35101         * tests/test-canonicalize-lgpl.c (main): Likewise.
35102         * tests/test-canonicalize.c (main): Likewise.
35103         * tests/test-chown.c (main): Likewise.
35104         * tests/test-fchownat.c (main): Likewise.
35105         * tests/test-lchown.c (main): Likewise.
35106         * tests/test-fdutimensat.c (main): Likewise.
35107         * tests/test-futimens.c (main): Likewise.
35108         * tests/test-link.c (main): Likewise.
35109         * tests/test-linkat.c (main): Likewise.
35110         * tests/test-mkdir.c (main): Likewise.
35111         * tests/test-mkdirat.c (main): Likewise.
35112         * tests/test-mkfifo.c (main): Likewise.
35113         * tests/test-mkfifoat.c (main): Likewise.
35114         * tests/test-mknod.c (main): Likewise.
35115         * tests/test-readlink.c (main): Likewise.
35116         * tests/test-remove.c (main): Likewise.
35117         * tests/test-rename.c (main): Likewise.
35118         * tests/test-renameat.c (main): Likewise.
35119         * tests/test-symlink.c (main): Likewise.
35120         * tests/test-symlinkat.c (main): Likewise.
35121         * tests/test-utimens.c (main): Likewise.
35122         * tests/test-utimensat.c (main): Likewise.
35123
35124 2009-12-29  Simon Josefsson  <simon@josefsson.org>
35125
35126         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
35127         on $(UNUSED_PARAMETER_H) to avoid build failure.
35128
35129 2009-12-28  Jim Meyering  <meyering@redhat.com>
35130
35131         update-copyright: you may specify a max. line length other than 72
35132         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
35133
35134         maint: use consistent FSF copyright line syntax
35135         * lib/posixtm.c: Add missing comma in FSF copyright line.
35136         * lib/posixtm.h: Likewise.
35137         * lib/getugroups.c: Add missing ", Inc.".
35138
35139         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
35140         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
35141         FSF copyright line.  Remove trailing blanks.
35142
35143 2009-12-28  Eric Blake  <ebb9@byu.net>
35144
35145         test-dup2: reduce dependencies
35146         * modules/cloexec (Configure.ac): Set witness.
35147         * modules/dup2-tests (Depends-on): Drop cloexec.
35148         * tests/test-dup2.c (main): Skip portion of test if cloexec module
35149         not present.
35150         Suggested by Bruno Haible.
35151
35152 2009-12-26  Bruno Haible  <bruno@clisp.org>
35153
35154         Remove an unneeded dependency.
35155         * modules/fseterr (Depends-on): Remove dup2.
35156
35157 2009-12-26  Eric Blake  <ebb9@byu.net>
35158
35159         tests: use macros.h in more places
35160         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
35161         (ASSERT_STREAM): Provide default of stderr.
35162         * tests/test-dirent-safer.c: Include macros.h, using alternate
35163         stream for assertions.
35164         * tests/test-dup-safer.c: Likewise.
35165         * tests/test-freopen-safer.c: Likewise.
35166         * tests/test-getopt.c: Likewise.
35167         * tests/test-openat-safer.c: Likewise.
35168         * tests/test-pipe.c: Likewise.
35169         * tests/test-popen-safer.c: Likewise.
35170         * modules/dirent-safer-tests (Files): Include macros.h.
35171         * modules/unistd-safer-tests (Files): Likewise.
35172         * modules/freopen-safer-tests (Files): Likewise.
35173         * modules/getopt-posix-tests (Files): Likewise.
35174         * modules/openat-safer-tests (Files): Likewise.
35175         * modules/pipe-tests (Files): Likewise.
35176
35177 2009-12-26  Bruno Haible  <bruno@clisp.org>
35178
35179         javacomp: Portability fix.
35180         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
35181         that it also works on Solaris.
35182
35183 2009-12-26  Bruno Haible  <bruno@clisp.org>
35184
35185         localename: Fix storage allocation of gl_locale_name_thread's result.
35186         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
35187         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
35188         all platforms that have 'uselocale'.
35189         (gl_locale_name_thread_unsafe): New function, extracted from
35190         gl_locale_name_thread.
35191         (gl_locale_name_thread): Call struniq on all platforms that have
35192         'uselocale'.
35193         * tests/test-localename.c (test_locale_name_thread): Check that the
35194         resulting strings are permanently allocated.
35195         * modules/localename-tests (Depends-on): Add strdup.
35196
35197 2009-12-26  Bruno Haible  <bruno@clisp.org>
35198
35199         * tests/test-localename.c (categories): Fill in the strings.
35200
35201 2009-12-26  Jim Meyering  <meyering@redhat.com>
35202
35203         isdir: complete the removal of m4/isdir.m4
35204         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
35205
35206         isdir: clean up, since at least grep still uses it
35207         * lib/isdir.c: Include "isdir.h".
35208         (S_ISDIR): Remove now-unneeded definition.
35209         * modules/isdir (Files): Add lib/isdir.h.
35210         * lib/isdir.h: New file, with declaration.
35211         * m4/isdir.m4: Remove file -- unneeded.
35212
35213 2009-12-25  Bruno Haible  <bruno@clisp.org>
35214
35215         selinux-h: Make generated .h files standalone.
35216         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
35217         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
35218         * lib/se-selinux.in.h: Likewise.
35219         * modules/selinux-h (Depends-on): Add unused-parameter.
35220         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
35221         selinux/selinux.h and selinux/context.h.
35222         Suggested by Eric Blake.
35223
35224 2009-12-25  Bruno Haible  <bruno@clisp.org>
35225
35226         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
35227         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
35228         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
35229         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
35230         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
35231
35232 2009-12-24  Bruno Haible  <bruno@clisp.org>
35233
35234         openat: Fix warning.
35235         * lib/openat-proc.c: Include <unistd.h>.
35236
35237 2009-12-24  Bruno Haible  <bruno@clisp.org>
35238
35239         New module 'unused-parameter'.
35240         * build-aux/unused-parameter.h: New file, extracted from earlier
35241         gnulib-common.m4.
35242         * modules/unused-parameter: New file.
35243         * lib/unistr.h: Include unused-parameter.h.
35244         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
35245         _GL_UNUSED.
35246         * modules/unistr/base (Depends-on): Add unused-parameter.
35247
35248 2009-12-24  Bruno Haible  <bruno@clisp.org>
35249
35250         Add missing dependencies to 'extensions' module.
35251         * m4/extensions.m4: Add comment.
35252         * modules/accept4 (Depends-on): Add extensions.
35253         * modules/dup3 (Depends-on): Likewise.
35254         * modules/fcntl (Depends-on): Likewise.
35255         * modules/futimens (Depends-on): Likewise.
35256         * modules/mknod (Depends-on): Likewise.
35257         * modules/pipe2 (Depends-on): Likewise.
35258         * modules/stat-time (Depends-on): Likewise.
35259         * modules/strcasestr-simple (Depends-on): Likewise.
35260         * modules/strsignal (Depends-on): Likewise.
35261         * modules/utimensat (Depends-on): Likewise.
35262         * modules/localcharset (Depends-on): Likewise. Needed because of
35263         gl_FCNTL_O_FLAGS.
35264         * modules/wcrtomb (Depends-on): Likewise. Needed because of
35265         AC_TYPE_MBSTATE_T.
35266         * modules/wcsnrtombs (Depends-on): Likewise.
35267         * modules/wcsrtombs (Depends-on): Likewise.
35268
35269 2009-12-24  Bruno Haible  <bruno@clisp.org>
35270
35271         binary-io: Avoid gcc warning due to SET_BINARY.
35272         * lib/binary-io.h (SET_BINARY): Cast the result to void.
35273         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
35274
35275 2009-12-24  Bruno Haible  <bruno@clisp.org>
35276
35277         Avoid future namespace pollution on glibc systems.
35278         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
35279         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
35280         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
35281         glibc systems.
35282
35283 2009-12-24  Bruno Haible  <bruno@clisp.org>
35284
35285         Refactor common macros used in tests.
35286         * tests/macros.h: New file.
35287         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
35288         and/or <stdlib.h>, if appropriate.
35289         (ASSERT, SIZEOF): Remove macros.
35290         * tests/test-areadlink-with-size.c: Likewise.
35291         * tests/test-areadlinkat.c: Likewise.
35292         * tests/test-areadlinkat-with-size.c: Likewise.
35293         * tests/test-argmatch.c: Likewise.
35294         * tests/test-argv-iter.c: Likewise.
35295         * tests/test-array-mergesort.c: Likewise.
35296         * tests/test-array_list.c: Likewise.
35297         * tests/test-array_oset.c: Likewise.
35298         * tests/test-avltree_list.c: Likewise.
35299         * tests/test-avltree_oset.c: Likewise.
35300         * tests/test-avltreehash_list.c: Likewise.
35301         * tests/test-base64.c: Likewise.
35302         * tests/test-binary-io.c: Likewise.
35303         * tests/test-bitrotate.c: Likewise.
35304         * tests/test-btowc.c: Likewise.
35305         * tests/test-byteswap.c: Likewise.
35306         * tests/test-c-ctype.c: Likewise.
35307         * tests/test-c-stack.c: Likewise.
35308         * tests/test-c-strcasecmp.c: Likewise.
35309         * tests/test-c-strcasestr.c: Likewise.
35310         * tests/test-c-strncasecmp.c: Likewise.
35311         * tests/test-c-strstr.c: Likewise.
35312         * tests/test-canonicalize-lgpl.c: Likewise.
35313         * tests/test-canonicalize.c: Likewise.
35314         * tests/test-carray_list.c: Likewise.
35315         * tests/test-ceilf1.c: Likewise.
35316         * tests/test-ceilf2.c: Likewise.
35317         * tests/test-ceill.c: Likewise.
35318         * tests/test-chown.c: Likewise.
35319         * tests/test-cloexec.c: Likewise.
35320         * tests/test-copy-acl.c: Likewise.
35321         * tests/test-copy-file.c: Likewise.
35322         * tests/test-count-one-bits.c: Likewise.
35323         * tests/test-dprintf-posix.c: Likewise.
35324         * tests/test-dup2.c: Likewise.
35325         * tests/test-dup3.c: Likewise.
35326         * tests/test-duplocale.c: Likewise.
35327         * tests/test-fbufmode.c: Likewise.
35328         * tests/test-fchdir.c: Likewise.
35329         * tests/test-fchownat.c: Likewise.
35330         * tests/test-fcntl-safer.c: Likewise.
35331         * tests/test-fcntl.c: Likewise.
35332         * tests/test-fdopendir.c: Likewise.
35333         * tests/test-fdutimensat.c: Likewise.
35334         * tests/test-fflush2.c: Likewise.
35335         * tests/test-file-has-acl.c: Likewise.
35336         * tests/test-filevercmp.c: Likewise.
35337         * tests/test-flock.c: Likewise.
35338         * tests/test-floorf1.c: Likewise.
35339         * tests/test-floorf2.c: Likewise.
35340         * tests/test-floorl.c: Likewise.
35341         * tests/test-fnmatch.c: Likewise.
35342         * tests/test-fopen.h: Likewise.
35343         * tests/test-fpending.c: Likewise.
35344         * tests/test-fprintf-posix.c: Likewise.
35345         * tests/test-fpurge.c: Likewise.
35346         * tests/test-freadable.c: Likewise.
35347         * tests/test-freadahead.c: Likewise.
35348         * tests/test-freading.c: Likewise.
35349         * tests/test-freadptr.c: Likewise.
35350         * tests/test-freadptr2.c: Likewise.
35351         * tests/test-freadseek.c: Likewise.
35352         * tests/test-freopen.c: Likewise.
35353         * tests/test-frexp.c: Likewise.
35354         * tests/test-frexpl.c: Likewise.
35355         * tests/test-fseek.c: Likewise.
35356         * tests/test-fseeko.c: Likewise.
35357         * tests/test-fstatat.c: Likewise.
35358         * tests/test-fstrcmp.c: Likewise.
35359         * tests/test-fsync.c: Likewise.
35360         * tests/test-ftell.c: Likewise.
35361         * tests/test-ftello.c: Likewise.
35362         * tests/test-func.c: Likewise.
35363         * tests/test-futimens.c: Likewise.
35364         * tests/test-fwritable.c: Likewise.
35365         * tests/test-fwriting.c: Likewise.
35366         * tests/test-getcwd.c: Likewise.
35367         * tests/test-getdate.c: Likewise.
35368         * tests/test-getdelim.c: Likewise.
35369         * tests/test-getdtablesize.c: Likewise.
35370         * tests/test-getgroups.c: Likewise.
35371         * tests/test-getline.c: Likewise.
35372         * tests/test-getndelim2.c: Likewise.
35373         * tests/test-glob.c: Likewise.
35374         * tests/test-hash.c: Likewise.
35375         * tests/test-i-ring.c: Likewise.
35376         * tests/test-iconv-utf.c: Likewise.
35377         * tests/test-iconv.c: Likewise.
35378         * tests/test-idpriv-drop.c: Likewise.
35379         * tests/test-idpriv-droptemp.c: Likewise.
35380         * tests/test-inet_ntop.c: Likewise.
35381         * tests/test-inet_pton.c: Likewise.
35382         * tests/test-isblank.c: Likewise.
35383         * tests/test-isfinite.c: Likewise.
35384         * tests/test-isinf.c: Likewise.
35385         * tests/test-isnan.c: Likewise.
35386         * tests/test-isnand.h: Likewise.
35387         * tests/test-isnanf.h: Likewise.
35388         * tests/test-isnanl.h: Likewise.
35389         * tests/test-lchown.c: Likewise.
35390         * tests/test-ldexpl.c: Likewise.
35391         * tests/test-link.c: Likewise.
35392         * tests/test-linkat.c: Likewise.
35393         * tests/test-linked_list.c: Likewise.
35394         * tests/test-linkedhash_list.c: Likewise.
35395         * tests/test-localename.c: Likewise.
35396         * tests/test-lseek.c: Likewise.
35397         * tests/test-lstat.c: Likewise.
35398         * tests/test-mbmemcasecmp.c: Likewise.
35399         * tests/test-mbmemcasecoll.c: Likewise.
35400         * tests/test-mbrtowc.c: Likewise.
35401         * tests/test-mbscasecmp.c: Likewise.
35402         * tests/test-mbscasestr1.c: Likewise.
35403         * tests/test-mbscasestr2.c: Likewise.
35404         * tests/test-mbscasestr3.c: Likewise.
35405         * tests/test-mbscasestr4.c: Likewise.
35406         * tests/test-mbschr.c: Likewise.
35407         * tests/test-mbscspn.c: Likewise.
35408         * tests/test-mbsinit.c: Likewise.
35409         * tests/test-mbsncasecmp.c: Likewise.
35410         * tests/test-mbsnrtowcs.c: Likewise.
35411         * tests/test-mbspbrk.c: Likewise.
35412         * tests/test-mbspcasecmp.c: Likewise.
35413         * tests/test-mbsrchr.c: Likewise.
35414         * tests/test-mbsrtowcs.c: Likewise.
35415         * tests/test-mbsspn.c: Likewise.
35416         * tests/test-mbsstr1.c: Likewise.
35417         * tests/test-mbsstr2.c: Likewise.
35418         * tests/test-mbsstr3.c: Likewise.
35419         * tests/test-memchr.c: Likewise.
35420         * tests/test-memchr2.c: Likewise.
35421         * tests/test-memcmp.c: Likewise.
35422         * tests/test-memmem.c: Likewise.
35423         * tests/test-memrchr.c: Likewise.
35424         * tests/test-mkdir.c: Likewise.
35425         * tests/test-mkdirat.c: Likewise.
35426         * tests/test-mkfifo.c: Likewise.
35427         * tests/test-mkfifoat.c: Likewise.
35428         * tests/test-mknod.c: Likewise.
35429         * tests/test-nanosleep.c: Likewise.
35430         * tests/test-nl_langinfo.c: Likewise.
35431         * tests/test-obstack-printf.c: Likewise.
35432         * tests/test-open.c: Likewise.
35433         * tests/test-openat.c: Likewise.
35434         * tests/test-pipe-filter-gi1.c: Likewise.
35435         * tests/test-pipe-filter-gi2-main.c: Likewise.
35436         * tests/test-pipe-filter-ii1.c: Likewise.
35437         * tests/test-pipe-filter-ii2-main.c: Likewise.
35438         * tests/test-pipe2.c: Likewise.
35439         * tests/test-popen.h: Likewise.
35440         * tests/test-posixtm.c: Likewise.
35441         * tests/test-pread.c: Likewise.
35442         * tests/test-printf-frexp.c: Likewise.
35443         * tests/test-printf-frexpl.c: Likewise.
35444         * tests/test-printf-posix.c: Likewise.
35445         * tests/test-priv-set.c: Likewise.
35446         * tests/test-quotearg.c: Likewise.
35447         * tests/test-random_r.c: Likewise.
35448         * tests/test-rawmemchr.c: Likewise.
35449         * tests/test-rbtree_list.c: Likewise.
35450         * tests/test-rbtree_oset.c: Likewise.
35451         * tests/test-rbtreehash_list.c: Likewise.
35452         * tests/test-readlink.c: Likewise.
35453         * tests/test-remove.c: Likewise.
35454         * tests/test-rename.c: Likewise.
35455         * tests/test-renameat.c: Likewise.
35456         * tests/test-rmdir.c: Likewise.
35457         * tests/test-round1.c: Likewise.
35458         * tests/test-roundf1.c: Likewise.
35459         * tests/test-roundl.c: Likewise.
35460         * tests/test-safe-alloc.c: Likewise.
35461         * tests/test-sameacls.c: Likewise.
35462         * tests/test-set-mode-acl.c: Likewise.
35463         * tests/test-setenv.c: Likewise.
35464         * tests/test-sigaction.c: Likewise.
35465         * tests/test-signbit.c: Likewise.
35466         * tests/test-sleep.c: Likewise.
35467         * tests/test-snprintf-posix.c: Likewise.
35468         * tests/test-snprintf.c: Likewise.
35469         * tests/test-sprintf-posix.c: Likewise.
35470         * tests/test-stat-time.c: Likewise.
35471         * tests/test-stat.c: Likewise.
35472         * tests/test-strcasestr.c: Likewise.
35473         * tests/test-strchrnul.c: Likewise.
35474         * tests/test-strerror.c: Likewise.
35475         * tests/test-striconv.c: Likewise.
35476         * tests/test-striconveh.c: Likewise.
35477         * tests/test-striconveha.c: Likewise.
35478         * tests/test-strsignal.c: Likewise.
35479         * tests/test-strstr.c: Likewise.
35480         * tests/test-strtod.c: Likewise.
35481         * tests/test-strverscmp.c: Likewise.
35482         * tests/test-symlink.c: Likewise.
35483         * tests/test-symlinkat.c: Likewise.
35484         * tests/test-trunc1.c: Likewise.
35485         * tests/test-trunc2.c: Likewise.
35486         * tests/test-truncf1.c: Likewise.
35487         * tests/test-truncf2.c: Likewise.
35488         * tests/test-truncl.c: Likewise.
35489         * tests/test-uname.c: Likewise.
35490         * tests/test-unlink.c: Likewise.
35491         * tests/test-unlinkat.c: Likewise.
35492         * tests/test-unsetenv.c: Likewise.
35493         * tests/test-usleep.c: Likewise.
35494         * tests/test-utimens.c: Likewise.
35495         * tests/test-utimensat.c: Likewise.
35496         * tests/test-vasnprintf-posix.c: Likewise.
35497         * tests/test-vasnprintf-posix2.c: Likewise.
35498         * tests/test-vasnprintf.c: Likewise.
35499         * tests/test-vasprintf-posix.c: Likewise.
35500         * tests/test-vasprintf.c: Likewise.
35501         * tests/test-vdprintf-posix.c: Likewise.
35502         * tests/test-vfprintf-posix.c: Likewise.
35503         * tests/test-vprintf-posix.c: Likewise.
35504         * tests/test-vsnprintf-posix.c: Likewise.
35505         * tests/test-vsnprintf.c: Likewise.
35506         * tests/test-vsprintf-posix.c: Likewise.
35507         * tests/test-wcrtomb.c: Likewise.
35508         * tests/test-wcsnrtombs.c: Likewise.
35509         * tests/test-wcsrtombs.c: Likewise.
35510         * tests/test-wctype.c: Likewise.
35511         * tests/test-wcwidth.c: Likewise.
35512         * tests/test-xfprintf-posix.c: Likewise.
35513         * tests/test-xmemdup0.c: Likewise.
35514         * tests/test-xprintf-posix.c: Likewise.
35515         * tests/test-xvasprintf.c: Likewise.
35516         * tests/unicase/test-locale-language.c: Likewise.
35517         * tests/unicase/test-mapping-part1.h: Likewise.
35518         * tests/unicase/test-predicate-part1.h: Likewise.
35519         * tests/unicase/test-u8-casecmp.c: Likewise.
35520         * tests/unicase/test-u8-casecoll.c: Likewise.
35521         * tests/unicase/test-u8-casefold.c: Likewise.
35522         * tests/unicase/test-u8-is-cased.c: Likewise.
35523         * tests/unicase/test-u8-is-casefolded.c: Likewise.
35524         * tests/unicase/test-u8-is-lowercase.c: Likewise.
35525         * tests/unicase/test-u8-is-titlecase.c: Likewise.
35526         * tests/unicase/test-u8-is-uppercase.c: Likewise.
35527         * tests/unicase/test-u8-tolower.c: Likewise.
35528         * tests/unicase/test-u8-totitle.c: Likewise.
35529         * tests/unicase/test-u8-toupper.c: Likewise.
35530         * tests/unicase/test-u16-casecmp.c: Likewise.
35531         * tests/unicase/test-u16-casecoll.c: Likewise.
35532         * tests/unicase/test-u16-casefold.c: Likewise.
35533         * tests/unicase/test-u16-is-cased.c: Likewise.
35534         * tests/unicase/test-u16-is-casefolded.c: Likewise.
35535         * tests/unicase/test-u16-is-lowercase.c: Likewise.
35536         * tests/unicase/test-u16-is-titlecase.c: Likewise.
35537         * tests/unicase/test-u16-is-uppercase.c: Likewise.
35538         * tests/unicase/test-u16-tolower.c: Likewise.
35539         * tests/unicase/test-u16-totitle.c: Likewise.
35540         * tests/unicase/test-u16-toupper.c: Likewise.
35541         * tests/unicase/test-u32-casecmp.c: Likewise.
35542         * tests/unicase/test-u32-casecoll.c: Likewise.
35543         * tests/unicase/test-u32-casefold.c: Likewise.
35544         * tests/unicase/test-u32-is-cased.c: Likewise.
35545         * tests/unicase/test-u32-is-casefolded.c: Likewise.
35546         * tests/unicase/test-u32-is-lowercase.c: Likewise.
35547         * tests/unicase/test-u32-is-titlecase.c: Likewise.
35548         * tests/unicase/test-u32-is-uppercase.c: Likewise.
35549         * tests/unicase/test-u32-tolower.c: Likewise.
35550         * tests/unicase/test-u32-totitle.c: Likewise.
35551         * tests/unicase/test-u32-toupper.c: Likewise.
35552         * tests/unicase/test-ulc-casecmp.c: Likewise.
35553         * tests/unicase/test-ulc-casecoll.c: Likewise.
35554         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
35555         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
35556         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
35557         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
35558         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
35559         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
35560         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
35561         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
35562         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
35563         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
35564         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
35565         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
35566         * tests/unictype/test-bidi_byname.c: Likewise.
35567         * tests/unictype/test-bidi_name.c: Likewise.
35568         * tests/unictype/test-bidi_of.c: Likewise.
35569         * tests/unictype/test-bidi_test.c: Likewise.
35570         * tests/unictype/test-block_list.c: Likewise.
35571         * tests/unictype/test-block_of.c: Likewise.
35572         * tests/unictype/test-block_test.c: Likewise.
35573         * tests/unictype/test-categ_and.c: Likewise.
35574         * tests/unictype/test-categ_and_not.c: Likewise.
35575         * tests/unictype/test-categ_byname.c: Likewise.
35576         * tests/unictype/test-categ_name.c: Likewise.
35577         * tests/unictype/test-categ_none.c: Likewise.
35578         * tests/unictype/test-categ_of.c: Likewise.
35579         * tests/unictype/test-categ_or.c: Likewise.
35580         * tests/unictype/test-categ_test_withtable.c: Likewise.
35581         * tests/unictype/test-combining.c: Likewise.
35582         * tests/unictype/test-decdigit.c: Likewise.
35583         * tests/unictype/test-digit.c: Likewise.
35584         * tests/unictype/test-mirror.c: Likewise.
35585         * tests/unictype/test-numeric.c: Likewise.
35586         * tests/unictype/test-pr_byname.c: Likewise.
35587         * tests/unictype/test-pr_test.c: Likewise.
35588         * tests/unictype/test-predicate-part1.h: Likewise.
35589         * tests/unictype/test-scripts.c: Likewise.
35590         * tests/unictype/test-sy_c_ident.c: Likewise.
35591         * tests/unictype/test-sy_java_ident.c: Likewise.
35592         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
35593         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
35594         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
35595         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
35596         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
35597         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
35598         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
35599         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
35600         * tests/uninorm/test-canonical-decomposition.c: Likewise.
35601         * tests/uninorm/test-compat-decomposition.c: Likewise.
35602         * tests/uninorm/test-composition.c: Likewise.
35603         * tests/uninorm/test-decomposing-form.c: Likewise.
35604         * tests/uninorm/test-decomposition.c: Likewise.
35605         * tests/uninorm/test-u8-nfc.c: Likewise.
35606         * tests/uninorm/test-u8-nfd.c: Likewise.
35607         * tests/uninorm/test-u8-nfkc.c: Likewise.
35608         * tests/uninorm/test-u8-nfkd.c: Likewise.
35609         * tests/uninorm/test-u8-normcmp.c: Likewise.
35610         * tests/uninorm/test-u8-normcoll.c: Likewise.
35611         * tests/uninorm/test-u16-nfc.c: Likewise.
35612         * tests/uninorm/test-u16-nfd.c: Likewise.
35613         * tests/uninorm/test-u16-nfkc.c: Likewise.
35614         * tests/uninorm/test-u16-nfkd.c: Likewise.
35615         * tests/uninorm/test-u16-normcmp.c: Likewise.
35616         * tests/uninorm/test-u16-normcoll.c: Likewise.
35617         * tests/uninorm/test-u32-nfc.c: Likewise.
35618         * tests/uninorm/test-u32-nfd.c: Likewise.
35619         * tests/uninorm/test-u32-nfkc.c: Likewise.
35620         * tests/uninorm/test-u32-nfkd.c: Likewise.
35621         * tests/uninorm/test-u32-normalize-big.c: Likewise.
35622         * tests/uninorm/test-u32-normcmp.c: Likewise.
35623         * tests/uninorm/test-u32-normcoll.c: Likewise.
35624         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
35625         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
35626         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
35627         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
35628         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
35629         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
35630         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
35631         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
35632         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
35633         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
35634         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
35635         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
35636         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
35637         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
35638         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
35639         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
35640         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
35641         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
35642         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
35643         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
35644         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
35645         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
35646         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
35647         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
35648         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
35649         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
35650         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
35651         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
35652         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
35653         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
35654         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
35655         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
35656         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
35657         * tests/uniwidth/test-u8-strwidth.c: Likewise.
35658         * tests/uniwidth/test-u8-width.c: Likewise.
35659         * tests/uniwidth/test-u16-strwidth.c: Likewise.
35660         * tests/uniwidth/test-u16-width.c: Likewise.
35661         * tests/uniwidth/test-u32-strwidth.c: Likewise.
35662         * tests/uniwidth/test-u32-width.c: Likewise.
35663         * tests/uniwidth/test-uc_width.c: Likewise.
35664         * tests/uniwidth/test-uc_width2.c: Likewise.
35665         * modules/acl-tests (Files): Add tests/macros.h.
35666         * modules/areadlink-tests (Files): Likewise.
35667         * modules/areadlink-with-size-tests (Files): Likewise.
35668         * modules/areadlinkat-tests (Files): Likewise.
35669         * modules/areadlinkat-with-size-tests (Files): Likewise.
35670         * modules/argmatch-tests (Files): Likewise.
35671         * modules/argv-iter-tests (Files): Likewise.
35672         * modules/array-list-tests (Files): Likewise.
35673         * modules/array-mergesort-tests (Files): Likewise.
35674         * modules/array-oset-tests (Files): Likewise.
35675         * modules/avltree-list-tests (Files): Likewise.
35676         * modules/avltree-oset-tests (Files): Likewise.
35677         * modules/avltreehash-list-tests (Files): Likewise.
35678         * modules/base64-tests (Files): Likewise.
35679         * modules/binary-io-tests (Files): Likewise.
35680         * modules/bitrotate-tests (Files): Likewise.
35681         * modules/btowc-tests (Files): Likewise.
35682         * modules/byteswap-tests (Files): Likewise.
35683         * modules/c-ctype-tests (Files): Likewise.
35684         * modules/c-stack-tests (Files): Likewise.
35685         * modules/c-strcase-tests (Files): Likewise.
35686         * modules/c-strcasestr-tests (Files): Likewise.
35687         * modules/c-strstr-tests (Files): Likewise.
35688         * modules/canonicalize-lgpl-tests (Files): Likewise.
35689         * modules/canonicalize-tests (Files): Likewise.
35690         * modules/carray-list-tests (Files): Likewise.
35691         * modules/ceilf-tests (Files): Likewise.
35692         * modules/ceill-tests (Files): Likewise.
35693         * modules/chown-tests (Files): Likewise.
35694         * modules/cloexec-tests (Files): Likewise.
35695         * modules/copy-file-tests (Files): Likewise.
35696         * modules/count-one-bits-tests (Files): Likewise.
35697         * modules/dprintf-posix-tests (Files): Likewise.
35698         * modules/dup2-tests (Files): Likewise.
35699         * modules/dup3-tests (Files): Likewise.
35700         * modules/duplocale-tests (Files): Likewise.
35701         * modules/fbufmode-tests (Files): Likewise.
35702         * modules/fchdir-tests (Files): Likewise.
35703         * modules/fcntl-safer-tests (Files): Likewise.
35704         * modules/fcntl-tests (Files): Likewise.
35705         * modules/fdopendir-tests (Files): Likewise.
35706         * modules/fdutimensat-tests (Files): Likewise.
35707         * modules/fflush-tests (Files): Likewise.
35708         * modules/filevercmp-tests (Files): Likewise.
35709         * modules/flock-tests (Files): Likewise.
35710         * modules/floorf-tests (Files): Likewise.
35711         * modules/floorl-tests (Files): Likewise.
35712         * modules/fnmatch-tests (Files): Likewise.
35713         * modules/fopen-safer-tests (Files): Likewise.
35714         * modules/fopen-tests (Files): Likewise.
35715         * modules/fpending-tests (Files): Likewise.
35716         * modules/fprintf-posix-tests (Files): Likewise.
35717         * modules/fpurge-tests (Files): Likewise.
35718         * modules/freadable-tests (Files): Likewise.
35719         * modules/freadahead-tests (Files): Likewise.
35720         * modules/freading-tests (Files): Likewise.
35721         * modules/freadptr-tests (Files): Likewise.
35722         * modules/freadseek-tests (Files): Likewise.
35723         * modules/freopen-tests (Files): Likewise.
35724         * modules/frexp-nolibm-tests (Files): Likewise.
35725         * modules/frexp-tests (Files): Likewise.
35726         * modules/frexpl-nolibm-tests (Files): Likewise.
35727         * modules/frexpl-tests (Files): Likewise.
35728         * modules/fseek-tests (Files): Likewise.
35729         * modules/fseeko-tests (Files): Likewise.
35730         * modules/fstrcmp-tests (Files): Likewise.
35731         * modules/fsync-tests (Files): Likewise.
35732         * modules/ftell-tests (Files): Likewise.
35733         * modules/ftello-tests (Files): Likewise.
35734         * modules/func-tests (Files): Likewise.
35735         * modules/futimens-tests (Files): Likewise.
35736         * modules/fwritable-tests (Files): Likewise.
35737         * modules/fwriting-tests (Files): Likewise.
35738         * modules/getcwd-tests (Files): Likewise.
35739         * modules/getdate-tests (Files): Likewise.
35740         * modules/getdelim-tests (Files): Likewise.
35741         * modules/getdtablesize-tests (Files): Likewise.
35742         * modules/getgroups-tests (Files): Likewise.
35743         * modules/getline-tests (Files): Likewise.
35744         * modules/getndelim2-tests (Files): Likewise.
35745         * modules/glob-tests (Files): Likewise.
35746         * modules/hash-tests (Files): Likewise.
35747         * modules/i-ring-tests (Files): Likewise.
35748         * modules/iconv-tests (Files): Likewise.
35749         * modules/iconv_open-utf-tests (Files): Likewise.
35750         * modules/idpriv-drop-tests (Files): Likewise.
35751         * modules/idpriv-droptemp-tests (Files): Likewise.
35752         * modules/inet_ntop-tests (Files): Likewise.
35753         * modules/inet_pton-tests (Files): Likewise.
35754         * modules/isblank-tests (Files): Likewise.
35755         * modules/isfinite-tests (Files): Likewise.
35756         * modules/isinf-tests (Files): Likewise.
35757         * modules/isnan-tests (Files): Likewise.
35758         * modules/isnand-nolibm-tests (Files): Likewise.
35759         * modules/isnand-tests (Files): Likewise.
35760         * modules/isnanf-nolibm-tests (Files): Likewise.
35761         * modules/isnanf-tests (Files): Likewise.
35762         * modules/isnanl-nolibm-tests (Files): Likewise.
35763         * modules/isnanl-tests (Files): Likewise.
35764         * modules/lchown-tests (Files): Likewise.
35765         * modules/ldexpl-tests (Files): Likewise.
35766         * modules/link-tests (Files): Likewise.
35767         * modules/linkat-tests (Files): Likewise.
35768         * modules/linked-list-tests (Files): Likewise.
35769         * modules/linkedhash-list-tests (Files): Likewise.
35770         * modules/localename-tests (Files): Likewise.
35771         * modules/lseek-tests (Files): Likewise.
35772         * modules/lstat-tests (Files): Likewise.
35773         * modules/mbmemcasecmp-tests (Files): Likewise.
35774         * modules/mbmemcasecoll-tests (Files): Likewise.
35775         * modules/mbrtowc-tests (Files): Likewise.
35776         * modules/mbscasecmp-tests (Files): Likewise.
35777         * modules/mbscasestr-tests (Files): Likewise.
35778         * modules/mbschr-tests (Files): Likewise.
35779         * modules/mbscspn-tests (Files): Likewise.
35780         * modules/mbsinit-tests (Files): Likewise.
35781         * modules/mbsncasecmp-tests (Files): Likewise.
35782         * modules/mbsnrtowcs-tests (Files): Likewise.
35783         * modules/mbspbrk-tests (Files): Likewise.
35784         * modules/mbspcasecmp-tests (Files): Likewise.
35785         * modules/mbsrchr-tests (Files): Likewise.
35786         * modules/mbsrtowcs-tests (Files): Likewise.
35787         * modules/mbsspn-tests (Files): Likewise.
35788         * modules/mbsstr-tests (Files): Likewise.
35789         * modules/memchr-tests (Files): Likewise.
35790         * modules/memchr2-tests (Files): Likewise.
35791         * modules/memcmp-tests (Files): Likewise.
35792         * modules/memmem-tests (Files): Likewise.
35793         * modules/memrchr-tests (Files): Likewise.
35794         * modules/mkdir-tests (Files): Likewise.
35795         * modules/mkfifo-tests (Files): Likewise.
35796         * modules/mkfifoat-tests (Files): Likewise.
35797         * modules/mknod-tests (Files): Likewise.
35798         * modules/nanosleep-tests (Files): Likewise.
35799         * modules/nl_langinfo-tests (Files): Likewise.
35800         * modules/obstack-printf-tests (Files): Likewise.
35801         * modules/open-tests (Files): Likewise.
35802         * modules/openat-tests (Files): Likewise.
35803         * modules/pipe-filter-gi-tests (Files): Likewise.
35804         * modules/pipe-filter-ii-tests (Files): Likewise.
35805         * modules/pipe2-tests (Files): Likewise.
35806         * modules/popen-safer-tests (Files): Likewise.
35807         * modules/popen-tests (Files): Likewise.
35808         * modules/posixtm-tests (Files): Likewise.
35809         * modules/pread-tests (Files): Likewise.
35810         * modules/printf-frexp-tests (Files): Likewise.
35811         * modules/printf-frexpl-tests (Files): Likewise.
35812         * modules/printf-posix-tests (Files): Likewise.
35813         * modules/priv-set-tests (Files): Likewise.
35814         * modules/quotearg-tests (Files): Likewise.
35815         * modules/random_r-tests (Files): Likewise.
35816         * modules/rawmemchr-tests (Files): Likewise.
35817         * modules/rbtree-list-tests (Files): Likewise.
35818         * modules/rbtree-oset-tests (Files): Likewise.
35819         * modules/rbtreehash-list-tests (Files): Likewise.
35820         * modules/readlink-tests (Files): Likewise.
35821         * modules/remove-tests (Files): Likewise.
35822         * modules/rename-tests (Files): Likewise.
35823         * modules/renameat-tests (Files): Likewise.
35824         * modules/rmdir-tests (Files): Likewise.
35825         * modules/round-tests (Files): Likewise.
35826         * modules/roundf-tests (Files): Likewise.
35827         * modules/roundl-tests (Files): Likewise.
35828         * modules/safe-alloc-tests (Files): Likewise.
35829         * modules/setenv-tests (Files): Likewise.
35830         * modules/sigaction-tests (Files): Likewise.
35831         * modules/signbit-tests (Files): Likewise.
35832         * modules/sleep-tests (Files): Likewise.
35833         * modules/snprintf-posix-tests (Files): Likewise.
35834         * modules/snprintf-tests (Files): Likewise.
35835         * modules/sprintf-posix-tests (Files): Likewise.
35836         * modules/stat-tests (Files): Likewise.
35837         * modules/stat-time-tests (Files): Likewise.
35838         * modules/strcasestr-tests (Files): Likewise.
35839         * modules/strchrnul-tests (Files): Likewise.
35840         * modules/strerror-tests (Files): Likewise.
35841         * modules/striconv-tests (Files): Likewise.
35842         * modules/striconveh-tests (Files): Likewise.
35843         * modules/striconveha-tests (Files): Likewise.
35844         * modules/strsignal-tests (Files): Likewise.
35845         * modules/strstr-tests (Files): Likewise.
35846         * modules/strtod-tests (Files): Likewise.
35847         * modules/strverscmp-tests (Files): Likewise.
35848         * modules/symlink-tests (Files): Likewise.
35849         * modules/symlinkat-tests (Files): Likewise.
35850         * modules/trunc-tests (Files): Likewise.
35851         * modules/truncf-tests (Files): Likewise.
35852         * modules/truncl-tests (Files): Likewise.
35853         * modules/uname-tests (Files): Likewise.
35854         * modules/unicase/cased-tests (Files): Likewise.
35855         * modules/unicase/ignorable-tests (Files): Likewise.
35856         * modules/unicase/locale-language-tests (Files): Likewise.
35857         * modules/unicase/tolower-tests (Files): Likewise.
35858         * modules/unicase/totitle-tests (Files): Likewise.
35859         * modules/unicase/toupper-tests (Files): Likewise.
35860         * modules/unicase/u8-casecmp-tests (Files): Likewise.
35861         * modules/unicase/u8-casecoll-tests (Files): Likewise.
35862         * modules/unicase/u8-casefold-tests (Files): Likewise.
35863         * modules/unicase/u8-is-cased-tests (Files): Likewise.
35864         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
35865         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
35866         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
35867         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
35868         * modules/unicase/u8-tolower-tests (Files): Likewise.
35869         * modules/unicase/u8-totitle-tests (Files): Likewise.
35870         * modules/unicase/u8-toupper-tests (Files): Likewise.
35871         * modules/unicase/u16-casecmp-tests (Files): Likewise.
35872         * modules/unicase/u16-casecoll-tests (Files): Likewise.
35873         * modules/unicase/u16-casefold-tests (Files): Likewise.
35874         * modules/unicase/u16-is-cased-tests (Files): Likewise.
35875         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
35876         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
35877         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
35878         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
35879         * modules/unicase/u16-tolower-tests (Files): Likewise.
35880         * modules/unicase/u16-totitle-tests (Files): Likewise.
35881         * modules/unicase/u16-toupper-tests (Files): Likewise.
35882         * modules/unicase/u32-casecmp-tests (Files): Likewise.
35883         * modules/unicase/u32-casecoll-tests (Files): Likewise.
35884         * modules/unicase/u32-casefold-tests (Files): Likewise.
35885         * modules/unicase/u32-is-cased-tests (Files): Likewise.
35886         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
35887         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
35888         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
35889         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
35890         * modules/unicase/u32-tolower-tests (Files): Likewise.
35891         * modules/unicase/u32-totitle-tests (Files): Likewise.
35892         * modules/unicase/u32-toupper-tests (Files): Likewise.
35893         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
35894         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
35895         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
35896         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
35897         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
35898         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
35899         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
35900         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
35901         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
35902         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
35903         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
35904         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
35905         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
35906         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
35907         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
35908         * modules/unictype/bidicategory-name-tests (Files): Likewise.
35909         * modules/unictype/bidicategory-of-tests (Files): Likewise.
35910         * modules/unictype/bidicategory-test-tests (Files): Likewise.
35911         * modules/unictype/block-list-tests (Files): Likewise.
35912         * modules/unictype/block-of-tests (Files): Likewise.
35913         * modules/unictype/block-test-tests (Files): Likewise.
35914         * modules/unictype/category-C-tests (Files): Likewise.
35915         * modules/unictype/category-Cc-tests (Files): Likewise.
35916         * modules/unictype/category-Cf-tests (Files): Likewise.
35917         * modules/unictype/category-Cn-tests (Files): Likewise.
35918         * modules/unictype/category-Co-tests (Files): Likewise.
35919         * modules/unictype/category-Cs-tests (Files): Likewise.
35920         * modules/unictype/category-L-tests (Files): Likewise.
35921         * modules/unictype/category-Ll-tests (Files): Likewise.
35922         * modules/unictype/category-Lm-tests (Files): Likewise.
35923         * modules/unictype/category-Lo-tests (Files): Likewise.
35924         * modules/unictype/category-Lt-tests (Files): Likewise.
35925         * modules/unictype/category-Lu-tests (Files): Likewise.
35926         * modules/unictype/category-M-tests (Files): Likewise.
35927         * modules/unictype/category-Mc-tests (Files): Likewise.
35928         * modules/unictype/category-Me-tests (Files): Likewise.
35929         * modules/unictype/category-Mn-tests (Files): Likewise.
35930         * modules/unictype/category-N-tests (Files): Likewise.
35931         * modules/unictype/category-Nd-tests (Files): Likewise.
35932         * modules/unictype/category-Nl-tests (Files): Likewise.
35933         * modules/unictype/category-No-tests (Files): Likewise.
35934         * modules/unictype/category-P-tests (Files): Likewise.
35935         * modules/unictype/category-Pc-tests (Files): Likewise.
35936         * modules/unictype/category-Pd-tests (Files): Likewise.
35937         * modules/unictype/category-Pe-tests (Files): Likewise.
35938         * modules/unictype/category-Pf-tests (Files): Likewise.
35939         * modules/unictype/category-Pi-tests (Files): Likewise.
35940         * modules/unictype/category-Po-tests (Files): Likewise.
35941         * modules/unictype/category-Ps-tests (Files): Likewise.
35942         * modules/unictype/category-S-tests (Files): Likewise.
35943         * modules/unictype/category-Sc-tests (Files): Likewise.
35944         * modules/unictype/category-Sk-tests (Files): Likewise.
35945         * modules/unictype/category-Sm-tests (Files): Likewise.
35946         * modules/unictype/category-So-tests (Files): Likewise.
35947         * modules/unictype/category-Z-tests (Files): Likewise.
35948         * modules/unictype/category-Zl-tests (Files): Likewise.
35949         * modules/unictype/category-Zp-tests (Files): Likewise.
35950         * modules/unictype/category-Zs-tests (Files): Likewise.
35951         * modules/unictype/category-and-not-tests (Files): Likewise.
35952         * modules/unictype/category-and-tests (Files): Likewise.
35953         * modules/unictype/category-byname-tests (Files): Likewise.
35954         * modules/unictype/category-name-tests (Files): Likewise.
35955         * modules/unictype/category-none-tests (Files): Likewise.
35956         * modules/unictype/category-of-tests (Files): Likewise.
35957         * modules/unictype/category-or-tests (Files): Likewise.
35958         * modules/unictype/category-test-withtable-tests (Files): Likewise.
35959         * modules/unictype/combining-class-tests (Files): Likewise.
35960         * modules/unictype/ctype-alnum-tests (Files): Likewise.
35961         * modules/unictype/ctype-alpha-tests (Files): Likewise.
35962         * modules/unictype/ctype-blank-tests (Files): Likewise.
35963         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
35964         * modules/unictype/ctype-digit-tests (Files): Likewise.
35965         * modules/unictype/ctype-graph-tests (Files): Likewise.
35966         * modules/unictype/ctype-lower-tests (Files): Likewise.
35967         * modules/unictype/ctype-print-tests (Files): Likewise.
35968         * modules/unictype/ctype-punct-tests (Files): Likewise.
35969         * modules/unictype/ctype-space-tests (Files): Likewise.
35970         * modules/unictype/ctype-upper-tests (Files): Likewise.
35971         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
35972         * modules/unictype/decimal-digit-tests (Files): Likewise.
35973         * modules/unictype/digit-tests (Files): Likewise.
35974         * modules/unictype/mirror-tests (Files): Likewise.
35975         * modules/unictype/numeric-tests (Files): Likewise.
35976         * modules/unictype/property-alphabetic-tests (Files): Likewise.
35977         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
35978         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
35979         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
35980         Likewise.
35981         * modules/unictype/property-bidi-block-separator-tests (Files):
35982         Likewise.
35983         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
35984         Likewise.
35985         * modules/unictype/property-bidi-common-separator-tests (Files):
35986         Likewise.
35987         * modules/unictype/property-bidi-control-tests (Files): Likewise.
35988         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
35989         Likewise.
35990         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
35991         Likewise.
35992         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
35993         Likewise.
35994         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
35995         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
35996         Likewise.
35997         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
35998         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
35999         Likewise.
36000         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
36001         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
36002         * modules/unictype/property-bidi-segment-separator-tests (Files):
36003         Likewise.
36004         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
36005         * modules/unictype/property-byname-tests (Files): Likewise.
36006         * modules/unictype/property-combining-tests (Files): Likewise.
36007         * modules/unictype/property-composite-tests (Files): Likewise.
36008         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
36009         * modules/unictype/property-dash-tests (Files): Likewise.
36010         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
36011         * modules/unictype/property-default-ignorable-code-point-tests (Files):
36012         Likewise.
36013         * modules/unictype/property-deprecated-tests (Files): Likewise.
36014         * modules/unictype/property-diacritic-tests (Files): Likewise.
36015         * modules/unictype/property-extender-tests (Files): Likewise.
36016         * modules/unictype/property-format-control-tests (Files): Likewise.
36017         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
36018         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
36019         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
36020         * modules/unictype/property-hex-digit-tests (Files): Likewise.
36021         * modules/unictype/property-hyphen-tests (Files): Likewise.
36022         * modules/unictype/property-id-continue-tests (Files): Likewise.
36023         * modules/unictype/property-id-start-tests (Files): Likewise.
36024         * modules/unictype/property-ideographic-tests (Files): Likewise.
36025         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
36026         * modules/unictype/property-ids-trinary-operator-tests (Files):
36027         Likewise.
36028         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
36029         * modules/unictype/property-iso-control-tests (Files): Likewise.
36030         * modules/unictype/property-join-control-tests (Files): Likewise.
36031         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
36032         * modules/unictype/property-line-separator-tests (Files): Likewise.
36033         * modules/unictype/property-logical-order-exception-tests (Files):
36034         Likewise.
36035         * modules/unictype/property-lowercase-tests (Files): Likewise.
36036         * modules/unictype/property-math-tests (Files): Likewise.
36037         * modules/unictype/property-non-break-tests (Files): Likewise.
36038         * modules/unictype/property-not-a-character-tests (Files): Likewise.
36039         * modules/unictype/property-numeric-tests (Files): Likewise.
36040         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
36041         * modules/unictype/property-other-default-ignorable-code-point-tests
36042         (Files): Likewise.
36043         * modules/unictype/property-other-grapheme-extend-tests (Files):
36044         Likewise.
36045         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
36046         * modules/unictype/property-other-id-start-tests (Files): Likewise.
36047         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
36048         * modules/unictype/property-other-math-tests (Files): Likewise.
36049         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
36050         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
36051         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
36052         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
36053         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
36054         * modules/unictype/property-private-use-tests (Files): Likewise.
36055         * modules/unictype/property-punctuation-tests (Files): Likewise.
36056         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
36057         * modules/unictype/property-radical-tests (Files): Likewise.
36058         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
36059         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
36060         * modules/unictype/property-space-tests (Files): Likewise.
36061         * modules/unictype/property-terminal-punctuation-tests (Files):
36062         Likewise.
36063         * modules/unictype/property-test-tests (Files): Likewise.
36064         * modules/unictype/property-titlecase-tests (Files): Likewise.
36065         * modules/unictype/property-unassigned-code-value-tests (Files):
36066         Likewise.
36067         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
36068         * modules/unictype/property-uppercase-tests (Files): Likewise.
36069         * modules/unictype/property-variation-selector-tests (Files): Likewise.
36070         * modules/unictype/property-white-space-tests (Files): Likewise.
36071         * modules/unictype/property-xid-continue-tests (Files): Likewise.
36072         * modules/unictype/property-xid-start-tests (Files): Likewise.
36073         * modules/unictype/property-zero-width-tests (Files): Likewise.
36074         * modules/unictype/scripts-tests (Files): Likewise.
36075         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
36076         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
36077         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
36078         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
36079         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
36080         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
36081         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
36082         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
36083         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
36084         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
36085         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
36086         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
36087         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
36088         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
36089         * modules/uninorm/composition-tests (Files): Likewise.
36090         * modules/uninorm/decomposing-form-tests (Files): Likewise.
36091         * modules/uninorm/decomposition-tests (Files): Likewise.
36092         * modules/uninorm/filter-tests (Files): Likewise.
36093         * modules/uninorm/nfc-tests (Files): Likewise.
36094         * modules/uninorm/nfd-tests (Files): Likewise.
36095         * modules/uninorm/nfkc-tests (Files): Likewise.
36096         * modules/uninorm/nfkd-tests (Files): Likewise.
36097         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
36098         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
36099         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
36100         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
36101         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
36102         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
36103         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
36104         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
36105         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
36106         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
36107         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
36108         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
36109         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
36110         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
36111         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
36112         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
36113         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
36114         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
36115         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
36116         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
36117         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
36118         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
36119         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
36120         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
36121         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
36122         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
36123         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
36124         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
36125         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
36126         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
36127         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
36128         * modules/uniwidth/u8-width-tests (Files): Likewise.
36129         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
36130         * modules/uniwidth/u16-width-tests (Files): Likewise.
36131         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
36132         * modules/uniwidth/u32-width-tests (Files): Likewise.
36133         * modules/uniwidth/width-tests (Files): Likewise.
36134         * modules/unlink-tests (Files): Likewise.
36135         * modules/unsetenv-tests (Files): Likewise.
36136         * modules/usleep-tests (Files): Likewise.
36137         * modules/utimens-tests (Files): Likewise.
36138         * modules/utimensat-tests (Files): Likewise.
36139         * modules/vasnprintf-posix-tests (Files): Likewise.
36140         * modules/vasnprintf-tests (Files): Likewise.
36141         * modules/vasprintf-posix-tests (Files): Likewise.
36142         * modules/vasprintf-tests (Files): Likewise.
36143         * modules/vdprintf-posix-tests (Files): Likewise.
36144         * modules/vfprintf-posix-tests (Files): Likewise.
36145         * modules/vprintf-posix-tests (Files): Likewise.
36146         * modules/vsnprintf-posix-tests (Files): Likewise.
36147         * modules/vsnprintf-tests (Files): Likewise.
36148         * modules/vsprintf-posix-tests (Files): Likewise.
36149         * modules/wcrtomb-tests (Files): Likewise.
36150         * modules/wcsnrtombs-tests (Files): Likewise.
36151         * modules/wcsrtombs-tests (Files): Likewise.
36152         * modules/wctype-tests (Files): Likewise.
36153         * modules/wcwidth-tests (Files): Likewise.
36154         * modules/xmemdup0-tests (Files): Likewise.
36155         * modules/xprintf-posix-tests (Files): Likewise.
36156         * modules/xvasprintf-tests (Files): Likewise.
36157
36158 2009-12-24  Eric Blake  <ebb9@byu.net>
36159
36160         test-nanosleep: fix typo
36161         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
36162         patch.
36163         Reported by Bruno Haible.
36164
36165 2009-12-24  Bruno Haible  <bruno@clisp.org>
36166
36167         Reduce namespace pollution on glibc systems.
36168         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
36169         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
36170         systems.
36171         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
36172         <getopt.h> on glibc systems.
36173         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
36174         systems.
36175         * lib/fcntl.c: Include <unistd.h> here instead.
36176
36177 2009-12-24  Bruno Haible  <bruno@clisp.org>
36178
36179         * lib/stdlib.in.h (includes): Fix typo in today's commit.
36180
36181 2009-12-24  Eric Blake  <ebb9@byu.net>
36182
36183         tests: add signature checks
36184         * tests/signature.h (SIGNATURE_CHECK): New file.
36185         * modules/atexit-tests (Files): Use it.
36186         * modules/btowc-tests (Files): Likewise.
36187         * modules/canonicalize-lgpl-tests (Files): Likewise.
36188         * modules/ceilf-tests (Files): Likewise.
36189         * modules/ceill-tests (Files): Likewise.
36190         * modules/chown-tests (Files): Likewise.
36191         * modules/dprintf-posix-tests (Files): Likewise.
36192         * modules/dup2-tests (Files): Likewise.
36193         * modules/dup3-tests (Files): Likewise.
36194         * modules/duplocale-tests (Files): Likewise.
36195         * modules/fchdir-tests (Files): Likewise.
36196         * modules/fcntl-tests (Files): Likewise.
36197         * modules/fdopendir-tests (Files): Likewise.
36198         * modules/fflush-tests (Files): Likewise.
36199         * modules/flock-tests (Files): Likewise.
36200         * modules/floorf-tests (Files): Likewise.
36201         * modules/floorl-tests (Files): Likewise.
36202         * modules/fnmatch-tests (Files): Likewise.
36203         * modules/fopen-tests (Files): Likewise.
36204         * modules/fprintf-posix-tests (Files): Likewise.
36205         * modules/freopen-tests (Files): Likewise.
36206         * modules/frexp-nolibm-tests (Files): Likewise.
36207         * modules/frexp-tests (Files): Likewise.
36208         * modules/frexpl-nolibm-tests (Files): Likewise.
36209         * modules/frexpl-tests (Files): Likewise.
36210         * modules/fseek-tests (Files): Likewise.
36211         * modules/fseeko-tests (Files): Likewise.
36212         * modules/fsync-tests (Files): Likewise.
36213         * modules/ftell-tests (Files): Likewise.
36214         * modules/ftello-tests (Files): Likewise.
36215         * modules/futimens-tests (Files): Likewise.
36216         * modules/getaddrinfo-tests (Files): Likewise.
36217         * modules/getcwd-tests (Files): Likewise.
36218         * modules/getdelim-tests (Files): Likewise.
36219         * modules/getdtablesize-tests (Files): Likewise.
36220         * modules/getgroups-tests (Files): Likewise.
36221         * modules/gethostname-tests (Files): Likewise.
36222         * modules/getline-tests (Files): Likewise.
36223         * modules/getopt-posix-tests (Files): Likewise.
36224         * modules/gettimeofday-tests (Files): Likewise.
36225         * modules/glob-tests (Files): Likewise.
36226         * modules/iconv-tests (Files): Likewise.
36227         * modules/inet_ntop-tests (Files): Likewise.
36228         * modules/inet_pton-tests (Files): Likewise.
36229         * modules/isblank-tests (Files): Likewise.
36230         * modules/lchown-tests (Files): Likewise.
36231         * modules/ldexpl-tests (Files): Likewise.
36232         * modules/link-tests (Files): Likewise.
36233         * modules/linkat-tests (Files): Likewise.
36234         * modules/lseek-tests (Files): Likewise.
36235         * modules/lstat-tests (Files): Likewise.
36236         * modules/mbrtowc-tests (Files): Likewise.
36237         * modules/mbsinit-tests (Files): Likewise.
36238         * modules/mbsnrtowcs-tests (Files): Likewise.
36239         * modules/mbsrtowcs-tests (Files): Likewise.
36240         * modules/memchr-tests (Files): Likewise.
36241         * modules/memcmp-tests (Files): Likewise.
36242         * modules/memmem-tests (Files): Likewise.
36243         * modules/memrchr-tests (Files): Likewise.
36244         * modules/mkdir-tests (Files): Likewise.
36245         * modules/mkfifo-tests (Files): Likewise.
36246         * modules/mkfifoat-tests (Files): Likewise.
36247         * modules/mknod-tests (Files): Likewise.
36248         * modules/nanosleep-tests (Files): Likewise.
36249         * modules/nl_langinfo-tests (Files): Likewise.
36250         * modules/obstack-printf-tests (Files): Likewise.
36251         * modules/open-tests (Files): Likewise.
36252         * modules/openat-tests (Files): Likewise.
36253         * modules/perror-tests (Files): Likewise.
36254         * modules/pipe2-tests (Files): Likewise.
36255         * modules/poll-tests (Files): Likewise.
36256         * modules/popen-tests (Files): Likewise.
36257         * modules/posix_spawn-tests (Files): Likewise.
36258         * modules/posix_spawnp-tests (Files): Likewise.
36259         * modules/pread-tests (Files): Likewise.
36260         * modules/printf-posix-tests (Files): Likewise.
36261         * modules/pty-tests (Files): Likewise.
36262         * modules/random_r-tests (Files): Likewise.
36263         * modules/rawmemchr-tests (Files): Likewise.
36264         * modules/readlink-tests (Files): Likewise.
36265         * modules/remove-tests (Files): Likewise.
36266         * modules/rename-tests (Files): Likewise.
36267         * modules/renameat-tests (Files): Likewise.
36268         * modules/rmdir-tests (Files): Likewise.
36269         * modules/round-tests (Files): Likewise.
36270         * modules/roundf-tests (Files): Likewise.
36271         * modules/roundl-tests (Files): Likewise.
36272         * modules/select-tests (Files): Likewise.
36273         * modules/setenv-tests (Files): Likewise.
36274         * modules/sigaction-tests (Files): Likewise.
36275         * modules/sleep-tests (Files): Likewise.
36276         * modules/snprintf-posix-tests (Files): Likewise.
36277         * modules/snprintf-tests (Files): Likewise.
36278         * modules/sprintf-posix-tests (Files): Likewise.
36279         * modules/stat-tests (Files): Likewise.
36280         * modules/strcasestr-tests (Files): Likewise.
36281         * modules/strchrnul-tests (Files): Likewise.
36282         * modules/strerror-tests (Files): Likewise.
36283         * modules/strsignal-tests (Files): Likewise.
36284         * modules/strstr-tests (Files): Likewise.
36285         * modules/strtod-tests (Files): Likewise.
36286         * modules/strverscmp-tests (Files): Likewise.
36287         * modules/symlink-tests (Files): Likewise.
36288         * modules/symlinkat-tests (Files): Likewise.
36289         * modules/times-tests (Files): Likewise.
36290         * modules/trunc-tests (Files): Likewise.
36291         * modules/truncf-tests (Files): Likewise.
36292         * modules/truncl-tests (Files): Likewise.
36293         * modules/tsearch-tests (Files): Likewise.
36294         * modules/uname-tests (Files): Likewise.
36295         * modules/unlink-tests (Files): Likewise.
36296         * modules/unsetenv-tests (Files): Likewise.
36297         * modules/usleep-tests (Files): Likewise.
36298         * modules/utimensat-tests (Files): Likewise.
36299         * modules/vasprintf-tests (Files): Likewise.
36300         * modules/vdprintf-posix-tests (Files): Likewise.
36301         * modules/vfprintf-posix-tests (Files): Likewise.
36302         * modules/vprintf-posix-tests (Files): Likewise.
36303         * modules/vsnprintf-posix-tests (Files): Likewise.
36304         * modules/vsnprintf-tests (Files): Likewise.
36305         * modules/vsprintf-posix-tests (Files): Likewise.
36306         * modules/wcrtomb-tests (Files): Likewise.
36307         * modules/wcsnrtombs-tests (Files): Likewise.
36308         * modules/wcsrtombs-tests (Files): Likewise.
36309         * modules/wcwidth-tests (Files): Likewise.
36310         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
36311         * tests/test-isinf.c (isinf): Likewise.
36312         * tests/test-isnan.c (isnan): Likewise.
36313         * tests/test-signbit.c (signbit): Likewise.
36314         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
36315         declaration, either as macro or with correct signature.
36316         (select): Ensure function under test is declared with correct
36317         signature in correct header.
36318         * tests/test-atexit.c (atexit): Likewise.
36319         * tests/test-btowc.c (btowc): Likewise.
36320         * tests/test-canonicalize-lgpl.c (realpath)
36321         (canonicalize_file_name): Likewise.
36322         * tests/test-ceilf1.c (ceilf): Likewise.
36323         * tests/test-ceill.c (ceill): Likewise.
36324         * tests/test-chown.c (chown): Likewise.
36325         * tests/test-dprintf-posix.c (dprintf): Likewise.
36326         * tests/test-dup2.c (dup2): Likewise.
36327         * tests/test-dup3.c (dup3): Likewise.
36328         * tests/test-duplocale.c (duplocale): Likewise.
36329         * tests/test-fchdir.c (fchdir): Likewise.
36330         * tests/test-fchownat.c (fchownat): Likewise.
36331         * tests/test-fcntl.c (fcntl): Likewise.
36332         * tests/test-fdopendir.c (fdopendir): Likewise.
36333         * tests/test-fflush.c (fflush): Likewise.
36334         * tests/test-flock.c (flock): Likewise.
36335         * tests/test-floorf1.c (floorf): Likewise.
36336         * tests/test-floorl.c (floorl): Likewise.
36337         * tests/test-fnmatch.c (fnmatch): Likewise.
36338         * tests/test-fopen.c (fopen): Likewise.
36339         * tests/test-fprintf-posix.c (fprintf): Likewise.
36340         * tests/test-freopen.c (freopen): Likewise.
36341         * tests/test-frexp.c (frexp): Likewise.
36342         * tests/test-frexpl.c (frexpl): Likewise.
36343         * tests/test-fseek.c (fseek): Likewise.
36344         * tests/test-fseeko.c (fseeko): Likewise.
36345         * tests/test-fstatat.c (fstatat): Likewise.
36346         * tests/test-fsync.c (fsync): Likewise.
36347         * tests/test-ftell.c (ftell): Likewise.
36348         * tests/test-ftello.c (ftello): Likewise.
36349         * tests/test-futimens.c (futimens): Likewise.
36350         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
36351         (gai_strerror): Likewise.
36352         * tests/test-getcwd.c (getcwd): Likewise.
36353         * tests/test-getdelim.c (getdelim): Likewise.
36354         * tests/test-getdtablesize.c (getdtablesize): Likewise.
36355         * tests/test-getgroups.c (getgroups): Likewise.
36356         * tests/test-gethostname.c (gethostname): Likewise.
36357         * tests/test-getline.c (getline): Likewise.
36358         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
36359         Likewise.
36360         * tests/test-gettimeofday.c (gettimeofday): Likewise.
36361         * tests/test-glob.c (glob, globfree): Likewise.
36362         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
36363         * tests/test-inet_ntop.c (inet_ntop): Likewise.
36364         * tests/test-inet_pton.c (inet_pton): Likewise.
36365         * tests/test-isblank.c (isblank): Likewise.
36366         * tests/test-lchown.c (lchown): Likewise.
36367         * tests/test-ldexpl.c (ldexpl): Likewise.
36368         * tests/test-link.c (link): Likewise.
36369         * tests/test-linkat.c (linkat): Likewise.
36370         * tests/test-lseek.c (lseek): Likewise.
36371         * tests/test-lstat.c (lstat): Likewise.
36372         * tests/test-mbrtowc.c (mbrtowc): Likewise.
36373         * tests/test-mbsinit.c (mbsinit): Likewise.
36374         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
36375         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
36376         * tests/test-memchr.c (memchr): Likewise.
36377         * tests/test-memcmp.c (memcmp): Likewise.
36378         * tests/test-memmem.c (memmem): Likewise.
36379         * tests/test-memrchr.c (memrchr): Likewise.
36380         * tests/test-mkdir.c (mkdir): Likewise.
36381         * tests/test-mkdirat.c (mkdirat): Likewise.
36382         * tests/test-mkfifo.c (mkfifo): Likewise.
36383         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
36384         * tests/test-mknod.c (mknod): Likewise.
36385         * tests/test-nanosleep.c (nanosleep): Likewise.
36386         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
36387         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
36388         Likewise.
36389         * tests/test-open.c (open): Likewise.
36390         * tests/test-openat.c (openat): Likewise.
36391         * tests/test-perror.c (perror): Likewise.
36392         * tests/test-pipe2.c (pipe2): Likewise.
36393         * tests/test-poll.c (poll): Likewise.
36394         * tests/test-popen.c (popen, pclose): Likewise.
36395         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
36396         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
36397         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
36398         (posix_spawn_file_actions_destroy)
36399         (posix_spawn_file_actions_addclose)
36400         (posix_spawn_file_actions_addopen)
36401         (posix_spawn_file_actions_adddup2): Likewise.
36402         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
36403         * tests/test-pread.c (pread): Likewise.
36404         * tests/test-printf-posix.c (printf): Likewise.
36405         * tests/test-pty.c (openpty, forkpty): Likewise.
36406         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
36407         (random_r): Likewise.
36408         * tests/test-rawmemchr.c (rawmemchr): Likewise.
36409         * tests/test-readlink.c (readlink): Likewise.
36410         * tests/test-remove.c (remove): Likewise.
36411         * tests/test-rename.c (rename): Likewise.
36412         * tests/test-renameat.c (renameat): Likewise.
36413         * tests/test-rmdir.c (rmdir): Likewise.
36414         * tests/test-round1.c (round): Likewise.
36415         * tests/test-roundf1.c (roundf): Likewise.
36416         * tests/test-roundl.c (roundl): Likewise.
36417         * tests/test-setenv.c (setenv): Likewise.
36418         * tests/test-sigaction.c (sigaction): Likewise.
36419         * tests/test-sleep.c (sleep): Likewise.
36420         * tests/test-snprintf.c (snprintf): Likewise.
36421         * tests/test-sprintf-posix.c (sprintf): Likewise.
36422         * tests/test-stat.c (stat): Likewise.
36423         * tests/test-stpncpy.c (stpncpy): Likewise.
36424         * tests/test-strcasestr.c (strcasestr): Likewise.
36425         * tests/test-strchrnul.c (strchrnul): Likewise.
36426         * tests/test-strerror.c (strerror): Likewise.
36427         * tests/test-strsignal.c (strsignal): Likewise.
36428         * tests/test-strstr.c (strstr): Likewise.
36429         * tests/test-strtod.c (strtod): Likewise.
36430         * tests/test-strverscmp.c (strverscmp): Likewise.
36431         * tests/test-symlink.c (symlink): Likewise.
36432         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
36433         * tests/test-times.c (times): Likewise.
36434         * tests/test-trunc1.c (trunc): Likewise.
36435         * tests/test-truncf1.c (truncf): Likewise.
36436         * tests/test-truncl.c (truncl): Likewise.
36437         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
36438         Likewise.
36439         * tests/test-uname.c (uname): Likewise.
36440         * tests/test-unlink.c (unlink): Likewise.
36441         * tests/test-unlinkat.c (unlinkat): Likewise.
36442         * tests/test-unsetenv.c (unsetenv): Likewise.
36443         * tests/test-usleep.c (usleep): Likewise.
36444         * tests/test-utimensat.c (utimensat): Likewise.
36445         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
36446         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
36447         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
36448         * tests/test-vprintf-posix.c (vprintf): Likewise.
36449         * tests/test-vsnprintf.c (vsnprintf): Likewise.
36450         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
36451         * tests/test-wcrtomb.c (wcrtomb): Likewise.
36452         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
36453         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
36454         * tests/test-wcwidth.c (wcwidth): Likewise.
36455
36456         build: pull in conditional headers during GNULIB_POSIXCHECK
36457         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
36458         definitions from any conditionally-included headers.
36459         * lib/stdlib.in.h (includes): Likewise.
36460         * lib/unistd.in.h (includes): Likewise.
36461
36462 2009-12-24  Bruno Haible  <bruno@clisp.org>
36463
36464         * tests/test-argv-iter.c: Include header file being tested immediately
36465         after config.h.
36466         * tests/test-base64.c: Likewise.
36467         * tests/test-flock.c: Likewise.
36468         * tests/test-fsync.c: Likewise.
36469         * tests/test-getdate.c: Likewise.
36470         * tests/test-getndelim2.c: Likewise.
36471         * tests/test-isfinite.c: Likewise.
36472         * tests/test-isinf.c: Likewise.
36473         * tests/test-strerror.c: Likewise.
36474         * tests/test-strsignal.c: Likewise.
36475
36476 2009-12-23  Eric Blake  <ebb9@byu.net>
36477
36478         unistd: work around cygwin bug
36479         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
36480         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
36481         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
36482
36483 2009-12-23  Bruno Haible  <bruno@clisp.org>
36484
36485         localename: More tests.
36486         * tests/test-localename.c (SIZEOF): New macro.
36487         (categories): New variable.
36488         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
36489         test_locale_name_default): Add test w.r.t. thread locale.
36490         (test_locale_name_thread): New function.
36491         (main): Invoke it.
36492
36493         localename: Make aware of thread locale.
36494         * lib/localename.h (gl_locale_name_thread): New declaration.
36495         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
36496         behaviour with respect to thread locale.
36497         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
36498         <langinfo.h>, glthread/lock.h.
36499         (SIZE_BITS): New macro.
36500         (string_hash): New function.
36501         (struct hash_node): New type.
36502         (HASH_TABLE_SIZE): New macro.
36503         (struniq_hash_table, struniq_lock): New variables.
36504         (struniq): New function.
36505         (gl_locale_name_thread): New function.
36506         (gl_locale_name): Invoke it.
36507         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
36508         * modules/localename (Depends-on): Add lock.
36509         Reported by Mike Gran <spk121@yahoo.com>.
36510
36511 2009-12-23  Eric Blake  <ebb9@byu.net>
36512
36513         va-args: new module
36514         * modules/va-args: New file.
36515         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
36516         * MODULES.html.sh (Core language properties): Mention it.
36517
36518         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
36519         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
36520         named alias for __attribute__((__unused__)).
36521         * lib/chown.c: Update client.
36522         * lib/fchmodat.c: Likewise.
36523         * lib/fts.c: Likewise.
36524         * lib/getdate.y: Likewise.
36525         * lib/getgroups.c: Likewise.
36526         * lib/getopt.c: Likewise.
36527         * lib/getugroups.c: Likewise.
36528         * lib/mkdir.c: Likewise.
36529         * lib/mkfifo.c: Likewise.
36530         * lib/mkfifoat.c: Likewise.
36531         * lib/mknod.c: Likewise.
36532         * lib/mknodat.c: Likewise.
36533         * lib/readlink.c: Likewise.
36534         * lib/se-context.in.h: Likewise.
36535         * lib/se-selinux.in.h: Likewise.
36536         * lib/sockets.c: Likewise.
36537         * lib/symlink.c: Likewise.
36538         * lib/symlinkat.c: Likewise.
36539         * lib/unicodeio.c: Likewise.
36540         * lib/unistr.h: Likewise.
36541         * tests/test-areadlink.c: Likewise.
36542         * tests/test-areadlinkat.c: Likewise.
36543         * tests/test-filenamecat.c: Likewise.
36544         * tests/test-fseeko.c: Likewise.
36545         * tests/test-ftello.c: Likewise.
36546         * tests/test-getdate.c: Likewise.
36547         * tests/test-getgroups.c: Likewise.
36548         * tests/test-gethostname.c: Likewise.
36549         * tests/test-quotearg.c: Likewise.
36550         * tests/test-version-etc.c: Likewise.
36551         * tests/test-xalloc-die.c: Likewise.
36552         * tests/test-xfprintf-posix.c: Likewise.
36553         * tests/test-xprintf-posix.c: Likewise.
36554         * tests/test-xvasprintf.c: Likewise.
36555
36556         tests: avoid compiler warnings
36557         * tests/test-fcntl.c (main): Delete unused parameters.
36558         * tests/test-freopen-safer.c (main): Likewise.
36559         * tests/test-xalloc-die.c (main): Mark unused parameters.
36560         * tests/test-fseeko.c (main): Likewise.
36561         * tests/test-ftello.c (main): Likewise.
36562         * tests/test-nanosleep.c (main): Avoid declaration warning.
36563         * tests/test-sleep.c (main): Likewise.
36564         * tests/test-unsetenv.c (main): Silence warning about string
36565         literal.
36566         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
36567
36568 2009-12-23  Bruno Haible  <bruno@clisp.org>
36569
36570         * tests/test-localename.c (test_locale_name): New function, extracted
36571         from main. Also test mixed situations.
36572         (test_locale_name_posix, test_locale_name_environ,
36573         test_locale_name_default): New functions.
36574         (main): Invoke them all.
36575         * modules/localename-tests (configure.ac): Test for newlocale.
36576
36577 2009-12-23  Bruno Haible  <bruno@clisp.org>
36578
36579         unistd: Ensure getcwd gets declared before being overridden.
36580         * lib/unistd.in.h: Conditionally include <io.h>.
36581
36582 2009-12-22  Bruno Haible  <bruno@clisp.org>
36583
36584         wchar: Diagnose broken combination of glibc and gcc versions and flags.
36585         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
36586         (gl_WCHAR_H): Invoke it.
36587         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
36588         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
36589         Reported by Karl Berry <karl@freefriends.org>.
36590
36591 2009-12-22  Eric Blake  <ebb9@byu.net>
36592
36593         math, unistd: avoid redundant includes
36594         * lib/math.in.h (isnan): No need to re-include <math.h>.
36595         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
36596
36597         getsubopt: work around cygwin bug
36598         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
36599         avoid conflicting with system getsubopt.
36600         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
36601         bug.
36602
36603         getopt: synchronize from glibc
36604         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
36605         parameter order.  Adjust all callers.
36606         (_getopt_internal_r, main): Adjust quoting in error messages.
36607         Drop considerations for outdated POSIX 1003.2 error message.
36608         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
36609         callers.
36610         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
36611
36612         test-getopt: test stderr behavior
36613         * modules/getopt-posix-tests (Depends-on): Add dup2.
36614         * tests/test-getopt.c (ASSERT): Avoid stderr.
36615         (main): Move stderr to a temporary file.
36616         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
36617         Instead, add parameter to inform caller if output occurred.
36618         (test_getopt): Adjust all existing tests to expect silence, and
36619         add new tests of leading ":".
36620         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
36621         glibc shortcomings with leading "-:" or "+:" in optstring.
36622         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
36623         Likewise.
36624         * doc/posix-functions/getopt.texi (getopt): Likewise.
36625
36626         test-getopt: enhance test
36627         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
36628         supports optind=0.
36629         * tests/test-getopt.c (OPTIND_MIN): Move...
36630         * tests/test-getopt.h (OPTIND_MIN): ...here.
36631         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
36632         Require that optind=0 works, since modern BSD supports it in
36633         addition to optreset, and since coreutils expects it.
36634         (test_getopt_long_only): New test.
36635         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
36636         glibc shortcomings with 'W;', and enforcement of optind=0.
36637         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
36638         Likewise.
36639
36640 2009-12-21  Bruno Haible  <bruno@clisp.org>
36641
36642         localename: Improvements for MacOS X and Cygwin.
36643         * lib/localename.h (gl_locale_name_environ): New declaration.
36644         * lib/localename.c (gl_locale_name_environ): New function, extracted from
36645         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
36646         (gl_locale_name_posix): Invoke it.
36647         (gl_locale_name_default): Add comments. Use Windows native API also on
36648         Cygwin.
36649
36650 2009-12-21  Bruno Haible  <bruno@clisp.org>
36651
36652         Update list of Win32 locale ids.
36653         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
36654         (LANG_SAMI): Renamed from LANG_SAAMI.
36655         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
36656         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
36657         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
36658         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
36659         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
36660         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
36661         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
36662         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
36663         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
36664         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
36665         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
36666         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
36667         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
36668         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
36669         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
36670         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
36671         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
36672         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
36673         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
36674         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
36675         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
36676         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
36677         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
36678         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
36679         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
36680         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
36681         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
36682         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
36683         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
36684         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
36685         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
36686         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
36687         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
36688         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
36689         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
36690         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
36691         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
36692         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
36693         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
36694         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
36695         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
36696         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
36697         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
36698         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
36699         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
36700         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
36701         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
36702         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
36703         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
36704         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
36705         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
36706         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
36707         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
36708         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
36709         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
36710         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
36711         Add more languages and countries for Sami, Sorbian. Add more countries
36712         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
36713         for Pashto. Change country for Syriac, Tswana.
36714
36715 2009-12-21  Eric Blake  <ebb9@byu.net>
36716
36717         test-utimens: avoid spurious failure
36718         * tests/test-chown.h (nap): Factor...
36719         * tests/nap.h: ...into new file.
36720         * tests/test-lchown.h (nap): Avoid duplication.
36721         * tests/test-utimens-common.h (nap): Use shared implementation,
36722         necessary on file systems with 1-second resolution.
36723         * modules/chown-tests (Files): Include new file.
36724         * modules/fdutimensat-tests (Files): Likewise.
36725         * modules/futimens-tests (Files): Likewise.
36726         * modules/lchown-tests (Files): Likewise.
36727         * modules/openat-tests (Files): Likewise.
36728         * modules/utimens-tests (Files): Likewise.
36729         * modules/utimensat-tests (Files): Likewise.
36730
36731 2009-12-19  Eric Blake  <ebb9@byu.net>
36732
36733         futimens, utimensat: work around Linux bug
36734         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
36735         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
36736         * lib/utimensat.c (rpl_utimensat): Work around it.
36737         * lib/futimens.c (rpl_futimens): Adjust comment.
36738
36739         utimens: work around Linux ctime bug
36740         * lib/utimens.c (detect_ctime_bug): New helper function.
36741         (update_timespec): Differentiate between workaround needed for
36742         this bug vs. what is needed for systems that lack utimensat.
36743         (fdutimens, lutimens): Work around bug.
36744
36745         utimens: check for ctime update
36746         * tests/test-utimens-common.h (check_ctime): Define.
36747         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
36748         * tests/test-futimens.h (test_futimens): Likewise.
36749         * tests/test-lutimens.h (test_lutimens): Likewise.
36750         * doc/posix-functions/futimens.texi (futimens): Document the bug.
36751         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
36752
36753 2009-12-19  Bruno Haible  <bruno@clisp.org>
36754
36755         dprintf-posix: Check against memory leak fixed on 2009-12-15.
36756         * tests/test-dprintf-posix2.sh: New file.
36757         * tests/test-dprintf-posix2.c: New file.
36758         * modules/dprintf-posix-tests (Files): Add them.
36759         (configure.ac): Check for getrlimit and setrlimit.
36760         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
36761
36762 2009-12-19  Bruno Haible  <bruno@clisp.org>
36763
36764         fprintf-posix: Check against memory leak fixed on 2009-12-15.
36765         * tests/test-fprintf-posix3.sh: New file.
36766         * tests/test-fprintf-posix3.c: New file.
36767         * modules/fprintf-posix-tests (Files): Add them.
36768         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
36769
36770 2009-12-19  Eric Blake  <ebb9@byu.net>
36771
36772         dirfd: fix prototype
36773         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
36774         * lib/dirfd.c (dirfd): Likewise.
36775
36776         canonicalize: reduce memory usage
36777         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
36778         allocation to size.
36779         Reported by Solar Designer <solar@openwall.com>.
36780
36781 2009-12-19  Bruno Haible  <bruno@clisp.org>
36782
36783         New module attribute 'Applicability'.
36784         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
36785         * gnulib-tool: New option --extract-applicability.
36786         (func_usage): Document it.
36787         (sed_extract_prog): Recognize it.
36788         (func_get_applicability): New function.
36789         (func_import): Generalize handling of 'link-warning' module.
36790         * modules/link-warning (Applicability): New section.
36791         * modules/arg-nonnull (Applicability): New section.
36792         Repoted by Simon Josefsson <simon@josefsson.org>.
36793
36794 2009-12-19  Bruno Haible  <bruno@clisp.org>
36795
36796         fflush: tweak
36797         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
36798         * lib/fseeko.c (rpl_fseeko): Likewise.
36799
36800 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
36801
36802         * lib/gl_list.h: Fix typo in comment.
36803
36804 2009-12-16  Eric Blake  <ebb9@byu.net>
36805
36806         fcntl: use to simplify other modules
36807         * modules/cloexec (Depends-on): Add fcntl.
36808         * modules/fchdir (Depends-on): Likewise.
36809         * modules/fd-safer-flag (Depends-on): Likewise.
36810         * modules/unistd-safer (Depends-on): Likewise.
36811         * modules/dup3 (configure.ac): Set module indicator.
36812         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
36813         missing.
36814         * lib/fchdir.c (_gl_register_dup): Fix comment.
36815         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
36816         * lib/dup-safer.c (dup_safer): Likewise.
36817         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
36818         * lib/dup3.c (dup3): Likewise.
36819         * tests/test-fchdir.c (main): Enhance test.
36820         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
36821
36822         fcntl: port portions of fcntl to mingw
36823         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
36824         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
36825         replacement for mingw.
36826         * modules/fcntl (Description): Update.
36827         (Depends-on): Add dup2.
36828         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
36829         * modules/fcntl-h (Makefile.am): Substitute it.
36830         * lib/fcntl.in.h (fcntl): Update declaration.
36831         (F_DUPFD, F_GETFD): New macros, when needed.
36832         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36833         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
36834         * tests/test-fcntl.c (check_flags, main): Enhance test for items
36835         we now guarantee.
36836
36837         fcntl: work around cygwin bug in F_DUPFD
36838         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
36839         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
36840         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
36841         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
36842         * doc/posix-functions/fcntl.texi (fcntl): Document it.
36843
36844         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
36845         * modules/fcntl (Files): List new files.
36846         (configure.ac): Run a test.
36847         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
36848         * lib/fcntl.c (rpl_fcntl): Likewise.
36849         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
36850         (gl_FCNTL_H): Always replace fcntl.h.
36851         * modules/fcntl-h (Makefile.am): Substitute witnesses.
36852         * lib/fcntl.in.h (fcntl): Declare replacement.
36853         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
36854         needed, plus a witness.
36855         * doc/posix-functions/fcntl.texi (fcntl): Document this.
36856         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
36857         * tests/test-fcntl.c: New file.
36858         * modules/fcntl-tests: Likewise.
36859
36860         binary-io: avoid potential compilation warning
36861         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
36862         directives.
36863
36864         fflush: avoid compilation error on NetBSD
36865         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
36866         between off_t and fpos_t, since the latter is sometimes a struct.
36867         * lib/fseeko.c (rpl_fseeko): Likewise.
36868         Reported by Alexander Nasonov <alnsn@yandex.ru>.
36869
36870 2009-12-15  Eric Blake  <ebb9@byu.net>
36871
36872         fcntl-h, stdio, sys_ioctl: fix declarations
36873         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
36874         function must not take arguments.
36875         * lib/sys_ioctl.in.h (ioctl): Likewise.
36876         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
36877         (open): Add a link warning.
36878
36879 2009-12-15  Jim Meyering  <meyering@redhat.com>
36880
36881         areadlink, areadlink-with-size: relax license to LGPLv2+
36882         * modules/areadlink (License): Relax to LGPLv2+.
36883         * modules/areadlink-with-size (License): Likewise.
36884
36885 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
36886             Bruno Haible  <bruno@clisp.org>
36887
36888         *printf: Fix memory leak.
36889         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
36890         * lib/vfprintf.c (vfprintf): Likewise.
36891         * lib/dprintf.c (dprintf): Likewise.
36892         * lib/vdprintf.c (vdprintf): Likewise.
36893
36894 2009-12-14  Eric Blake  <ebb9@byu.net>
36895
36896         accept4: adjust module dependencies
36897         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
36898
36899         utimens: one more try at avoiding compiler warning
36900         * lib/utimens.c (lutimens): Lower scope of result.
36901
36902 2009-12-13  Bruno Haible  <bruno@clisp.org>
36903
36904         Move the malloc checking from module 'list' to new module 'xlist'.
36905         * modules/xlist: New file.
36906         * lib/gl_xlist.h: New file.
36907         * lib/gl_xlist.c: New file.
36908         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
36909         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
36910         gl_list_add_last, gl_list_add_before, gl_list_add_after,
36911         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
36912         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
36913         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
36914         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
36915         gl_sortedlist_nx_add): New declarations.
36916         (struct gl_list_implementation): Rename and change methods accordingly.
36917         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
36918         (gl_list_nx_create): Renamed from gl_list_create.
36919         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
36920         (gl_list_nx_set_at): Renamed from gl_list_set_at.
36921         (gl_list_nx_add_first): Renamed from gl_list_add_first.
36922         (gl_list_nx_add_last): Renamed from gl_list_add_last.
36923         (gl_list_nx_add_before): Renamed from gl_list_add_before.
36924         (gl_list_nx_add_after): Renamed from gl_list_add_after.
36925         (gl_list_nx_add_at): Renamed from gl_list_add_at.
36926         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
36927         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
36928         gl_list_create_empty.
36929         (gl_list_nx_create): Renamed from gl_list_create.
36930         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
36931         (gl_list_nx_set_at): Renamed from gl_list_set_at.
36932         (gl_list_nx_add_first): Renamed from gl_list_add_first.
36933         (gl_list_nx_add_last): Renamed from gl_list_add_last.
36934         (gl_list_nx_add_before): Renamed from gl_list_add_before.
36935         (gl_list_nx_add_after): Renamed from gl_list_add_after.
36936         (gl_list_nx_add_at): Renamed from gl_list_add_at.
36937         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
36938         * lib/gl_array_list.c: Don't include xalloc.h.
36939         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
36940         NULL upon out-of-memory.
36941         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
36942         out-of-memory.
36943         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
36944         Change return type to 'int'.
36945         (gl_array_nx_set_at): Renamed from gl_array_set_at.
36946         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
36947         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
36948         upon out-of-memory.
36949         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
36950         upon out-of-memory.
36951         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
36952         upon out-of-memory.
36953         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
36954         upon out-of-memory.
36955         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
36956         out-of-memory.
36957         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
36958         Update.
36959         (gl_array_list_implementation): Update.
36960         * lib/gl_carray_list.c: Don't include xalloc.h.
36961         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
36962         Return NULL upon out-of-memory.
36963         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
36964         out-of-memory.
36965         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
36966         Change return type to 'int'.
36967         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
36968         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
36969         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
36970         upon out-of-memory.
36971         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
36972         upon out-of-memory.
36973         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
36974         out-of-memory.
36975         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
36976         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
36977         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
36978         Update.
36979         (gl_carray_list_implementation): Update.
36980         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
36981         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
36982         gl_linked_create_empty. Return NULL upon out-of-memory.
36983         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
36984         out-of-memory.
36985         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
36986         Change return type to 'int'. Return -1 upon out-of-memory.
36987         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
36988         out-of-memory.
36989         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
36990         upon out-of-memory.
36991         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
36992         upon out-of-memory.
36993         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
36994         NULL upon out-of-memory.
36995         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
36996         upon out-of-memory.
36997         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
36998         out-of-memory.
36999         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
37000         Update.
37001         * lib/gl_linked_list.c: Don't include xalloc.h.
37002         (gl_linked_list_implementation): Update.
37003         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
37004         (add_to_bucket): Change return type to 'int'.
37005         (gl_linkedhash_list_implementation): Update.
37006         * lib/gl_anytree_list1.h (free_subtree): New function.
37007         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
37008         gl_tree_create_empty. Return NULL upon out-of-memory.
37009         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
37010         Change return type to 'int'. Return -1 upon out-of-memory.
37011         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
37012         out-of-memory.
37013         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
37014         (gl_tree_remove_node): New function, moved here from
37015         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
37016         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
37017         Update.
37018         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
37019         malloc, not xmalloc. Return NULL upon out-of-memory.
37020         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
37021         out-of-memory.
37022         (gl_tree_remove_node_from_tree): New function, extracted from
37023         gl_tree_remove_node.
37024         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
37025         upon out-of-memory.
37026         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
37027         out-of-memory.
37028         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
37029         upon out-of-memory.
37030         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
37031         upon out-of-memory.
37032         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
37033         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
37034         not xmalloc. Return NULL upon out-of-memory.
37035         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
37036         out-of-memory.
37037         (gl_tree_remove_node_from_tree): New function, extracted from
37038         gl_tree_remove_node.
37039         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
37040         upon out-of-memory.
37041         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
37042         out-of-memory.
37043         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
37044         upon out-of-memory.
37045         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
37046         upon out-of-memory.
37047         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
37048         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
37049         gl_anytree_list1.h before gl_anyavltree_list2.h.
37050         (gl_avltree_list_implementation): Update.
37051         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
37052         gl_anytree_list1.h before gl_anyavltree_list2.h.
37053         (gl_rbtree_list_implementation): Update.
37054         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
37055         Change return type to 'int'. Return -1 upon out-of-memory. Use
37056         __builtin_expect.
37057         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
37058         (gl_avltreehash_list_implementation): Update.
37059         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
37060         (gl_rbtreehash_list_implementation): Update.
37061         * modules/array-list (Depends-on): Remove xalloc.
37062         * modules/carray-list (Depends-on): Likewise.
37063         * modules/linked-list (Depends-on): Likewise.
37064         * modules/linkedhash-list (Depends-on): Likewise.
37065         * modules/avltree-list (Depends-on): Likewise.
37066         * modules/rbtree-list (Depends-on): Likewise.
37067         * modules/avltreehash-list (Depends-on): Likewise.
37068         * modules/rbtreehash-list (Depends-on): Likewise.
37069
37070         * modules/xsublist: New file.
37071         * lib/gl_xsublist.h: New file.
37072         * lib/gl_xsublist.c: New file.
37073         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
37074         (gl_sublist_nx_create): New declaration.
37075         * lib/gl_sublist.c: Don't include xalloc.h.
37076         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
37077         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
37078         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
37079         Change return type to 'int'. Return -1 upon out-of-memory.
37080         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
37081         upon out-of-memory.
37082         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
37083         NULL upon out-of-memory.
37084         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
37085         upon out-of-memory.
37086         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
37087         NULL upon out-of-memory.
37088         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
37089         NULL upon out-of-memory.
37090         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
37091         upon out-of-memory.
37092         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
37093         (gl_sublist_list_implementation): Update.
37094         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
37095         upon out-of-memory.
37096         * modules/sublist (Depends-on): Remove xalloc.
37097
37098         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
37099         * tests/test-carray_list.c: Likewise.
37100         * tests/test-linked_list.c: Likewise.
37101         * tests/test-linkedhash_list.c: Likewise.
37102         * tests/test-avltree_list.c: Likewise.
37103         * tests/test-rbtree_list.c: Likewise.
37104         * tests/test-avltreehash_list.c: Likewise.
37105         * tests/test-rbtreehash_list.c: Likewise.
37106         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
37107         * modules/carray-list-tests (Makefile.am): Likewise.
37108         * modules/linked-list-tests (Makefile.am): Likewise.
37109         * modules/linkedhash-list-tests (Makefile.am): Likewise.
37110         * modules/avltree-list-tests (Makefile.am): Likewise.
37111         * modules/rbtree-list-tests (Makefile.am): Likewise.
37112         * modules/avltreehash-list-tests (Makefile.am): Likewise.
37113         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
37114
37115         * NEWS: Mention the changes.
37116
37117         * lib/clean-temp.c: Include gl_xlist.h.
37118         * modules/clean-temp (Depends-on): Add xlist.
37119
37120         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
37121         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
37122
37123         * tests/test-array_oset.c: Include gl_xlist.h.
37124         * modules/array-oset-tests (Depends-on): Add xlist.
37125
37126         Reported by José E. Marchesi <jemarch@gnu.org>.
37127
37128 2009-12-13  Bruno Haible  <bruno@clisp.org>
37129
37130         Move the malloc checking from module 'oset' to new module 'xoset'.
37131         * modules/xoset: New file.
37132         * lib/gl_xoset.h: New file.
37133         * lib/gl_xoset.c: New file.
37134         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
37135         declarations.
37136         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
37137         (struct gl_oset_implementation): Rename and change methods accordingly.
37138         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
37139         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
37140         'int'. Mark as __warn_unused_result__.
37141         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
37142         gl_oset_create_empty.
37143         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
37144         'int'.
37145         * lib/gl_array_oset.c: Don't include xalloc.h.
37146         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
37147         malloc, not xmalloc.
37148         (grow): Change return type to 'int'. Don't call xalloc_die.
37149         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
37150         to 'int'.
37151         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
37152         'int'.
37153         (gl_array_oset_implementation): Update.
37154         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
37155         gl_tree_create_empty.
37156         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
37157         'int'.
37158         * lib/gl_avltree_oset.c: Don't include xalloc.h.
37159         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
37160         xmalloc.
37161         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
37162         not xmalloc.
37163         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
37164         xmalloc.
37165         (gl_avltree_oset_implementation): Update.
37166         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
37167         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
37168         xmalloc.
37169         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
37170         not xmalloc.
37171         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
37172         xmalloc.
37173         (gl_rbtree_oset_implementation): Update.
37174         * modules/array-oset (Depends-on): Remove xalloc.
37175         * modules/avltree-oset (Depends-on): Likewise.
37176         * modules/rbtree-oset (Depends-on): Likewise.
37177         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
37178         * tests/test-avltree_oset.c: Likewise.
37179         * tests/test-rbtree_oset.c: Likewise.
37180         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
37181         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
37182         * modules/rbtree-oset-tests (Makefile.am): Likewise.
37183         * NEWS: Mention the change.
37184
37185 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
37186
37187         maint.mk: allow a project to override release-prep commands
37188         * top/maint.mk (alpha, beta, stable): Move release-preparatory
37189         commands into a new rule.
37190         (release-prep): New rule.
37191         (release-prep-hook): New overridable variable.
37192
37193 2009-12-13  Bruno Haible  <bruno@clisp.org>
37194
37195         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
37196
37197 2009-12-13  Jim Meyering  <meyering@redhat.com>
37198
37199         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
37200         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
37201
37202 2009-12-12  Bruno Haible  <bruno@clisp.org>
37203
37204         duplocale: Tweak.
37205         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
37206
37207 2009-12-12  Karl Berry  <karl@gnu.org>
37208
37209         * config/srclist.txt (strtoll.c): tab changes, no more sync.
37210
37211 2009-12-12  Bruno Haible  <bruno@clisp.org>
37212
37213         * m4/po.m4: Undo incorrect untabification.
37214
37215 2009-12-12  Bruno Haible  <bruno@clisp.org>
37216
37217         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
37218         * modules/c-strtod (Depends-on): Add locale.
37219         * modules/c-strtold (Depends-on): Likewise.
37220
37221 2009-12-12  Bruno Haible  <bruno@clisp.org>
37222
37223         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
37224
37225 2009-12-11  Eric Blake  <ebb9@byu.net>
37226
37227         setenv: relax requirement in light of POSIX ruling
37228         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
37229         not NULL.
37230         * tests/test-setenv.c (main): Relax test.
37231         * tests/test-unsetenv.c (main): Likewise.
37232         * doc/posix-functions/setenv.texi (setenv): Document this.
37233         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
37234
37235 2009-12-11  Bruno Haible  <bruno@clisp.org>
37236
37237         New module 'fd-safer-flag'.
37238         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
37239         * lib/dup-safer.c (dup_safer_flag): Remove function.
37240         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
37241         * lib/fd-safer.c (fd_safer_flag): Remove function.
37242         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
37243         * modules/cloexec (configure.ac): Drop indicator macro.
37244         * modules/fd-safer-flag: New file.
37245         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
37246         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
37247         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
37248
37249 2009-12-11  Bruno Haible  <bruno@clisp.org>
37250
37251         Tests for module 'nl_langinfo'.
37252         * modules/nl_langinfo-tests: New file.
37253         * tests/test-nl_langinfo.sh: New file.
37254         * tests/test-nl_langinfo.c: New file.
37255
37256         New module 'nl_langinfo'.
37257         * lib/nl_langinfo.c: New file.
37258         * m4/nl_langinfo.m4: New file.
37259         * modules/nl_langinfo: New file.
37260         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
37261
37262 2009-12-11  Bruno Haible  <bruno@clisp.org>
37263
37264         Tests for module 'langinfo'.
37265         * modules/langinfo-tests: New file.
37266         * tests/test-langinfo.c: New file.
37267
37268         New module 'langinfo'.
37269         * lib/langinfo.in.h: New file.
37270         * m4/langinfo_h.m4: New file.
37271         * modules/langinfo: New file.
37272         * doc/posix-headers/langinfo.texi: Mention the new module.
37273
37274 2009-12-11  Bruno Haible  <bruno@clisp.org>
37275
37276         * lib/config.charset: Untabify.
37277
37278 2009-12-11  Bruno Haible  <bruno@clisp.org>
37279
37280         * modules/unistd-safer (configure.ac): Drop indicator macro.
37281
37282 2009-12-11  Bruno Haible  <bruno@clisp.org>
37283
37284         Move pipe2-safer code to its own file.
37285         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
37286         * lib/pipe-safer.c (pipe2_safer): Remove function.
37287         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
37288         (Makefile.am): Add it to lib_SOURCES.
37289
37290 2009-12-10  Bruno Haible  <bruno@clisp.org>
37291
37292         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
37293
37294 2009-12-10  Bruno Haible  <bruno@clisp.org>
37295
37296         Declare which arguments expect non-NULL values, for GCC and clang.
37297         * build-aux/arg-nonnull.h: New file.
37298         * modules/arg-nonnull: New file.
37299         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
37300         (inet_ntop, inet_pton): Use it.
37301         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
37302         (closedir, dirfd, opendir, scandir, alphasort): Use it.
37303         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
37304         (open, openat): Use it.
37305         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
37306         (fnmatch): Use it.
37307         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
37308         (getopt, getopt_long, getopt_long_only): Use it.
37309         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
37310         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
37311         Use it.
37312         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
37313         (iconv_open): Use it.
37314         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
37315         (strtoimax, strtoumax): Use it.
37316         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
37317         (duplocale): Use it.
37318         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
37319         (frexp, frexpl): Use it.
37320         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
37321         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
37322         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
37323         (tsearch, tfind, tdelete, twalk): Use it.
37324         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
37325         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
37326         sigpending): Use it.
37327         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
37328         (posix_spawn, posix_spawnp, posix_spawnattr_init,
37329         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
37330         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
37331         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
37332         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
37333         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
37334         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
37335         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
37336         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
37337         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
37338         Use it.
37339         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
37340         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
37341         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
37342         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
37343         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
37344         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
37345         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
37346         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
37347         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
37348         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
37349         strtoull, unsetenv): Use it.
37350         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
37351         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
37352         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
37353         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
37354         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
37355         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
37356         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
37357         (strcasecmp, strncasecmp): Use it.
37358         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
37359         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
37360         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
37361         rpl_setsockopt): Use it.
37362         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
37363         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
37364         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
37365         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
37366         (gettimeofday): Use it.
37367         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
37368         (times): Use it.
37369         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
37370         (uname): Use it.
37371         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
37372         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
37373         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
37374         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
37375         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
37376         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
37377         unlinkat, write): Use it.
37378         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
37379         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
37380         * lib/argv-iter.h: Include arg-nonnull.h.
37381         (_ATTRIBUTE_NONNULL_): Remove macro.
37382         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
37383         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
37384         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
37385         optimization.
37386         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
37387         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
37388         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
37389         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
37390         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
37391         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
37392         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
37393         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
37394         * modules/arpa_inet (Depends-on): Add arg-nonnull.
37395         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
37396         * modules/dirent (Depends-on): Add arg-nonnull.
37397         (Makefile.am): Insert arg-nonnull.h into dirent.h.
37398         * modules/fcntl-h (Depends-on): Add arg-nonnull.
37399         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
37400         * modules/fnmatch (Depends-on): Add arg-nonnull.
37401         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
37402         * modules/getopt-posix (Depends-on): Add arg-nonnull.
37403         (Makefile.am): Insert arg-nonnull.h into getopt.h.
37404         * modules/glob (Depends-on): Add arg-nonnull.
37405         (Makefile.am): Insert arg-nonnull.h into glob.h.
37406         * modules/iconv_open (Depends-on): Add arg-nonnull.
37407         (Makefile.am): Insert arg-nonnull.h into iconv.h.
37408         * modules/inttypes (Depends-on): Add arg-nonnull.
37409         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
37410         * modules/locale (Depends-on): Add arg-nonnull.
37411         (Makefile.am): Insert arg-nonnull.h into locale.h.
37412         * modules/math (Depends-on): Add arg-nonnull.
37413         (Makefile.am): Insert arg-nonnull.h into math.h.
37414         * modules/netdb (Depends-on): Add arg-nonnull.
37415         (Makefile.am): Insert arg-nonnull.h into netdb.h.
37416         * modules/search (Depends-on): Add arg-nonnull.
37417         (Makefile.am): Insert arg-nonnull.h into search.h.
37418         * modules/signal (Depends-on): Add arg-nonnull.
37419         (Makefile.am): Insert arg-nonnull.h into signal.h.
37420         * modules/spawn (Depends-on): Add arg-nonnull.
37421         (Makefile.am): Insert arg-nonnull.h into spawn.h.
37422         * modules/stdio (Depends-on): Add arg-nonnull.
37423         (Makefile.am): Insert arg-nonnull.h into stdio.h.
37424         * modules/stdlib (Depends-on): Add arg-nonnull.
37425         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
37426         * modules/string (Depends-on): Add arg-nonnull.
37427         (Makefile.am): Insert arg-nonnull.h into string.h.
37428         * modules/strings (Depends-on): Add arg-nonnull.
37429         (Makefile.am): Insert arg-nonnull.h into strings.h.
37430         * modules/sys_socket (Depends-on): Add arg-nonnull.
37431         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
37432         * modules/sys_stat (Depends-on): Add arg-nonnull.
37433         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
37434         * modules/sys_time (Depends-on): Add arg-nonnull.
37435         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
37436         * modules/sys_times (Depends-on): Add arg-nonnull.
37437         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
37438         * modules/sys_utsname (Depends-on): Add arg-nonnull.
37439         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
37440         * modules/time (Depends-on): Add arg-nonnull.
37441         (Makefile.am): Insert arg-nonnull.h into time.h.
37442         * modules/unistd (Depends-on): Add arg-nonnull.
37443         (Makefile.am): Insert arg-nonnull.h into unistd.h.
37444         * modules/wchar (Depends-on): Add arg-nonnull.
37445         (Makefile.am): Insert arg-nonnull.h into wchar.h.
37446         * modules/argv-iter (Depends-on): Add arg-nonnull.
37447         * tests/test-canonicalize.c (null_ptr): New function.
37448         (main): Use it.
37449         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
37450         (main): Use it.
37451         * tests/test-memmem.c (null_ptr): New function.
37452         (main): Use it.
37453         Reported by Jim Meyering.
37454
37455 2009-12-10  Bruno Haible  <bruno@clisp.org>
37456
37457         Use spaces for indentation, not tabs.
37458         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
37459         * m4/*.m4: Untabify.
37460         * build-aux/*.h: Untabify.
37461         * tests/**/*.[hc]: Untabify.
37462         * README: New section "Indent with spaces, not TABs", based on
37463         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
37464         * NEWS: Mention the change.
37465
37466 2009-12-10  Bruno Haible  <bruno@clisp.org>
37467
37468         pty test: Fix link error.
37469         * modules/pty-tests (Makefile.am): Add the default LDADD value to
37470         test_pty_LDADD.
37471
37472 2009-12-07  Simon Josefsson  <simon@josefsson.org>
37473
37474         * modules/pty: New file.
37475         * modules/pty-tests: New file.
37476         * m4/pty.m4: New file.
37477         * tests/test-pty.c: New file.
37478         * doc/glibc-headers/pty.texi: Modified.
37479         * doc/glibc-functions/forkpty.texi: Modified.
37480         * doc/glibc-functions/openpty.texi: Modified.
37481
37482 2009-12-10  Bruno Haible  <bruno@clisp.org>
37483
37484         Avoid syntax error in C++ mode.
37485         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
37486
37487 2009-12-10  Bruno Haible  <bruno@clisp.org>
37488
37489         Use sed with option -e.
37490         * gnulib-tool (func_version, func_emit_copyright_notice,
37491         func_emit_initmacro_end, func_import, func_create_testdir): Pass
37492         option -e to sed.
37493         * modules/link-warning (Makefile.am): Likewise.
37494
37495 2009-12-10  Jim Meyering  <meyering@redhat.com>
37496
37497         mgetgroups: do not write bytes beyond end of malloc'd buffer
37498         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
37499         username, we call getgroups with a one-element-shorter buffer,
37500         but still told it the length was original, max_n_groups.
37501
37502 2009-12-09  Eric Blake  <ebb9@byu.net>
37503
37504         cloexec: relax license
37505         * modules/cloexec (Maintainer): Add myself.
37506         (License): Use LGPL, not GPL.
37507
37508         link-warning: optimize generation
37509         * modules/link-warning (Makefile.am): Reduce process usage.
37510
37511 2009-12-09  Bruno Haible  <bruno@clisp.org>
37512
37513         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
37514         workaround was added on 2009-11-17.
37515
37516 2009-12-09  Jim Meyering  <meyering@redhat.com>
37517             Bruno Haible  <bruno@clisp.org>
37518
37519         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
37520         * modules/link-warning (Makefile.am): Make the comment-removing sed
37521         command more robust in the face of bootstrap-prepended comment lines.
37522
37523 2009-12-09  Bruno Haible  <bruno@clisp.org>
37524
37525         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
37526         most one group.
37527
37528 2009-12-09  Simon Josefsson <simon@josefsson.org>
37529             Bruno Haible  <bruno@clisp.org>
37530
37531         * build-aux/link-warning.h: Add copyright notice.
37532         * modules/link-warning (Makefile.am): Generate link-warning.h from
37533         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
37534         * NEWS: Mention change in link-warning module.
37535         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
37536         * modules/dirent (Makefile.am): Add dependency to dirent.h.
37537         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
37538         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
37539         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
37540         * modules/math (Makefile.am): Add dependency to math.h.
37541         * modules/search (Makefile.am): Add dependency to search.h.
37542         * modules/signal (Makefile.am): Add dependency to signal.h.
37543         * modules/spawn (Makefile.am): Add dependency to spawn.h.
37544         * modules/stdio (Makefile.am): Add dependency to stdio.h.
37545         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
37546         * modules/string (Makefile.am): Add dependency to string.h.
37547         * modules/strings (Makefile.am): Add dependency to strings.h.
37548         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
37549         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
37550         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
37551         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
37552         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
37553         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
37554         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
37555         * modules/unistd (Makefile.am): Add dependency to unistd.h.
37556         * modules/wchar (Makefile.am): Add dependency to wchar.h.
37557
37558 2009-12-09  Bruno Haible  <bruno@clisp.org>
37559
37560         fchdir: Optimize away rpl_fstat when possible.
37561         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
37562         REPLACE_OPEN_DIRECTORY.
37563         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
37564
37565 2009-12-09  Bruno Haible  <bruno@clisp.org>
37566
37567         * lib/fchdir.c: Update comment.
37568
37569 2009-12-09  Bruno Haible  <bruno@clisp.org>
37570
37571         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
37572
37573 2009-12-08  Eric Blake  <ebb9@byu.net>
37574
37575         fchdir: avoid memory leak on re-registration.
37576         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
37577
37578 2009-12-08  Jim Meyering  <meyering@redhat.com>
37579
37580         init.sh: avoid Solaris 10 /bin/sh portability problem
37581         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
37582         sourced script:
37583           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
37584           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
37585           bar
37586         tests/init.sh relied on that, accepting a --set-path=DIR argument,
37587         and two tests used that idiom.
37588         * tests/init.sh: Update suggested usage comments.
37589         (path_prepend_): New function, to be used in place
37590         of the --src-path=DIR option.
37591         (setup_): Move PATH-prepending code into path_prepend_.
37592         * tests/test-pread.sh: Adapt to new usage.
37593         * tests/test-xalloc-die.sh: Likewise.
37594
37595 2009-12-08  Simon Josefsson  <simon@josefsson.org>
37596
37597         * doc/gnulib.texi (Glibc pty.h): Add.
37598         * doc/glibc-functions/forkpty.texi: Add.
37599         * doc/glibc-functions/openpty.texi: Add.
37600         Suggested by Bruno Haible.
37601
37602 2009-12-08  Eric Blake  <ebb9@byu.net>
37603
37604         fchdir: fix logic bugs
37605         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
37606         * tests/test-fchdir.c (main): Enhance test.
37607         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
37608         is in use.
37609
37610         dup2: fix logic bugs
37611         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
37612         REPLACE_DUP2 to decide when rpl_dup2 is needed.
37613         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
37614         exists.
37615         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
37616
37617 2009-12-07  Eric Blake  <ebb9@byu.net>
37618
37619         unlink: fix m4 detection
37620         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
37621
37622         unistd-safer: add unit test
37623         * modules/unistd-safer-tests: New file.
37624         * tests/test-dup-safer.c: Likewise.
37625         * tests/test-cloexec.c (setmode): Avoid compiler warning.
37626         * tests/test-dup2.c (setmode): Likewise.
37627         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
37628
37629         cloexec: preserve text vs. binary across dup_cloexec
37630         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
37631         mode.
37632         * modules/dup2-tests (Depends-on): Add binary-io.
37633         * modules/cloexec-tests (Depends-on): Likewise.
37634         * tests/test-dup2.c (setmode, is_mode): New helpers.
37635         (main): Add tests that translation mode is preserved.
37636         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
37637         Reported by Bruno Haible.
37638
37639         mgetgroups: reduce duplicate listings
37640         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
37641         resulting array.
37642         * tests/test-chown.h (test_chown): Simplify client.
37643         * tests/test-lchown.h (test_lchown): Likewise.
37644
37645 2009-12-06  Bruno Haible  <bruno@clisp.org>
37646
37647         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
37648         value.
37649
37650 2009-12-06  Bruno Haible  <bruno@clisp.org>
37651
37652         * lib/progname.c: Include stdio.h, stdlib.h.
37653         (set_program_name): Reject a NULL argument.
37654
37655 2009-12-05  Eric Blake  <ebb9@byu.net>
37656
37657         pipe2-safer: new module
37658         * modules/pipe2-safer: New file.
37659         * lib/unistd-safer.h (pipe2_safer): New prototype.
37660         * lib/unistd--.h (pipe2): New wrapper.
37661         * lib/pipe-safer.c (pipe2_safer): New function.
37662         * modules/pipe (Depends-on): Add pipe2-safer.
37663         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
37664
37665         stdlib-safer: preserve cloexec flag for mkostemp[s]
37666         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
37667         fd_safer_flag.
37668
37669         unistd-safer: allow preservation of cloexec status via flag
37670         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
37671         prototypes.
37672         * lib/dup-safer.c (dup_safer_flag): New function.
37673         * lib/fd-safer.c (fd_safer_flag): Likewise.
37674         * modules/cloexec (configure.ac): Set witness.
37675
37676         test-dup2: enhance test
37677         * modules/dup2-tests (Depends-on): Add cloexec.
37678         * tests/test-dup2.c (main): Enhance test.
37679
37680         cloexec: add dup_cloexec
37681         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
37682         header and comments.
37683         * lib/cloexec.c (set_cloexec_flag): Add comments.
37684         (dup_cloexec): New function, with mingw implementation borrowed
37685         from...
37686         * lib/w32spawn.h (dup_noinherit): ...here.
37687         * modules/execute (Depends-on): Add cloexec.
37688         * modules/pipe (Depends-on): Likewise.
37689         * modules/cloexec (Depends-on): Add dup2.
37690         * modules/cloexec-tests (Files): New file.
37691         * tests/test-cloexec.c: Likewise.
37692
37693         test-xalloc-die: fix test for mingw
37694         * modules/xalloc-die-tests (Files): Add tests/init.sh.
37695         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
37696         directory and .exe suffix off argv[0] output.
37697
37698         test-fseeko: fix test for mingw
37699         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
37700         than undefining fseek, so test will pass on mingw.
37701
37702 2009-12-05  Bruno Haible  <bruno@clisp.org>
37703
37704         * lib/progname.h (set_program_name): Clarify specification.
37705         * lib/progname.c (set_program_name): Likewise.
37706         Reported by Jim Meyering.
37707
37708 2009-12-05  Jim Meyering  <meyering@redhat.com>
37709
37710         maint.mk: backslash-escape parens in default regexp
37711         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
37712         backslash-escape the literal parentheses.
37713
37714         maint.mk: news-date-check: use grep -E
37715         * top/maint.mk (today): Define a Make variable, not a...
37716         (news-date-check): ...shell variable.
37717         (news-date-regexp): Use the Make variable.
37718         Use grep's -E option.  Change the failing diagnostic to mention
37719         the variable, $(news-date-regexp).
37720
37721 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
37722
37723         maintainer-makefile: allow customization of NEWS entry format
37724         * top/maint.mk (news-date-regexp): New overridable variable.
37725         (news-date-check): Use it.
37726
37727 2009-12-04  Eric Blake  <ebb9@byu.net>
37728
37729         mgetgroups: add xgetgroups, and avoid ENOSYS failures
37730         * lib/mgetgroups.h (xgetgroups): New prototype.
37731         * lib/mgetgroups.c (xgetgroups): New wrapper.
37732         (mgetgroups): Handle ENOSYS.
37733         * modules/mgetgroups (Depends-on): Add realloc.
37734         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
37735
37736         mgetgroups: avoid argument promotion issues with -1
37737         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
37738         for invalid gid_t.
37739         * tests/test-chown.h (getegid, test_chown): Likewise.
37740         * tests/test-lchown.h (getegid, test_lchown): Likewise.
37741
37742 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
37743
37744         exclude: Fix header file problems.
37745         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
37746
37747 2009-12-01  Jim Meyering  <meyering@redhat.com>
37748
37749         fts: fts_open: do not let an empty string cause immediate failure
37750         This is required in support of GNU rm, for which the command
37751         "rm A '' B" must process and remove both A and B, in spite of
37752         the empty string argument.
37753         * lib/fts.c (fts_open): Do not let the presence of an empty string
37754         cause fts_open to fail immediately.  Most fts-using tools must be
37755         able to process all arguments, in order, and can be expected to
37756         diagnose such arguments themselves.
37757
37758 2009-11-30  Eric Blake  <ebb9@byu.net>
37759
37760         utimens: fix compilation error
37761         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
37762         Declare variable at right scope.
37763
37764 2009-11-29  Jim Meyering  <meyering@redhat.com>
37765
37766         bootstrap: handle perl-5.11's changed --version output
37767         * build-aux/bootstrap (get_version): Handle perl separately,
37768         since perl-5.11's --version output is different.
37769
37770 2009-11-28  Jim Meyering  <meyering@redhat.com>
37771
37772         userspec: depend on the inttostr module, too
37773         * modules/userspec (Depends-on): Add inttostr.
37774
37775         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
37776         * lib/userspec.c (parse_with_separator): Do not accept a user ID
37777         number of MAXUID when it evaluates to (uid_t) -1.
37778         Likewise for group ID.  Reported by Matt McCutchen in
37779         <http://savannah.gnu.org/bugs/?28113>
37780
37781         userspec: reformat to use spaces, not TABs
37782         * lib/userspec.c: Expand TABs to spaces.
37783         Add Emacs' "indent-tabs-mode: nil" hint.
37784
37785 2009-11-27  Eric Blake  <ebb9@byu.net>
37786
37787         getopt-gnu: flush out another BSD bug
37788         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
37789         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
37790         flush out BSD bug.
37791         * tests/test-getopt.h (test_getopt): End lists with NULL.
37792         * tests/test-getopt_long.h (test_getopt_long): Likewise.
37793         (test_getopt_long_posix): Enhance test.
37794         * modules/getopt-posix-tests (Depends-on): Add stdbool.
37795         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
37796         getopt-gnu.
37797         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37798         Likewise.
37799
37800 2009-11-27  Simon Josefsson  <simon@josefsson.org>
37801
37802         * modules/idpriv-droptemp-tests (Notice): Fix text.
37803
37804 2009-11-27  Jim Meyering  <meyering@redhat.com>
37805
37806         test-xalloc-die: avoid spurious failure due to libtool argv difference
37807         In a libtool-enabled project, this test would fail due to a difference
37808         in the emitted program name, e.g.,
37809         -test-xalloc-die: memory exhausted
37810         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
37811         Use program to avoid that.
37812         * modules/xalloc-die-tests (Depends-on): Add progname.
37813         * tests/test-xalloc-die.c: Include progname.h".
37814         (program_name): Remove decl.
37815         (main): Call set_program_name.
37816         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
37817
37818 2009-11-26  Richard Jones  <rjones@redhat.com>
37819
37820         w32sock: leave win32 error in place.
37821         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
37822
37823 2009-11-26  Eric Blake  <ebb9@byu.net>
37824
37825         init.sh: suggest to use skip_ and fail_ functions in comments
37826         * tests/init.sh: Add a sentence.
37827
37828 2009-11-25  Bruno Haible  <bruno@clisp.org>
37829
37830         init.sh: add documentation in comments
37831         * tests/init.sh: Add some developer and user documentation.
37832
37833 2009-11-26  Jim Meyering  <meyering@redhat.com>
37834
37835         init.sh: accommodate even those who specify bogus srcdir manually
37836         * tests/init.sh: Normally, srcdir is guaranteed by automake and
37837         configure-time tests to be sanitized, so that there is no need to
37838         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
37839         (with no double quotes) suffices.  However, since tests may be
37840         invoked manually, and since you may explicitly set srcdir to the
37841         name of a directory containing spaces, do quote its uses here.
37842         * tests/test-pread.sh: Likewise.
37843         Suggested by Bruno Haible.
37844
37845         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
37846         * tests/test-pread.sh: Write no data into the pipe, because
37847         test-pread actually reads none.  This avoids a diagnostic,
37848         "bash: echo: write error: Broken pipe", that arises in the unusual
37849         event something is ignoring SIGPIPE, and might be interpreted
37850         as some sort of failure.  Reported by Bruno Haible.
37851
37852 2009-11-25  Jim Meyering  <meyering@redhat.com>
37853
37854         test-pread: cover failure with ESPIPE and EINVAL
37855         * tests/test-pread.c (main): Test for failure, too.
37856         * tests/test-pread.sh: Invoke with stdin on a pipe.
37857         Suggested by Eric Blake.
37858
37859         pread: improvement and fix
37860         * modules/pread (Depends-on): Depend on lseek, for portability to
37861         e.g., mingw.  Suggested by Eric Blake.
37862         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
37863
37864         unistd.in.h: correct declaration of pread
37865         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
37866         Reported by Richard W.M. Jones.
37867
37868         test-pread.sh: distribute the test script
37869         * modules/pread-tests (Files): Include test-pread.sh.
37870
37871         test-pread.sh: clean up
37872         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
37873         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
37874         That is unnecessary, since it's always ".".
37875         Suggestion from Eric Blake.
37876
37877         test-pread.sh: make executable
37878         * tests/test-pread.sh: Set executable bit.
37879         Reported by Eric Blake.
37880
37881         correct typo in test-pread.sh
37882         * tests/test-pread.sh: Add #! line.
37883
37884         test pread
37885         * tests/test-pread.c: New file.
37886         * tests/test-pread.sh: Likewise.
37887         * modules/pread-tests: Likewise.
37888
37889         pread: new module
37890         * modules/pread: New file.
37891         * lib/unistd.in.h (pread): Define/declare.
37892         * lib/pread.c (pread): New file.
37893         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
37894         * modules/unistd (Makefile.am): Substitute witnesses.
37895         * doc/posix-functions/pread.texi (pread): Update.
37896         * MODULES.html.sh: Add pread.
37897
37898 2009-11-25  Jim Meyering  <meyering@redhat.com>
37899
37900         tests/init.sh: new file to be used via most *.sh tests
37901         * tests/init.sh: New file.
37902
37903 2009-11-25  Eric Blake  <ebb9@byu.net>
37904
37905         utimens: work around older Linux failure with symlinks
37906         * lib/utimens.c (lutimensat_works_really): New variable.
37907         (fdutimens, lutimens): Use it to manage kernels that support
37908         nanosecond times on files, but not on symlinks.
37909         Reported by OndÅ™ej Vašík.
37910
37911         utimes: fix configure grammar
37912         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
37913
37914 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
37915
37916         regex: Fix fastmap for multibyte character ranges.
37917         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
37918         characters when a multibyte character range is included.
37919
37920 2009-11-22  Andy Wingo  <wingo@pobox.com>
37921
37922         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
37923         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
37924
37925 2009-11-24  Bruno Haible  <bruno@clisp.org>
37926
37927         doc: Most *_l functions exist in MacOS X 10.5.
37928         * doc/posix-functions/duplocale.texi: Update platforms list.
37929         * doc/posix-functions/freelocale.texi: Likewise.
37930         * doc/posix-functions/newlocale.texi: Likewise.
37931         * doc/posix-functions/uselocale.texi: Likewise.
37932         * doc/posix-functions/isalnum_l.texi: Likewise.
37933         * doc/posix-functions/isalpha_l.texi: Likewise.
37934         * doc/posix-functions/isblank_l.texi: Likewise.
37935         * doc/posix-functions/iscntrl_l.texi: Likewise.
37936         * doc/posix-functions/isdigit_l.texi: Likewise.
37937         * doc/posix-functions/isgraph_l.texi: Likewise.
37938         * doc/posix-functions/islower_l.texi: Likewise.
37939         * doc/posix-functions/isprint_l.texi: Likewise.
37940         * doc/posix-functions/ispunct_l.texi: Likewise.
37941         * doc/posix-functions/isspace_l.texi: Likewise.
37942         * doc/posix-functions/isupper_l.texi: Likewise.
37943         * doc/posix-functions/iswalnum_l.texi: Likewise.
37944         * doc/posix-functions/iswalpha_l.texi: Likewise.
37945         * doc/posix-functions/iswblank_l.texi: Likewise.
37946         * doc/posix-functions/iswcntrl_l.texi: Likewise.
37947         * doc/posix-functions/iswctype_l.texi: Likewise.
37948         * doc/posix-functions/iswdigit_l.texi: Likewise.
37949         * doc/posix-functions/iswgraph_l.texi: Likewise.
37950         * doc/posix-functions/iswlower_l.texi: Likewise.
37951         * doc/posix-functions/iswprint_l.texi: Likewise.
37952         * doc/posix-functions/iswpunct_l.texi: Likewise.
37953         * doc/posix-functions/iswspace_l.texi: Likewise.
37954         * doc/posix-functions/iswupper_l.texi: Likewise.
37955         * doc/posix-functions/iswxdigit_l.texi: Likewise.
37956         * doc/posix-functions/isxdigit_l.texi: Likewise.
37957         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
37958         * doc/posix-functions/strcasecmp_l.texi: Likewise.
37959         * doc/posix-functions/strcoll_l.texi: Likewise.
37960         * doc/posix-functions/strfmon_l.texi: Likewise.
37961         * doc/posix-functions/strftime_l.texi: Likewise.
37962         * doc/posix-functions/strncasecmp_l.texi: Likewise.
37963         * doc/posix-functions/strxfrm_l.texi: Likewise.
37964         * doc/posix-functions/tolower_l.texi: Likewise.
37965         * doc/posix-functions/toupper_l.texi: Likewise.
37966         * doc/posix-functions/towctrans_l.texi: Likewise.
37967         * doc/posix-functions/towlower_l.texi: Likewise.
37968         * doc/posix-functions/towupper_l.texi: Likewise.
37969         * doc/posix-functions/wcscoll_l.texi: Likewise.
37970         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
37971         * doc/posix-functions/wctrans_l.texi: Likewise.
37972         * doc/posix-functions/wctype_l.texi: Likewise.
37973         * doc/glibc-functions/strptime_l.texi: Likewise.
37974         * doc/glibc-functions/strtod_l.texi: Likewise.
37975         * doc/glibc-functions/strtof_l.texi: Likewise.
37976         * doc/glibc-functions/strtol_l.texi: Likewise.
37977         * doc/glibc-functions/strtold_l.texi: Likewise.
37978         * doc/glibc-functions/strtoll_l.texi: Likewise.
37979         * doc/glibc-functions/strtoul_l.texi: Likewise.
37980         * doc/glibc-functions/strtoull_l.texi: Likewise.
37981         * doc/glibc-functions/wcsftime_l.texi: Likewise.
37982         * doc/glibc-functions/wcstod_l.texi: Likewise.
37983         * doc/glibc-functions/wcstof_l.texi: Likewise.
37984         * doc/glibc-functions/wcstol_l.texi: Likewise.
37985         * doc/glibc-functions/wcstold_l.texi: Likewise.
37986         * doc/glibc-functions/wcstoll_l.texi: Likewise.
37987         * doc/glibc-functions/wcstoul_l.texi: Likewise.
37988         * doc/glibc-functions/wcstoull_l.texi: Likewise.
37989
37990 2009-11-24  Bruno Haible  <bruno@clisp.org>
37991
37992         duplocale: Fix logic bug.
37993         * lib/duplocale.c: Don't include <langinfo.h>.
37994         (_NL_LOCALE_NAME): Remove macro.
37995         (rpl_duplocale): Use setlocale instead of nl_langinfo.
37996         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
37997
37998 2009-11-23  Jim Meyering  <meyering@redhat.com>
37999
38000         test-update-copyright: don't hard-code /usr/bin/perl
38001         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
38002         perl to print the current year.  Gilles Espinasse reported that
38003         the replaced use of perl was hard-coded as /usr/bin/perl.
38004
38005 2009-11-23  Bruno Haible  <bruno@clisp.org>
38006
38007         duplocale: Add support for glibc 2.3.x.
38008         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
38009
38010 2009-11-22  Bruno Haible  <bruno@clisp.org>
38011
38012         vasnprintf: Tiny optimization.
38013         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
38014         MacOS X.
38015
38016 2009-11-22  Bruno Haible  <bruno@clisp.org>
38017
38018         Tests for module 'duplocale'.
38019         * modules/duplocale-tests: New file.
38020         * tests/test-duplocale.c: New file.
38021
38022         New module 'duplocale'.
38023         * m4/duplocale.m4: New file.
38024         * lib/locale.in.h (duplocale): New declaration.
38025         * lib/duplocale.c: New file.
38026         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
38027         gl_LOCALE_H_DEFAULTS): New macros.
38028         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
38029         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
38030         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
38031         REPLACE_DUPLOCALE.
38032         * modules/duplocale: New file.
38033         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
38034
38035 2009-11-22  Bruno Haible  <bruno@clisp.org>
38036
38037         * modules/locale-tests (configure.ac): Test for newlocale function.
38038         * tests/test-locale.c: When the system has extended locale functions,
38039         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
38040
38041         locale: Make locale_t available when possible.
38042         * lib/locale.in.h: Include <xlocale.h> when it exists.
38043         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
38044         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
38045         * modules/locale (Depends-on): Add extensions.
38046         (Makefile.am): Also substitute HAVE_XLOCALE_H.
38047         * doc/posix-headers/locale.texi: Document the problem with locale_t.
38048
38049 2009-11-22  Bruno Haible  <bruno@clisp.org>
38050
38051         Add comments.
38052         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
38053         invocation.
38054         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
38055         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
38056         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
38057
38058 2009-11-22  Bruno Haible  <bruno@clisp.org>
38059
38060         error: account for the possibility of freopen (stdout).
38061         * lib/error.c: Include <unistd.h>.
38062         (flush_stdout): New function, extracted from error and error_at_line.
38063         Determine stdout's fd dynamically.
38064         (error, error_at_line): Invoke flush_stdout.
38065         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
38066         * modules/error (Depends-on): Add unistd.
38067
38068 2009-11-22  Bruno Haible  <bruno@clisp.org>
38069
38070         diffseq: Add comment.
38071         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
38072
38073 2009-11-22  Jim Meyering  <meyering@redhat.com>
38074
38075         c-stack: avoid defining an unused static function
38076         * lib/c-stack.c (find_stack_direction): Do not define this function
38077         when it will not be used.
38078
38079         diffseq: avoid spurious gcc warnings
38080         * lib/diffseq.h (IF_LINT2): Define.
38081         (compareseq): Use it to initialize two members of "part".
38082         This avoids two used-uninitialized warnings.
38083
38084 2009-11-21  Jim Meyering  <meyering@redhat.com>
38085
38086         c-stack: avoid "ignoring return value of `write'" warning
38087         * lib/c-stack.c: Include "ignore-value.h".
38088         (die): Explicitly ignore each write return value.
38089         * modules/c-stack (Depends-on): Add ignore-value.
38090
38091 2009-11-21  Bruno Haible  <bruno@clisp.org>
38092
38093         diffseq: reduce scope of variable 'best'.
38094         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
38095         variable, earlier used for two different purposes.
38096
38097 2009-11-21  Jim Meyering  <meyering@redhat.com>
38098
38099         diffseq: remove useless assignment to "best"
38100         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
38101         assignment.  At that point "best" is already guaranteed to be zero.
38102
38103 2009-11-20  Eric Blake  <ebb9@byu.net>
38104
38105         build: mention ftp redirector in release announcements
38106         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
38107         values that used to come from cfg.mk; mention FTP redirect URL.
38108         * build-aux/announce-gen: Mention the mirror list.
38109         Suggested by Karl Berry.
38110
38111         nanosleep: improve port to mingw
38112         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
38113         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
38114         LIB_NANOSLEEP, but only when needed.
38115         * modules/select (Link): Document LIBSOCKET.
38116         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
38117         enough.
38118
38119         nanosleep: work around cygwin bug
38120         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
38121         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
38122         bug.
38123         (getnow): Delete, not needed.
38124         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
38125         LIB_CLOCK_GETTIME.
38126         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
38127         clock-time, gettime.
38128         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
38129         bug.
38130         * modules/nanosleep-tests: New test.
38131         * tests/test-nanosleep.c: New file.
38132
38133         sleep: work around cygwin bug
38134         * lib/sleep.c (rpl_sleep): Work around the bug.
38135         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
38136         (gl_PREREQ_SLEEP): Delete unused macro.
38137         * modules/sleep (Depends-on): Add verify.
38138         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
38139         * modules/unistd (Makefile.am): Substitute witness.
38140         * lib/unistd.in.h (sleep): Update prototype.
38141         * doc/posix-functions/sleep.texi (sleep): Document the bug.
38142         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
38143         * modules/sleep-tests (Depends-on): Check for alarm.
38144
38145 2009-11-20  Jim Meyering  <meyering@redhat.com>
38146
38147         maint.mk: improve sc_prohibit_magic_number_exit
38148         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
38149         so it does not match uses like System.exit(1).
38150         Add comments showing how to correct all offenders.
38151
38152 2009-11-19  Eric Blake  <ebb9@byu.net>
38153
38154         xalloc-die-tests: add missing library
38155         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
38156
38157         test-xvasprintf: silence compiler warnings
38158         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
38159         empty string from gcc.
38160
38161 2009-11-19  Jim Meyering  <meyering@redhat.com>
38162
38163         xfreopen: new module, from coreutils
38164         * modules/xfreopen: New module.
38165         * lib/xfreopen.c: New file.
38166         * lib/xfreopen.h: New file.
38167         * MODULES.html.sh (File stream based Input/Output"): Add it.
38168
38169 2009-11-19  Eric Blake  <ebb9@byu.net>
38170
38171         manywarnings: depend on warnings
38172         * modules/manywarnings (Depends-on): Add warnings.
38173
38174         build: avoid compiler warnings
38175         * lib/select.c (rpl_select): Delete unused variable.
38176         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
38177
38178 2009-11-18  Eric Blake  <ebb9@byu.net>
38179
38180         tests: avoid false negative with --with-packager
38181         * tests/test-version-etc.sh: Discard packager information.
38182         * tests/test-argp-version-etc-1.sh: Likewise.
38183         Reported by Mike Frysinger.
38184
38185         utimens: fix regression on Solaris
38186         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
38187         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
38188         can only change fd timestamps via futimesat.  Instead, use an
38189         additional witness macro to avoid BSD bug.
38190         Reported by Jim Meyering.
38191
38192 2009-11-17  Eric Blake  <ebb9@byu.net>
38193
38194         usleep: use it to simplify tests
38195         * modules/stat-time-tests (Depends-on): Add usleep.
38196         (configure.ac): Drop usleep check.
38197         * modules/chown-tests (Depends-on, configure.ac): Likewise.
38198         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
38199         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
38200         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
38201         * modules/openat-tests (Depends-on, configure.ac): Likewise.
38202         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
38203         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
38204         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
38205         Likewise.
38206         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
38207         * tests/test-lchown.h (nap): Likewise.
38208         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
38209         * tests/test-stat-time.c (nap): Likewise.
38210         * tests/test-utimens-common.h (nap): Update comments.
38211
38212         usleep: new module
38213         * modules/usleep: New file.
38214         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
38215         * lib/usleep.c (usleep): Likewise.
38216         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
38217         * modules/unistd (Makefile.am): Substitute witnesses.
38218         * lib/unistd.in.h (usleep): Add declaration.
38219         * doc/pastposix-functions/usleep.texi (usleep): Document this.
38220         * MODULES.html.sh (Date and time): Likewise.
38221         * modules/usleep-tests (Depends-on): New test.
38222         * tests/test-usleep.c: New file.
38223
38224         chown: work around OpenBSD bug
38225         * lib/chown.c (rpl_chown): Work around the bug.
38226         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
38227         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
38228         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
38229         * modules/chown (Depends-on): Add stdbool.
38230         * modules/lchown (Depends-on): Likewise.
38231         * doc/posix-functions/chown.texi (chown): Document the bug.
38232         * doc/posix-functions/lchown.texi (lchown): Likewise.
38233         * tests/test-lchown.h (test_chown): Relax test.
38234
38235         mkstemp: avoid conflict with C++ keyword template
38236         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
38237         * lib/mkostemp.c (mkostemp): Likewise.
38238         * lib/mkostemps.c (mkostemps): Likewise.
38239         * lib/mkstemp.c (mkstemp): Likewise.
38240         * lib/mkstemps.c (mkstemps): Likewise.
38241
38242         xalloc-die-tests: optimize
38243         * tests/test-xalloc-die.sh: Reduce number of processes.
38244
38245 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38246
38247         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
38248         patch from ludo@gnu.org (Ludovic Courtès).
38249
38250 2009-11-17  Jim Meyering  <meyering@redhat.com>
38251
38252         version-etc: use proper license string
38253         * modules/version-etc (License): Use LGPL, not LGPLv3+.
38254         * modules/version-etc-fsf: Likewise.
38255
38256 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38257
38258         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
38259         printed to stdout.  Deal with EOL differences.
38260
38261 2009-11-17  Eric Blake  <ebb9@byu.net>
38262
38263         unsetenv: work around Solaris bug
38264         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
38265         * lib/unsetenv.c (rpl_unsetenv): Work around it.
38266         Reported by Jim Meyering.
38267
38268         vasnprintf: avoid compiler warnings
38269         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
38270         variables.
38271         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
38272
38273 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38274
38275         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
38276         settings since xalloc-die is no longer the self test,
38277         xalloc-die.sh is.
38278
38279 2009-11-17  Jim Meyering  <meyering@redhat.com>
38280
38281         test-xalloc-die.sh: make the code agree with the commit log
38282         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
38283         at the end, just in case you happen to have a test-xalloc-die
38284         program in some other PATH directory.
38285
38286         test-xalloc-die.sh: fix a portability bug
38287         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
38288         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
38289         Otherwise, argv[0] (as often seen in diagnostics) would be too
38290         system-dependent, sometimes with, and sometimes without the leading "./".
38291
38292         version-etc-fsf: relax license to LGPLv3+
38293         * modules/version-etc-fsf (License): Relax license.
38294
38295 2009-11-16  Eric Blake  <ebb9@byu.net>
38296
38297         xalloc-die-tests: avoid printing null pointer
38298         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
38299         shell script.
38300         * tests/test-xalloc-die.c (program_name): Declare.
38301         * tests/test-xalloc-die.sh (tmpfiles): New file.
38302
38303         setenv, unsetenv: work around various bugs
38304         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
38305         (setenv) [HAVE_SETENV]: Work around bugs.
38306         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
38307         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
38308         for bugs.
38309         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
38310         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
38311         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
38312         * modules/stdlib (Makefile.am): Update substitutions.
38313         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
38314         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
38315         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
38316         * modules/setenv-tests: New test.
38317         * modules/unsetenv-tests: Likewise.
38318         * tests/test-setenv.c: New file.
38319         * tests/test-unsetenv.c: Likewise.
38320
38321 2009-11-16  Jim Meyering  <meyering@redhat.com>
38322
38323         version-etc: relax license to LGPLv3+
38324         * modules/version-etc (License): Relax license.
38325
38326         better AC_REQUIRE expanded-before-required-warning avoidance
38327         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
38328         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
38329         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
38330         which is no longer needed.
38331
38332 2009-11-16  Eric Blake  <ebb9@byu.net>
38333
38334         test-freading: clean up temporary file
38335         * tests/test-freading.c (main): Remove file on success, and use
38336         ASSERT more liberally.
38337         Reported by Jim Meyering.
38338
38339 2009-11-16  Jim Meyering  <meyering@redhat.com>
38340
38341         avoid new AC_REQUIRE expanded-before-required warnings
38342         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
38343         merely using it.
38344         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
38345         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
38346
38347 2009-11-15  Simon Josefsson  <simon@josefsson.org>
38348
38349         * tests/test-xalloc-die.c: New file.
38350         * modules/xalloc-die-tests: New file.
38351         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
38352         XFAIL_TESTS so it can be appended by modules.
38353
38354 2009-11-15  Simon Josefsson  <simon@josefsson.org>
38355
38356         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
38357         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
38358
38359 2009-11-14  Eric Blake  <ebb9@byu.net>
38360
38361         fnmatch: avoid compiler warning
38362         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
38363         to silence compiler warning about mismatch signedness in ?:.
38364         Reported by Robert Millan.
38365
38366         intprops: add double-inclusion guard
38367         * lib/intprops.h: Allow idempotent includes.
38368         Suggested by Bruce Korb.
38369
38370         openat: detect Solaris fchownat bug
38371         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
38372         penalizing glibc chownat when only lchownat is broken.
38373         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
38374         trailing slash bugs.
38375         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
38376         * modules/openat-tests (Files): Include more files.
38377         (Depends-on): Add mgetgroups, sleep, stat-time.
38378         (configure.ac): Add additional checks.
38379         (Makefile.am): Build new test.
38380         * tests/test-fchownat.c: New file.
38381
38382         lchown: detect Solaris and FreeBSD bug
38383         * lib/lchown.c (rpl_lchown): Work around bug.
38384         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
38385         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38386         * modules/unistd (Makefile.am): Populate it.
38387         * lib/unistd.in.h (lchown): Update declaration.
38388         * doc/posix-functions/lchown.texi (lchown): Document the bug.
38389         * modules/lchown-tests: New file.
38390         * tests/test-lchown.h (test_lchown): Likewise.
38391         * tests/test-lchown.c (main): Likewise.
38392
38393         chown: detect Solaris and FreeBSD bug
38394         * lib/chown.c (rpl_chown): Work around bug.
38395         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
38396         (gl_PREREQ_CHOWN): Delete.
38397         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38398         * modules/unistd (Makefile.am): Populate it.
38399         * lib/unistd.in.h (chown): Update declaration.
38400         * lib/lchown.c (chown): Update client.
38401         * modules/lchown (Depends-on): Add lstat.
38402         * doc/posix-functions/chown.texi (chown): Document the bug.
38403         * doc/posix-functions/getgroups.texi (getgroups): Document
38404         getgroups pitfall.
38405         * modules/chown-tests: New file.
38406         * tests/test-chown.h (test_chown): Likewise.
38407         * tests/test-chown.c (main): Likewise.
38408
38409 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
38410
38411         gnulib-tool: correctly detect absence of m4 directories
38412         * gnulib-tool: Avoid extra newline on data passed to wc -l.
38413
38414 2009-11-14  Jim Meyering  <meyering@redhat.com>
38415
38416         maint.mk: Prohibit inclusion of "xalloc.h" without use.
38417         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
38418
38419 2009-11-14  John W. Eaton  <jwe@gnu.org>
38420
38421         strftime.h: wrap funtion declaration in extern "C" block
38422         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
38423
38424 2009-11-13  Eric Blake  <ebb9@byu.net>
38425
38426         getgroups: avoid compiler warning
38427         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
38428
38429         getgroups: work around FreeBSD bug
38430         * lib/getgroups.c (rpl_getgroups): Work around the bug.
38431         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
38432         * doc/posix-functions/getgroups.texi (getgroups): Document it.
38433         * tests/test-getgroups.c (main): Fix buffer overrun.
38434
38435         getgroups: avoid compilation failure
38436         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
38437         * modules/getgroups (Depends-on): Add stdint.
38438
38439 2009-11-13  Jim Meyering  <meyering@redhat.com>
38440
38441         test-getgroups: avoid compilation failure
38442         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
38443
38444 2009-11-13  Eric Blake  <ebb9@byu.net>
38445
38446         mgetgroups: new module, taken from coreutils
38447         * modules/mgetgroups: New file.
38448         * lib/mgetgroups.h: Likewise.
38449         * lib/mgetgroups.c (mgetgroups): Likewise.
38450         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
38451         * MODULES.html.sh (Users and groups): Mention it.
38452
38453         getgroups: don't expose GETGROUPS_T to user
38454         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
38455         an element at a time if GETGROUPS_T is wrong size.
38456         * lib/getugroups.h (getugroups): Change signature.
38457         * lib/unistd.in.h (getgroups): Likewise.
38458         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
38459         signature needs fixing.
38460         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
38461         AC_TYPE_GETGROUPS.
38462         * modules/group-member (Depends-on): Add getgroups.
38463         * lib/group-member.c (group_info, get_group_info): Use gid_t.
38464         (group_member): Rely on getgroups replacement.
38465         * lib/getugroups.c (getugroups): Use gid_t.
38466         * tests/test-getgroups.c (main): Likewise.
38467         * NEWS: Mention the signature change.
38468         * doc/posix-functions/getgroups.texi (getgroups): Mention the
38469         problem with signature.
38470         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
38471         GETGROUPS_T is still useful for setgroups.
38472
38473         getgroups, getugroups: provide stubs for mingw
38474         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
38475         * lib/getugroups.c (getugroups): Likewise.
38476         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
38477         function.  Modernize replacement scheme.
38478         (gl_PREREQ_GETGROUPS): Delete.
38479         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
38480         * modules/getgroups (configure.ac): Declare witness.
38481         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
38482         * modules/unistd (Depends-on): Substitute witness.
38483         * lib/unistd.in.h (getgroups): Declare replacement.
38484
38485         getgroups: avoid calling exit
38486         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
38487         drop xalloc.
38488         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
38489         dependencies.
38490         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
38491         exiting, in the rare case of malloc failure.
38492
38493         getgroups: fix logic error
38494         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
38495         has more than 20 groups.
38496         * modules/getgroups-tests: New test.
38497         * tests/test-getgroups.c: New file.
38498
38499 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38500
38501         * tests/test-base64.c: Improve.
38502
38503 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38504
38505         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
38506         Blake <ebb9@byu.net>.
38507
38508 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38509
38510         * tests/test-xvasprintf.c: Add %s%s related checks.
38511
38512 2009-11-12  Eric Blake  <ebb9@byu.net>
38513
38514         version-etc: match standards.texi style
38515         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
38516         and use <> only for URLs.
38517
38518 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
38519
38520         fts: do not fail on a submount during traversal
38521         * lib/fts.c (fts_build): Read the stat info again after opening
38522         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
38523         Original report at http://bugzilla.redhat.com/501848.
38524
38525 2009-11-12  Jim Meyering  <meyering@redhat.com>
38526
38527         bootstrap: sync from coreutils
38528         * build-aux/bootstrap (bootstrap_epilogue): New function.
38529         Use git_modules_config in one more place.  This make bootstrap's
38530         --gnulib-srcdir option more useful for testing.
38531
38532         bootstrap: generalize autoheader check
38533         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
38534         AC_CONFIG_HEADERS.
38535
38536 2009-11-11  Eric Blake  <ebb9@byu.net>
38537
38538         mkfifoat: use new modules for Solaris and BSD bugs
38539         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
38540         * lib/mkfifoat.c (mknodat): Split...
38541         * lib/mknodat.c (mknodat): ...into new file.
38542         * modules/mkfifoat (Files): Ship new file.
38543         (Depends-on): Add mkfifo, mknod.
38544         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
38545         (Depends-on): Add symlink.
38546         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
38547         redundant with test_mkfifo.h.
38548         (do_mkfifoat, do_mknodat): New helpers.
38549
38550         mknod: new module
38551         * modules/mknod: New file.
38552         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
38553         * lib/mknod.c (mknod): Likewise.
38554         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
38555         defaults.
38556         * modules/sys_stat (Makefile.am): Substitute them.
38557         * lib/sys_stat.in.h (mknod): Declare replacement.
38558         * MODULES.html.sh (Support for systems lacking POSIX:2008):
38559         Document it.
38560         * doc/posix-functions/mknod.texi (mknod): Likewise.
38561         * modules/mknod-tests: New test.
38562         * tests/test-mknod.c: Likewise.
38563
38564         mkfifo: new module
38565         * modules/mkfifo: New file.
38566         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
38567         * lib/mkfifo.c (mkfifo): Likewise.
38568         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
38569         defaults.
38570         * modules/sys_stat (Makefile.am): Substitute them.
38571         * lib/sys_stat.in.h (mkfifo): Declare replacement.
38572         * MODULES.html.sh (Support for systems lacking POSIX:2008):
38573         Document it.
38574         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
38575         * modules/mkfifo-tests: New test.
38576         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
38577         from test-mkfifoat.c.
38578         * tests/test-mkfifo.c: New file.
38579
38580         readlink: detect FreeBSD bug
38581         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
38582         slash on symlink.
38583         * doc/posix-functions/readlink.texi (readlink): Document the bug.
38584         * tests/test-readlink.h (test_readlink): Enhance test.
38585
38586         symlink: detect FreeBSD bug
38587         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
38588         slash on symlink.
38589         * doc/posix-functions/symlink.texi (symlink): Document the bug.
38590         * tests/test-symlink.h (test_symlink): Enhance test.
38591
38592 2009-11-10  Eric Blake  <ebb9@byu.net>
38593
38594         link: detect FreeBSD bug
38595         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
38596         symlink.
38597         * doc/posix-functions/link.texi (link): Document the bug.
38598         * tests/test-link.h (test_link): Enhance test.
38599         * tests/test-linkat.c (main): Update caller.
38600
38601         unlink, remove: detect FreeBSD bug
38602         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
38603         slash on symlink.
38604         * doc/posix-functions/unlink.texi (unlink): Document the bug.
38605         * doc/posix-functions/remove.texi (remove): Likewise.
38606         * tests/test-unlink.h (test_unlink): Enhance test.
38607         * tests/test-remove.c (main): Likewise.
38608
38609 2009-11-09  Eric Blake  <ebb9@byu.net>
38610
38611         rename: detect FreeBSD bug
38612         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
38613         slash on symlink.
38614         * modules/renameat-tests (Depends-on): Add filenamecat.
38615         * tests/test-rename.h (test_rename): Allow one more errno.
38616         * tests/test-renameat.c (main): Likewise.
38617         * doc/posix-functions/rename.texi (rename): Document the bug.
38618
38619         open: detect FreeBSD bug
38620         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
38621         symlink.
38622         * doc/posix-functions/open.texi (open): Document the bug.
38623         * doc/posix-functions/utimes.texi (utimes): Likewise.
38624         * tests/test-open.h (test_open): Add parameters, and test symlink
38625         handling.
38626         * tests/test-open.c (main): Adjust caller.
38627         * tests/test-fcntl-safer.c (main): Likewise.
38628         * modules/open-tests (Depends-on): Add stdbool, symlink.
38629         * modules/fcntl-safer-tests (Depends-on): Likewise.
38630         * tests/test-openat.c (main): Add test-open tests.
38631
38632         stat: detect FreeBSD bug
38633         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
38634         symlink.
38635         * doc/posix-functions/stat.texi (stat): Document the bug.
38636         * tests/test-stat.h (test_stat_func): Add argument.
38637         * tests/test-stat.c (main): Adjust caller.
38638         * tests/test-fstatat.c (main): Likewise.
38639         * modules/stat-tests (Depends-on): Add stdbool, symlink.
38640         Reported by Jim Meyering.
38641
38642 2009-11-09  James Youngman  <jay@gnu.org>
38643
38644         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
38645         * lib/strftime.c: Correct placement of #include "ignore-value.h".
38646
38647 2009-11-08  Jim Meyering  <meyering@redhat.com>
38648
38649         utimens: remove invalid futimesat call
38650         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
38651         It used the file descriptor of the target file as the DIR_FD
38652         parameter and NULL as the file name.  That caused failure with
38653         errno == EFAULT on FreeBSD-8.0-rc2
38654
38655 2009-11-07  Eric Blake  <ebb9@byu.net>
38656
38657         fflush, freadseek: use fseeko, not fseek
38658         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
38659         (clear_ungetc_buffer): Avoid potential problems on large files.
38660         * lib/freadseek.c (freadseek): Likewise.
38661         * modules/freadseek (Depends-on): Add fseeko.
38662         * modules/fseek (configure.ac): Set a witness.
38663         * tests/test-fflush.c (main): Use fseeko.
38664         * tests/test-fpurge.c (fseek): Disable link warning.
38665         * tests/test-freadable.c (fseek): Likewise.
38666         * tests/test-freading.c (fseek): Likewise.
38667         * tests/test-fseeko.c (fseek): Likewise.
38668         * tests/test-ftell.c (fseek): Likewise.
38669         * tests/test-ftello.c (fseek): Likewise.
38670         * tests/test-fwritable.c (fseek): Likewise.
38671         * tests/test-fwriting.c (fseek): Likewise.
38672
38673 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38674
38675         * modules/memchr (Depends-on): Drop getpagesize dependency.
38676
38677 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38678
38679         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
38680         Reported by Ludovic Courtès.
38681         * build-aux/pmccabe2html: Improve example usage.
38682         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
38683
38684 2009-11-06  Jim Meyering  <meyering@redhat.com>
38685
38686         do-release-commit-and-tag: New module.
38687         Automate the release-commit and tag process.
38688         * build-aux/do-release-commit-and-tag: New script, from coreutils.
38689         * modules/do-release-commit-and-tag: New file.
38690         * MODULES.html.sh (Support for maintaining and releasing): Add it.
38691
38692 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38693
38694         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
38695         because test-select.c uses inet_pton.
38696
38697 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38698
38699         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
38700         GETADDRINFO_LIB.  Bump serial number.
38701         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
38702         Suggested by Eric Blake <ebb9@byu.net>.
38703
38704 2009-11-05  Eric Blake  <ebb9@byu.net>
38705
38706         strtod: detect darwin bug
38707         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
38708         Reported by Leo Davis.
38709
38710         freopen-safer: new module
38711         * modules/freopen-safer: New module.
38712         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
38713         * lib/freopen-safer.c (freopen_safer): New file.
38714         * lib/stdio-safer.h (freopen_safer): New declaration.
38715         * lib/stdio--.h (freopen): New override.
38716         * MODULES.html.sh (File stream based Input/Output): Mention it.
38717         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
38718         freopen-safer module.
38719         * doc/posix-functions/stderr.texi (stderr): Likewise.
38720         * doc/posix-functions/stdin.texi (stdin): Likewise.
38721         * doc/posix-functions/stdout.texi (stdout): Likewise.
38722         * modules/freopen-safer-tests: New test.
38723         * tests/test-reopen-safer.c: New file.
38724
38725 2009-11-05  Jim Meyering  <meyering@redhat.com>
38726
38727         maint.mk: Prohibit inclusion of "close-stream.h" without use.
38728         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
38729
38730 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38731
38732         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
38733
38734 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38735
38736         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
38737
38738 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38739
38740         Fix link error.
38741         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
38742         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38743
38744 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38745
38746         * tests/test-func.c: Also test value of __func__.
38747
38748 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38749
38750         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
38751         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
38752
38753 2009-11-05  Bruno Haible  <bruno@clisp.org>
38754
38755         Fix link error.
38756         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
38757         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38758         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
38759
38760 2009-11-05  Bruno Haible  <bruno@clisp.org>
38761
38762         Tests for module 'inet_pton'.
38763         * modules/inet_pton-tests: New file.
38764         * tests/test-inet_pton.c: New file.
38765
38766 2009-11-05  Bruno Haible  <bruno@clisp.org>
38767
38768         Tests for module 'inet_ntop'.
38769         * modules/inet_ntop-tests: New file.
38770         * tests/test-inet_ntop.c: New file.
38771
38772 2009-11-04  Eric Blake  <ebb9@byu.net>
38773
38774         stdlib-safer: wrap all mkstemp variants
38775         * modules/mkostemp (configure.ac): Set witness.
38776         * modules/mkostemps (configure.ac): Likewise.
38777         * modules/mkstemps (configure.ac): Likewise.
38778         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
38779         (mkstemps_safer): Wrap more functions.
38780         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
38781         wrapping.
38782         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
38783         (mkstemps_safer): Implement the wrappers.
38784
38785         mkstemps, mkostemps: new modules
38786         * modules/mkostemps: New module.
38787         * modules/mkstemps: Likewise.
38788         * lib/mkostemps.c (mkostemps): New file.
38789         * lib/mkstemps.c (mkstemps): Likewise.
38790         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
38791         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
38792         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
38793         * modules/stdlib (Makefile.am): Substitute them.
38794         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
38795         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
38796         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
38797         * doc/gnulib.texi (Glibc stdlib.h): Include them.
38798         * MODULES.html.sh (File system functions): Mention them.
38799
38800         tempname: resync from glibc
38801         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
38802         same values for __GT_FILE as glibc.  Abort even when assertions
38803         are disabled.
38804         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
38805         match its value otherwise.  Allow idempotent inclusion.
38806         * lib/mkdtemp.c (mkdtemp): Adjust caller.
38807         * lib/mkostemp.c (mkostemp): Likewise.
38808         * lib/mkstemp.c (mkstemp): Likewise.
38809         * lib/tmpfile.c (tmpfile): Likewise.
38810         * NEWS: Document this.
38811
38812         utimens: fix use of futimens on older Linux
38813         * lib/utimens.c (fdutimens): Use updated, rather than original,
38814         timespec to avoid bug in older Linux kernel.
38815         Reported by Simon Josefsson.
38816
38817 2009-11-04  Bruno Haible  <bruno@clisp.org>
38818
38819         Make num_processors more flexible and consistent.
38820         * lib/nproc.h (enum nproc_query): New type.
38821         (num_processors): Add a 'query' argument.
38822         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
38823         (num_processors): Add a 'query' argument. Test the value of the
38824         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
38825         mingw, count the number of CPUs available for the current process.
38826         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
38827         Check for sched_getaffinity and sched_getaffinity_np.
38828         * modules/nproc (Depends-on): Add c-ctype, extensions.
38829         * NEWS: Mention the change.
38830
38831 2009-11-03  Bruno Haible  <bruno@clisp.org>
38832
38833         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
38834
38835 2009-11-03  Jim Meyering  <meyering@redhat.com>
38836
38837         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
38838         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
38839         if it is defined.
38840
38841 2009-11-02  Eric Blake  <ebb9@byu.net>
38842
38843         mktime, timegm: share common declaration
38844         * lib/mktime-internal.h: New file.
38845         * lib/mktime.c: Use it rather than open-coding a declaration.
38846         * lib/timegm.c: Likewise.
38847         * modules/mktime (Files): Ship it.
38848         * modules/timegm (Files): Likewise.
38849         Suggested by Bruno Haible.
38850
38851         test-update-copyright: update test to match script changes
38852         * tests/test-update-copyright.sh: Avoid hard-coding perl
38853         location.  Don't update *.bak created by earlier runs.
38854
38855 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
38856             Simon Josefsson  <simon@josefsson.org>
38857             Bruno Haible  <bruno@clisp.org>
38858
38859         Fix link error on Solaris 8.
38860         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
38861         also in libnsl. Define also INET_PTON_LIB.
38862         * modules/inet_pton (Link): New section.
38863
38864 2009-11-02  Simon Josefsson  <simon@josefsson.org>
38865             Bruno Haible  <bruno@clisp.org>
38866
38867         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
38868         * modules/inet_ntop (Link): New section.
38869         Reported by Boyan Kasarov <bkasarov@gmail.com>.
38870
38871 2009-11-02  Eric Blake  <ebb9@byu.net>
38872
38873         maint: avoid compiler warnings in m4 macros
38874         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
38875         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
38876
38877 2009-11-02  Simon Josefsson  <simon@josefsson.org>
38878
38879         * m4/pmccabe2html.m4: Remove file.
38880         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
38881         function.  Change maintainer.
38882         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
38883         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
38884         Courtès).
38885
38886 2009-10-31  Eric Blake  <ebb9@byu.net>
38887
38888         fseeko: fix m4 regression
38889         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
38890         regression from 2009-10-27.
38891         Reported by Ralf Wildenhues.
38892
38893 2009-10-31  Jim Meyering  <meyering@redhat.com>
38894
38895         inttostr: aesthetics and improved (compile-time) safety
38896         Define inttype_is_signed rather than inttype_is_unsigned,
38897         since the sole use is via "#if inttype_is_signed".
38898         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
38899         inttype_is_unsigned.
38900         * lib/offtostr.c (inttype_is_signed): Likewise.
38901         * lib/uinttostr.c (inttype_is_signed): Likewise.
38902         * lib/umaxtostr.c (inttype_is_signed): Likewise.
38903         * lib/inttostr.c (inttostr): Use verify to cross-check the
38904         inttype_is_signed value and the signedness of the actual type.
38905         * modules/inttostr (Depends-on): Add verify.
38906
38907 2009-10-30  Eric Blake  <ebb9@byu.net>
38908
38909         build: avoid compiler warnings
38910         * lib/fchmodat.c (lchmod): Mark unused variables.
38911         * lib/getopt.c (_getopt_initialize): Likewise.
38912         * lib/mktime.c (__mktime_internal): Provide prototype.
38913         * lib/inttostr.c (inttostr): Avoid compiler warning even with
38914         older gcc that do not understand #pragma GCC diagnostic.
38915         * lib/uinttostr.c (inttype_is_unsigned): Define.
38916         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
38917
38918 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
38919
38920         stat: fix compilation on AIX
38921         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
38922         only see struct stat64.
38923
38924 2009-10-30  Eric Blake  <ebb9@byu.net>
38925
38926         exclude: make more robust
38927         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
38928         rather than masking a coding bug.
38929         Suggested by Bruno Haible.
38930
38931 2009-10-30  Jim Meyering  <meyering@redhat.com>
38932
38933         perl scripts: remove #!/usr/bin/perl in favor of more portable...
38934         Rather than putting #!/usr/bin/perl on the first line,
38935         start with a variant of what's recommended by "man perlrun" that
38936         invokes the first "perl" program from your shell's search path.
38937         * build-aux/gitlog-to-changelog: Replace #!... as above.
38938         Add a "Local Variables" perl mode setting.
38939         Prompted by a patch from Ludovic Courtès.
38940         Improved by Eric Blake.
38941         * build-aux/useless-if-before-free: Likewise.
38942         * build-aux/announce-gen: Likewise.
38943         * build-aux/update-copyright: Likewise.
38944
38945 2009-10-29  Eric Blake  <ebb9@byu.net>
38946
38947         filenamecat-lgpl: adjust clients
38948         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
38949         filenamecat.
38950         * modules/renameat (Depends-on): Likewise.
38951
38952         filenamecat: split into filenamecat-lgpl
38953         * modules/filenamecat-lgpl: New module.
38954         * modules/filenamecat (Files): Move library-safe files into
38955         filenamecat-lgpl.
38956         (Depends-on): Add filenamecat-lgpl.
38957         (configure.ac): Declare witness.
38958         * lib/filenamecat.h (file_name_concat): Only declare when using
38959         GPL module.
38960         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
38961         Move...
38962         * lib/filenamecat-lgpl.c: ...into new file.
38963         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
38964         (gl_FILE_NAME_CONCAT): Use it.
38965         * MODULES.html.sh (File system functions): Mention new module.
38966
38967         argp: avoid memory leak
38968         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
38969         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
38970         base_name, since the latter malloc()s and can call exit().
38971         Leak introduced 2006-07-03.
38972
38973         dirname-lgpl: adjust clients that don't need full dirname
38974         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
38975         * modules/filenamecat (Depends-on): Likewise.
38976         * modules/linkat (Depends-on): Likewise.
38977         * modules/mkancesdirs (Depends-on): Likewise.
38978         * modules/mkdir (Depends-on): Likewise.
38979         * modules/openat (Depends-on): Likewise.
38980         * modules/savewd (Depends-on): Likewise.
38981         * modules/rename (Depends-on): Likewise.
38982         (License): Relax license.
38983         * modules/mkdir-tests (Depends-on): Drop progname.
38984         (Makefile.am): Delete unneeded LDADD.
38985         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
38986
38987         dirname: split into dirname-lgpl
38988         * modules/dirname-lgpl: New module.
38989         * modules/dirname (Files): Move library-safe files into
38990         dirname-lgpl.
38991         (Depends-on): Add dirname-lgpl.
38992         (configure.ac): Declare witness.
38993         * modules/double-slash-root (License): Relax license.
38994         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
38995         module.
38996         * lib/dirname.c (dir_len, mdir_name): Move...
38997         * lib/dirname-lgpl.c: ...into new file.
38998         * lib/basename.c (last_component, base_len): Move...
38999         * lib/basename-lgpl.c: ...into new file.
39000         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
39001         (gl_DIRNAME): Use it.
39002         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
39003         Mention new module.
39004         * modules/dirname-tests (Depends-on): Add progname.
39005         * tests/test-dirname.c (program_name): Delete.
39006
39007         mkdir: make safe for libraries
39008         * modules/mkdir (Depends-on): Drop xalloc.
39009         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
39010         exit.
39011
39012         tests: avoid some compiler warnings
39013         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
39014         literals.
39015         * tests/test-memchr.c (main): Avoid type mismatch.
39016         * tests/test-arpa_inet.c (main): Avoid unused parameters.
39017         * tests/test-base64.c (main): Likewise.
39018         * tests/test-getdelim.c (main): Likewise.
39019         * tests/test-gethostname.c (main): Likewise.
39020         * tests/test-getline.c (main): Likewise.
39021         * tests/test-netinet_in.c (main): Likewise.
39022         * tests/test-select.c (open_server_socket, main): Likewise.
39023         * tests/test-select-stdin.c (main): Likewise.
39024         * tests/test-sockets.c (main): Likewise.
39025         * tests/test-strsignal.c (main): Likewise.
39026         * tests/test-sys_select.c (main): Likewise.
39027         * tests/test-sys_socket.c (main): Likewise.
39028         * tests/test-u64.c (main): Likewise.
39029         * tests/test-xfprintf-posix.c (main): Likewise.
39030         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
39031
39032         sockets: avoid compiler warning
39033         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
39034
39035         maint: detect usage(1) and other suspicious exits
39036         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
39037
39038 2009-10-29  Jim Meyering  <meyering@redhat.com>
39039
39040         timespec: long-to-int truncation could make timespec_cmp malfunction
39041         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
39042         a multiple of 2^32 nanoseconds as no difference.
39043
39044 2009-10-28  Jim Meyering  <meyering@redhat.com>
39045
39046         fprintftime: wrap macro code argument in "do {...} while(0)"
39047         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
39048         cpy macro must be a statement that can be followed by a semicolon.
39049         Now that the else clause contains a comment and is hence longer
39050         than one line, I require curly braces.  That in turn requires
39051         that we wrap this code block in the standard do...while(0).
39052
39053         fprintftime: remove stray semicolon from previous change
39054         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
39055
39056         fprintftime: avoid a warning about ignored fwrite return value
39057         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
39058         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
39059         that is unsafe.
39060         * modules/fprintftime (Depends-on): Add ignore-value.
39061
39062         exclude: avoid an unwarranted warning
39063         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
39064
39065 2009-10-27  Eric Blake  <ebb9@byu.net>
39066
39067         fseek: avoid compilation failure when fflush is replaced
39068         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
39069         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
39070         module is in use.
39071         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
39072         module is not in use; since REPLACE_FSEEK worked otherwise.
39073         (GNULIB_FTELLO): Likewise for ftell.
39074         Reported by Ian Beckwith and others.
39075
39076 2009-10-27  Bruno Haible  <bruno@clisp.org>
39077
39078         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
39079         Reported by Jim Meyering.
39080
39081 2009-10-27  Jim Meyering  <jim@meyering.net>
39082             Bruno Haible  <bruno@clisp.org>
39083
39084         Avoid warning despite dropping the return value of fwrite.
39085         * lib/unicodeio.c: Include ignore-value.h.
39086         (fwrite_success_callback): Explicitly ignore fwrite's return value.
39087         * modules/unicodeio (Depends-on): Add ignore-value.
39088
39089 2009-10-26  Eric Blake  <ebb9@byu.net>
39090
39091         areadlinkat: fix fallback path
39092         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
39093         pointer and zero.
39094
39095 2009-10-22  Pádraig Brady  <P@draigBrady.com>
39096
39097         Use a better IO block size for modern systems
39098         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
39099         * lib/md2.c: Likewise.
39100         * lib/md4.c: Likewise.
39101         * lib/md5.c: Likewise.
39102         * lib/sha1.c: Likewise.
39103         * lib/sha256.c: Likewise.
39104         * lib/sha512.c: Likewise.
39105
39106 2009-10-22  Eric Blake  <ebb9@byu.net>
39107
39108         tests: avoid several compiler warnings
39109         * tests/test-getcwd.c (main): Avoid buffer underflow.
39110         * tests/test-getdate.c (main): String literals are not safe with
39111         putenv, so use setenv.  Declare unused argument.
39112         * modules/getdate-tests (Depends-on): Add setenv.
39113         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
39114         problems with string literals in char *.
39115         * tests/test-hash.c (main): Avoid shadowing declaration.
39116         (insert_new): Treat string literals as char const *.
39117         * tests/test-getopt.h (test_getopt): Likewise.
39118         (getopt_loop): Alter types to minimize casting elsewhere.
39119         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
39120         (test_getopt_long_posix): Likewise.
39121         (do_getopt_long): Add wrapper to minimize casting.
39122         * tests/test-atexit.c (clear_temp_file): Use void.
39123         * tests/test-areadlink-with-size.c (main): Declare unused
39124         arguments.
39125         * tests/test-areadlink.c (main): Likewise.
39126         * tests/test-areadlinkat-with-size.c (main): Likewise.
39127         * tests/test-areadlinkat.c (main): Likewise.
39128         * tests/test-canonicalize-lgpl.c (main): Likewise.
39129         * tests/test-canonicalize.c (main): Likewise.
39130         * tests/test-dirent-safer.c (main): Likewise.
39131         * tests/test-dirname.c (main): Likewise.
39132         * tests/test-dup2.c (main): Likewise.
39133         * tests/test-fchdir.c (main): Likewise.
39134         * tests/test-fcntl-h.c (main): Likewise.
39135         * tests/test-fcntl-safer.c (main): Likewise.
39136         * tests/test-fdopendir.c (main): Likewise.
39137         * tests/test-fdutimensat.c (main): Likewise.
39138         * tests/test-fflush.c (main): Likewise.
39139         * tests/test-filenamecat.c (main): Likewise.
39140         * tests/test-filevercmp.c (main): Likewise.
39141         * tests/test-fopen-safer.c (main): Likewise.
39142         * tests/test-fopen.c (main): Likewise.
39143         * tests/test-fpending.c (main): Likewise.
39144         * tests/test-fpurge.c (main): Likewise.
39145         * tests/test-freading.c (main): Likewise.
39146         * tests/test-fstatat.c (main): Likewise.
39147         * tests/test-fsync.c (main): Likewise.
39148         * tests/test-futimens.c (main): Likewise.
39149         * tests/test-getndelim2.c (main): Likewise.
39150         * tests/test-gettimeofday.c (main): Likewise.
39151         * tests/test-getopt.c (main): Likewise.
39152         * tests/test-i-ring.c (main): Likewise.
39153         * tests/test-inttypes.c (main): Likewise.
39154         * tests/test-link.c (main): Likewise.
39155         * tests/test-lstat.c (main): Likewise.
39156         * tests/test-math.c (main): Likewise.
39157         * tests/test-md5.c (main): Likewise.
39158         * tests/test-memchr2.c (main): Likewise.
39159         * tests/test-memrchr.c (main): Likewise.
39160         * tests/test-mkdir.c (main): Likewise.
39161         * tests/test-mkdirat.c (main): Likewise.
39162         * tests/test-mkfifoat.c (main): Likewise.
39163         * tests/test-open.c (main): Likewise.
39164         * tests/test-openat-safer.c (main): Likewise.
39165         * tests/test-openat.c (main): Likewise.
39166         * tests/test-quotearg.c (main): Likewise.
39167         * tests/test-rawmemchr.c (main): Likewise.
39168         * tests/test-readlink.c (main): Likewise.
39169         * tests/test-remove.c (main): Likewise.
39170         * tests/test-rename.c (main): Likewise.
39171         * tests/test-renameat.c (main): Likewise.
39172         * tests/test-rmdir.c (main): Likewise.
39173         * tests/test-sha1.c (main): Likewise.
39174         * tests/test-signal.c (main): Likewise.
39175         * tests/test-sigaction.c (main): Likewise.
39176         * tests/test-stat.c (main): Likewise.
39177         * tests/test-stat-time.c (main): Likewise.
39178         * tests/test-stddef.c (main): Likewise.
39179         * tests/test-stdint.c (main): Likewise.
39180         * tests/test-stdio.c (main): Likewise.
39181         * tests/test-stdlib.c (main): Likewise.
39182         * tests/test-strchrnul.c (main): Likewise.
39183         * tests/test-strerror.c (main): Likewise.
39184         * tests/test-string.c (main): Likewise.
39185         * tests/test-strtod.c (main): Likewise.
39186         * tests/test-strverscmp.c (main): Likewise.
39187         * tests/test-symlink.c (main): Likewise.
39188         * tests/test-symlinkat.c (main): Likewise.
39189         * tests/test-sys_stat.c (main): Likewise.
39190         * tests/test-sys_time.c (main): Likewise.
39191         * tests/test-time.c (main): Likewise.
39192         * tests/test-unistd.c (main): Likewise.
39193         * tests/test-unlink.c (main): Likewise.
39194         * tests/test-unlinkat.c (main): Likewise.
39195         * tests/test-utimens.c (main): Likewise.
39196         * tests/test-utimensat.c (main): Likewise.
39197         * tests/test-version-etc.c (main): Likewise.
39198         * tests/test-wchar.c (main): Likewise.
39199         * tests/test-wctype.c (main): Likewise.
39200         * tests/test-xprintf-posix.c (main): Likewise.
39201         * tests/test-posixtm.c (main): Likewise.
39202         (STREQ): Delete unused macro.
39203         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
39204         shadowed variables.
39205         * tests/test-memchr.c (main): Likewise.
39206
39207 2009-10-21  Eric Blake  <ebb9@byu.net>
39208
39209         areadlinkat: avoid failure on older glibc
39210         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
39211         rather than mis-comparing 0 against FUNC_RESULT of char*.
39212
39213 2009-10-21  Bruno Haible  <bruno@clisp.org>
39214
39215         * modules/stpncpy (License): Relicense under LGPLv2+.
39216         Reported by David Lutterkort <lutter@redhat.com>.
39217
39218 2009-10-20  Eric Blake  <ebb9@byu.net>
39219
39220         utimensat: work around Solaris 9 bug
39221         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
39222         has trailing slash bugs.
39223         * tests/test-lutimens.h (test_lutimens): Enhance test.
39224         * tests/test-utimens.h (test_utimens): Likewise.
39225         * doc/posix-functions/utime.texi (utime): Enhance documentation.
39226         * doc/posix-functions/utimes.texi (utimes): Likewise.
39227         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39228         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
39229         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
39230         * doc/posix-functions/futimens.texi (futimens): Likewise.
39231
39232         fdutimensat: new module
39233         * modules/fdutimensat: New file.
39234         * lib/fdutimensat.c (fdutimensat): Likewise.
39235         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
39236         * MODULES.html.sh (File system functions): Mention module.
39237         * modules/fdutimensat-tests: New test.
39238         * tests/test-fdutimensat.c: Likewise.
39239
39240         doc: regenerate INSTALL
39241         * doc/INSTALL: Reflect recent autoconf update.
39242         * doc/INSTALL.ISO: Likewise.
39243         * doc/INSTALL.UTF-8: Likewise.
39244
39245 2009-10-20  Pádraig Brady  <P@draigBrady.com>
39246
39247         acl: warn if ACL support is not detected
39248         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
39249
39250 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
39251
39252         * lib/nproc.h: Add extern "C" block for C++.
39253
39254 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
39255             Bruno Haible  <bruno@clisp.org>
39256
39257         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
39258         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
39259         * doc/posix-functions/isalpha.texi: Likewise.
39260         * doc/posix-functions/isblank.texi: Likewise.
39261         * doc/posix-functions/iscntrl.texi: Likewise.
39262         * doc/posix-functions/isdigit.texi: Likewise.
39263         * doc/posix-functions/isgraph.texi: Likewise.
39264         * doc/posix-functions/islower.texi: Likewise.
39265         * doc/posix-functions/isprint.texi: Likewise.
39266         * doc/posix-functions/ispunct.texi: Likewise.
39267         * doc/posix-functions/isspace.texi: Likewise.
39268         * doc/posix-functions/isupper.texi: Likewise.
39269         * doc/posix-functions/isxdigit.texi: Likewise.
39270
39271 2009-10-18  Bruno Haible  <bruno@clisp.org>
39272
39273         Tests for module 'isblank'.
39274         * modules/isblank-tests: New file.
39275         * tests/test-isblank.c: New file.
39276
39277         New module 'isblank'.
39278         * lib/isblank.c: New file.
39279         * m4/isblank.m4: New file.
39280         * modules/isblank: New file.
39281         * doc/posix-functions/isblank.texi: Mention the new module.
39282
39283 2009-10-18  Bruno Haible  <bruno@clisp.org>
39284
39285         New module 'ctype'.
39286         * lib/ctype.in.h: New file.
39287         * m4/ctype.m4: New file.
39288         * modules/ctype: New file.
39289         * doc/posix-headers/ctype.texi: Mention the new module.
39290
39291 2009-10-18  Jim Meyering  <meyering@redhat.com>
39292
39293         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
39294         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
39295         right after its initialization, rather than farther down.
39296         Keeping these in close proximity makes it easier to ensure
39297         that each such variable is initialized.  E.g.,
39298
39299             LIB_CLOCK_GETTIME=
39300             AC_SUBST([LIB_CLOCK_GETTIME])
39301
39302         This change also increments these serial numbers.
39303         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
39304         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39305         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39306
39307 2009-10-18  Bruno Haible  <bruno@clisp.org>
39308
39309         Don't let environment variables perturb build.
39310         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
39311         (gl_PREREQ_GETHRXTIME): ... not here.
39312
39313 2009-10-18  Bruno Haible  <bruno@clisp.org>
39314
39315         Avoid symlink attack in localcharset module.
39316         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
39317         (O_NOFOLLOW): Define fallback.
39318         (get_charset_aliases): Don't open the file if it is a symbolic link.
39319         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
39320         gl_FCNTL_H.
39321         (gl_FCNTL_H): Require it.
39322         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
39323         * modules/localcharset (Files): Add m4/fcntl_h.m4.
39324         Reported by Fergal Glynn <fglynn@veracode.com>.
39325
39326 2009-10-18  Bruno Haible  <bruno@clisp.org>
39327
39328         Implement nproc for mingw.
39329         * lib/nproc.c: Include <windows.h>
39330         (num_processors): On native Windows platforms, try GetSystemInfo.
39331
39332 2009-10-18  Bruno Haible  <bruno@clisp.org>
39333
39334         Implement nproc for IRIX.
39335         * lib/nproc.c: Include <sys/sysmp.h>.
39336         (num_processors): On IRIX systems, try sysmp.
39337         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
39338
39339 2009-10-18  Bruno Haible  <bruno@clisp.org>
39340
39341         Implement nproc for HP-UX.
39342         * lib/nproc.c: Include <sys/pstat.h>
39343         (num_processors): On HP-UX systems, try pstat_getdynamic.
39344         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
39345         pstat_getdynamic.
39346
39347 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
39348             Bruno Haible  <bruno@clisp.org>
39349
39350         Implement nproc for NetBSD, OpenBSD.
39351         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
39352         (ARRAY_SIZE): New macro.
39353         (num_processors): On BSD systems, try sysctl of HW_NCPU.
39354         * m4/nproc.m4: New file.
39355         * modules/nproc (Files): Add m4/nproc.m4.
39356         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
39357         (Makefile.am): Instead, augment lib_SOURCES.
39358
39359 2009-10-18  Bruno Haible  <bruno@clisp.org>
39360
39361         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
39362         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
39363         sys/param.h.
39364
39365 2009-10-16  Eric Blake  <ebb9@byu.net>
39366
39367         utimensat: new module
39368         * modules/utimensat: New file.
39369         * lib/utimensat.c (utimensat): Likewise.
39370         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
39371         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
39372         so we can work around Linux bugs.
39373         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39374         * modules/sys_stat (Makefile.am): Substitute them.
39375         * lib/sys_stat.in.h (utimensat): Declare it.
39376         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39377         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39378         * modules/utimensat-tests: New test.
39379         * tests/test-utimensat.c: Likewise.
39380
39381         utimens: let lutimens work on non-symlinks
39382         * lib/utimens.c (lutimens): Fall back to utimens rather than
39383         failing with ENOSYS, when file is not a symlink.
39384         (utimens): Reduce redirection.
39385         * tests/test-lutimens.h (test_lutimens): Update test to cover
39386         non-symlinks.
39387         * tests/test-utimens.h (test_utimens): Update test to cover
39388         symlinks.
39389         * tests/test-utimens.c (main): Update caller.
39390
39391         utimens: cache whether utimensat syscall works
39392         * lib/utimens.c (utimensat_works_really): New cache variable.
39393         (fdutimens, lutimens): Use it to avoid failing syscall.
39394
39395         test-stat-time, test-utimens: improve portability
39396         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
39397         ext4 on alpha, and for cygwin.
39398         * tests/test-utimens-common.h: New file.
39399         (nap): Factor delays into single function.
39400         * tests/test-lutimens.h (test_lutimens): Use new header.
39401         * tests/test-futimens.h (test_futimens): Likewise.
39402         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
39403         timestamps to occur from same machine, as was done previously for
39404         test_utimens.
39405         * modules/utimens-tests (Files): Ship new file.
39406         * modules/futimens-tests (Files): Likewise.
39407         Reported in part by Jim Meyering.
39408
39409         sys_stat: sort replacement declarations
39410         * lib/sys_stat.in.h: Sort declarations.
39411         * lib/futimens.c (futimens): Fix typo.
39412
39413 2009-10-15  Jim Meyering  <meyering@redhat.com>
39414
39415         don't let environment settings perturb build
39416         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
39417         could cause a configure-time and/or build-time malfunction.
39418         Typically, a configure-time function-in-library test is performed
39419         via code like this:
39420
39421           LIB_VAR=
39422           AC_SUBST([LIB_VAR])
39423           prefix_saved_LIBS=$LIBS
39424             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
39425                        [test "$ac_cv_search_FUNC" = "none required" ||
39426                         LIB_VAR=$ac_cv_search_FUNC])
39427           LIBS=$prefix_saved_LIBS
39428
39429         However, in each of the files affected by this change, the LIB_VAR=
39430         initialization was omitted.  Thus, when set in the environment, its
39431         value would propagate into generated Makefiles when FUNC is not found
39432         in LIB_NAME.
39433         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
39434         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39435         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39436
39437 2009-10-14  Eric Blake  <ebb9@byu.net>
39438
39439         fchdir: avoid infinite recursion in mingw
39440         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
39441         recursing.
39442
39443         test-stat-time: port to mingw
39444         * tests/test-stat-time.c (force_unlink): Return a value.
39445         (test_ctime) [W32]: Fix compilation error.
39446         (nap): Don't call usleep with too large an argument.  Use
39447         force_unlink.
39448         * doc/pastposix-functions/usleep.texi (usleep): Document the
39449         portability issue.
39450
39451 2009-10-13  Jim Meyering  <meyering@redhat.com>
39452
39453         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
39454         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
39455         * modules/pipe-filter-ii: Likewise.
39456         * modules/sys_socket-tests: Likewise.
39457         * modules/tsearch-tests: Likewise.
39458         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
39459         (check): Depend on it.
39460
39461 2009-10-12  Eric Blake  <ebb9@byu.net>
39462
39463         utimens-tests: port to NFS file systems
39464         * tests/test-utimens.h (test_utimens): Refactor utimecmp
39465         comparisons to avoid spurious failures from timestamp drift
39466         between NFS machines.
39467
39468 2009-10-12  Eric Blake  <ebb9@byu.net>
39469
39470         stat-time-tests: minor cleanups
39471         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
39472         * tests/test-stat-time.c (nap): Separate assignment from call.
39473         Suggested by Paolo Bonzini and Bruno Haible.
39474
39475         sys_stat: guarantee struct timespec
39476         * lib/sys_stat.in.h (includes): Always include <time.h>
39477         * modules/sys_stat (Depends-on): Add time.
39478         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
39479         mode_t permission values.
39480         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
39481         get at subsecond timestamps.
39482
39483 2009-10-10  Eric Blake  <ebb9@byu.net>
39484
39485         futimens: new module
39486         * modules/futimens: New file.
39487         * lib/futimens.c (futimens): Likewise.
39488         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
39489         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
39490         we can work around Linux bugs.
39491         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39492         * modules/sys_stat (Makefile.am): Substitute them.
39493         * lib/sys_stat.in.h (futimens): Declare it.
39494         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39495         * doc/posix-functions/futimens.texi (futimens): Likewise.
39496         * modules/futimens-tests: New test.
39497         * tests/test-futimens.c: Likewise.
39498
39499         utimens: introduce fdutimens
39500         * lib/utimens.h (fdutimens): New prototype.
39501         * lib/utimens.c (gl_futimens): Move guts...
39502         (fdutimens): ...to new interface.
39503         * tests/test-utimens.c (do_fdutimens): Use it.
39504
39505         utimens: add UTIME_NOW and UTIME_OMIT support
39506         * lib/utimens.c (validate_timespec, update_timespec): New helper
39507         functions.
39508         (gl_futimens, lutimens): Use them.
39509         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
39510         stdbool, sys_stat.
39511         (Link): Mention resulting library dependency.
39512         * modules/utimecmp (Link): Likewise.
39513         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
39514         (Makefile.am): Pick up library dependency.
39515         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
39516         definition.
39517         * tests/test-sys_stat.c: Test the definitions.
39518         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
39519         * NEWS: Document library dependency.
39520
39521         utimecmp: support symlink timestamps
39522         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
39523         hashing when possible.  Use pathconf when available.
39524         (SYSCALL_RESOLUTION): Recognize tighter resolution.
39525         * modules/utimecmp (Depends-on): Add lstat.
39526
39527         utimens: add lutimens interface
39528         * lib/utimens.c (lutimens): New function.
39529         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
39530         * lib/utimens.h (lutimens): Declare new interface.
39531         * tests/test-utimens.c (main): Enhance test.
39532         * tests/test-lutimens.h (test_lutimens): New file.
39533         * modules/utimens-tests (Files): Distribute it.
39534         (Depends-on): Add symlink.
39535         (configure.ac): Check for usleep.
39536
39537         utimens: validate futimens usage
39538         * lib/utimens.c (gl_futimens): Require valid fd up front, using
39539         fewer syscalls on failure later on.  Avoid compiler warning on
39540         mingw.
39541         * modules/utimens (Depends-on): Add dup2.
39542
39543         utimens: add test
39544         * modules/utimens-tests: New test.
39545         * tests/test-utimens.h: New file.
39546         * tests/test-futimens.h: Likewise.
39547         * tests/test-utimens.c: Likewise.
39548
39549         doc: mention timestamp portability issues
39550         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
39551         instead.
39552         * doc/posix-functions/utime.texi (utime): Likewise.
39553         * doc/posix-functions/utimes.texi (utimes): Likewise.
39554         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
39555         instead.
39556         * doc/posix-functions/futimens.texi (futimens): Mention utimens
39557         module.
39558         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39559         Mention weakness with symlink timestamps.
39560         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
39561         to utimensat/futimens instead.
39562         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
39563
39564         test-dup2: enhance test
39565         * tests/test-dup2.c (main): Also check AT_FDCWD.
39566
39567         test-stat-time: avoid more spurious failures
39568         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
39569         xfs; and avoid race if the two timestamps cross quantization edge.
39570
39571         relocatable: prefer 'file system' over 'filesystem'
39572         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
39573         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
39574         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
39575         * doc/relocatable.texi (Enabling Relocatability): Likewise.
39576         * lib/relocatable.c (compute_curr_prefix): Likewise.
39577
39578 2009-10-10  Jim Meyering  <meyering@redhat.com>
39579
39580         stat-time-tests: check for the usleep function
39581         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
39582
39583 2009-10-10  Bruno Haible  <bruno@clisp.org>
39584
39585         * modules/xnanosleep: Put the Link section after the Include section.
39586
39587 2009-10-09  Eric Blake  <ebb9@byu.net>
39588
39589         dup2: work around FreeBSD 6.1 bug
39590         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
39591         * doc/posix-functions/dup2.texi (dup2): Document it.
39592         Reported by Nelson H. F. Beebe and Jim Meyering.
39593
39594         test-stat-time: port to buggy NFS clients
39595         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
39596         (test_ctime): Also skip test if mtime and ctime are skewed.
39597
39598         maint: prefer 'file system' over 'filesystem'
39599         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
39600         * doc/posix-functions/lstat.texi (lstat): Likewise.
39601         * lib/file-has-acl.c (file_has_acl): Likewise.
39602         * lib/fwriteerror.c [TEST]: Likewise.
39603         * tests/test-areadlink.h (test_areadlink): Likewise.
39604         * tests/test-areadlinkat-with-size.c (main): Likewise.
39605         * tests/test-areadlinkat.c (main): Likewise.
39606         * tests/test-canonicalize-lgpl.c (main): Likewise.
39607         * tests/test-canonicalize.c (main): Likewise.
39608         * tests/test-fstatat.c (main): Likewise.
39609         * tests/test-linkat.c (main): Likewise.
39610         * tests/test-lstat.h (test_lstat_func): Likewise.
39611         * tests/test-mkdir.h (test_mkdir): Likewise.
39612         * tests/test-readlink.h (test_readlink): Likewise.
39613         * tests/test-remove.c (main): Likewise.
39614         * tests/test-rename.h (test_rename): Likewise.
39615         * tests/test-renameat.c (main): Likewise.
39616         * tests/test-rmdir.h (test_rmdir_func): Likewise.
39617         * tests/test-symlink.h (test_symlink): Likewise.
39618         * tests/test-symlinkat.c (main): Likewise.
39619         * tests/test-unlink.h (test_unlink_func): Likewise.
39620         * tests/test-unlinkat.c (main): Likewise.
39621
39622         maint: make realtime library usage explicit
39623         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
39624         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
39625         * modules/settime (Link): Likewise.
39626         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
39627
39628         test-stat-time: speed up execution
39629         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
39630         warning on mingw.
39631         (nap): New helper function.
39632         (prepare_test): Use it to reduce sleep time.
39633         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
39634         execution.
39635         * modules/stat-time-tests (configure.ac): Check for usleep.
39636
39637 2009-10-09  Jim Meyering  <meyering@redhat.com>
39638
39639         selinux-h: always use getfilecon wrappers
39640         * lib/getfilecon.c: New file.
39641         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
39642         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
39643         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
39644         (fgetfilecon): Provide a stub.
39645         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
39646         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
39647         file unconditionally.
39648         When <selinux/selinux.h> is found, arrange to use wrappers.
39649         * modules/selinux-h (Files): Add getfilecon.c.
39650         (Makefile.am): Substitute include-next-related bits
39651         into the now-always-generated selinux/selinux.h file.
39652         * doc/glibc-functions/lgetfilecon.texi: New file.
39653         * doc/glibc-functions/fgetfilecon.texi: New file.
39654         * doc/glibc-functions/getfilecon.texi: New file.
39655         * doc/glibc-functions/getfilecon-desc.texi: New file.
39656         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
39657         which to pull in the new files.
39658         * MODULES.html.sh (Misc): Add selinux-h.
39659
39660 2009-10-08  Jim Meyering  <meyering@redhat.com>
39661
39662         unistd: fix comment typo
39663         * lib/unistd.in.h (euidaccess): Fix a comment typo.
39664
39665 2009-10-08  Eric Blake  <ebb9@byu.net>
39666
39667         areadlink: use SIZE_MAX consistently
39668         * modules/areadlink (Depends-on): Add stdint.
39669         * modules/areadlink-with-size (Depends-on): Likewise.
39670         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
39671         gives NULL; drop sys/types, since unistd gives size_t; and add
39672         stdint for SIZE_MAX.
39673         (SIZE_MAX): Rely on headers.
39674         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
39675         and add stdint.
39676         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
39677         (SIZE_MAX): Likewise.
39678         (INITIAL_BUF_SIZE): Turn into enum.
39679         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
39680
39681 2009-10-08  Jim Meyering  <meyering@redhat.com>
39682
39683         areadlinkat: avoid compilation failure
39684         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
39685         Fix typo in comment.
39686
39687 2009-10-07  Eric Blake  <ebb9@byu.net>
39688
39689         areadlinkat-with-size: new module
39690         * modules/areadlinkat-with-size: New module.
39691         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
39692         * lib/areadlink.h (areadlinkat): Declare it.
39693         * MODULES.html.sh (File system functions): Mention it.
39694         * modules/areadlinkat-with-size-tests: New test.
39695         * tests/test-areadlinkat-with-size.c: New file.
39696
39697         xreadlinkat: new module
39698         * modules/xreadlinkat: New module.
39699         * lib/xreadlinkat.c (xreadlinkat): New file.
39700         * lib/xreadlink.h (xreadlinkat): Declare it.
39701         * MODULES.html.sh (File system functions): Mention it.
39702
39703         areadlinkat: new module
39704         * lib/at-func.c (FUNC_FAIL): New define.
39705         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
39706         * modules/areadlinkat: New module.
39707         * lib/linkat.c (areadlinkat): Move...
39708         * lib/areadlinkat.c (areadlinkat): ...to new file.
39709         * lib/areadlink.h (areadlinkat): Declare it.
39710         * modules/linkat (Depends-on): Add areadlinkat.
39711         * MODULES.html.sh (File system functions): Mention it.
39712         * modules/areadlinkat-tests: New test.
39713         * tests/test-areadlinkat.c: New file.
39714
39715         areadlink, areadlink-with-size: add tests
39716         * modules/areadlink-tests: New test.
39717         * modules/areadlink-with-size-tests: Likewise.
39718         * tests/test-areadlink.h: New file.
39719         * tests/test-areadlink.c: Likewise.
39720         * tests/test-areadlink-with-size.c: Likewise.
39721
39722         maint: minor cleanups
39723         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
39724         _UNUSED_PARAMETER_ instead.
39725         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
39726         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
39727         * modules/linkat-tests (Files): Distribute test-link.h.
39728
39729         openat, utimens: whitespace cleanup
39730         * lib/openat.c: Prefer space throughout, rather than mix of 8
39731         spaces vs. tabs.
39732         * lib/at-func.c: Likewise.
39733         * lib/utimens.c: Likewise.
39734
39735         openat: avoid using wrong fd
39736         * lib/openat.c (openat_permissive): Reject user's fd if saving the
39737         working directory chooses same fd.
39738         * lib/at-func.c (AT_FUNC_NAME): Likewise.
39739
39740         mkdir, mkdirat: fix cygwin 1.5.x bug
39741         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
39742         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
39743         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
39744         bug.
39745         (gl_PREREQ_MKDIR): Delete unused macro.
39746         * modules/mkdir (Files): Track file rename.
39747         (configure.ac): Update macro name.
39748         * modules/openat (Depends-on): Add mkdir.
39749         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
39750
39751         mkdir, mkdirat: add tests
39752         * modules/mkdir-tests: New test.
39753         * tests/test-mkdir.h: New file.
39754         * tests/test-mkdir.c: Likewise.
39755         * tests/test-mkdirat.c: Likewise.
39756         * modules/openat-tests (Files): Add new files.
39757         (Makefile.am): Run new test.
39758
39759 2009-10-06  Eric Blake  <ebb9@byu.net>
39760
39761         doc: tweak *at function documentation
39762         * doc/posix-functions/faccessat.texi (faccessat): Mention
39763         known issue with replacement.
39764         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
39765         * doc/posix-functions/linkat.texi (linkat): Likewise.
39766         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
39767         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
39768         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
39769         * doc/posix-functions/renameat.texi (renameat): Likewise.
39770         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
39771
39772         openat: fix GNU/Hurd bug in unlinkat
39773         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
39774         broken.
39775         * doc/posix-functions/unlink.texi (unlink): Document this.
39776         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
39777
39778         fdopendir: fix GNU/Hurd bug
39779         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
39780         allowing non-directory fds.
39781         * lib/fdopendir.c (rpl_fdopendir): Work around it.
39782         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
39783         * modules/dirent (Makefile.am): Substitute it.
39784         * lib/dirent.in.h (fdopendir): Declare replacement.
39785         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
39786         * tests/test-fdopendir.c (main): Test something other than
39787         /dev/null, since on Hurd that behaves like a directory.
39788
39789         test-symlink: port to GNU/Hurd
39790         * tests/test-symlink.h (test_symlink): Relax expected errno.
39791
39792         doc: tweak more cygwin information
39793         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
39794         now compatible with glibc.
39795         * doc/posix-functions/getopt.texi (getopt): Likewise.
39796
39797         getopt-gnu: add another test
39798         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
39799         guarantee behavior relied on by m4.
39800         * tests/test-getopt.c (main): Use it.
39801         * modules/getopt-posix-tests (Depends-on): Add setenv.
39802         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
39803
39804         getopt: fix compilation on darwin
39805         * lib/getopt.in.h (includes): Leave breadcrumbs during system
39806         include.
39807         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
39808         Reported by Ludovic Courtès.
39809
39810 2009-10-06  Bruno Haible  <bruno@clisp.org>
39811
39812         * modules/size_max (Description): Discourage its use.
39813         Reported by Simon Josefsson.
39814
39815 2009-10-06  Jim Meyering  <meyering@redhat.com>
39816
39817         linkat: avoid compilation failure
39818         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
39819
39820 2009-10-05  Eric Blake  <ebb9@byu.net>
39821
39822         linkat: support Linux 2.6.17
39823         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
39824         linkat on Linux, but allow cache variable override.
39825         * lib/linkat.c (rpl_linkat): Define override.
39826         * modules/linkat (Depends-on): Add symlinkat.
39827         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
39828         * modules/unistd (Makefile.am): Substitute it.
39829         * lib/unistd.in.h (linkat): Declare replacement.
39830         Reported by Pádraig Brady.
39831
39832         quotearg: port test to systems with C.UTF-8 locale
39833         * tests/test-quotearg.c (struct result_strings): Add another
39834         member, differentiating between C.ASCII and C.UTF-8 handling.
39835         (compare_strings): Add parameter.
39836         (main): Adjust all callers.
39837
39838         getopt: avoid clash with FreeBSD _getopt_internal
39839         * lib/getopt.in.h (_getopt_internal): Override the name.
39840         * lib/getopt_int.h (includes): Pick up any overrides.
39841         Reported by Reuben Thomas.
39842
39843         hash: allow C89 compilation
39844         * lib/hash.c (check_tuning): Move declaration before statement.
39845         Reported by Reuben Thomas.
39846
39847 2009-10-05  Karl Berry  <karl@gnu.org>
39848
39849         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
39850
39851 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
39852             Bruno Haible  <bruno@clisp.org>
39853
39854         * lib/uname.c (uname): Use a table-driven algorithm to compute
39855         Windows NT versions.
39856
39857 2009-10-04  Bruno Haible  <bruno@clisp.org>
39858
39859         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
39860         program_invocation_short_name.
39861         * modules/progname (configure.ac): Test for presence of
39862         program_invocation_short_name.
39863         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
39864
39865 2009-10-04  Bruno Haible  <bruno@clisp.org>
39866
39867         * lib/progname.c (set_program_name): Fix comment.
39868         Reported by Jim Meyering.
39869
39870 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
39871             Bruno Haible  <bruno@clisp.org>
39872
39873         * lib/uname.c: Include <string.h>.
39874         (uname): Do only one call to GetVersionEx in the common case.
39875
39876 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
39877             Bruno Haible  <bruno@clisp.org>
39878
39879         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
39880         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
39881         (uname): Add support for Windows CE and various non-x86 CPU types.
39882
39883 2009-10-03  Bruno Haible  <bruno@clisp.org>
39884
39885         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
39886         invocation to tests/configure.ac.
39887         Reported by Ian Beckwith <ianb@erislabs.net>.
39888
39889 2009-10-02  Eric Blake  <ebb9@byu.net>
39890
39891         fchdir: avoid compiler warning
39892         * lib/fchdir.c (canonicalize_file_name)
39893         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
39894
39895         test-open: support mingw errno values
39896         * tests/test-open.h (test_open): Relax test.
39897         * tests/test-fopen.h (test_fopen): Likewise.
39898         * tests/test-openat-safer.c (main): Likewise.
39899
39900         open: fix opening directory on mingw
39901         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
39902
39903         test-open: on GNU/Hurd, /dev/null is a directory
39904         * tests/test-fopen.h (main): Rename...
39905         (test_fopen): ...to this.  Use a guaranteed non-directory when
39906         confirming open behavior on trailing slash.
39907         * tests/test-openat-safer.c (main): Likewise.
39908         * tests/test-open.h (main): Likewise....
39909         (test_open): ...to this.
39910         * tests/test-fopen.c (main): Adjust caller.
39911         * tests/test-fopen-safer.c (main): Likewise.
39912         * tests/test-open.c (main): Likewise.
39913         * tests/test-fcntl-safer.c (main): Likewise.
39914         Reported by Samuel Thibault.
39915
39916         rename, fchdir: don't ignore chdir failure
39917         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
39918         * lib/rename.c (rpl_rename) [W32]: Likewise.
39919         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
39920         an empty destination directory if source cannot be renamed,
39921         although there is still possibility for failure.
39922         * doc/posix-functions/rename.texi (rename): Document the race.
39923         Reported by Jim Meyering.
39924
39925         maint: cleanup whitespace in recent commits
39926         * lib/rename.c (rpl_rename): Remove tabs.
39927         * tests/test-link.h (test_link): Likewise.
39928         * lib/fchdir.c (get_name): Likewise.
39929         Reported by Jim Meyering.
39930
39931 2009-10-02  Ben Pfaff  <blp@gnu.org>
39932
39933         relocatable-prog-wrapper: Add missing dependency on
39934         double-slash-root.
39935         * modules/relocatable-prog-wrapper: Add dependency.
39936         Reported by Ian Beckwith <ianb@erislabs.net>.
39937
39938 2009-10-02  Eric Blake  <ebb9@byu.net>
39939
39940         renameat: fix Solaris bugs
39941         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
39942         needed fixing.
39943         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
39944         * modules/stdio (Makefile.am): Substitute it.
39945         * lib/stdio.in.h (renameat): Declare replacement.
39946         * lib/renameat.c (rpl_renameat): Implement fix.
39947
39948         renameat: new module
39949         * modules/renameat: New file.
39950         * lib/renameat.c (renameat): Likewise.
39951         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
39952         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
39953         * modules/stdio (Makefile.am): Substitute them.
39954         * lib/stdio.in.h (renameat): Declare it.
39955         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39956         * doc/posix-functions/renameat.texi (renameat): Likewise.
39957         * modules/renameat-tests: New test.
39958         * tests/test-renameat.c: Likewise.
39959
39960         rename: fix mingw bugs
39961         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
39962         directory overwrite bugs.
39963
39964         rename: fix another cygwin 1.5 bug
39965         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
39966         checks.
39967         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
39968         unnecessary cygwin workarounds.  Also work around bug with moving
39969         full directory onto an empty one.
39970         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
39971
39972         rename-dest-slash: merge into rename module
39973         * modules/rename-dest-slash (Status): Mark obsolete.
39974         (Depends-on): Add rename.
39975         (Files): Let rename do it all.
39976         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
39977         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
39978         * m4/rename-dest-slash.m4: ...so this file can be deleted.
39979         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
39980         * lib/rename.c (rpl_rename): Update comments.
39981
39982         rename: fix cygwin 1.5.x bugs
39983         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
39984         * lib/rename.c (rpl_rename): Work around them.
39985         * modules/rename (Depends-on): Add same-inode.
39986
39987         rename: fix Solaris 10 bug
39988         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
39989         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
39990         was the only bug.
39991
39992         rename: fix Solaris 9 bug
39993         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
39994         on non-directory.  Avoid calling exit.
39995         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
39996         strdup.
39997         * modules/rename-tests (Depends-on): Drop lstat.
39998         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
39999         (gl_PREREQ_RENAME): Delete unused macro.
40000
40001         rename-dest-slash: fix NetBSD bug
40002         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
40003         links.
40004         * modules/rename-dest-slash (Depends-on): Add same-inode.
40005
40006         rename-tests: new test, exposes several platform bugs
40007         * modules/rename-tests: New file.
40008         * tests/test-rename.h: Likewise.
40009         * tests/test-rename.c: Likewise.
40010         * doc/posix-functions/rename.texi (rename): Improve documentation,
40011         including bugs that will eventually be fixed in gnulib.
40012
40013 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
40014
40015         * lib/uname.c: Include <stdlib.h>
40016         (uname): Assume version info is available.
40017
40018 2009-10-02  Jim Meyering  <meyering@redhat.com>
40019
40020         gnu-web-doc-update: correct --help output
40021         * build-aux/gnu-web-doc-update: Make --help output relevant.
40022
40023         gnu-web-doc-update: add standard options
40024         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
40025
40026         gnu-web-doc-update: New module.
40027         Use this script to automatically update the on-line web documentation
40028         for your GNU project at http://www.gnu.org/software/$pkg/manual/
40029         * modules/gnu-web-doc-update: New file, from coreutils.
40030         * build-aux/gnu-web-doc-update: New script.
40031
40032 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
40033
40034         link: LoadLibrary is not needed.
40035         * lib/link.c: Use GetModuleHandle.
40036
40037 2009-10-01  Eric Blake  <ebb9@byu.net>
40038
40039         getopt: bump serial number
40040         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
40041         change.
40042
40043         tests: tighten link, rmdir, and remove tests
40044         * tests/test-link.h (includes): No need to use <config.h> here.
40045         Clean up if directory hard link was created, otherwise test for
40046         trailing '.'.
40047         * tests/test-linkat.c (main): Simplify.
40048         * tests/test-remove.c (main): Enhance test for trailing '.'.
40049         * tests/test-rmdir.h (test_rmdir_func): Likewise.
40050
40051 2009-10-01  Jim Meyering  <meyering@redhat.com>
40052
40053         maint.mk: requiring "make major" was annoying, for a "minor" release.
40054         What is intended is "stable", to contrast with alpha and beta,
40055         so require "make stable", not "make major".
40056         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
40057         (get_tool_versions): Likewise.
40058         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
40059
40060 2009-09-30  Ben Pfaff  <blp@gnu.org>
40061
40062         Fix broken build of replacement for Windows tmpfile().
40063         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
40064         flags argument added along with the 'mkostemp' module.
40065
40066 2009-09-28  Bruno Haible  <bruno@clisp.org>
40067
40068         Avoid identifier clash with POSIX function 'remove' defined as a macro.
40069         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
40070         to 'remove_elt'.
40071         (gl_list_remove): Update.
40072         * lib/gl_list.c (gl_list_remove): Update.
40073         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
40074         to 'remove_elt'.
40075         (gl_oset_remove): Update.
40076         * lib/gl_list.c (gl_oset_remove): Update.
40077         Reported by Eric Blake.
40078
40079 2009-09-28  Eric Blake  <ebb9@byu.net>
40080
40081         doc: mention yet more cygwin 1.7 status
40082         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
40083         cygwin.
40084         * doc/glibc-functions/execvpe.texi (execvpe): New file.
40085         * doc/gnulib.texi (Glibc unistd.h): Mention it.
40086
40087         argp: fix test failure
40088         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
40089         that are not upper-case.  Pass correct range to tolower.
40090
40091 2009-09-27  Jim Meyering  <meyering@redhat.com>
40092
40093         test-yesno: work around sparc-dash here-document infelicity
40094         Without this change, the literal \177 byte in a here document
40095         would make dash 0.5.5.1-3 access uninitialized memory.
40096         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
40097         Instead, use a marker, "@", and filter through tr to create the desired
40098         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
40099
40100 2009-09-27  Bruno Haible  <bruno@clisp.org>
40101
40102         Disable untested support for new flavours of ACLs on AIX.
40103         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
40104         progress.
40105         * lib/set-mode-acl.c (qset_acl): Likewise.
40106
40107 2008-12-07  Bruno Haible  <bruno@clisp.org>
40108
40109         Add support for new flavours of ACLs on AIX. (Untested.)
40110         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
40111         (file_has_acl): Add support for newer AIX.
40112         * lib/set-mode-acl.c (qset_acl): Likewise.
40113         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
40114         Rainer Tammer <tammer@tammer.net>.
40115
40116 2009-09-26  Eric Blake  <ebb9@byu.net>
40117
40118         argp: fix compilation of getopt
40119         * lib/getopt.in.h (includes): Use different guard than glibc.
40120         Reported by Sergey Poznyakoff.
40121
40122         doc: mention more cygwin 1.7 status
40123         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
40124         bug.
40125         * doc/posix-functions/execl.texi (execl): Likewise.
40126         * doc/posix-functions/execle.texi (execle): Likewise.
40127         * doc/posix-functions/execlp.texi (execlp): Likewise.
40128         * doc/posix-functions/execv.texi (execv): Likewise.
40129         * doc/posix-functions/execve.texi (execve): Likewise.
40130         * doc/posix-functions/execvp.texi (execvp): Likewise.
40131         * doc/glibc-functions/canonicalize_file_name.texi
40132         (canonicalize_file_name): Cygwin 1.7 now provides this.
40133         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
40134         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
40135         on AT_SYMLINK_NOFOLLOW.
40136
40137 2009-09-24  Eric Blake  <ebb9@byu.net>
40138
40139         test-linkat: make test more robust
40140         * tests/test-linkat.c (main): Avoid collision with EEXIST.
40141
40142         getopt: fix inclusion guards for cygwin
40143         * modules/getopt-posix (Depends-on): Add include-next.
40144         (Makefile.am): Substitute more items in replacement header.
40145         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
40146         <getopt.h>.
40147         * lib/getopt.in.h (includes): Use split inclusion guard, and
40148         prefer <getopt.h> over include <unistd.h> when one is present.
40149         (option): Also override name of 'struct option'.
40150
40151         same-inode: revert prior change; it is not yet ready
40152         * NEWS: Undo mention of this change.
40153         * lib/same-inode.h (same-inode.h): Undo tri-state change.
40154         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
40155         * lib/cycle-check.c (cycle_check): Likewise.
40156         * lib/same.c (same_name): Likewise.
40157         * lib/at-func2.c (at_func2): Likewise.
40158
40159 2009-09-23  Eric Blake  <ebb9@byu.net>
40160
40161         linkat: new module
40162         * modules/linkat: New file.
40163         * lib/at-func2.c (at_func2): Likewise.
40164         * lib/linkat.c (linkat): Likewise.
40165         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
40166         * lib/openat-priv.h (at_func2): Add declaration.
40167         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40168         * modules/unistd (Makefile.am): Substitute them.
40169         * lib/unistd.in.h (linkat): Declare it.
40170         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40171         * doc/posix-functions/linkat.texi (linkat): Likewise.
40172         * doc/posix-functions/link.texi (link): Tweak wording.
40173         * tests/test-link.c (main): Move guts...
40174         * tests/test-link.h (test_link): ...into new file.
40175         * modules/linkat-tests: New test.
40176         * tests/test-linkat.c: Likewise.
40177         * modules/link-tests (Files): Ship new file.
40178         (Depends-on): Add stdbool.
40179
40180         dirname: add library-safe mdir_name
40181         * lib/dirname.h (mdir_name): New prototype.
40182         * lib/dirname.c (dir_name): Move guts...
40183         (mdir_name): ...to new function that avoids xalloc_die.
40184
40185         fchdir: another mingw fix
40186         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
40187         * lib/fchdir.c (get_name): New helper method; skips canonicalize
40188         on mingw (where it has not yet been ported), and make it optional
40189         elsewhere.
40190         (_gl_register_fd): Use it.
40191
40192         same-inode: make SAME_INODE tri-state, to port to mingw
40193         * NEWS: Mention this change.
40194         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
40195         st_ino always being 0.
40196         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
40197         * lib/cycle-check.c (cycle_check): Likewise.
40198         * lib/same.c (same_name): Likewise.
40199
40200         lstat: avoid mingw compilation error
40201         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
40202         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
40203         lstat ourselves.
40204         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
40205         was adequate.
40206         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
40207         the checks for lstat.
40208         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
40209
40210         link: fix test failure on Solaris 9
40211         * lib/link.c (rpl_link): Don't assume link will catch bogus
40212         trailing slash on source.
40213
40214         test-symlinkat: enhance test
40215         * tests/test-readlink.c (main): Move guts...
40216         * tests/test-readlink.h (test_readlink): ...into new file.
40217         * tests/test-symlink.c (main): Move guts...
40218         * tests/test-symlink.h (test_symlink): ...into new file.
40219         * tests/test-symlinkat.c (main): Use new files for further
40220         coverage.
40221         (do_symlink, do_readlink): New helper functions.
40222         * modules/symlink-tests (Files): Ship new file.
40223         (Depends-on): Add stdbool.
40224         * modules/readlink-tests (Files): Ship new file.
40225         (Depends-on): Add stdbool.
40226         * modules/symlinkat-tests (Files): Use new files.
40227
40228 2009-09-23  Eric Blake  <ebb9@byu.net>
40229
40230         readlink: document portability issue with symlink length
40231         * doc/posix-functions/lstat.texi (lstat): Mention that some file
40232         systems have bogus st_size on symlinks, and mention the
40233         areadlink-with-size module.
40234         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
40235         * doc/posix-functions/readlink.texi (readlink): Mention the
40236         areadlink module, and ERANGE failure.
40237         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40238         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
40239
40240         readlink: fix Solaris 9 bug with trailing slash
40241         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
40242         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
40243         * doc/posix-functions/readlink.texi (readlink): Document this.
40244         * modules/readlink-tests: New test.
40245         * tests/test-readlink.c: Likewise.
40246
40247         readlink: fix cygwin 1.5.x bug with return type
40248         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
40249         * lib/unistd.in.h (readlink): Use ssize_t.
40250         * lib/readlink.c (readlink): Likewise.
40251         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40252         * modules/unistd (Makefile.am): Substitute it.
40253         * lib/unistd.in.h (readlink): Declare replacement.
40254         * doc/posix-functions/readlink.texi (readlink): Document this.
40255
40256         symlink: use throughout gnulib
40257         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
40258         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
40259         symlink is not used.
40260         * modules/symlinkat (Depends-on): Add symlink.
40261         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
40262         * modules/canonicalize-tests (Depends-on): Likewise.
40263         * modules/lstat-tests (Depends-on): Likewise.
40264         * modules/openat-tests (Depends-on): Likewise.
40265         * modules/remove-tests (Depends-on): Likewise.
40266         * modules/rmdir-tests (Depends-on): Likewise.
40267         * modules/unlink-tests (Depends-on): Likewise.
40268         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
40269         * tests/test-canonicalize.c (symlink): Likewise.
40270         * tests/test-fstatat.c (symlink): Likewise.
40271         * tests/test-lstat.c (symlink): Likewise.
40272         * tests/test-remove.c (symlink): Likewise.
40273         * tests/test-rmdir.c (symlink): Likewise.
40274         * tests/test-unlink.c (symlink): Likewise.
40275         * tests/test-unlinkat.c (symlink): Likewise.
40276
40277         symlink: new module, for Solaris 9 bug
40278         * modules/symlink: New file.
40279         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
40280         * lib/symlink.c: Likewise.
40281         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
40282         * modules/unistd (Makefile.am): Substitute them.
40283         * lib/unistd.in.h (symlink): Declare replacement.
40284         * MODULES.html.sh (File system functions): Mention it.
40285         * doc/posix-functions/symlink.texi (symlink): Likewise.
40286         * modules/symlink-tests: New test.
40287         * tests/test-symlink.c: Likewise.
40288
40289 2009-09-23  Bruno Haible  <bruno@clisp.org>
40290
40291         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
40292         when needed.
40293         Test case: gnulib-tool --import --with-tests atexit inttypes.
40294         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
40295
40296 2009-09-23  Bruno Haible  <bruno@clisp.org>
40297
40298         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
40299         subcommand, not in a subshell.
40300
40301 2009-09-22  Eric Blake  <ebb9@byu.net>
40302
40303         unistd: sort replacement declarations
40304         * lib/unistd.in.h: Sort declarations.
40305
40306         open, openat: minor optimization
40307         * lib/open.c (open): If open succeeded, len is non-zero.
40308         * lib/openat.c (rpl_openat): Likewise.
40309
40310         link-follow: ensure correct result
40311         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
40312         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
40313         distinguish between possible failures.
40314
40315 2009-09-21  Eric Blake  <ebb9@byu.net>
40316
40317         fts: avoid compiler warning
40318         * lib/fts.c (dirent_inode_sort_may_be_useful)
40319         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
40320
40321 2009-09-19  Bruno Haible  <bruno@clisp.org>
40322
40323         * lib/progreloc.c (canonicalize_file_name): New declaration.
40324
40325 2009-09-19  Eric Blake  <ebb9@byu.net>
40326
40327         link: fix quoting
40328         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
40329
40330         openat: fix openat bugs on Solaris 9
40331         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
40332         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
40333         * modules/openat (Depends-on): Add open.
40334         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
40335         * modules/fcntl-h (Makefile.am): Substitute it.
40336         * lib/fcntl.in.h (openat): Declare replacement.
40337         * doc/posix-functions/openat.texi (openat): Document this.
40338
40339         openat: move fstatat and unlinkat into correct files
40340         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
40341         compiled.
40342         * lib/openat.c (fstatat, unlinkat): Move...
40343         * lib/fstatat.c (fstatat): ...into correct files.
40344         * lib/unlinkat.c (unlinkat): Likewise.
40345
40346         openat: fix unlinkat bugs on Solaris 9
40347         * lib/unlinkat.c (unlinkat): New file.
40348         * modules/openat (Depends-on): Add unlink.
40349         (Files): Distribute it.
40350         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
40351         trailing slash behavior is broken.
40352         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40353         * modules/unistd (Makefile.am): Substitute it.
40354         * lib/unistd.in.h (unlinkat): Declare replacement.
40355         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
40356
40357         openat: fix fstatat bugs on Solaris 9
40358         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
40359         stat.
40360         * doc/posix-functions/fstatat.texi (fstatat): Document this.
40361
40362         test-unlinkat: enhance test, to expose Solaris 9 bug
40363         * tests/test-unlink.c (main): Factor guts...
40364         * tests/test-unlink.h (test_rmdir_func): ...into new file.
40365         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
40366         * tests/test-rmdir.c (main): Adjust caller.
40367         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
40368         (unlinker): New helper function.
40369         (rmdirat): Enhance check.
40370         * modules/rmdir-tests (Depends-on): Add stdbool.
40371         * modules/unlink-tests (Depends-on): Likewise.
40372         (Files): Add test-unlink.h.
40373         * modules/openat-tests (Files): Likewise.
40374         (Depends-on): Add unlinkdir.
40375
40376         test-fstatat: new test, to expose Solaris 9 bugs
40377         * tests/test-stat.c (main): Factor guts...
40378         * tests/test-stat.h (test_stat_func): ...into new file.
40379         * tests/test-lstat.c (main): Factor guts...
40380         * tests/test-lstat.h (test_lstat_func): ...into new file.
40381         * tests/test-fstatat.c: New file.
40382         * modules/stat-tests (Files): Add test-stat.h.
40383         * modules/lstat-tests (Files): Add test-lstat.h.
40384         (Depends-on): Add stdbool.
40385         * modules/openat-tests (Depends-on): Add pathmax.
40386         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
40387         (Makefile.am): Run new test.
40388
40389         remove: new module, for mingw and Solaris 9 bugs
40390         * modules/remove: New file.
40391         * lib/remove.c: Likewise.
40392         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
40393         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
40394         * modules/stdio (Makefile.am): Use them.
40395         * lib/stdio.in.h (remove): Declare replacement.
40396         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40397         * doc/posix-functions/remove.texi (remove): Likewise.
40398         * modules/remove-tests: New test.
40399         * tests/test-remove.c: Likewise.
40400
40401         unlink: new module, for Solaris 9 bug
40402         * modules/unlink: New file.
40403         * lib/unlink.c: Likewise.
40404         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
40405         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40406         * modules/unistd (Makefile.am): Use them.
40407         * lib/unistd.in.h (stat): Declare replacement.
40408         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40409         * doc/posix-functions/unlink.texi (unlink): Likewise.
40410         * modules/unlink-tests: New test.
40411         * tests/test-unlink.c: Likewise.
40412
40413         lstat: fix Solaris 9 bug
40414         * lib/lstat.c (lstat): Also check for trailing slash on
40415         non-symlink, non-directories.  Use stat module to simplify logic.
40416         * doc/posix-functions/lstat.texi (lstat): Document it.
40417         * modules/lstat-tests (Depends-on): Add errno, same-inode.
40418         (configure.ac): Check for symlink.
40419         * tests/test-lstat.c (main): Add more tests.
40420
40421         stat: add as dependency to other modules
40422         * modules/chown (Depends-on): Add stat.
40423         * modules/euidaccess (Depends-on): Likewise.
40424         * modules/fchdir (Depends-on): Likewise.
40425         * modules/isdir (Depends-on): Likewise.
40426         * modules/link (Depends-on): Likewise.
40427         * modules/lstat (Depends-on): Likewise.
40428         * modules/mkdir-p (Depends-on): Likewise.
40429         * modules/modechange (Depends-on): Likewise.
40430         * modules/open (Depends-on): Likewise.
40431         * modules/readlink (Depends-on): Likewise.
40432         * modules/same (Depends-on): Likewise.
40433
40434         stat: fix Solaris 9 bug
40435         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
40436         slash.
40437         * lib/stat.c (rpl_stat): Work around it.
40438         * doc/posix-functions/stat.texi (stat): Update documentation.
40439
40440         stat: new module, for mingw bug
40441         * modules/stat: New file.
40442         * lib/stat.c: Likewise.
40443         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
40444         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40445         * modules/sys_stat (Makefile.am): Use them.
40446         * lib/sys_stat.in.h (stat): Declare replacement.
40447         * lib/openat.c (fstatat): Deal with lstat and stat being function
40448         macros.
40449         * modules/openat (Depends-on): Add inline.
40450         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40451         * doc/posix-functions/stat.texi (stat): Likewise.
40452         * modules/stat-tests: New test.
40453         * tests/test-stat.c: Likewise.
40454
40455 2009-09-19  Jim Meyering  <meyering@redhat.com>
40456
40457         syntax-check: detect unnecessary inclusion of canonicalize.h
40458         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
40459
40460 2009-09-19  Eric Blake  <ebb9@byu.net>
40461
40462         canonicalize-lgpl: adjust clients to use correct header
40463         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
40464         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
40465         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
40466         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
40467         * lib/progreloc.c (includes): Likewise.
40468
40469 2009-09-19  Jim Meyering  <meyering@redhat.com>
40470
40471         test-posixtm.c: correct a comment
40472         * tests/test-posixtm.c: Correct first-line comment.
40473         Spotted by Eric Blake.
40474
40475 2009-09-16  Jim Meyering  <meyering@redhat.com>
40476
40477         posixtm-tests: make T const-correct; add a test case
40478         * tests/test-posixtm.c (T): Declare const.
40479         Add a test for -(2^31+1).
40480         Remove useless can-succeed-only-in-2002 test.
40481
40482         posixtm-tests: adjust the sole failing test
40483         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
40484         expected output matches what mktime now produces.  Cross-checked via
40485         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
40486
40487         posixtm: move #ifdef'd tests into a new module
40488         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
40489         * tests/test-posixtm.c: ... this new file.
40490         * modules/posixtm-tests: New module.
40491
40492 2009-09-19  Eric Blake  <ebb9@byu.net>
40493
40494         openat: simplify use of at-func.c
40495         * lib/at-func.c (includes): Include prerequisites here, to
40496         simplify requirements on client files.
40497         * lib/openat-priv.h: Add double-inclusion guard.
40498         * lib/faccessat.c (includes): Simplify.
40499         * lib/fchmodat.c (includes): Likewise.
40500         * lib/fchownat.c (includes): Likewise.
40501         * lib/mkdirat.c (includes): Likewise.
40502         * lib/mkfifoat.c (includes): Likewise.
40503         * lib/symlinkat.c (includes): Likewise.
40504
40505         openat: allow return of fd 0
40506         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
40507         * modules/save-cwd (Depends-on): Replace fcntl-safer with
40508         unistd-safer.
40509         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
40510         <fcntl.h>; this module does not leak fds.
40511         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
40512         must be allowed to return 0, leaving openat_safer to add the
40513         safety.
40514         (openat_permissive): Avoid writing to just-opened fd 2 if
40515         restoring the current directory fails.
40516         * lib/openat-die.c (openat_restore_fail): Add comment.
40517         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
40518         (save_cwd): Guarantee safe fd, but without use of open_safer.
40519         * tests/test-openat.c: New test.
40520         * modules/openat-tests (Files, Makefile.am): Distribute and build
40521         new file.
40522
40523         relocatable-prog-wrapper: fix build
40524         * modules/relocatable-prog-wrapper (Files): Update name of
40525         canonicalize m4 file, broken on 2009-09-17.
40526         Reported by emad hajjar <aleppos@hotmail.com>.
40527
40528 2009-09-19  Bruno Haible  <bruno@clisp.org>
40529
40530         * lib/safe-alloc.h: Use the standard header with GPL copyright.
40531         * lib/safe-alloc.c: Likewise.
40532         Reported by Ian Beckwith <ianb@erislabs.net>.
40533
40534 2009-09-18  Bruno Haible  <bruno@clisp.org>
40535
40536         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
40537         Reported by <erobles@sensacd.com.mx>.
40538
40539 2009-09-17  Eric Blake  <ebb9@byu.net>
40540
40541         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
40542         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
40543         slashes when checking if last component is missing.
40544         * tests/test-canonicalize.c (main): Test this.
40545
40546         canonicalize, canonicalize-lgpl: honor // if distinct from /
40547         * modules/canonicalize (Files): Add double-slash-root.m4.
40548         * modules/canonicalize-lgpl (Files): Likewise.
40549         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
40550         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
40551         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
40552         fallback definition.
40553         (canonicalize_filename_mode): Use it to protect //.
40554         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
40555         (__realpath): Likewise.
40556         * tests/test-canonicalize.c (main): Test this.
40557         * tests/test-canonicalize-lgpl.c (main): Likewise.
40558         * modules/canonicalize-tests (Depends-on): Add same-inode.
40559         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
40560
40561         canonicalize-lgpl: fix glibc bug with trailing slash
40562         * m4/canonicalize-lgpl.m4: Move contents...
40563         * m4/canonicalize.m4: ...here.
40564         (gl_CANONICALIZE_LGPL): Factor realpath check...
40565         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
40566         glibc 2.3.5 bug, fixed 2005-04-27.
40567         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
40568         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
40569         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
40570         * modules/canonicalize-lgpl (Files): Manage file rename.
40571         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
40572         * modules/stdlib (Makefile.am): Substitute witness.
40573         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
40574         is needed.
40575         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
40576         replacement is required.
40577         * lib/canonicalize.c (canonicalize_file_name): Likewise.
40578         * doc/glibc-functions/canonicalize_file_name.texi
40579         (canonicalize_file_name): Document this.
40580         * doc/posix-functions/realpath.texi (realpath): Likewise.
40581
40582         canonicalize-lgpl: reject non-directory with trailing slash
40583         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
40584         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
40585         catches failures in glibc 2.3.5.
40586         * tests/test-canonicalize.c (main): Likewise.
40587
40588         canonicalize-lgpl: use native realpath if it works
40589         * lib/canonicalize-lgpl.c (realpath): Guard with
40590         FUNC_REALPATH_WORKS.
40591         * lib/stdlib.in.h (realpath): Make declaration optional based on
40592         HAVE_REALPATH.
40593         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
40594         native realpath works.
40595         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
40596         * modules/stdlib (Makefile.am): Substitute witness.
40597
40598         canonicalize, canonicalize-lgpl: use <stdlib.h>
40599         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
40600         (Include): Mention <stdlib.h>.
40601         (configure.ac): Mention functions we provide.
40602         * modules/canonicalize (configure.ac): Likewise.
40603         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
40604         realpath if canonicalize_file_name is missing.
40605         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
40606         * modules/stdlib (Makefile.am): Substitute witnesses.
40607         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
40608         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
40609         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
40610         * NEWS: Document this.
40611         * doc/glibc-functions/canonicalize_file_name.texi
40612         (canonicalize_file_name): Likewise.
40613         * doc/posix-functions/realpath.texi (realpath): Likewise.
40614         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
40615
40616         test-canonicalize: consolidate into single C program
40617         * tests/test-canonicalize.sh: Delete; move setup into...
40618         * tests/test-canonicalize.c (main): ...the program, making it
40619         easier to run in debugger.  Add some tests.
40620         * modules/canonicalize-tests (Files): Remove unused file.
40621         (Depends-on): Add progname.
40622         (configure.ac, Makefile.am): Simplify.
40623
40624         test-canonicalize-lgpl: consolidate into single C program
40625         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
40626         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
40627         easier to run in debugger.  Add some tests.
40628         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
40629         (configure.ac, Makefile.am): Simplify.
40630
40631         canonicalize: avoid resolvepath
40632         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
40633         unnecessary checks.
40634         * lib/canonicalize.c (includes): Simplify.
40635         (canonicalize_file_name): Drop resolvepath implementation.
40636         * modules/canonicalize (Depends-on): Drop filenamecat.
40637
40638         canonicalize: don't lose errno
40639         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
40640         over calls to free.
40641
40642         canonicalize: simplify errno handling
40643         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
40644         assignment.
40645
40646         canonicalize, canonicalize-lgpl: update module dependencies
40647         * modules/canonicalize (Depends-on): Add extensions, lstat,
40648         pathmax, stdlib.
40649         (Files): Drop pathmax.h.
40650         (configure.ac): Adjust macro name.
40651         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
40652         lstat, stdlib, sys_stat.
40653         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
40654         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
40655         extensions.
40656         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
40657         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
40658         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
40659         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
40660         declaration, if available.
40661         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
40662         we can rely on the readlink module.
40663         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
40664         (includes): Use <unistd.h> unconditionally.
40665
40666 2009-09-17  Eric Blake  <ebb9@byu.net>
40667
40668         maint: make Include sections of modules consistent
40669         * modules/alloca: Use only header name; no need to list #include.
40670         * modules/alloca-opt: Likewise.
40671         * modules/arpa_inet: Likewise.
40672         * modules/canon-host: Likewise.
40673         * modules/configmake: Likewise.
40674         * modules/dirent: Likewise.
40675         * modules/eealloc: Likewise.
40676         * modules/environ: Likewise.
40677         * modules/fchdir: Likewise.
40678         * modules/fcntl: Likewise.
40679         * modules/fcntl-h: Likewise.
40680         * modules/gethrxtime: Likewise.
40681         * modules/gettime: Likewise.
40682         * modules/ignore-value: Likewise.
40683         * modules/inet_ntop: Likewise.
40684         * modules/inet_pton: Likewise.
40685         * modules/inttypes: Likewise.
40686         * modules/isnand-nolibm: Likewise.
40687         * modules/isnanf-nolibm: Likewise.
40688         * modules/mbchar: Likewise.
40689         * modules/mbfile: Likewise.
40690         * modules/mbiter: Likewise.
40691         * modules/mbuiter: Likewise.
40692         * modules/netdb: Likewise.
40693         * modules/netinet_in: Likewise.
40694         * modules/nproc: Likewise.
40695         * modules/pagealign_alloc: Likewise.
40696         * modules/poll: Likewise.
40697         * modules/printf-frexp: Likewise.
40698         * modules/pthread: Likewise.
40699         * modules/putenv: Likewise.
40700         * modules/random_r: Likewise.
40701         * modules/relocatable-prog: Likewise.
40702         * modules/search: Likewise.
40703         * modules/select: Likewise.
40704         * modules/selinux-h: Likewise.
40705         * modules/settime: Likewise.
40706         * modules/signal: Likewise.
40707         * modules/size_max: Likewise.
40708         * modules/socklen: Likewise.
40709         * modules/ssize_t: Likewise.
40710         * modules/stdarg: Likewise.
40711         * modules/stdbool: Likewise.
40712         * modules/stddef: Likewise.
40713         * modules/stdint: Likewise.
40714         * modules/stdio: Likewise.
40715         * modules/stdlib: Likewise.
40716         * modules/string: Likewise.
40717         * modules/strings: Likewise.
40718         * modules/sys_file: Likewise.
40719         * modules/sys_ioctl: Likewise.
40720         * modules/sys_select: Likewise.
40721         * modules/sys_socket: Likewise.
40722         * modules/sys_stat: Likewise.
40723         * modules/sys_time: Likewise.
40724         * modules/sys_times: Likewise.
40725         * modules/sys_utsname: Likewise.
40726         * modules/sys_wait: Likewise.
40727         * modules/sysexits: Likewise.
40728         * modules/time: Likewise.
40729         * modules/times: Likewise.
40730         * modules/tmpfile: Likewise.
40731         * modules/trim: Likewise.
40732         * modules/unistd: Likewise.
40733         * modules/wchar: Likewise.
40734         * modules/wctype: Likewise.
40735
40736 2009-09-17  Bruno Haible  <bruno@clisp.org>
40737
40738         Make getdate.y compile on QNX and NetBSD 5 / i386.
40739         * m4/getdate.m4 (gl_GETDATE): Conditionally define
40740         TIME_T_FITS_IN_LONG_INT.
40741         * lib/getdate.y (long_time_t): New type.
40742         (relative_time): Change type of 'seconds' field to long_time_t.
40743         (get_date): Update types of local variables. Check against overflow
40744         during conversion from long_time_t to time_t.
40745         Reported by Matt Kraai <kraai@ftbfs.org>
40746         and Hasso Tepper <hasso@netbsd.org>.
40747
40748 2009-09-17  Bruno Haible  <bruno@clisp.org>
40749
40750         * modules/COPYING: Update copyright years.
40751         * modules/README: Likeiwse.
40752         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
40753         Reported by Ian Beckwith <ianb@erislabs.net>.
40754
40755 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
40756
40757         * users.txt: Update references for gnuit package.
40758
40759 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
40760
40761         * m4/getdelim.m4: Fix typo in copyright line.
40762
40763 2009-09-17  Bruno Haible  <bruno@clisp.org>
40764
40765         * lib/atoll.c: Use the standard header with GPL copyright.
40766         * lib/argz.in.h: Likewise.
40767         * lib/glob.c: Likewise.
40768         * lib/glob-libc.h: Likewise.
40769         * lib/random_r.c: Likewise.
40770         * lib/siglist.h: Likewise.
40771         * lib/strsignal.c: Likewise.
40772         Reported by Ian Beckwith <ianb@erislabs.net>.
40773
40774 2009-09-17  Eric Blake  <ebb9@byu.net>
40775
40776         rmdir: ensure correct dependency order
40777         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
40778
40779 2009-09-17  Bruno Haible  <bruno@clisp.org>
40780
40781         Disable assertion that fails on NetBSD 5 / i386.
40782         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
40783         Reported by Sam Steingold <sds@gnu.org>
40784         and Hasso Tepper <hasso@netbsd.org>.
40785
40786 2009-09-16  Eric Blake  <ebb9@byu.net>
40787
40788         unlinkdir: port to mingw
40789         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
40790         on which no one can unlink a directory.
40791
40792         stdlib: sort witness names
40793         * modules/stdlib (Makefile.am): Sort replacements.
40794         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
40795         * lib/stdlib.in.h: Likewise.
40796
40797         parse-duration-tests: avoid link failure
40798         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
40799         LIBINTL.
40800         Reported by Tom G. Christensen.
40801
40802         openat-tests: ensure unlinkat behaves like rmdir
40803         * tests/test-rmdir.c (main): Factor guts...
40804         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
40805         * modules/rmdir-tests (Files): Ship new file.
40806         * modules/openat-tests: New test.
40807         * tests/test-unlinkat.c: Likewise.
40808
40809         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
40810         * modules/rmdir-errno (Status, Notice): Now obsolete.
40811
40812         rmdir: work around cygwin 1.5.x and mingw bugs
40813         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
40814         * lib/rmdir.c (rmdir): Work around it.
40815         * modules/rmdir (Status, Notice): No longer obsolete.
40816         (Files): Add dos.m4.
40817         (Depends-on): Add unistd.
40818         (configure.ac): Set witnesses.
40819         (License): Relax to LGPLv2+.
40820         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
40821         * modules/unistd (Makefile.am): Substitute witnesses.
40822         * lib/unistd.in.h (rmdir): Declare replacement.
40823         * doc/posix-functions/rmdir.texi (rmdir): Document this.
40824         * modules/rmdir-tests: New tests.
40825         * tests/test-rmdir.c: Likewise.
40826
40827 2009-09-15  Eric Blake  <ebb9@byu.net>
40828
40829         fchdir: improve use of replacement functions
40830         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
40831         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
40832         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
40833         REPLACE_CLOSEDIR.
40834         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
40835         * modules/sys_stat (Makefile.am): Substitute correct witness.
40836         * modules/dirent (Makefile.am): Likewise.
40837         * modules/unistd (Makefile.am): Likewise.
40838         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
40839         * lib/unistd.in.h (dup): Likewise.
40840         * lib/sys_stat.in.h (fstat): Likewise.
40841
40842         maint: ignore gnulib-tool temp files
40843         * .gitignore: Ignore files created during gnulib-tool --test.
40844
40845 2009-09-13  Jim Meyering  <meyering@redhat.com>
40846
40847         posixtm: don't reject a time that specify "60" as the number of seconds
40848         * lib/posixtm.c (posixtime): The code to reject invalid dates
40849         would also reject a time specified with the .60 suffix.
40850         But POSIX allows that, in order to accommodate leap seconds.
40851         So don't reject it.
40852         (main): Adjust tests accordingly.
40853         * modules/posixtm (Depends-on): Add stpcpy.
40854
40855 2009-09-11  Jim Meyering  <meyering@redhat.com>
40856
40857         announce-gen: include [$release_type] in emitted Subject:
40858         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
40859         e.g., [stable] in the emitted Subject: line.
40860
40861 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40862
40863         Remove obsolete macros from several modules.
40864         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
40865         obsolete Autoconf macros with their modern counterparts.
40866         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
40867         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
40868         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
40869         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
40870         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
40871         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
40872         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
40873         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
40874         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
40875         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
40876         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
40877         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
40878         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
40879         * m4/sockets.m4 (gl_SOCKETS): Likewise.
40880         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
40881         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
40882         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
40883         * m4/time_r.m4 (gl_TIME_R): Likewise.
40884         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
40885         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
40886         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
40887
40888         Fix copyright header in build-aux scripts.
40889         * build-aux/git-version-gen: Fix copyright header to match GPLv3
40890         recommendation.
40891         * build-aux/ncftpput-ftp: Likewise.
40892         * build-aux/update-copyright: Likewise.
40893
40894 2009-09-09  Eric Blake  <ebb9@byu.net>
40895
40896         test-link: allow Linux choice of errno
40897         * tests/test-link.c (main): Relax test for alternate error.
40898
40899         strndup: fix improper m4 caching
40900         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
40901         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
40902         (gl_PREREQ_STRNDUP): Delete.
40903         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
40904         * modules/string (Makefile.am): Substitute it.
40905         * lib/string.in.h (strndup): Modernize prototype.
40906
40907         getcwd: port to mingw
40908         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
40909         different from the POSIX assumptions made throughout the getcwd
40910         module; fortunately, the mingw getcwd does not need replacement.
40911         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
40912         * modules/getcwd-tests: New test.
40913         * tests/test-getcwd.c: Likewise.
40914
40915         link: fix platform bugs
40916         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
40917         * lib/link.c (link): Work around them.  Fix related mingw bug.
40918         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
40919         * modules/unistd (Makefile.am): Substitute it.
40920         * lib/unistd.in.h (link): Declare replacement.
40921         * doc/posix-functions/link.texi (link): Document this.
40922         * modules/link (Depends-on): Add strdup-posix, sys_stat.
40923
40924         test-link: consolidate into single C program, test more cases
40925         * tests/test-link.sh: Delete.
40926         * tests/test-link.c: Test more error conditions.  Exposes bugs on
40927         at least Cygwin and Solaris.
40928         * modules/link-tests (Files): Remove unused file.
40929         (Depends-on): Add errno, sys_stat.
40930         (Makefile.am): Simplify.
40931
40932 2009-09-08  Bruno Haible  <bruno@clisp.org>
40933
40934         Work around towlower, towupper bug on mingw.
40935         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
40936         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
40937         * doc/posix-functions/towlower.texi: Mention the mingw bug.
40938         * doc/posix-functions/towupper.texi: Likewise.
40939         Reported by Eric Blake.
40940
40941 2009-09-08  Jim Meyering  <meyering@redhat.com>
40942
40943         build: don't try to run autoheader if we don't use it
40944         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
40945         is not used in configure.ac.
40946
40947 2009-09-08  Eric Blake  <ebb9@byu.net>
40948
40949         euidaccess: fix compilation error
40950         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
40951
40952         rawmemchr: relax license
40953         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
40954         okay.
40955         Reported by Jim Meyering.
40956
40957         mkfifoat: new module
40958         * modules/mkfifoat: New file.
40959         * lib/mkfifoat.c: Likewise.
40960         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
40961         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40962         * modules/sys_stat (Makefile.am): Use them.
40963         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
40964         * MODULES.html.sh (File system functions): Mention module.
40965         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
40966         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
40967         * modules/mkfifoat-tests: New test.
40968         * tests/test-mkfifoat.c: Likewise.
40969
40970         strchrnul: relax license
40971         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
40972         okay.
40973         Reported by Jim Meyering.
40974
40975 2009-09-08  Eric Blake  <ebb9@byu.net>
40976
40977         fstatat: fix compilation on Solaris
40978         * lib/fstatat.c (includes): Add fcntl.h.
40979         Reported by Pádraig Brady.
40980
40981 2009-09-07  Eric Blake  <ebb9@byu.net>
40982
40983         rename: modernize replacement
40984         * modules/rename (Depends-on): Add stdio.
40985         (configure.ac): Declare witness.
40986         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
40987         stdio take care of replacement.
40988         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
40989         * modules/stdio (Makefile.am): Substitute them.
40990         * lib/stdio.in.h (rename): Declare replacement.
40991         * lib/rename.c (includes): Allow cross-compilation to non-windows
40992         machines.
40993         * doc/posix-functions/rename.texi (rename): Improve
40994         documentation.
40995
40996         stdio: sort witness names
40997         * modules/stdio (Makefile.am): Sort replacements.
40998         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
40999         * lib/stdio.in.h: Likewise.
41000
41001         getcwd: minor cleanups
41002         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
41003         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
41004
41005         openat: provide more convenience names
41006         * modules/faccessat (configure.ac): Add C witness.
41007         * lib/unistd.in.h (readlinkat): Fix typo.
41008         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
41009         convenience wrappers.
41010         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
41011         wrappers in syntax checks.
41012
41013 2009-09-06  Eric Blake  <ebb9@byu.net>
41014
41015         doc: fix comments in recent patches
41016         * lib/faccessat.c: Mention correct function.
41017         * lib/fchmodat.c: Likewise.
41018         * lib/fchownat.c: Likewise.
41019         * lib/symlinkat.c: Likewise.
41020         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
41021         constants.
41022
41023         faccessat, symlinkat: continue cleanup of previous patch
41024         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
41025         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
41026         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
41027         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
41028         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
41029         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
41030         set.
41031
41032 2009-09-06  Bruno Haible  <bruno@clisp.org>
41033
41034         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
41035         (fstatat): Declare if GNULIB_FSTATAT is set.
41036         (mkdirat): Declare if GNULIB_MKDIRAT is set.
41037         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
41038         (unlinkat): Declare if GNULIB_UNLINKAT is set.
41039         * modules/fcntl-h (Files): Remove m4/openat.m4.
41040         * modules/sys_stat (Files): Remove m4/openat.m4.
41041         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
41042         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
41043         * modules/unistd (Files): Remove m4/openat.m4.
41044         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
41045         GNULIB_OPENAT.
41046         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
41047         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
41048         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
41049         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
41050         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
41051         gl_OPENAT_DEFAULTS.
41052         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
41053         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
41054         Don't require gl_OPENAT_DEFAULTS.
41055         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
41056         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
41057         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
41058         (gl_OPENAT_DEFAULTS): Remove macro.
41059
41060 2009-09-06  Bruno Haible  <bruno@clisp.org>
41061
41062         * modules/openat (configure.ac): Remove unneeded witness.
41063
41064 2009-09-06  Bruno Haible  <bruno@clisp.org>
41065
41066         Set errno to ENOSYS when a function is entirely unsupported.
41067         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
41068         EOPNOTSUPP.
41069         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
41070         * modules/chown (Depends-on): Remove errno.
41071
41072 2009-09-06  Bruno Haible  <bruno@clisp.org>
41073
41074         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
41075
41076 2009-09-06  Bruno Haible  <bruno@clisp.org>
41077
41078         * lib/sys_stat.in.h: Fix preprocessor command indentation.
41079
41080 2009-09-06  Ben Pfaff  <blp@gnu.org>
41081             Bruno Haible  <bruno@clisp.org>
41082
41083         Work around a glibc bug in strtok_r.
41084         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
41085         Undefine if UNDEFINE_STRTOK_R is set.
41086         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
41087         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
41088         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
41089         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
41090         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
41091         UNDEFINE_STRTOK_R.
41092         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
41093
41094 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
41095
41096         exclude: minor fix
41097         * lib/exclude.c: Include wctype.h
41098
41099 2009-09-06  Akim Demaille  <demaille@gostai.com>
41100
41101         bootstrap: improve error message
41102         * build-aux/bootstrap (find_tool): Upon failure, report the list
41103         of candidates.
41104         Honor the initial value of the envvar.
41105
41106 2009-09-05  Eric Blake  <ebb9@byu.net>
41107
41108         symlinkat: new module
41109         * modules/symlinkat: New file.
41110         * lib/symlinkat.c: Likewise.
41111         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
41112         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
41113         * modules/unistd (Makefile.am): Use them.
41114         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
41115         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
41116         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
41117         * MODULES.html.sh (File system functions): Mention module.
41118         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
41119         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
41120         * modules/symlinkat-tests: New test.
41121         * tests/test-symlinkat.c: Likewise.
41122
41123         test-openat-safer: add more checks
41124         * tests/test-openat-safer.c (main): Check more code paths.
41125
41126 2009-09-05  Jim Meyering  <meyering@redhat.com>
41127
41128         syntax-check: detect unnecessary inclusion of openat.h
41129         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
41130
41131 2009-09-05  Bruno Haible  <bruno@clisp.org>
41132
41133         Support towlower, towupper.
41134         * doc/posix-functions/towlower.texi: Mention module wctype.
41135         * doc/posix-functions/towupper.texi: Likewise.
41136         * lib/wctype.in.h (towlower, towupper): New functions.
41137         * tests/test-wctype.c: Include stdio.h, stdlib.h.
41138         (ASSERT): New macro.
41139         (e): New variable.
41140         (main): Test also towlower, towupper. Test WEOF argument.
41141         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41142
41143 2009-09-05  Bruno Haible  <bruno@clisp.org>
41144
41145         Fix conversion behaviour when the input is invalid.
41146         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
41147         mark occurring in first pass of indirect conversion.
41148         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
41149         input.
41150         Found by clang's static analyzer.
41151
41152 2009-09-05  Bruno Haible  <bruno@clisp.org>
41153
41154         * tests/test-striconveh.c (main): Test indirect conversion on platforms
41155         where direct conversion is possible.
41156
41157 2009-09-04  Eric Blake  <ebb9@byu.net>
41158
41159         openat: fail with ENOENT on empty name
41160         * lib/openat-proc.c (openat_proc_name): Special-case the empty
41161         buffer.
41162
41163         link-follow: fix logic bug in prior patch
41164         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
41165         reversed sense of yes and no in prior patch.  Avoid confusing
41166         compilation failure with desired semantics.
41167
41168         link-follow: accomodate mingw and cross-compilation
41169         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
41170         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
41171         cross-compilation results to -1, to make linkat easier to
41172         implement when cross-compiling.  Trivially support mingw.
41173         * modules/link-follow (configure.ac): Call new name.
41174         * NEWS: Mention this.
41175
41176 2009-09-03  Eric Blake  <ebb9@byu.net>
41177
41178         faccessat: compile replacement
41179         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
41180         needed.
41181
41182         fts: fix compilation error
41183         * lib/fts.c (includes): Re-add "openat.h", for
41184         openat_needs_fchdir.
41185
41186         faccessat: new module
41187         * modules/faccessat: New file.
41188         * lib/faccessat.c: Likewise.
41189         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
41190         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41191         * modules/unistd (Makefile.am): Use it.
41192         * lib/unistd.in.h (faccessat): Declare it.
41193         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
41194         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
41195         * MODULES.html.sh (File system functions): Mention it.
41196         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
41197         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
41198
41199         euidaccess: prefer POSIX over non-standard implementation
41200         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
41201         * lib/euidaccess.c (euidaccess): Use it if available.
41202
41203         openat: make template easier to use
41204         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
41205         AT_FUNC_F2 to be undefined.
41206         (VALIDATE_FLAG): New macro; use it to reject bad flags.
41207         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
41208         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
41209         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
41210         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
41211         Likewise.
41212         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
41213         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
41214         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
41215         Likewise.
41216
41217         openat: declare in POSIX headers
41218         * NEWS: Mention this.
41219         * modules/openat (configure.ac): Declare witnesses.
41220         (Depends-on): Add fcntl-h, sys_stat, unistd.
41221         (Include): Mention correct headers.
41222         * modules/fcntl-h (Depends-on): Add link-warning.
41223         (Files): Add openat.m4.
41224         (Makefile.am): Substitute witnesses.
41225         * modules/sys_stat (Files, Makefile.am): Likewise.
41226         * modules/unistd (Files, Makefile.am): Likewise.
41227         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
41228         (gl_OPENAT_DEFAULTS): New macro.
41229         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
41230         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
41231         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
41232         (SYS_STAT_H): Remove unused variable.
41233         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
41234         * lib/fcntl--.h (includes): Remove unneeded header.
41235         * lib/openat-safer.c (includes): Likewise.
41236         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
41237         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
41238         appropriate headers.
41239         (__OPENAT_PREFIX): Delete.
41240         * lib/fcntl.in.h (openat): Provide declaration.
41241         (AT_FDCWD): Fix Solaris bug.
41242         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
41243         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
41244         * lib/fchmodat.c (includes):  Adjust to find declaration.
41245         * lib/fchownat.c (includes): Likewise.
41246         * lib/mkdirat.c (includes): Likewise.
41247         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
41248         still visible.
41249
41250 2009-09-02  Eric Blake  <ebb9@byu.net>
41251
41252         errno: use consistently
41253         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
41254         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
41255         * lib/canonicalize.c (ELOOP): Likewise.
41256         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
41257         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
41258         * lib/lchown.c (EOPNOTSUPP): Likewise.
41259         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
41260         * lib/savewd.c (ESTALE): Likewise.
41261         * lib/settime.c (ENOSYS): Likewise.
41262         * lib/utimens.c (ENOSYS): Likewise.
41263         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
41264         * lib/chdir-safer.c (ELOOP): Likewise.
41265         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
41266         * modules/c-stack (Depends-on): Add errno.
41267         * modules/canonicalize (Depends-on): Likewise.
41268         * modules/chdir-safer (Depends-on): Likewise.
41269         * modules/fdopendir (Depends-on): Likewise.
41270         * modules/inet_ntop (Depends-on): Likewise.
41271         * modules/inet_pton (Depends-on): Likewise.
41272         * modules/lchown (Depends-on): Likewise.
41273         * modules/openat (Depends-on): Likewise.
41274         * modules/savewd (Depends-on): Likewise.
41275         * modules/settime (Depends-on): Likewise.
41276         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
41277
41278         fts: avoid leaking fds
41279         * modules/fts (Depends-on): Add cloexec.
41280         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
41281         flag.
41282
41283         fts: make directory fds more robust
41284         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
41285         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
41286
41287         backupfile, chdir-long, fts, savedir: make safer
41288         * lib/backupfile.c (includes): Use "dirent--.h", since
41289         numbered_backup can write to stderr during readdir.
41290         * lib/savedir.c (includes): Likewise.
41291         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
41292         emulation can write to stderr on failure.
41293         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
41294         * lib/getcwd.c: Document why opendir_safer is unused.
41295         * lib/glob.c: Likewise.
41296         * lib/scandir.c: Likewise.
41297         * lib/openat-proc.c: Likewise, for open_safer.
41298         * modules/backupfile (Depends-on): Add dirent-safer.
41299         * modules/savedir (Depends-on): Likewise.
41300         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
41301         * modules/chdir-long (Depends-on): Add openat-safer.
41302
41303         openat-safer: new module
41304         * modules/openat-safer: New file.
41305         * lib/openat-safer.c: Likewise.
41306         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
41307         * lib/fcntl-safer.h (openat_safer): Declare.
41308         * lib/fcntl--.h (openat): Override.
41309         * MODULES.html.sh (File descriptor based I/O): Mention it.
41310         * lib/openat.h: Add double-inclusion guards.
41311         * lib/openat.c (includes): Only include "fcntl-safer.h", not
41312         "fcntl--.h", so we can implement openat.
41313         * modules/openat-safer-tests: New test.
41314         * tests/test-openat-safer.c: New file.
41315
41316         dirent-safer: new module
41317         * modules/dirent-safer: New file.
41318         * lib/dirent--.h: Likewise.
41319         * lib/dirent-safer.h: Likewise.
41320         * lib/opendir-safer.c: Likewise.
41321         * m4/dirent-safer.m4: Likewise.
41322         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
41323         * modules/dirent-safer-tests: New test.
41324         * tests/test-dirent-safer.c: New file.
41325         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
41326
41327         fdopendir: optimize on mingw
41328         * lib/unistd.in.h (_gl_directory_name): New prototype.
41329         * lib/fchdir.c (_gl_directory_name): Implement it.
41330         (fchdir): Use it to simplify implementation.
41331         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
41332         fchdir, when available, to avoid calling [f]chdir().
41333
41334         fdopendir: split into its own module
41335         * lib/openat.c (fdopendir): Move...
41336         * lib/fdopendir.c: ...into new file.
41337         * modules/fdopendir: New module.
41338         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
41339         * modules/openat (Depends-on): Add fdopendir.
41340         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
41341         fdopendir here.
41342         * modules/savedir (Depends-on): Only need fdopendir, not full
41343         openat.
41344         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
41345         * lib/openat.h (fdopendir): Drop prototype.
41346         * lib/dirent.in.h (fdopendir): Provide prototype.
41347         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
41348         * modules/dirent (Makefile.am): Substitute them.
41349         * MODULES.html.sh (File system functions): Mention it.
41350         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
41351         * modules/fdopendir-tests: New file.
41352         * tests/test-fdopendir.c: Likewise.
41353
41354         fchdir: use more consistent macro convention
41355         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
41356         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
41357         REPLACE_FCHDIR, rather than relying on config.h macros.
41358         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
41359         inside a single make-time REPLACE_FCHDIR block, rather than using
41360         the config.h FCHDIR_REPLACEMENT.
41361         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
41362         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
41363         Manage fstat replacement.
41364         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
41365         REPLACE_FCHDIR.
41366         * modules/sys_stat (Files): Add m4/unistd_h.m4.
41367         (Makefile.am): Substitute REPLACE_FCHDIR.
41368         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
41369         FCHDIR_REPLACEMENT.
41370         * lib/dup-safer.c (dup_safer): Likewise.
41371         * lib/dup2.c (rpl_dup2): Likewise.
41372         * lib/dup3.c (rpl_dup3): Likewise.
41373         * lib/open.c (rpl_open): Likewise.
41374
41375         fchdir: simplify error handling, and support dup3
41376         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
41377         stdbool, malloc-posix, realloc-posix.
41378         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
41379         (ensure_dirs_slot): Return false on allocation failure.
41380         (rpl_dup2): Delete.
41381         (_gl_register_dup): New function.
41382         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
41383         (_gl_register_fd): Close fd on allocation failure.
41384         * lib/fcntl.in.h (_gl_register_fd): Update signature.
41385         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
41386         prototype.
41387         (rpl_dup2_fchdir): Delete prototype.
41388         * lib/open.c (open): Update caller.
41389         * lib/dup2.c (dup2): Track fchdir metadata.
41390         * lib/dup3.c (dup3): Likewise.
41391         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
41392         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
41393
41394 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41395
41396         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
41397         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
41398         don't pass arguments to AC_OUTPUT.
41399
41400 2009-09-02  Bruno Haible  <bruno@clisp.org>
41401
41402         * modules/mkdtemp (License): Relicense under LGPLv2+.
41403         Reported by Paolo Bonzini.
41404
41405 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41406
41407         Replace uses of obsolete autoconf macros in Jim's modules.
41408         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
41409         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
41410         can evoke a warning from autoconf when run with -Wobsolete
41411         enabled.  They were declared obsolete for good reasons (see
41412         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
41413         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
41414         should not continue using the deprecated macros.
41415         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
41416         obsolete Autoconf macros with modern counterparts.
41417         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
41418         * m4/dos.m4 (gl_AC_DOS): Likewise.
41419         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
41420         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
41421         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
41422         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
41423         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
41424         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
41425         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
41426         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
41427         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
41428         Likewise.
41429         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
41430         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
41431         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
41432         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
41433         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
41434         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
41435
41436 2009-09-01  Eric Blake  <ebb9@byu.net>
41437
41438         fchdir: fix off-by-one bug in previous patch
41439         * lib/fchdir.c (rpl_fstat): Use correct bounds.
41440         (_gl_unregister_fd): Delete useless if.
41441
41442 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
41443
41444         maint.mk: sort the list of syntax-check rules
41445         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
41446         easier to get a sense of progress when the rules are run sequentially
41447         and take a long time.
41448
41449 2009-09-01  Simon Josefsson  <simon@josefsson.org>
41450
41451         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
41452         * modules/netinet_in: Likewise.
41453         * modules/sys_file: Likewise.
41454         * modules/sys_ioctl: Likewise.
41455         * modules/sys_select: Likewise.
41456         * modules/sys_socket: Likewise.
41457         * modules/sys_stat: Likewise.
41458         * modules/sys_time: Likewise.
41459         * modules/sys_times: Likewise.
41460         * modules/sys_utsname: Likewise.
41461         * modules/sys_wait: Likewise.
41462
41463 2009-09-01  Jim Meyering  <meyering@redhat.com>
41464
41465         fts: help ensure that return values are not ignored
41466         * lib/fts_.h (__GNUC_PREREQ): Define.
41467         (__attribute_warn_unused_result__): Define.
41468         (fts_children, fts_close, fts_open, fts_read): Declare with
41469         __attribute_warn_unused_result__.
41470
41471         fts: fts_close now fails also when closing a dir file descriptor fails
41472         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
41473         and propagate to caller, along with errno.
41474
41475         announce-gen: correct formatting in --help output
41476         * build-aux/announce-gen (usage): Move the one-line description in
41477         --help output "up", to where it belongs, just after Usage:.
41478
41479 2009-08-31  Eric Blake  <ebb9@byu.net>
41480
41481         fchdir: port to mingw
41482         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
41483         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
41484         opened, then use a substitute.
41485         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
41486         replacement.
41487         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
41488         (_gl_register_fd): No need to check stat if open already filters
41489         all directories.
41490         (fchdir): Fix error condition to match POSIX.
41491         * modules/fchdir (Depends-on): Add sys_stat.
41492         * doc/posix-functions/open.texi (open): Document the limitation.
41493         * modules/fchdir-tests: New file.
41494         * tests/test-fchdir.c: Likewise.
41495
41496         canonicalize: allow cross-testing from cygwin to mingw
41497         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
41498         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
41499         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
41500         Likewise.
41501         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
41502         target does not support symlinks.
41503         * tests/test-canonicalize-lgpl.sh: Likewise.
41504
41505         chown: avoid compilation warning on mingw
41506         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
41507         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
41508         mingw.
41509         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
41510         * modules/chown (Depends-on): Add errno.
41511
41512 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
41513
41514         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
41515         command.
41516
41517 2009-08-31  Jim Meyering  <meyering@redhat.com>
41518
41519         canonicalize: remove useless initialization
41520         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
41521         initialization of local, "end".
41522
41523 2009-08-30  Bruno Haible  <bruno@clisp.org>
41524
41525         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
41526         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
41527         ENOSYS.
41528
41529 2009-08-30  Bruno Haible  <bruno@clisp.org>
41530
41531         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
41532         /usr/xpg4/bin/tr when it exists.
41533         * tests/test-pipe-filter-gi1.sh: Likewise.
41534
41535 2009-08-30  Bruno Haible  <bruno@clisp.org>
41536
41537         Work around deficient /usr/bin/id program on Solaris.
41538         * tests/test-file-has-acl.sh (ID): New variable.
41539         * tests/test-set-mode-acl.sh (ID): Likewise.
41540         * tests/test-copy-acl.sh (ID): Likewise.
41541         * tests/test-copy-file.sh (ID): Likewise.
41542
41543 2009-08-30  Bruno Haible  <bruno@clisp.org>
41544
41545         New module 'xstriconveh'.
41546         * lib/xstriconveh.h: New file.
41547         * lib/xstriconveh.c: New file.
41548         * modules/xstriconveh: New file.
41549
41550 2009-08-30  Bruno Haible  <bruno@clisp.org>
41551
41552         Make it easier to use mem_cd_iconveh.
41553         * lib/striconveh.h (iconveh_t): New type.
41554         (iconveh_open, iconveh_close): New declarations.
41555         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
41556         with a single 'const iconveh_t *' argument.
41557         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
41558         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
41559         with a single 'const iconveh_t *' argument.
41560         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
41561         * tests/test-striconveh.c (main): Update.
41562         * NEWS: Mention the change.
41563
41564 2009-08-30  Bruno Haible  <bruno@clisp.org>
41565
41566         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
41567         problem.
41568
41569 2009-08-30  Bruno Haible  <bruno@clisp.org>
41570
41571         Work around iconv_open problem on Solaris.
41572         * lib/iconv_open-solaris.gperf: New file.
41573         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
41574         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
41575         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
41576         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
41577         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
41578         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
41579
41580 2009-08-29  Jim Meyering  <meyering@redhat.com>
41581
41582         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
41583         * top/maint.mk (cvs-check): Remove target; it was just an alias
41584         to the better-named vc-diff-check.
41585         (maintainer-distcheck): Remove rule.  It was used only from
41586         the (alpha/beta/major) target, and all of its commands but one
41587         were coreutils-specific.
41588         (vc-dist): Remove rule.
41589         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
41590         Run vc-diff-check, not vc-dist.
41591         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
41592
41593 2009-08-27  Bruno Haible  <bruno@clisp.org>
41594
41595         * tests/test-bitrotate.c (main): Remove test that uses a shift count
41596         of 0.
41597
41598 2009-08-27  Bruno Haible  <bruno@clisp.org>
41599
41600         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
41601         compilers.
41602         * doc/func.texi: Document the SunPRO C bug.
41603
41604 2009-08-27  Bruno Haible  <bruno@clisp.org>
41605
41606         Fix link error on Solaris.
41607         * tests/test-parse-duration.c (xstrdup): Remove function.
41608
41609 2009-08-26  Pádraig Brady  <P@draigbrady.com>
41610
41611         ignore-value: handle pointer types, too
41612         * lib/ignore-value.h (__attribute__): Remove definition.
41613         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
41614         of a more concise and more-often effective "(void) i" statement.
41615         (ignore_ptr): New function to suppress warnings from functions that
41616         return pointers, and to make it explicit that one function doesn't
41617         handle all cases.
41618
41619 2009-08-25  Bruno Haible  <bruno@clisp.org>
41620
41621         dup2: work around a Linux bug.
41622         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
41623         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
41624         * doc/posix-functions/dup2.texi: Mention the Linux bug.
41625         Reported by Simon Josefsson.
41626
41627 2009-08-25  Jim Meyering  <meyering@redhat.com>
41628
41629         libguestfs uses gnulib
41630         * users.txt: Add libguestfs.
41631
41632 2009-08-24  Eric Blake  <ebb9@byu.net>
41633
41634         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
41635         * lib/pipe2.c (includes): Add binary-io.h.
41636         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
41637
41638 2009-08-24  Bruno Haible  <bruno@clisp.org>
41639
41640         Tolerate declared but missing accept4 syscall.
41641         * lib/accept4.c (accept4): Invoke original accept4 function first, if
41642         available.
41643         * lib/sys_socket.in.h (accept4): If the function is already present,
41644         override it.
41645         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
41646         * modules/accept4 (Makefile.am): Compile accept4.c always.
41647         Reported by Paolo Bonzini and Eric Blake.
41648
41649 2009-08-23  Bruno Haible  <bruno@clisp.org>
41650
41651         New module 'accept4'.
41652         * lib/sys_socket.in.h (accept4): New declaration.
41653         * lib/accept4.c: New file.
41654         * m4/accept4.m4: New file.
41655         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
41656         GNULIB_ACCEPT4, HAVE_ACCEPT4.
41657         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
41658         HAVE_ACCEPT4.
41659         * modules/accept4: New file.
41660         * doc/glibc-functions/accept4.texi: Mention the new module.
41661
41662 2009-08-24  Jim Meyering  <meyering@redhat.com>
41663
41664         progname: also set global program_invocation_name, when possible
41665         Before this change, a libtool-enabled program that calls glibc's
41666         error function would report the program name as
41667         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
41668         * modules/progname (configure.ac): Check for a declaration of
41669         program_invocation_name.
41670         * lib/progname.c:  Include <errno.h>.
41671         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
41672         Set program_invocation_name.
41673
41674 2009-08-23  Bruno Haible  <bruno@clisp.org>
41675
41676         * lib/dup3.c: Include <string.h>.
41677
41678 2009-08-23  Bruno Haible  <bruno@clisp.org>
41679
41680         * lib/dup3.c (dup3): Test only once whether the system actually exists.
41681         * lib/pipe2.c (pipe2): Likewise.
41682         Suggested by Eric Blake.
41683
41684 2009-08-23  Bruno Haible  <bruno@clisp.org>
41685
41686         Tolerate declared but missing dup3 syscall.
41687         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
41688         * lib/unistd.in.h (dup3): If the function is already present,
41689         override it.
41690         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
41691         * modules/dup3 (Makefile.am): Compile dup3.c always.
41692         Reported by Paolo Bonzini.
41693
41694 2009-08-23  Bruno Haible  <bruno@clisp.org>
41695
41696         Tolerate declared but missing pipe2 syscall.
41697         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
41698         available.
41699         * lib/unistd.in.h (pipe2): If the function is already present,
41700         override it.
41701         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
41702         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
41703         Reported by Paolo Bonzini.
41704
41705 2009-08-23  Bruno Haible  <bruno@clisp.org>
41706
41707         * lib/pipe2.c (pipe2): Move #ifs inside function.
41708
41709 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
41710
41711         quotearg: document limitations of quote_these_too
41712         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
41713         those limitations are created.
41714         * lib/quotearg.h (set_char_quoting): Document that digits and
41715         letters that are special after backslash are not permitted.
41716         (quotearg_char): Cross-reference set_char_quoting documentation.
41717
41718 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
41719
41720         quotearg: implement custom_quoting_style
41721         * lib/quotearg.c: (struct quoting_options): Add left_quote and
41722         right_quote fields.
41723         (set_custom_quoting): New public function.
41724         (quotearg_buffer_restyled): Add left_quote and right_quote
41725         arguments, handle them very much like locale quoting, and update
41726         all uses.
41727         (quotearg_n_custom): New public function.
41728         (quotearg_n_custom_mem): New public function.
41729         (quotearg_custom): New public function.
41730         (quotearg_custom_mem): New public function.
41731         * lib/quotearg.h: Prototype and document new public functions.
41732         (enum quoting_style): For escape_quoting_style and
41733         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
41734         ignored even though they're otherwise like c_quoting_style.
41735         Add custom_quoting_style member and document with comparison to
41736         clocale_quoting_style.
41737         * tests/test-quotearg.c (custom_quotes): New array.
41738         (custom_results): New array.
41739         (main): Extend to test custom quoting.
41740
41741 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
41742
41743         quotearg: fix right quote escaping when it's in quote_these_too
41744         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
41745         quote, be sure to prepend only one backslash.
41746         * tests/test-quotearg.c (use_quote_double_quotes): New function.
41747         (main): Test it.
41748
41749 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
41750
41751         quotearg-tests: test escaping of embedded locale quotes
41752         * tests/test-quotearg.c (struct result_strings): Add member for
41753         new input.
41754         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
41755         (inputs): Add new input.
41756         (results_g): Add expected results.
41757         (flag_results): Likewise.
41758         (locale_results): Likewise.
41759         (compare_strings): Check those.
41760
41761 2009-08-23  Bruno Haible  <bruno@clisp.org>
41762
41763         Tests for module 'dup3'.
41764         * modules/dup3-tests: New file.
41765         * tests/test-dup3.c: New file.
41766
41767         New module 'dup3'.
41768         * lib/unistd.in.h (dup3): New declaration.
41769         * lib/dup3.c: New file.
41770         * m4/dup3.m4: New file.
41771         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
41772         HAVE_DUP3.
41773         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
41774         * modules/dup3: New file.
41775         * doc/glibc-functions/dup3.texi: Mention the new module.
41776
41777 2009-08-23  Bruno Haible  <bruno@clisp.org>
41778
41779         Tweak the dup2 test.
41780         * tests/test-dup2.c (main): Create the test file empty. Verify that an
41781         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
41782         the test file is still empty. Fix argument order of lseek.
41783
41784 2009-08-23  Bruno Haible  <bruno@clisp.org>
41785
41786         Avoid test link errors when the modules getopt-gnu, gettext are used.
41787         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
41788         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41789
41790 2009-08-23  Bruno Haible  <bruno@clisp.org>
41791
41792         Fix getdtablesize() on mingw.
41793         * lib/getdtablesize.c (getdtablesize): Implement differently.
41794         * lib/unistd.in.h (getdtablesize): Improve comment.
41795
41796 2009-08-23  Bruno Haible  <bruno@clisp.org>
41797
41798         New module 'mkostemp'.
41799         Based on Ulrich Drepper's 2007-08-10 change in glibc.
41800         * lib/stdlib.in.h (mksotemp): New declaration.
41801         * lib/mkostemp.c: New file, from glibc with modifications.
41802         * lib/tempname.h (GT_FILE): Remove outdated comment.
41803         (gen_tempname): Add flags argument.
41804         * lib/tempname.c (__GT_BIGFILE): Remove macro.
41805         (__GT_FILE): Map to 1.
41806         (small_open, large_open): Remove macros.
41807         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
41808         * lib/mkstemp.c (mkstemp): Update.
41809         * lib/mkdtemp.c (mkdtemp): Likewise.
41810         * m4/mkostemp.m4: New file.
41811         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
41812         HAVE_MKOSTEMP.
41813         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
41814         HAVE_MKOSTEMP.
41815         * modules/mkostemp: New file, based on modules/mkstemp.
41816         * doc/glibc-functions/mkostemp.texi: Mention the new module.
41817         * NEWS: Mention the change.
41818
41819 2009-08-23  Bruno Haible  <bruno@clisp.org>
41820
41821         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
41822         Reported by Eric Blake.
41823
41824 2009-08-23  Bruno Haible  <bruno@clisp.org>
41825
41826         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
41827         Reported by Eric Blake.
41828
41829 2009-08-23  Bruno Haible  <bruno@clisp.org>
41830
41831         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
41832         * modules/pipe2 (Depends-on): Likewise.
41833
41834 2009-08-23  Eric Blake  <ebb9@byu.net>
41835
41836         fcntl-h: add O_TTY_INIT support
41837         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
41838         * tests/test-fcntl-h.c (o): Test it.
41839         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
41840
41841         fcntl-h: rename from fcntl, in preparation for fcntl(2)
41842         * modules/fcntl: Move <fcntl.h> header replacement...
41843         * modules/fcntl-h: ...to new name, so as not to collide with
41844         like-named function.
41845         * tests/test-fcntl.c: Rename...
41846         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
41847         * modules/fcntl-tests: Rename...
41848         * modules/fcntl-h-tests: ...to this.  Update test file name.
41849         * modules/chdir-long (Depends-on): Update clients.
41850         * modules/chdir-safer (Depends-on): Likewise.
41851         * modules/fcntl-safer (Depends-on): Likewise.
41852         * modules/fts (Depends-on): Likewise.
41853         * modules/mkancesdirs (Depends-on): Likewise.
41854         * modules/mkdir-p (Depends-on): Likewise.
41855         * modules/open (Depends-on): Likewise.
41856         * modules/savewd (Depends-on): Likewise.
41857         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
41858         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
41859
41860 2009-08-22  Bruno Haible  <bruno@clisp.org>
41861
41862         * modules/binary-io (License): Relicense under LGPL.
41863         * modules/pipe2 (License): Likewise.
41864
41865 2009-08-22  Bruno Haible  <bruno@clisp.org>
41866
41867         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
41868         return value.
41869         * lib/pipe-filter-gi.c (filter_init): Likewise.
41870         Reported by Eric Blake.
41871
41872 2009-08-22  Bruno Haible  <bruno@clisp.org>
41873
41874         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
41875         * modules/pipe (Depends-on): Add pipe2.
41876
41877 2009-08-22  Bruno Haible  <bruno@clisp.org>
41878
41879         Tests for module 'pipe2'.
41880         * modules/pipe2-tests: New file.
41881         * tests/test-pipe2.c: New file.
41882
41883         New module 'pipe2'.
41884         * lib/unistd.in.h (pipe2): New declaration.
41885         * lib/pipe2.c: New file.
41886         * m4/pipe2.m4: New file.
41887         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
41888         HAVE_PIPE2.
41889         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
41890         * modules/pipe2: New file.
41891         * doc/glibc-functions/pipe2.texi: Mention the new module.
41892
41893 2009-08-22  Bruno Haible  <bruno@clisp.org>
41894
41895         Reference some new glibc functions.
41896         * doc/glibc-functions/accept4.texi: New file.
41897         * doc/glibc-functions/dup3.texi: New file.
41898         * doc/glibc-functions/mkostemp.texi: New file.
41899         * doc/glibc-functions/pipe2.texi: New file.
41900         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
41901         (Glibc sys/socket.h): Refer to accept4.
41902         (Glibc unistd.h): Refer to dup3, pipe2.
41903         Reported by Eric Blake.
41904
41905 2009-08-22  Jim Meyering  <meyering@redhat.com>
41906             Bruno Haible  <bruno@clisp.org>
41907
41908         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
41909         This makes it so packages using automake-1.11's silent-rules option
41910         can print e.g., a single "GEN    configmake.h" line, rather than
41911         the 30+ statements that perform the job.  If you want to see the
41912         actual commands, you can still run "make V=1".
41913         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
41914         so that make output is abbreviated when those variables are defined
41915         appropriately.
41916         * modules/argz: Likewise.
41917         * modules/arpa_inet: Likewise.
41918         * modules/byteswap: Likewise.
41919         * modules/configmake: Likewise.
41920         * modules/dirent: Likewise.
41921         * modules/errno: Likewise.
41922         * modules/fcntl: Likewise.
41923         * modules/float: Likewise.
41924         * modules/fnmatch: Likewise.
41925         * modules/getopt-posix: Likewise.
41926         * modules/glob: Likewise.
41927         * modules/iconv_open: Likewise.
41928         * modules/inttypes: Likewise.
41929         * modules/localcharset: Likewise.
41930         * modules/locale: Likewise.
41931         * modules/math: Likewise.
41932         * modules/netdb: Likewise.
41933         * modules/netinet_in: Likewise.
41934         * modules/poll: Likewise.
41935         * modules/posix_spawnp-tests: Likewise.
41936         * modules/sched: Likewise.
41937         * modules/search: Likewise.
41938         * modules/selinux-h: Likewise.
41939         * modules/signal: Likewise.
41940         * modules/spawn: Likewise.
41941         * modules/stdarg: Likewise.
41942         * modules/stdbool: Likewise.
41943         * modules/stddef: Likewise.
41944         * modules/stdint: Likewise.
41945         * modules/stdio: Likewise.
41946         * modules/stdlib: Likewise.
41947         * modules/string: Likewise.
41948         * modules/strings: Likewise.
41949         * modules/sys_file: Likewise.
41950         * modules/sys_ioctl: Likewise.
41951         * modules/sys_select: Likewise.
41952         * modules/sys_socket: Likewise.
41953         * modules/sys_stat: Likewise.
41954         * modules/sys_time: Likewise.
41955         * modules/sys_times: Likewise.
41956         * modules/sys_utsname: Likewise.
41957         * modules/sys_wait: Likewise.
41958         * modules/sysexits: Likewise.
41959         * modules/time: Likewise.
41960         * modules/unistd: Likewise.
41961         * modules/wchar: Likewise.
41962         * modules/wctype: Likewise.
41963
41964 2009-08-22  Jim Meyering  <meyering@redhat.com>
41965
41966         announce-gen: detect write failure
41967         * build-aux/announce-gen: Add Coda at end.
41968         Remove equivalent-but-more-verbose block at top.
41969
41970 2009-08-19  Akim Demaille  <demaille@gostai.com>
41971
41972         bootstrap: --help to stdout.
41973         * bootstrap (usage): Don't send --help to stderr.
41974         Use a here doc instead of a long string.
41975
41976 2009-08-21  Eric Blake  <ebb9@byu.net>
41977
41978         test-popen-safer: split from test-popen
41979         * tests/test-popen.c (main): Move...
41980         * tests/test-popen.h: ...into new file.
41981         * tests/test-popen-safer2.c: New file.
41982         * modules/popen-tests (Files): Add test-popen.h.
41983         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
41984         Suggested by Bruno Haible.
41985
41986         test-fcntl-safer: split from test-open
41987         * tests/test-open.c (main): Move...
41988         * tests/test-open.h: ...into new file.
41989         * tests/test-fcntl-safer.c: New file.
41990         * modules/open-tests (Files): Add test-open.h.
41991         * modules/fcntl-safer-tests: New file.
41992         Suggested by Bruno Haible.
41993
41994         test-fopen-safer: split from test-fopen
41995         * tests/test-fopen.c (main): Move...
41996         * tests/test-fopen.h: ...into new file.
41997         * tests/test-fopen-safer.c: New file.
41998         * modules/fopen-tests (Files): Add test-fopen.h.
41999         * modules/fopen-safer-tests: New file.
42000         Suggested by Bruno Haible.
42001
42002 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
42003
42004         popen-safer: test O_CLOEXEC at run-time.
42005         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
42006
42007 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
42008
42009         fcntl: move more flags to the header
42010         * lib/cloexec.c: Do not define FD_CLOEXEC here.
42011         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
42012         * lib/fcntl.in.h: Do both things here.
42013
42014 2009-08-21  Jim Meyering  <meyering@redhat.com>
42015
42016         consistently remove $@-t before redirecting to it
42017         * modules/argz: Remove $@-t and $@ before redirecting to the former.
42018         * modules/alloca-opt: Likewise.
42019         * modules/byteswap: Likewise.
42020         * modules/fnmatch: Likewise.
42021         * modules/getopt-posix: Likewise.
42022         * modules/glob: Likewise.
42023         * modules/poll: Likewise.
42024         * modules/posix_spawnp-tests: Likewise.
42025         * modules/sys_socket: Likewise.
42026         * modules/sysexits: Likewise.
42027
42028 2009-08-21  Eric Blake  <ebb9@byu.net>
42029
42030         popen: simplify access to original popen
42031         * lib/popen.c (rpl_popen): No need to worry about popen being a
42032         macro.
42033         Reported by Bruno Haible.
42034
42035 2009-08-20  Eric Blake  <ebb9@byu.net>
42036
42037         build: avoid some compiler warnings
42038         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
42039         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
42040         type.
42041         (new_exclude_segment, excluded_file_pattern_p)
42042         (excluded_file_name_p): Reduce scope.
42043         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
42044         old-style declaration.
42045
42046 2009-08-20  Simon Josefsson  <simon@josefsson.org>
42047
42048         * tests/test-exclude1.sh: Handle Windows EOL.
42049         * tests/test-exclude2.sh: Likewise.
42050         * tests/test-exclude3.sh: Likewise.
42051         * tests/test-exclude4.sh: Likewise.
42052         * tests/test-exclude5.sh: Likewise.
42053         * tests/test-exclude6.sh: Likewise.
42054         * tests/test-exclude7.sh: Likewise.
42055
42056 2009-08-19  Akim Demaille  <demaille@gostai.com>
42057
42058         bootstrap: find sha1sum when named gsha1sum.
42059         * bootstrap (find_tool): New.
42060         ($SHA1SUM): New.
42061         Use it.
42062
42063 2009-08-20  Jim Meyering  <meyering@redhat.com>
42064
42065         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
42066         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
42067         expression that converts "." in a file name to "\." in the resulting
42068         regexp.  Start with a dummy statement, so that prior shell variable
42069         definitions are expanded portably.  Reported by Simon Josefsson.
42070
42071 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
42072
42073         Fix polling for writeability of a screen buffer.
42074         * lib/poll.c: Distinguish input and screen buffers for the
42075         Win32 implementation.
42076         * lib/select.c: Likewise.
42077
42078 2009-08-19  Eric Blake  <ebb9@byu.net>
42079
42080         popen-safer: prevent popen from clobbering std descriptors
42081         * modules/popen-safer: New file.
42082         * lib/popen-safer.c: Likewise.
42083         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
42084         * lib/stdio--.h (popen): Provide override.
42085         * lib/stdio-safer.h (popen_safer): Provide declaration.
42086         * tests/test-popen.c (includes): Partially test this.
42087         * modules/popen-safer-tests: New file, for more tests.
42088         * tests/test-popen-safer.c: Likewise.
42089         * MODULES.html.sh (file stream based Input/Output): Mention it.
42090
42091         tests: test some of the *-safer modules
42092         * modules/fopen-safer (Depends-on): Add fopen.
42093         * modules/fcntl-safer (Depends-on): Add fcntl.
42094         * modules/stdlib-safer (Depends-on): Add stdlib.
42095         (configure.ac): Set indicator.
42096         * modules/unistd-safer (configure.ac): Likewise.
42097         * modules/tmpfile-safer (configure.ac): Likewise.
42098         (Depends-on): Add tmpfile.
42099         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
42100         active.
42101         * tests/test-fopen.c (includes): Test safer versions when they are
42102         in use.
42103         * tests/test-open.c (includes): Likewise.
42104
42105         popen: fix cygwin 1.5 bug when stdin closed
42106         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
42107         * modules/popen: New file.
42108         * modules/popen-tests: Likewise.
42109         * tests/test-popen.c: Likewise.
42110         * m4/popen.m4: Likewise.
42111         * lib/popen.c: Likewise.
42112         * lib/stdio.in.h (popen): New declaration.
42113         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
42114         * modules/stdio (Makefile.am): Likewise.
42115         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
42116
42117 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
42118
42119         maint.mk: give full control over update-copyright exclusions
42120         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
42121         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
42122         (update-copyright): Don't force inclusion of top-level
42123         ChangeLog.  Don't force exclusion of all COPYING files, but make
42124         them the default exclusion instead.
42125
42126 2009-08-16  Bruno Haible  <bruno@clisp.org>
42127
42128         Fix test failures on Solaris 10.
42129         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
42130         tests when Solaris iconv() is used.
42131         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
42132         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
42133         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
42134         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
42135         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
42136
42137 2009-08-16  Bruno Haible  <bruno@clisp.org>
42138
42139         Fix test failures on Solaris 10.
42140         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
42141         'tr' program and pass it as first argument.
42142         * tests/test-pipe-filter-gi1.sh: Likewise.
42143         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
42144         program as first argument.
42145         * tests/test-pipe-filter-gi1.c (main): Likewise.
42146
42147 2009-08-16  Eric Blake  <ebb9@byu.net>
42148
42149         fpurge: fix previous commits
42150         * modules/fpurge (Makefile.am): Make replacement conditional,
42151         partially reverting 2007-04-29 change; missed in previous
42152         attempt.
42153         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
42154         is missing.
42155
42156 2009-08-16  Bruno Haible  <bruno@clisp.org>
42157
42158         Clarify fpurge's effect on the file position.
42159         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
42160         * tests/test-fpurge.c (main): Make a second pass for checking the file
42161         position.
42162
42163 2009-08-16  Bruno Haible  <bruno@clisp.org>
42164
42165         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
42166         declaration of fpurge is missing.
42167         * tests/test-fpurge.c (main): Check that the file has not more contents
42168         than expected. Close the file before removing it.
42169
42170 2009-08-15  Eric Blake  <ebb9@byu.net>
42171
42172         fpurge: don't wrap working cygwin implementation
42173         * lib/fpurge.c (fpurge): Fix comment typo.
42174         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
42175         1.7 to avoid replacement.
42176         * tests/test-fpurge.c (main): Enhance test.
42177
42178 2009-08-15  Eric Blake  <ebb9@byu.net>
42179         and Jim Meyering  <meyering@redhat.com>
42180
42181         test-update-copyright: skip if perl is insufficient
42182         * tests/test-update-copyright.sh: Failure to run maintainer tool
42183         should not cause testsuite failure on cygwin 1.5.
42184
42185 2009-08-14  Eric Blake  <ebb9@byu.net>
42186
42187         doc: mention more functions added in cygwin 1.7.0
42188         * doc/posix-headers/limits.texi (limits.h): Update for recent
42189         cygwin additions.
42190         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
42191         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
42192         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
42193         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
42194         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
42195
42196 2009-08-14  Eric Blake  <ebb9@byu.net>
42197
42198         maint.mk: simplify update-copyright rule
42199         * top/maint.mk (update-copyright-local): Delete, and document how
42200         to do it in cfg.mk instead.
42201         (update-copyright-exclude-regexp): Delete, and document how to do
42202         it in .x-update-copyright instead.
42203         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
42204         exclude ChangeLog.
42205
42206 2009-08-14  Bruno Haible  <bruno@clisp.org>
42207
42208         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
42209
42210 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42211
42212         maint.mk: support update-copyright-env
42213         * top/maint.mk (update-copyright-env): Define place-holder.
42214         (update-copyright): Expand $(update-copyright-env) before
42215         invoking update-copyright.
42216
42217 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42218
42219         update-copyright: implement forced reformatting
42220         * build-aux/update-copyright: Implement and document
42221         UPDATE_COPYRIGHT_FORCE.
42222         * tests/test-update-copyright.sh: Test it.
42223
42224 2009-08-14  Eric Blake  <ebb9@byu.net>
42225         and Bruno Haible  <bruno@clisp.org>
42226
42227         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
42228         * tests/test-locale.c: Revert previous patch related to NULL.
42229         * tests/test-stdio.c: Likewise.
42230         * tests/test-stdlib.c: Likewise.
42231         * tests/test-string.c: Likewise.
42232         * tests/test-unistd.c: Likewise.
42233         * modules/time-tests (Depends-on): Add verify.
42234         * modules/wchar-tests (Depends-on): Likewise.
42235         * tests/test-time.c: Test for NULL compliance.
42236         * tests/test-wchar.c: Likewise.
42237         * modules/locale (Depends-on): Add stddef.
42238         * modules/stdio (Depends-on): Likewise.
42239         * modules/stdlib (Depends-on): Likewise.
42240         * modules/string (Depends-on): Likewise.
42241         * modules/time (Depends-on): Likewise.
42242         * modules/unistd (Depends-on): Likewise.
42243         * modules/wchar (Depends-on): Likewise.
42244         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
42245         * lib/stdlib.in.h (includes): Likewise.
42246         * lib/string.in.h (includes): Likewise.
42247         * lib/time.in.h (includes): Likewise.
42248         * lib/unistd.in.h (includes): Likewise.
42249         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
42250         replaced.
42251         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
42252         * m4/stddef_h.m4: New file.
42253         * modules/stddef: Likewise.
42254         * lib/stddef.in.h: Likewise.
42255         * modules/stddef-tests: Likewise.
42256         * tests/test-stddef.c: Likewise.
42257         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
42258         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
42259         * doc/posix-headers/locale.texi (locale.h): Likewise.
42260         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
42261         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
42262         * doc/posix-headers/string.texi (string.h): Likewise.
42263         * doc/posix-headers/time.texi (time.h): Likewise.
42264         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
42265         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
42266
42267 2009-08-14  Eric Blake  <ebb9@byu.net>
42268
42269         doc: improve git diff of texinfo files
42270         * .gitattributes: Add rule for *.texi files, with hint on how to
42271         use it.
42272         Copied from m4, and based on a report by Bruno Haible.
42273
42274 2009-08-14  Bruno Haible  <bruno@clisp.org>
42275
42276         Disable multithread support by default on Cygwin 1.5.x for real.
42277         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
42278
42279 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42280
42281         update-copyright: much ado about intervals
42282         * build-aux/update-copyright: Implement and document
42283         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
42284         of copyright year intervals.
42285         Also, document UPDATE_COPYRIGHT_YEAR.
42286         * tests/test-update-copyright.sh: Test it.
42287
42288         update-copyright: convert 2-digit to 4-digit years
42289         * build-aux/update-copyright: Implement and document.
42290         * tests/test-update-copyright.sh: Update.
42291
42292 2009-08-14  Jim Meyering  <meyering@redhat.com>
42293
42294         test-exclude: avoid coreutils "make check" failure
42295         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
42296         just as in test-argmatch.c.
42297
42298 2009-08-13  Eric Blake  <ebb9@byu.net>
42299
42300         test-dup2: fix bad assumption
42301         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
42302         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
42303
42304         test-version-etc: fix CRLF portability issue
42305         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
42306         recognize \r.
42307         * tests/test-argp-version-etc-1.sh: Likewise.
42308
42309         getopt: update client modules
42310         * modules/argp (Depends-on): Use getopt-gnu.
42311         * modules/git-merge-changelog (Depends-on): Likewise.
42312         * modules/long-options (Depends-on): Likewise.
42313         * modules/xstrtol (Depends-on): Likewise.
42314
42315 2009-08-13  Simon Josefsson  <simon@josefsson.org>
42316
42317         * tests/test-version-etc.sh: Don't fail on different
42318         project/version.  Don't fail on CRLF differences.  Rewrite to use
42319         multiple -e instead of multiple sed forks, suggested by Eric Blake
42320         <ebb9@byu.net>.
42321         * tests/test-argp-version-etc-1.sh: Likewise.
42322
42323 2009-08-13  Simon Josefsson  <simon@josefsson.org>
42324
42325         * tests/test-version-etc.sh: Don't fail on different
42326         project/version.
42327
42328 2009-08-12  Bruno Haible  <bruno@clisp.org>
42329
42330         Tests for modules 'getopt-posix', 'getopt-gnu'.
42331         * modules/getopt-posix-tests: New file.
42332         * tests/test-getopt.c: New file.
42333         * tests/test-getopt.h: New file.
42334         * tests/test-getopt_long.h: New file.
42335
42336         New modules 'getopt-posix', 'getopt-gnu'.
42337         * modules/getopt-gnu: New file, renamed from modules/getopt.
42338         * modules/getopt-posix: New file.
42339         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
42340         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
42341         (gl_GETOPT): Remove macro.
42342         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
42343         Disable the test against BSD systems that declare optreset. Test
42344         against mingw bug. Test against lack of support of optional arguments
42345         on many platforms.
42346         * doc/glibc-headers/getopt.texi: Update module name and list of
42347         relevant platforms.
42348         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
42349         'getopt-gnu' and more portability problems.
42350         * NEWS: Mention the changes.
42351
42352 2009-08-12  Bruno Haible  <bruno@clisp.org>
42353
42354         Ensure that optarg etc. get declared by <unistd.h>.
42355         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
42356         AC_USE_SYSTEM_EXTENSIONS.
42357         * modules/getopt (Depends-on): Add 'extensions'.
42358
42359 2009-08-12  Bruno Haible  <bruno@clisp.org>
42360
42361         Avoid test link errors.
42362         * modules/pipe-filter-ii-tests (Makefile.am): Define
42363         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
42364         * modules/pipe-filter-gi-tests (Makefile.am): Define
42365         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
42366         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42367
42368 2009-08-12  Bruno Haible  <bruno@clisp.org>
42369
42370         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
42371         gl_GETOPT_SUBSTITUTE before.
42372         (gl_GETOPT): Use it.
42373         * m4/argp.m4 (gl_ARGP): Update.
42374         Reported by Sergey Poznyakoff.
42375
42376         * m4/getopt.m4: Reorder macros.
42377         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
42378         (gl_GETOPT_SUBSTITUTE): Remove macro.
42379
42380 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42381
42382         Minor improvement in gitlog-to-changelog
42383
42384         * build-aux/gitlog-to-changelog: New option `--format' makes
42385         output format string configurable.
42386
42387 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42388
42389         Optimize exclude: use hash tables for non-wildcard patterns.
42390
42391         * lib/exclude.c: Include hash.h and mbuiter.h
42392         (struct exclude_pattern, exclude_segment): New data types.
42393         (struct exclude): Rewrite.
42394         (fnmatch_pattern_has_wildcards): New function.
42395         (new_exclude_segment, free_exclude_segment): New functions.
42396         (excluded_file_pattern_p, excluded_file_name_p): New functions.
42397         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
42398         * lib/exclude.h (is_fnmatch_pattern): New prototype.
42399         * modules/exclude: Depend on hash and mbuiter.
42400
42401         * modules/exclude-tests: New file.
42402         * tests/test-exclude.c: New file.
42403         * tests/test-exclude1.sh: New file.
42404         * tests/test-exclude2.sh: New file.
42405         * tests/test-exclude3.sh: New file.
42406         * tests/test-exclude4.sh: New file.
42407         * tests/test-exclude5.sh: New file.
42408         * tests/test-exclude6.sh: New file.
42409         * tests/test-exclude7.sh: New file.
42410
42411 2009-08-12  Bruno Haible  <bruno@clisp.org>
42412
42413         Ensure that getopt() gets declared by <unistd.h>.
42414         * lib/unistd.in.h: Conditionally include getopt.h.
42415         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
42416         Set GNULIB_UNISTD_H_GETOPT.
42417         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42418         GNULIB_UNISTD_H_GETOPT.
42419         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
42420
42421 2009-08-12  Bruno Haible  <bruno@clisp.org>
42422
42423         Clarify logic.
42424         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
42425         gl_replace_getopt instead of GETOPT_H.
42426
42427 2009-08-12  Bruno Haible  <bruno@clisp.org>
42428
42429         * m4/getopt.m4: Add comments.
42430
42431 2009-08-12  Bruno Haible  <bruno@clisp.org>
42432
42433         Disable multithread support by default on Cygwin 1.5.x.
42434         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
42435         set gl_use_threads=no if not specified otherwise.
42436
42437 2009-08-11  Bruno Haible  <bruno@clisp.org>
42438
42439         Avoid compilation error on NetBSD 5.0.
42440         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
42441         * tests/test-stdio.c: Likewise.
42442         * tests/test-stdlib.c: Likewise.
42443         * tests/test-string.c: Likewise.
42444         * tests/test-unistd.c: Likewise.
42445         Reported by Greg Troxel <gdt@ir.bbn.com>
42446         at <https://savannah.gnu.org/support/?106973>.
42447
42448 2009-08-11  Bruno Haible  <bruno@clisp.org>
42449
42450         * modules/dup2-tests (Depends-on): Remove close.
42451
42452         Undo 2009-07-19 commit.
42453         * modules/acl-tests (Depends-on): Remove close.
42454         * modules/binary-io-tests (Depends-on): Likewise.
42455         * modules/closein-tests (Depends-on): Likewise.
42456         * modules/flock-tests (Depends-on): Likewise.
42457         * modules/fsync-tests (Depends-on): Likewise.
42458         * modules/lseek-tests (Depends-on): Likewise.
42459         * modules/pipe-tests (Depends-on): Likewise.
42460         * modules/posix_spawn-tests (Depends-on): Likewise.
42461         * modules/posix_spawnp-tests (Depends-on): Likewise.
42462         * modules/stat-time-tests (Depends-on): Likewise.
42463         * modules/yesno-tests (Depends-on): Likewise.
42464
42465 2009-08-10  Bruno Haible  <bruno@clisp.org>
42466
42467         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
42468
42469 2009-08-10  Bruno Haible  <bruno@clisp.org>
42470
42471         Fix a gcc warning.
42472         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
42473
42474 2009-08-10  Bruno Haible  <bruno@clisp.org>
42475
42476         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
42477         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
42478         not only the first time.
42479         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
42480         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
42481         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
42482         is 1, not only the the first time.
42483
42484 2009-08-10  Bruno Haible  <bruno@clisp.org>
42485
42486         Make it possible to use module 'gethostname' without module 'close'.
42487         * lib/unistd.in.h (close): Evoke a link error only if
42488         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
42489         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42490         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42491         * modules/unistd (Makefile.am): Substitute
42492         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42493         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
42494         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
42495         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
42496         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42497         * modules/sys_ioctl (Makefile.am): Substitute
42498         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42499         * modules/socket (configure.ac): On native Windows, set
42500         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
42501         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42502         Reported by Sam Steingold <sds@gnu.org>.
42503
42504 2009-08-10  Bruno Haible  <bruno@clisp.org>
42505
42506         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
42507         * modules/ioctl (configure.ac): Likewise.
42508
42509 2009-08-10  Bruno Haible  <bruno@clisp.org>
42510
42511         Avoid collision between gnulib wrapper and libintl wrapper.
42512         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
42513         already defined in intl/printf.c.
42514         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
42515         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
42516
42517 2009-08-09  Bruno Haible  <bruno@clisp.org>
42518
42519         Make <sys/select.h> really self-contained, also on Solaris 10.
42520         * lib/sys_select.in.h: Include <string.h>.
42521         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
42522         Solaris 10 problem.
42523         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
42524         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
42525         Reported by Jim Meyering.
42526
42527 2009-08-09  Bruno Haible  <bruno@clisp.org>
42528
42529         Avoid warnings from 'aclocal' that are due to a use of macro name
42530         AM_XGETTEXT_OPTION that is not defined in automake.
42531         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
42532         automake.
42533         * modules/error (configure.ac): Likewise.
42534         * modules/propername (configure.ac): Likewise.
42535         * modules/vasprintf (configure.ac): Likewise.
42536         * modules/verror (configure.ac): Likewise.
42537         * modules/xprintf (configure.ac): Likewise.
42538         * modules/xvasprintf (configure.ac): Likewise.
42539
42540 2009-08-08  Bruno Haible  <bruno@clisp.org>
42541
42542         Avoid compilation error in C++ mode.
42543         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
42544         Reported by Sam Steingold <sds@gnu.org>.
42545
42546 2009-08-08  Bruno Haible  <bruno@clisp.org>
42547
42548         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
42549         for the various Unix platforms.
42550         * doc/posix-headers/limits.texi: Update platforms list regarding
42551         HOST_NAME_MAX.
42552         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42553
42554 2009-08-07  Jim Meyering  <meyering@redhat.com>
42555
42556         selinux-at: fix typo in a comment
42557         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
42558         Spotted by Paolo Bonzini.
42559
42560         selinux-at: remove redundant m4 code, add documentation
42561         * modules/selinux-at (configure.ac): Remove redundant code.
42562         LIB_SELINUX is already set via the dependent module, selinux-h.
42563         (Include): Add quotes around selinux-at.h.
42564         * lib/selinux-at.h: Add documentation.
42565         Reported by Bruno Haible in
42566         http://marc.info/?l=gnulib-bug&m=124958988300749
42567
42568 2009-08-07  Bruno Haible  <bruno@clisp.org>
42569
42570         Avoid link error on MacOS X 10.3 and 10.4.
42571         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
42572         on non-ELF systems.
42573         * lib/argp-pv.c (argp_program_version): Likewise.
42574         Reported by Simon Josefsson.
42575
42576 2009-08-07  Simon Josefsson  <simon@josefsson.org>
42577
42578         * tests/test-version-etc.sh: Use $EXEEXT.
42579
42580 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
42581
42582         update-copyright: update documentation to point to maint.mk
42583         * build-aux/update-copyright: Here.
42584
42585 2009-08-06  Jim Meyering  <meyering@redhat.com>
42586
42587         maint.mk: support update-copyright-local
42588         * top/maint.mk (update-copyright-local): Define place-holder.
42589         (update-copyright): Depend on $(update-copyright-local).
42590
42591 2009-08-06  Jim Meyering  <meyering@redhat.com>
42592
42593         selinux-at: new module
42594         Initially written for coreutils, this module will soon be
42595         used by findutils, too.
42596         * MODULES.html.sh [Misc]: Add selinux-at.
42597         * lib/selinux-at.h: New file, from coreutils.
42598         * lib/selinux-at.c: Likewise.
42599         * modules/selinux-at: Likewise.
42600         (License): Change from LGPL to GPL, since it depends
42601         on the GPL'd openat module.
42602
42603         doc: update README
42604         * README: Remove references to cogito.
42605         Remove cvs-repo-updating instructions from 2007.
42606         Don't imply that CVS is better if you have limited disk space.
42607
42608 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42609
42610         update-copyright: support C-style comments
42611         * build-aux/update-copyright: Implement and document.
42612         * tests/test-update-copyright.sh: Test.
42613
42614 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42615
42616         update-copyright: support omitted "(C)"
42617         * build-aux/update-copyright: Implement and document.  Also,
42618         allow variable whitespace before "(C)".
42619         * tests/test-update-copyright.sh: Test.
42620
42621 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42622
42623         update-copyright: don't trip on non-FSF copyright statements
42624         * build-aux/update-copyright: Fix so that the first correctly
42625         formatted FSF copyright statement is recognized no matter what
42626         appears before it.  Update documentation.
42627         * tests/test-update-copyright.sh: Test that.
42628
42629 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42630
42631         update-copyright: clean up code a little
42632         * build-aux/update-copyright: Append "_re" to the name of any
42633         variable holding a regular expression.
42634         Replace "old" and "new" with "stmt" in variable names.
42635         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
42636         handled correctly.
42637         Format code more consistently.
42638
42639 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42640
42641         update-copyright-tests: improve portability
42642         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
42643         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
42644
42645 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
42646
42647         update-copyright: support @copyright{} and &copy;
42648         * build-aux/update-copyright: Implement and document.
42649         * tests/test-update-copyright.sh: Test.
42650
42651 2009-08-04  Jim Meyering  <meyering@redhat.com>
42652
42653         update-copyright-tests: correctly test EOL=\r\n handling
42654         * tests/test-update-copyright.sh: Put \r at the end of some lines
42655         for the dos-eol tests.  Based on a patch by Joel E. Denny.
42656
42657         maint.mk: make update-copyright exclusion list more configurable
42658         * top/maint.mk (update-copyright): Default to excluding COPYING,
42659         but allow an override, in case someone does want to update that file.
42660
42661         maint.mk: don't update copyright date in COPYING
42662         * top/maint.mk (update-copyright): Exclude COPYING.
42663
42664         maint.mk: add a copyright-updating rule
42665         * top/maint.mk (update-copyright): New rule.
42666         Derived from coreutils/Makefile.am.
42667
42668         update-copyright: rename some variables
42669         * build-aux/update-copyright: Rename a few variables for clarity.
42670         Tweak syntax.  List Joel E. Denny as coauthor.
42671
42672 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
42673
42674         update-copyright: fix bug for 2-digit last year and add tests
42675         * build-aux/update-copyright: Fix bug.
42676         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
42677         specified.
42678         * modules/update-copyright-tests: New
42679         * tests/test-update-copyright.sh: New.
42680
42681 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
42682
42683         update-copyright: handle leading tabs in line prefix
42684         * build-aux/update-copyright: Count leading tabs as 8 spaces
42685         when computing margin.  This helps with the formatting of
42686         ChangeLogs, for example.
42687         Fix documentation a little.
42688
42689 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
42690
42691         update-copyright: support EOL=\r\n
42692         * build-aux/update-copyright: Implement that.
42693
42694 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
42695
42696         update-copyright: automatically format copyright statements
42697         * build-aux/update-copyright: Implement that.
42698         Also, be a little more predictable and safer by always failing
42699         when the full copyright format is not perfectly recognized as an
42700         unbroken whole.  Discussed at
42701         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
42702         Rewrite documentation.
42703
42704 2009-08-03  Bruno Haible  <bruno@clisp.org>
42705
42706         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
42707
42708 2009-08-02  Bruno Haible  <bruno@clisp.org>
42709
42710         Tests for module 'uname'.
42711         * modules/uname-tests: New file.
42712         * tests/test-uname.c: New file.
42713
42714         New module 'uname'.
42715         * lib/uname.c: New file.
42716         * m4/uname.m4: New file.
42717         * modules/uname: New file.
42718         * doc/posix-functions/uname.texi: Mention the new module.
42719
42720 2009-08-02  Bruno Haible  <bruno@clisp.org>
42721
42722         Tests for module 'sys_utsname'.
42723         * modules/sys_utsname-tests: New file.
42724         * tests/test-sys_utsname.c: New file.
42725
42726         New module 'sys_utsname'.
42727         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
42728         * m4/sys_utsname_h.m4: New file.
42729         * modules/sys_utsname: New file.
42730         * doc/posix-headers/sys_utsname.texi: Mention the new module.
42731
42732 2009-08-02  Bruno Haible  <bruno@clisp.org>
42733
42734         Implicitly initialize the sockets library.
42735         * lib/gethostname.c: Include sockets.h.
42736         (rpl_gethostname): Invoke gl_sockets_startup.
42737         * lib/socket.c: Include sockets.h.
42738         (rpl_socket): Invoke gl_sockets_startup.
42739         * modules/gethostname (Depends-on): Add sockets.
42740         * modules/socket (Depends-on): Likewise.
42741         * tests/test-poll.c: Don't include sockets.h.
42742         (main): Don't invoke gl_sockets_startup.
42743         * tests/test-select.c: Don't include sockets.h.
42744         (main): Don't invoke gl_sockets_startup.
42745
42746 2009-08-02  Bruno Haible  <bruno@clisp.org>
42747
42748         Allow multiple calls to gl_sockets_startup.
42749         * lib/sockets.c (initialized_sockets_version): New variable.
42750         (gl_sockets_startup): Do nothing if already called for this or a higher
42751         version.
42752         (gl_sockets_cleanup): Reset initialized_sockets_version.
42753
42754 2009-08-03  Simon Josefsson  <simon@josefsson.org>
42755
42756         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
42757         different project/version.
42758
42759 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
42760             Bruno Haible  <bruno@clisp.org>
42761
42762         Tests for module 'pipe-filter-gi'.
42763         * modules/pipe-filter-gi-tests: New file.
42764         * tests/test-pipe-filter-gi1.sh: New file.
42765         * tests/test-pipe-filter-gi1.c: New file.
42766         * tests/test-pipe-filter-gi2.sh: New file.
42767         * tests/test-pipe-filter-gi2-main.c: New file.
42768         * tests/test-pipe-filter-gi2-child.c: New file.
42769
42770         New module 'pipe-filter-gi'.
42771         * lib/pipe-filter-gi.c: New file.
42772         * modules/pipe-filter-gi: New file.
42773
42774 2009-08-02  Bruno Haible  <bruno@clisp.org>
42775             Paolo Bonzini  <bonzini@gnu.org>
42776
42777         Tests for module 'pipe-filter-ii'.
42778         * modules/pipe-filter-ii-tests: New file.
42779         * tests/test-pipe-filter-ii1.sh: New file.
42780         * tests/test-pipe-filter-ii1.c: New file.
42781         * tests/test-pipe-filter-ii2.sh: New file.
42782         * tests/test-pipe-filter-ii2-main.c: New file.
42783         * tests/test-pipe-filter-ii2-child.c: New file.
42784
42785         New module 'pipe-filter-ii'.
42786         * lib/pipe-filter.h: New file.
42787         * lib/pipe-filter-ii.c: New file.
42788         * lib/pipe-filter-aux.h: New file.
42789         * modules/pipe-filter-ii: New file.
42790
42791 2009-08-02  Simon Josefsson  <simon@josefsson.org>
42792
42793         * lib/gc-libgcrypt.c: Change copyright to FSF.
42794         * lib/gc-gnulib.c: Likewise.
42795
42796 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
42797
42798         * lib/gethostname.c: Include limits.h.
42799
42800 2009-08-02  Simon Josefsson  <simon@josefsson.org>
42801             Bruno Haible  <bruno@clisp.org>
42802
42803         Ensure HOST_NAME_MAX as part of the gethostname module.
42804         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
42805         define also HOST_NAME_MAX.
42806         * tests/test-gethostname.c: Include <limits.h>.
42807         (main): Check also HOST_NAME_MAX.
42808         * doc/posix-headers/limits.texi: Document the mingw problem.
42809
42810 2009-08-02  Bruno Haible  <bruno@clisp.org>
42811
42812         * lib/gethostname.c (gethostname): Fix handling of large len argument.
42813         Add comments.
42814
42815 2009-03-31  Simon Josefsson  <simon@josefsson.org>
42816
42817         * lib/gethostname.c: Add Windows wrapper.
42818         * m4/gethostname.m4: Look for gethostname in -lws2_32.
42819         * modules/gethostname: Depend on sys_socket & errno, for also
42820         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
42821         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
42822
42823 2009-07-31  Jim Meyering  <meyering@redhat.com>
42824
42825         getloadavg: fix symbol name in comment
42826         * lib/getloadavg.c: Correct a typo I introduced when adding
42827         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
42828         Matt Kraai spotted the problem.
42829
42830 2009-07-29  Matt Kraai  <mkraai@beckman.com>
42831
42832         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
42833         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
42834         code also if ! defined N_NAME_POINTER.
42835         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
42836         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
42837         but the n_name member is a 12-byte array.
42838
42839 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
42840
42841         update-copyright: generalize comment handling
42842         * build-aux/update-copyright: Handle copyright statements
42843         within more comment styles.
42844         Document usage.
42845         Report any file with an external copyright holder or parse failure.
42846
42847 2009-07-29  Jim Meyering  <meyering@redhat.com>
42848
42849         mktime: correct setting of REPLACE_MKTIME
42850         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
42851
42852         update-copyright: new module
42853         * modules/update-copyright: New file.
42854         * build-aux/update-copyright: New file.
42855         * MODULES.html.sh (maint+release support): Add update-copyright.
42856
42857 2009-07-27  Bruno Haible  <bruno@clisp.org>
42858
42859         Fix compilation error when <ctime> is used and mktime is replaced.
42860         * lib/time.in.h (mktime): New declaration.
42861         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
42862         REPLACE_MKTIME instead of defining mktime in config.h.
42863         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
42864         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
42865         Reported by Ross McFarland <rwmcfa1@neces.com>.
42866
42867 2009-07-27  Bruno Haible  <bruno@clisp.org>
42868
42869         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
42870         Reported by Matt Kraai <mkraai@beckman.com>.
42871
42872 2009-07-25  Jim Meyering  <meyering@redhat.com>
42873
42874         maint.mk: avoid warnings about missing files
42875         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
42876         diagnostic when .prev-version does not exist.
42877         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
42878         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
42879         nonexistent cfg.mk.
42880         Suggestions from Simon Josefsson.
42881
42882 2009-07-25  Bruno Haible  <bruno@clisp.org>
42883
42884         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
42885         defined as macros. Needed on QNX 6.4.1.
42886         Reported by Matt Kraai <mkraai@beckman.com>.
42887
42888 2009-07-23  Jim Meyering  <meyering@redhat.com>
42889
42890         maint.mk: invoke "make dist" with a working value of XZ_OPT
42891         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
42892
42893 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
42894
42895         Make fseeko.c compile on QNX.
42896         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
42897
42898 2009-07-22  Peter Simons  <simons@cryp.to>
42899
42900         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
42901         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
42902         * lib/md4.h: Likewise.
42903         * lib/md5.h: Likewise.
42904         * lib/sha1.h: Likewise.
42905         * lib/sha256.h: Likewise.
42906         * lib/sha512.h: Likewise.
42907
42908         tests-sha1: don't assign literal string to 'char *' variable
42909         * tests/test-sha1.c (main): Declare locals with "const" to match
42910         attributes of the right hand side.
42911
42912 2009-07-21  Eric Blake  <ebb9@byu.net>
42913
42914         dup2: fix more mingw problems
42915         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
42916         fd to itself.
42917         * doc/posix-functions/dup2.texi (dup2): Document the bug.
42918         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
42919         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
42920         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
42921         care of mingw bugs.
42922
42923 2009-07-21  Jim Meyering  <meyering@redhat.com>
42924
42925         vc-list-files: avoid failure when /bin/sh is dash
42926         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
42927         On some Debian based systems, /bin/sh is a symlink to dash, and running
42928         this command would omit the "/" following each 'tests' prefix:
42929           dash -x build-aux/vc-list-files -C . tests
42930         That is because bash and dash work differently:
42931           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
42932           bash ok
42933           dash odd
42934
42935 2009-07-21  Eric Blake  <ebb9@byu.net>
42936
42937         dup2-tests: test previous patch
42938         * modules/dup2-tests: New file.
42939         * tests/test-dup2.c: Likewise.
42940         * tests/test-open.c (main): Avoid unspecified behavior.
42941         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
42942         test.
42943
42944         dup2: work around mingw and cygwin 1.5 bug
42945         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
42946         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42947         * modules/unistd (Makefile.am): Substitute it.
42948         * lib/unistd.in.h (dup2): Declare the replacement.
42949         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
42950         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
42951         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
42952         * modules/execute (Depends-on): Add dup2.
42953         * modules/fseterr (Depends-on): Likewise.
42954         * modules/pipe (Depends-on): Likewise.
42955         * modules/posix_spawn-internal (Depends-on): Likewise.
42956
42957 2009-07-21  Bruno Haible  <bruno@clisp.org>
42958
42959         * modules/.gitattributes: New file.
42960
42961 2009-07-20  Bruno Haible  <bruno@clisp.org>
42962
42963         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
42964         (main): Use it.
42965
42966 2009-07-20  Eric Blake  <ebb9@byu.net>
42967
42968         test-pipe: make a bit more robust.
42969         * tests/test-pipe.c (myerr): Allow error messages regardless of
42970         what we do to stderr.
42971         (test_pipe): Rearrange to avoid deadlock.
42972         (child_main): Try a larger read, to ensure we avoided deadlock.
42973         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
42974         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
42975         if misused.
42976
42977 2009-07-19  Jim Meyering  <meyering@redhat.com>
42978
42979         fts: avoid false-positive cycle-detection
42980         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
42981         for each new command line argument.
42982
42983 2009-07-19  Bruno Haible  <bruno@clisp.org>
42984
42985         Fix build error on mingw with the modules sys_select and unistd.
42986         * modules/acl-tests (Depends-on): Add close.
42987         * modules/binary-io-tests (Depends-on): Likewise.
42988         * modules/closein-tests (Depends-on): Likewise.
42989         * modules/flock-tests (Depends-on): Likewise.
42990         * modules/fsync-tests (Depends-on): Likewise.
42991         * modules/lseek-tests (Depends-on): Likewise.
42992         * modules/pipe-tests (Depends-on): Likewise.
42993         * modules/posix_spawn-tests (Depends-on): Likewise.
42994         * modules/posix_spawnp-tests (Depends-on): Likewise.
42995         * modules/stat-time-tests (Depends-on): Likewise.
42996         * modules/yesno-tests (Depends-on): Likewise.
42997
42998 2009-07-19  Bruno Haible  <bruno@clisp.org>
42999
43000         Unify conditionals.
43001         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
43002         macros, not at the compiler macros.
43003         * lib/pipe.c: Likewise.
43004         * lib/execute.c: Likewise.
43005         * lib/spawni.c: Likewise.
43006
43007 2009-07-19  Bruno Haible  <bruno@clisp.org>
43008
43009         Fix handling of closed stdin/stdout/stderr on mingw.
43010         * lib/w32spawn.h: Include unistd.h.
43011         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
43012         file descriptor with O_NOINHERIT flag.
43013         (fd_safer_noinherit): New function, based on fd-safer.c.
43014         (dup_safer_noinherit): New function, based on dup-safer.c.
43015         (undup_safer_noinherit): New function.
43016         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
43017         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
43018         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
43019         instead of fd_safer.
43020         * tests/test-pipe.c: Include <windows.h>.
43021         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
43022         result.
43023
43024         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
43025         from main.
43026         (test_pipe): Pass an extra argument for disambiguation.
43027         (main): Invoke parent_main or child_main.
43028
43029         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
43030         consistently.
43031
43032 2009-07-18  Eric Blake  <ebb9@byu.net>
43033
43034         test-pipe: fix mingw build
43035         * tests/test-pipe.c (main): Avoid fcntl on mingw.
43036
43037 2009-07-18  Bruno Haible  <bruno@clisp.org>
43038
43039         * modules/pipe-tests (Makefile.am): Fix typo.
43040
43041 2009-07-18  Eric Blake  <ebb9@byu.net>
43042
43043         error: fix mingw build
43044         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
43045         Reported by Bruno Haible.
43046
43047         error: avoid undefined use of stdout
43048         * lib/error.c (error, error_at_line): Check that fd 1 is open
43049         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
43050         is handling faults and the close_stdout module wants to report the
43051         detection of closed stdout as an error.
43052
43053 2009-07-17  Eric Blake  <ebb9@byu.net>
43054
43055         pipe: be robust in face of closed fds
43056         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
43057         should cause child to misbehave.
43058         * modules/pipe-tests: New module.
43059         * tests/test-pipe.c: New file.
43060         * tests/test-pipe.sh: New file.
43061         Reported by Akim Demaille.
43062
43063 2009-07-14  Bruno Haible  <bruno@clisp.org>
43064
43065         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
43066         Reported by anonymous kc.
43067
43068 2009-07-07  Jim Meyering  <meyering@redhat.com>
43069
43070         maint.mk: don't look for translatable strings in *.m4 or *.mk
43071         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
43072         when searching for translatable strings.
43073
43074 2009-07-05  Jim Meyering  <meyering@redhat.com>
43075
43076         remove superfluous parentheses in STREQ definition
43077         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
43078         * lib/getugroups.c (STREQ): Likewise.
43079         * lib/fnmatch.c (STREQ): Likewise.
43080         Spotted by Bruno Haible.
43081
43082 2009-07-04  Jim Meyering  <meyering@redhat.com>
43083
43084         argv-iter: new module
43085         * MODULES.html.sh: Add argv-iter.
43086         * lib/argv-iter.c, lib/argv-iter.h: New files.
43087         * modules/argv-iter: New file.
43088         * modules/argv-iter-tests: New file.
43089         * tests/test-argv-iter.c: Test it.
43090
43091 2009-07-04  Bruno Haible  <bruno@clisp.org>
43092
43093         Fix assertion.
43094         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
43095         contains more exact copies of a given entry than file2, leave the extra
43096         copies unpaired rather than aborting.
43097         Reported by Eric Blake.
43098
43099 2009-07-02  Bruno Haible  <bruno@clisp.org>
43100
43101         Speedup git-merge-changelog for git cherry-pick.
43102         * lib/git-merge-changelog.c (struct entries_mapping): New type.
43103         (entries_mapping_get): New function, extracted from compute_mapping.
43104         (entries_mapping_reverse_get): New function.
43105         (compute_mapping): Add a 'full' argument. Return the result in a
43106         'struct entries_mapping'.
43107         (main): Update. Access the mappings through entries_mapping_get.
43108         Reported by Eric Blake.
43109
43110 2009-07-02  Bruno Haible  <bruno@clisp.org>
43111
43112         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
43113         best_i.
43114
43115 2009-07-02  Bruno Haible  <bruno@clisp.org>
43116
43117         Speed up approximate search for matching ChangeLog entries.
43118         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
43119         argument. Call fstrcmp_bounded instead of fstrcmp.
43120         (compute_mapping, try_split_merged_entry, main): Update callers.
43121
43122 2009-07-02  Bruno Haible  <bruno@clisp.org>
43123
43124         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
43125
43126 2009-06-30  Bruno Haible  <bruno@clisp.org>
43127
43128         Reduce the number of uc_is_cased calls.
43129         * lib/unicase.h (casing_suffix_context_t): Add
43130         'first_char_except_ignorable' field.
43131         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
43132         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
43133         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
43134         Update initializer.
43135         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
43136         case-ignorable characters.
43137         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
43138         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
43139         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
43140         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
43141         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
43142
43143 2009-06-30  Bruno Haible  <bruno@clisp.org>
43144
43145         Tests for module 'unicase/ignorable'.
43146         * modules/unicase/ignorable-tests: New file.
43147         * tests/unicase/test-ignorable.c: New file, generated by
43148         gen-uni-tables.
43149
43150         Tests for module 'unicase/cased'.
43151         * modules/unicase/cased-tests: New file.
43152         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
43153         * tests/unicase/test-predicate-part1.h: New file, derived from
43154         tests/unictype/test-predicate-part1.h.
43155         * tests/unicase/test-predicate-part2.h: New file, same as
43156         tests/unictype/test-predicate-part2.h.
43157
43158         Fix evaluation of "Before C" condition of FINAL_SIGMA.
43159         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
43160         (output_casing_properties): New function.
43161         (main): Call it.
43162         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
43163         * lib/unicase/cased.c: Include unictype/bitmap.h.
43164         (uc_is_cased): Define through a bitmap lookup.
43165         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
43166         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
43167         (uc_is_case_ignorable): Define through a bitmap lookup.
43168         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
43169         lib/unictype/bitmap.h.
43170         (Depends-on): Add inline. Clean up.
43171         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
43172         lib/unictype/bitmap.h.
43173         (Depends-on): Add inline. Clean up.
43174         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
43175         recognition.
43176         * tests/unicase/test-u16-tolower.c (main): Likewise.
43177         * tests/unicase/test-u32-tolower.c (main): Likewise.
43178
43179 2009-06-30  Bruno Haible  <bruno@clisp.org>
43180
43181         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
43182         * lib/unicase/u16-casemap.c: Likewise.
43183         * lib/unicase/u32-casemap.c: Likewise.
43184
43185 2009-06-29  Bruno Haible  <bruno@clisp.org>
43186
43187         Define u32_casefold as a wrapper around u32_ct_casefold.
43188         * lib/unicase/u32-casefold.c: Update.
43189         * modules/unicase/u32-casefold (Depends-on): Add
43190         unicase/u32-ct-casefold, unicase/empty-prefix-context,
43191         unicase/empty-suffix-context. Clean up.
43192
43193         Define u16_casefold as a wrapper around u16_ct_casefold.
43194         * lib/unicase/u16-casefold.c: Update.
43195         * modules/unicase/u16-casefold (Depends-on): Add
43196         unicase/u16-ct-casefold, unicase/empty-prefix-context,
43197         unicase/empty-suffix-context. Clean up.
43198
43199         Define u8_casefold as a wrapper around u8_ct_casefold.
43200         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
43201         * lib/unicase/u8-casefold.c: Update.
43202         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
43203         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43204
43205         Define u32_totitle as a wrapper around u32_ct_totitle.
43206         * lib/unicase/u32-totitle.c: Update.
43207         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
43208         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43209
43210         Define u16_totitle as a wrapper around u16_ct_totitle.
43211         * lib/unicase/u16-totitle.c: Update.
43212         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
43213         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43214
43215         Define u8_totitle as a wrapper around u8_ct_totitle.
43216         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
43217         functions.
43218         (FUNC): Delegate to U_CT_TOTITLE.
43219         * lib/unicase/u8-totitle.c: Update.
43220         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
43221         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43222
43223         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
43224         invocation.
43225         * modules/unicase/u32-tolower (Depends-on): Add
43226         unicase/empty-prefix-context, unicase/empty-suffix-context.
43227
43228         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
43229         invocation.
43230         * modules/unicase/u16-tolower (Depends-on): Add
43231         unicase/empty-prefix-context, unicase/empty-suffix-context.
43232
43233         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
43234         * modules/unicase/u8-tolower (Depends-on): Add
43235         unicase/empty-prefix-context, unicase/empty-suffix-context.
43236
43237         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
43238         invocation.
43239         * modules/unicase/u32-toupper (Depends-on): Add
43240         unicase/empty-prefix-context, unicase/empty-suffix-context.
43241
43242         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
43243         invocation.
43244         * modules/unicase/u16-toupper (Depends-on): Add
43245         unicase/empty-prefix-context, unicase/empty-suffix-context.
43246
43247         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
43248         * modules/unicase/u8-toupper (Depends-on): Add
43249         unicase/empty-prefix-context, unicase/empty-suffix-context.
43250
43251         New module 'unicase/u32-ct-casefold'.
43252         * lib/unicase/u32-ct-casefold.c: New file.
43253         * modules/unicase/u32-ct-casefold: New file.
43254
43255         New module 'unicase/u16-ct-casefold'.
43256         * lib/unicase/u16-ct-casefold.c: New file.
43257         * modules/unicase/u16-ct-casefold: New file.
43258
43259         New module 'unicase/u8-ct-casefold'.
43260         * lib/unicase/u8-ct-casefold.c: New file.
43261         * lib/unicase/u-ct-casefold.h: New file, derived from
43262         lib/unicase/u-casefold.h.
43263         * modules/unicase/u8-ct-casefold: New file.
43264
43265         New module 'unicase/u32-ct-totitle'.
43266         * lib/unicase/u32-ct-totitle.c: New file.
43267         * modules/unicase/u32-ct-totitle: New file.
43268
43269         New module 'unicase/u16-ct-totitle'.
43270         * lib/unicase/u16-ct-totitle.c: New file.
43271         * modules/unicase/u16-ct-totitle: New file.
43272
43273         New module 'unicase/u8-ct-totitle'.
43274         * lib/unicase/u8-ct-totitle.c: New file.
43275         * lib/unicase/u-ct-totitle.h: New file, derived from
43276         lib/unicase/u-totitle.h.
43277         * modules/unicase/u8-ct-totitle: New file.
43278
43279         New module 'unicase/u32-ct-tolower'.
43280         * lib/unicase/u32-ct-tolower.c: New file.
43281         * modules/unicase/u32-ct-tolower: New file.
43282
43283         New module 'unicase/u16-ct-tolower'.
43284         * lib/unicase/u16-ct-tolower.c: New file.
43285         * modules/unicase/u16-ct-tolower: New file.
43286
43287         New module 'unicase/u8-ct-tolower'.
43288         * lib/unicase/u8-ct-tolower.c: New file.
43289         * modules/unicase/u8-ct-tolower: New file.
43290
43291         New module 'unicase/u32-ct-toupper'.
43292         * lib/unicase/u32-ct-toupper.c: New file.
43293         * modules/unicase/u32-ct-toupper: New file.
43294
43295         New module 'unicase/u16-ct-toupper'.
43296         * lib/unicase/u16-ct-toupper.c: New file.
43297         * modules/unicase/u16-ct-toupper: New file.
43298
43299         New module 'unicase/u8-ct-toupper'.
43300         * lib/unicase/u8-ct-toupper.c: New file.
43301         * modules/unicase/u8-ct-toupper: New file.
43302
43303         Add context arguments to u*_casemap functions.
43304         * lib/unicase/unicasemap.h: Include unicase.h.
43305         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
43306         suffix_context arguments.
43307         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
43308         functions.
43309         (FUNC): Add prefix_context and suffix_context arguments. Use
43310         uc_is_cased and uc_is_case_ignorable.
43311         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
43312         * lib/unicase/u16-casemap.c: Likewise.
43313         * lib/unicase/u32-casemap.c: Likewise.
43314         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
43315         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43316         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
43317         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43318         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
43319         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43320
43321         New module 'unicase/u32-suffix-context'.
43322         * lib/unicase/u32-suffix-context.c: New file.
43323         * modules/unicase/u32-suffix-context: New file.
43324
43325         New module 'unicase/u16-suffix-context'.
43326         * lib/unicase/u16-suffix-context.c: New file.
43327         * modules/unicase/u16-suffix-context: New file.
43328
43329         New module 'unicase/u8-suffix-context'.
43330         * lib/unicase/u8-suffix-context.c: New file.
43331         * lib/unicase/u-suffix-context.h: New file.
43332         * modules/unicase/u8-suffix-context: New file.
43333
43334         New module 'unicase/empty-suffix-context'.
43335         * lib/unicase/empty-suffix-context.c: New file.
43336         * modules/unicase/empty-suffix-context: New file.
43337
43338         New module 'unicase/u32-prefix-context'.
43339         * lib/unicase/u32-prefix-context.c: New file.
43340         * modules/unicase/u32-prefix-context: New file.
43341
43342         New module 'unicase/u16-prefix-context'.
43343         * lib/unicase/u16-prefix-context.c: New file.
43344         * modules/unicase/u16-prefix-context: New file.
43345
43346         New module 'unicase/u8-prefix-context'.
43347         * lib/unicase/u8-prefix-context.c: New file.
43348         * lib/unicase/u-prefix-context.h: New file.
43349         * lib/unicase/context.h: New file.
43350         * modules/unicase/u8-prefix-context: New file.
43351
43352         New module 'unicase/empty-prefix-context'.
43353         * lib/unicase/empty-prefix-context.c: New file.
43354         * modules/unicase/empty-prefix-context: New file.
43355
43356         New module 'unicase/ignorable'.
43357         * lib/unicase/ignorable.c: New file.
43358         * modules/unicase/ignorable: New file.
43359
43360         New module 'unicase/cased'.
43361         * lib/unicase/caseprop.h: New file.
43362         * lib/unicase/cased.c: New file.
43363         * modules/unicase/cased: New file.
43364
43365         New functions for case mapping of substrings.
43366         * lib/unicase.h (casing_prefix_context_t): New type.
43367         (unicase_empty_prefix_context): New variable.
43368         (u8_casing_prefix_context, u16_casing_prefix_context,
43369         u32_casing_prefix_context, u8_casing_prefixes_context,
43370         u16_casing_prefixes_context, u32_casing_prefixes_context): New
43371         declarations.
43372         (casing_suffix_context_t): New type.
43373         (unicase_empty_suffix_context): New variable.
43374         (u8_casing_suffix_context, u16_casing_suffix_context,
43375         u32_casing_suffix_context, u8_casing_suffixes_context,
43376         u16_casing_suffixes_context, u32_casing_suffixes_context,
43377         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
43378         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
43379         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
43380         declarations.
43381
43382 2009-06-28  Jim Meyering  <meyering@redhat.com>
43383
43384         boostrap: indent only with spaces
43385         * build-aux/bootstrap: Indent only with spaces, never TABs.
43386
43387         bootstrap: split long lines
43388         * build-aux/bootstrap: Keep line length < 80.
43389
43390         bootstrap: sync from coreutils
43391         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
43392         just as autoreconf does.  Verify a list of prerequisite
43393         package-name,version-number pairs if defined in bootstrap.conf.
43394         Refer to README-prereq, if prerequisites are not satisfied.
43395
43396 2009-06-27  Eric Blake  <ebb9@byu.net>
43397
43398         tests: add test for bogus NULL definition
43399         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
43400         * tests/test-stdlib.c: Likewise.
43401         * tests/test-string.c: Likewise.
43402         * tests/test-locale.c: Likewise.
43403         * tests/test-unistd.c: Likewise.
43404         * modules/stdio-tests (Depends-on): Add verify.
43405         * modules/stdlib-tests (Depends-on): Likewise.
43406         * modules/string-tests (Depends-on): Likewise.
43407         * modules/locale-tests (Depends-on): Likewise.
43408         * modules/unistd-tests (Depends-on): Likewise.
43409
43410 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
43411
43412         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
43413         self-explaining comment.
43414         * m4/selinux-selinux-h: Update serial.
43415         (gl_LIBSELINUX): New macro, adding a warning for missing development
43416         packages to code extracted from...
43417         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
43418         Add warning for missing development packages here, too.
43419
43420 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
43421
43422         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
43423
43424 2009-06-25  Eric Blake  <ebb9@byu.net>
43425
43426         version-etc: fix regression
43427         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
43428         gcc.
43429         (version_etc): Use it, to catch bugs with trailing NULL.
43430         * lib/version-etc.c (version_etc_arn): Delete unused argument.
43431         (version_etc_va): Fix logic bug.
43432         * modules/version-etc-tests: Add test.
43433         * tests/test-version-etc.c: New file.
43434         * tests/test-version-etc.sh: Likewise.
43435
43436 2009-06-25  Sam Steingold  <sds@gnu.org>
43437
43438         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
43439         mbtowc declaration.
43440
43441 2009-06-25  Eric Blake  <ebb9@byu.net>
43442
43443         fpurge: migrate into <stdio.h>
43444         * lib/fpurge.h: Delete...
43445         * lib/stdio.in.h (fpurge): ...and declare here, instead.
43446         * lib/fpurge.c (fpurge): Change declaring header.
43447         * modules/fpurge (Files): Drop deleted file.
43448         (Depends-on): Add stdio.
43449         (configure.ac): Set witness.
43450         * modules/stdio (Makefile.am): Support fpurge macros.
43451         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43452         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
43453         * lib/fflush.c: Update client.
43454         * tests/test-fpurge.c: Likewise.
43455         * NEWS: Mention the change.
43456
43457 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43458
43459         * lib/argp-version-etc.c (program_authors): Add const
43460         qualifier.
43461         * lib/version-etc.c: Fix typos in the comments.
43462         * modules/argp-version-etc: Depends on version-etc.
43463
43464 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43465
43466         argp-version-etc: new module.
43467
43468         * lib/argp-version-etc.c: New file.
43469         * lib/argp-version-etc.h: New file.
43470         * modules/argp-version-etc: New file.
43471         * modules/argp-version-etc-tests: New file.
43472         * tests/test-argp-version-etc.c: New test.
43473         * tests/test-argp-version-etc-1.sh: New test.
43474
43475 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43476
43477         Provide additional interfaces and documentation for version-etc
43478         module.
43479
43480         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
43481         interfaces.
43482         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
43483         prototypes.
43484
43485 2009-06-24  Bruno Haible  <bruno@clisp.org>
43486
43487         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
43488         HAVE_LIB${NAME} macro.
43489         Reported by Sam Steingold <sds@gnu.org>.
43490
43491 2009-06-23  Simon Josefsson  <simon@josefsson.org>
43492
43493         * modules/hash-tests (test_hash_LDADD): Link to libintl when
43494         needed.
43495
43496 2009-06-21  Bruno Haible  <bruno@clisp.org>
43497
43498         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
43499         work.
43500         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
43501         together with LIB${NAME}, LTLIB${NAME}.
43502         Reported by Sam Steingold <sds@gnu.org>.
43503
43504 2009-06-20  Jim Meyering  <meyering@redhat.com>
43505
43506         tests: make sc_require_test_exit_idiom more generic
43507         * top/maint.mk (Exit_witness_file): New overridable variable.
43508         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
43509         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
43510
43511 2009-06-19  Jim Meyering  <meyering@redhat.com>
43512
43513         hash: reverse order of src/dst parameters in an internal interface
43514         * lib/hash.c (transfer_entries): Reverse order of parameters to
43515         put DST before SRC.  Adjust callers.
43516
43517         tests: test-hash: avoid wholesale duplication
43518         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
43519         Instead, use a loop and add a single conditional.
43520
43521         tests: test-hash: allow seed selection via a command line argument
43522         * tests/test-hash.c (get_seed): New function.
43523         (main): Use it.
43524
43525 2009-06-19  Eric Blake  <ebb9@byu.net>
43526
43527         hash: avoid memory leak on allocation failure
43528         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
43529         failure.  Factor repeated algorithm...
43530         (transfer_entries): ...into new helper routine.
43531         (hash_delete): React to hash_rehash return value.
43532
43533         hash: reduce memory pressure in hash_rehash no-op case
43534         * lib/hash.c (next_prime): Avoid overflow.
43535         (hash_initialize): Factor bucket size computation...
43536         (compute_bucket_size): ...into new helper function.
43537         (hash_rehash): Use new function and open coding to reduce memory
43538         pressure, and avoid a memory leak in USE_OBSTACK code.
43539         Reported by Jim Meyering.
43540
43541 2009-06-18  Eric Blake  <ebb9@byu.net>
43542
43543         hash: make rotation more obvious
43544         * modules/hash (Depends-on): Add bitrotate and stdint.
43545         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
43546         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
43547         (SIZE_MAX): Rely on headers for definition.
43548         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
43549         (raw_hasher): Use rotr_sz.
43550         Suggested by Jim Meyering.
43551
43552         hash: fix memory leak in last patch
43553         * lib/hash.c (hash_rehash): Avoid memory leak.
43554
43555         hash: avoid no-op rehashing
43556         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
43557
43558         hash: provide default callback functions
43559         * lib/hash.c (raw_hasher, raw_comparator): New functions.
43560         (hash_initialize): Use them as defaults.
43561         * tests/test-hash.c (main): Test this.
43562
43563         hash: minor optimization
43564         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
43565         when possible.
43566         (hash_initialize): Document this promise.
43567         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
43568         * tests/test-hash.c (hash_compare_strings): Test this.
43569
43570 2009-06-18  Bruno Haible  <bruno@clisp.org>
43571
43572         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
43573         going to be replaced anyway.
43574
43575 2009-06-18  Bruno Haible  <bruno@clisp.org>
43576
43577         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
43578         in one place.
43579         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
43580         be replaced anyway.
43581
43582 2009-06-18  Eric Blake  <ebb9@byu.net>
43583
43584         hash: check for resize before insertion
43585         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
43586         threshold before insertion, so that a pathological hash_rehash
43587         that fills every bucket can still trigger another rehash.
43588
43589 2009-06-18  Jim Meyering  <meyering@redhat.com>
43590
43591         hash-tests: add a loop around the small tests
43592         * tests/test-hash.c (main): Repeat small tests with selected
43593         small initial table sizes.
43594
43595 2009-06-17  Eric Blake  <ebb9@byu.net>
43596
43597         hash: minor cleanups
43598         * lib/hash.h (hash_entry): Make opaque, by moving...
43599         * lib/hash.c (hash_entry): ...here.
43600         (hash_insert): Clarify restrictions on what can be inserted.
43601         (hash_get_next): Clarify when it is safe to remove an element
43602         during traversal.
43603         (check_tuning): Skip verification when tuning is known safe.
43604         (hash_initialize): Clarify restrictions on tuning.
43605
43606 2009-06-17  Jim Meyering  <jim@meyering.net>
43607         and Eric Blake  <ebb9@byu.net>
43608
43609         hash-tests: new module
43610         * modules/hash-tests: New file.
43611         * tests/test-hash.c: New file.
43612
43613 2009-06-17  Eric Blake  <ebb9@byu.net>
43614
43615         strstr-simple: document new module
43616         * MODULES.html.sh: Document new module.
43617
43618         strstr, strcasestr: replace on platforms with broken memchr
43619         * modules/strstr: Split into...
43620         * modules/strstr-simple: ...new module that does not care about
43621         performance, but does care about glibc bug.
43622         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
43623         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
43624         if platform memchr is broken, per Debian bug 521737.
43625         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
43626         memchr.
43627         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
43628         * doc/posix-functions/strstr.texi (strstr): Document the fix.
43629         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
43630         * modules/mountlist (Depends-on): Add strstr-simple.
43631         * modules/gen-uni-tables (Depends-on): Likewise.
43632         * modules/argz (Depends-on): Add strstr.
43633
43634 2009-06-17  Bruno Haible  <bruno@clisp.org>
43635
43636         * modules/posix_spawn-internal (Depends-on): Add errno.
43637
43638 2009-06-17  Bruno Haible  <bruno@clisp.org>
43639
43640         Define missing ESTALE on Interix 3.5.
43641         * lib/errno.in.h (ESTALE): Assign a value if missing.
43642         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
43643         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
43644         missing.
43645         * doc/posix-headers/errno.texi: Mention the Interix bug.
43646         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
43647
43648 2009-06-15  Eric Blake  <ebb9@byu.net>
43649
43650         memchr, memchr2: add valgrind exception
43651         * lib/memchr.valgrind: New file.
43652         * lib/memchr2.valgrind: New file.
43653         * modules/memchr (Files): Distribute valgrind file.
43654         * modules/memchr2 (Files): Likewise.
43655
43656         docs: memchr is no longer obsolete
43657         * MODULES.html.sh: Move memchr from obsolete to string.h section.
43658         * lib/string.in.h (memchr): Simplify logic.
43659
43660 2009-06-14  Jim Meyering  <meyering@redhat.com>
43661
43662         link-follow: fix the "checking..." message to not mention trailing slash
43663         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
43664         never considered trailing slashes.
43665
43666 2009-06-14  Bruno Haible  <bruno@clisp.org>
43667
43668         * m4/memchr.m4: Mention also the bug on IA-64.
43669         * doc/posix-functions/memchr.texi: Likewise.
43670
43671 2009-06-12  Eric Blake  <ebb9@byu.net>
43672
43673         memchr: detect broken x86_64 and alpha implementations
43674         * modules/memchr-tests (Depends-on): Move mmap detection...
43675         * modules/memchr (Depends-on): ...here.
43676         (configure.ac): Set indicator.
43677         * lib/string.in.h (memchr): Declare replacement.
43678         * modules/string (Makefile.am): Trigger replacement.
43679         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
43680         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
43681         bugs.
43682         * doc/posix-functions/memchr.texi (memchr): Document the bug.
43683         * modules/getpagesize (License): Relax license.
43684
43685 2009-06-11  Bruno Haible  <bruno@clisp.org>
43686
43687         * lib/idpriv.h: Add more references.
43688
43689 2009-06-08  Bruno Haible  <bruno@clisp.org>
43690
43691         Tests for module 'idpriv-droptemp'.
43692         * modules/idpriv-droptemp-tests: New file.
43693         * tests/test-idpriv-droptemp.sh: New file.
43694         * tests/test-idpriv-droptemp.su.sh: New file.
43695         * tests/test-idpriv-droptemp.c: New file.
43696
43697         New module 'idpriv-droptemp'.
43698         * lib/idpriv-droptemp.c: New file.
43699         * modules/idpriv-droptemp: New file.
43700
43701 2009-06-08  Bruno Haible  <bruno@clisp.org>
43702
43703         Tests for module 'idpriv-drop'.
43704         * modules/idpriv-drop-tests: New file.
43705         * tests/test-idpriv-drop.sh: New file.
43706         * tests/test-idpriv-drop.su.sh: New file.
43707         * tests/test-idpriv-drop.c: New file.
43708
43709         New module 'idpriv-drop'.
43710         * lib/idpriv.h: New file.
43711         * lib-idpriv-drop.c: New file.
43712         * m4/idpriv.m4: New file.
43713         * modules/idpriv-drop: New file.
43714
43715 2009-06-08  Bruno Haible  <bruno@clisp.org>
43716
43717         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
43718         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43719         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43720         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43721         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43722         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43723         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43724
43725 2009-06-08  Eric Blake  <ebb9@byu.net>
43726
43727         test-strstr: use memory fence, when possible
43728         * tests/test-strstr.c (main): Use memory fence, in order to be
43729         more likely to trigger Debian bug 521737.
43730         * modules/strstr-tests (Files): Pull in additional files.
43731
43732         memchr: no longer obsolete, for wider field testing
43733         * modules/memchr (Status, Notice): Delete, this module is no
43734         longer obsolete.
43735         * modules/vasnprintf (Depends-on): Add memchr.
43736
43737 2009-06-07  Jim Meyering  <meyering@redhat.com>
43738
43739         hash: declare some functions with the warn_unused_result attribute
43740         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
43741
43742 2009-06-07  Bruno Haible  <bruno@clisp.org>
43743
43744         * tests/test-alignof.c: Don't test int64_t if it does not exist.
43745         Reported by Eric Blake.
43746
43747 2009-06-06  Eric Blake  <ebb9@byu.net>
43748
43749         test-alignof: fix typo with long double
43750         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
43751         compiler error.
43752
43753 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
43754
43755         Escape non-texinfo { and }s.
43756         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
43757         markup error.
43758
43759 2009-06-04  Jim Meyering  <meyering@redhat.com>
43760
43761         gitlog-to-changelog: don't infloop on an empty commit log
43762         * build-aux/gitlog-to-changelog: Warn about an empty log message.
43763         Reported by Boris Petersen <transacid@centerim.org>.
43764
43765 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
43766
43767         version-etc: extend for packagers
43768         Add three new configure options, intended for packagers:
43769           --with-packager="packager name"
43770           --with-packager-version="packager-specific version"
43771           --with-packager-bug-reports="packager bug reporting"
43772         An example with coreutils:
43773           $ ./configure \
43774             --with-packager=Gentoo \
43775             --with-packager-bug-report=http://bugs.gentoo.org/ \
43776             --with-packager-version="patchset 1.6"
43777           $ ./src/ls --version | head -n2
43778           ls (GNU coreutils) 7.1-dirty
43779           Packaged by Gentoo (patchset 1.6)
43780         Note that the bug reporting info via --help doesn't show up because
43781         coreutils uses its own custom emit_bug_reporting_address() implementation
43782         in src/system.h.  If it didn't, it'd look like:
43783           $ ./src/ls --help | tail -n4
43784           Report bugs to <bug-coreutils@gnu.org>.
43785           Report Gentoo bugs to <http://bugs.gentoo.org/>.
43786           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
43787           General help using GNU software: <http://www.gnu.org/gethelp/>.
43788         * lib/version-etc.c: Print new information, if provided.
43789         * m4/version-etc.m4: New file.
43790         * modules/version-etc (Files): Add m4/version-etc.m4.
43791         (configure.ac): Add gl_VERSION_ETC.
43792
43793 2009-05-31  Bruno Haible  <bruno@clisp.org>
43794
43795         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
43796         and 'int64_t'.
43797         * modules/alignof-tests (Dependencies): Add stdint.
43798         Reported by Eric Blake.
43799
43800 2009-05-31  Bruno Haible  <bruno@clisp.org>
43801
43802         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
43803         restriction due to compiler bugs.
43804         Reported by Eric Blake.
43805
43806 2009-05-31  Simon Josefsson  <simon@josefsson.org>
43807             Bruno Haible  <bruno@clisp.org>
43808
43809         Fix test-alignof failure.
43810         * lib/alignof.h (alignof_slot): New macro.
43811         (alignof_type): New macro, with the same semantics as the previous
43812         'alignof'.
43813         (alignof): Alias to alignof_slot.
43814         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
43815         check that the results are usable as constant expressions.
43816
43817 2009-05-31  Bruno Haible  <bruno@clisp.org>
43818
43819         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
43820         * tests/test-memchr.c (main): Check that memchr does not read past the
43821         first occurrence of the byte.
43822         * tests/test-strstr.c (main): Update comment.
43823         Suggested by Eric Blake.
43824
43825 2009-05-30  Bruno Haible  <bruno@clisp.org>
43826
43827         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
43828         detail how to use dumpbin.
43829         Reported by David Byron <dbyron@dbyron.com>.
43830
43831 2009-06-02  Simon Josefsson  <simon@josefsson.org>
43832
43833         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
43834
43835 2009-06-02  Simon Josefsson  <simon@josefsson.org>
43836
43837         * m4/manywarnings.m4: Add GCC 4.4 warnings.
43838
43839 2009-05-28  Bruno Haible  <bruno@clisp.org>
43840
43841         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
43842         build-aux/ files.
43843
43844 2009-05-28  Simon Josefsson  <simon@josefsson.org>
43845
43846         * gnulib-tool (func_import): Transform license on build-aux/ files too.
43847
43848 2009-05-27  Simon Josefsson  <simon@josefsson.org>
43849
43850         * gnulib-tool (sed_transform_main_lib_file)
43851         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
43852         regexps.
43853
43854 2009-05-26  Simon Josefsson  <simon@josefsson.org>
43855
43856         * tests/test-strstr.c: Add another self-test.
43857         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
43858         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
43859
43860 2009-05-23  Bruno Haible  <bruno@clisp.org>
43861
43862         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
43863         change.
43864
43865 2009-05-21  Bruno Haible  <bruno@clisp.org>
43866
43867         Simplify use of mode_t varargs.
43868         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
43869         uses 'mode_t' or 'int'.
43870         * lib/openat.c (openat): Likewise.
43871         * lib/open-safer.c (open_safer): Likewise.
43872         * m4/mode_t.m4: New file.
43873         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
43874         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
43875         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
43876         * modules/open (Files): Add m4/mode_t.m4.
43877         * modules/openat (Files): Likewise.
43878         * modules/fcntl-safer (Files): Likewise.
43879         Suggested by Eric Blake.
43880
43881 2009-05-21  Pádraig Brady  <P@draigbrady.com>
43882
43883         * doc/glibc-functions/fallocate.texi: New file.
43884         * doc/gnulib.texi: Include it.
43885
43886 2009-05-21  Eric Blake  <ebb9@byu.net>
43887             Bruno Haible  <bruno@clisp.org>
43888
43889         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
43890         invocations.
43891         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
43892
43893 2009-05-21  Eric Blake  <ebb9@byu.net>
43894             Bruno Haible  <bruno@clisp.org>
43895
43896         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
43897         include_next. Fix of 2008-11-20 commit.
43898         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
43899         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
43900         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
43901         NEXT_MATH_H.
43902         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
43903         instead of NEXT_MATH_H.
43904
43905 2009-05-21  Bruno Haible  <bruno@clisp.org>
43906
43907         Avoid redefinition warnings for SIZE_MAX.
43908         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
43909         Reported by Simon Josefsson.
43910
43911 2009-05-21  Bruno Haible  <bruno@clisp.org>
43912
43913         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
43914         AC_CACHE_VAL.
43915
43916 2009-05-20  Bruno Haible  <bruno@clisp.org>
43917
43918         Make zeroptr.h work on mingw.
43919         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
43920         mprotect.
43921         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
43922         * modules/memchr2-tests (configure.ac): Likewise.
43923         * modules/memcmp-tests (configure.ac): Likewise.
43924         * modules/memmem-tests (configure.ac): Likewise.
43925         * modules/memrchr-tests (configure.ac): Likewise.
43926         Reported by Simon Josefsson.
43927
43928 2009-05-20  Simon Josefsson  <simon@josefsson.org>
43929
43930         * tests/test-glob.c: Include string.h for strcmp prototype.
43931
43932 2009-05-20  Simon Josefsson  <simon@josefsson.org>
43933
43934         * modules/getdelim (Depends-on): Add explicit stdint, although it
43935         was implicitly already pulled in via realloc-posix.
43936         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
43937
43938 2009-05-20  Simon Josefsson  <simon@josefsson.org>
43939
43940         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
43941         G. Christensen" <tgc@jupiterrise.com>.
43942         * m4/sys_socket_h.m4: Check for sa_family_t.
43943         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
43944         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
43945         * tests/test-sys_socket.c: Check that sa_family_t works.
43946
43947 2009-05-18  Eric Blake  <ebb9@byu.net>
43948
43949         maint.mk: allow gnulib_dir in VPATH build
43950         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
43951
43952 2009-05-15  Jim Meyering  <meyering@redhat.com>
43953
43954         maint.mk: Give gnulib_dir a default definition.
43955         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
43956         Thus, most packages no longer need to specify this variable in cfg.mk
43957
43958 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
43959
43960         rename.m4: fix typos that would make non-mingw cross-configure fail
43961         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
43962
43963 2009-05-13  Eric Blake  <ebb9@byu.net>
43964
43965         mmap-anon: avoid out-of-order autoconf expansion
43966         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
43967         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
43968         * modules/memchr-tests (Depends-on): Add extensions.
43969         * modules/memchr2-tests (Depends-on): Add extensions.
43970         * modules/memcmp-tests (Depends-on): Add extensions.
43971         * modules/memmem-tests (Depends-on): Add extensions.
43972         * modules/memrchr-tests (Depends-on): Add extensions.
43973
43974 2009-05-13  Bruno Haible  <bruno@clisp.org>
43975
43976         Make some tests ISO C 99 compliant.
43977         * tests/zerosize-ptr.h: New file.
43978         * tests/test-memchr.c: Include zerosize-ptr.h.
43979         (main): Use a zero-size object pointer instead of NULL.
43980         * tests/test-memchr2.c: Include zerosize-ptr.h.
43981         (main): Use a zero-size object pointer instead of NULL.
43982         * tests/test-memcmp.c: Include zerosize-ptr.h.
43983         (main): Use a zero-size object pointer instead of NULL.
43984         * tests/test-memmem.c: Include zerosize-ptr.h.
43985         (main): Use a zero-size object pointer instead of NULL.
43986         * tests/test-memrchr.c: Include zerosize-ptr.h.
43987         (main): Use a zero-size object pointer instead of NULL.
43988         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
43989         m4/mmap-anon.m4.
43990         (Depends-on): Add getpagesize.
43991         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43992         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
43993         m4/mmap-anon.m4.
43994         (Depends-on): Add getpagesize.
43995         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43996         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
43997         m4/mmap-anon.m4.
43998         (Depends-on): Add getpagesize.
43999         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44000         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
44001         m4/mmap-anon.m4.
44002         (Depends-on): Add getpagesize.
44003         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44004         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
44005         m4/mmap-anon.m4.
44006         (Depends-on): Add getpagesize.
44007         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44008
44009 2009-05-12  Bruno Haible  <bruno@clisp.org>
44010
44011         Tests for module 'alignof'.
44012         * modules/alignof-tests: New file.
44013         * tests/test-alignof.c: New file.
44014
44015 2009-05-12  Bruno Haible  <bruno@clisp.org>
44016
44017         Fix alignof macro.
44018         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
44019         vendor compilers that are always correct.
44020
44021 2009-05-12  Bruno Haible  <bruno@clisp.org>
44022
44023         Make the MAP_ANONYMOUS detection work on HP-UX 11.
44024         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
44025         not whether its fully works.
44026
44027 2009-05-12  Bruno Haible  <bruno@clisp.org>
44028
44029         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
44030
44031 2009-05-12  Jim Meyering  <meyering@redhat.com>
44032
44033         * top/maint.mk: Adjust backslash alignment.
44034
44035 2009-05-11  Simon Josefsson  <simon@josefsson.org>
44036
44037         * top/maint.mk: Make $(srcdir)/build-aux configurable.
44038
44039 2009-05-11  Eric Blake  <ebb9@byu.net>
44040
44041         argp: avoid undefined behavior
44042         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
44043         macros.
44044
44045 2009-05-08  Simon Josefsson  <simon@josefsson.org>
44046
44047         * tests/test-vc-list-files-git.sh: Do git config of user.email and
44048         user.name to prevent git commit from complaining.
44049
44050 2009-05-10  Bruno Haible  <bruno@clisp.org>
44051
44052         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
44053         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
44054         it rewrites every file name only once.
44055         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
44056
44057 2009-05-08  Bruno Haible  <bruno@clisp.org>
44058
44059         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
44060         instead of 'max'.
44061
44062 2009-05-08  Simon Josefsson  <simon@josefsson.org>
44063
44064         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
44065         sockaddr_storage test.
44066
44067 2009-05-07  Simon Josefsson  <simon@josefsson.org>
44068
44069         * modules/sys_socket (Makefile.am): Substitute
44070         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
44071         * m4/sys_socket_h.m4: Check for sockaddr_storage.
44072         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
44073         * tests/test-sys_socket.c: Check sockaddr_storage.
44074
44075 2009-05-08  Bruno Haible  <bruno@clisp.org>
44076
44077         New module 'alignof'.
44078         * lib/alignof.h: New file.
44079         * modules/alignof: New file.
44080
44081 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44082             Bruno Haible  <bruno@clisp.org>
44083
44084         Fix test-file-has-acl on FreeBSD.
44085         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
44086         mask is implicitly added.
44087         * tests/test-file-has-acl.c: Include <signal.h>.
44088         (main): Terminate the test after 5 seconds.
44089         * modules/acl-tests (configure.ac): Check for alarm function.
44090
44091 2009-05-04  Bruno Haible  <bruno@clisp.org>
44092
44093         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
44094         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
44095         * modules/errno (configure.ac): Drop AC_REQUIRE.
44096         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
44097         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
44098
44099 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44100
44101         * modules/glob-tests: New module.
44102         * tests/test-glob.c: Add.
44103
44104 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44105
44106         * modules/fnmatch-tests: New module.
44107         * tests/test-fnmatch.c: Add.
44108
44109 2009-05-04  Eric Blake  <ebb9@byu.net>
44110
44111         maint: make the new no-submodule-changes rule VPATH-safe
44112         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
44113
44114 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44115             Bruno Haible  <bruno@clisp.org>
44116
44117         acl: Fix infinite loop on FreeBSD.
44118         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
44119         of return value from acl_get_entry.
44120         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
44121         Likewise.
44122
44123 2009-05-03  Bruno Haible  <bruno@clisp.org>
44124
44125         * lib/acl-internal.h (acl_entries): Clarify return value.
44126         * lib/acl_entries.c (acl_entries): Likewise.
44127
44128 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44129
44130         Bug fix in acl module.
44131         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
44132
44133 2009-05-03  Bruno Haible  <bruno@clisp.org>
44134
44135         Create gperf-generated file in the source dir, not in the build dir.
44136         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
44137         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
44138         * modules/unicase/locale-language (unicase/locale-languages.h):
44139         Likewise.
44140         * modules/unicase/special-casing (unicase/special-casing-table.h):
44141         Likewise.
44142         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
44143         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
44144         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
44145         Reported by Ralf Wildenhues.
44146
44147 2009-05-03  Bruno Haible  <bruno@clisp.org>
44148
44149         * modules/fnmatch (Description, configure.ac): Taken from
44150         fnmatch-posix.
44151         * modules/fnmatch-posix: Turn into a symbolic reference to the
44152         'fnmatch' module, and deprecate.
44153         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
44154
44155 2009-05-03  Bruno Haible  <bruno@clisp.org>
44156
44157         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
44158         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
44159         Reported by Ralf Wildenhues.
44160
44161 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44162
44163         * m4/fnmatch.m4: Fix fnmatch re-define.
44164
44165 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44166
44167         priv-set: new module and tests; adapt write-any-file
44168         * lib/priv-set.c: New file.
44169         * lib/priv-set.h: New file.
44170         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
44171         * lib/write-any-file.c: Simplify by using priv-set module.
44172         * m4/priv-set.m4: New file.
44173         * modules/priv-set: New file.
44174         * modules/unlinkdir: Add dependency on priv-set module.
44175         * modules/write-any-file: Likewise.
44176
44177         Tests for module 'priv-set'.
44178         * modules/priv-set-tests: New file.
44179         * tests/test-priv-set.c: New file.
44180
44181 2009-05-03  Jim Meyering  <meyering@redhat.com>
44182             Bruno Haible  <bruno@clisp.org>
44183
44184         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
44185         use the converted UTF-8 variant of the name instead.
44186
44187 2009-05-03  Jim Meyering  <meyering@redhat.com>
44188
44189         tests: tighten some getdate tests
44190         * tests/test-getdate.c (main): Tighten tests: require equality,
44191         not just greater than.  Set TZ envvar to UTC0.
44192
44193 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
44194
44195         getdate: correctly interpret "next monday" when run on a Monday
44196         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
44197         that e.g., "next tues" (when run on a tuesday) results in a date
44198         that is one week in the future, and not today's date.
44199         I.e., add a week when the wday is the same as the current one.
44200         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
44201         and earlier by Martin Bernreuther and Jan Minář.
44202         * tests/test-getdate.c (main): Check that "next DAY" is always in
44203         the future and that "last DAY" is always in the past.
44204
44205 2009-05-02  Jim Meyering  <meyering@redhat.com>
44206
44207         build: ensure that a release build fails when a submodule is unclean
44208         * top/maint.mk (no-submodule-changes): New rule.
44209         (alpha beta major): Depend on it.
44210
44211 2009-05-02  Bruno Haible  <bruno@clisp.org>
44212
44213         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
44214         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
44215         shell variable gl_fnmatch_required to detect which variant is
44216         requested.
44217         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
44218         gl_FUNC_FNMATCH_POSIX.
44219         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
44220         exclude fnmatch-posix.
44221
44222 2009-05-02  Bruno Haible  <bruno@clisp.org>
44223
44224         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
44225         * modules/mbsrtowcs (License): Change to LGPLv2+.
44226         * modules/strnlen1 (License): Likewise.
44227         Reported by Simon Josefsson.
44228
44229 2009-05-02  Bruno Haible  <bruno@clisp.org>
44230
44231         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
44232         "cross".
44233         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
44234         gnulib-tool was called with option --source-base=lib.
44235
44236 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44237
44238         Use automake *-local hooks without commands, for extensibility.
44239         * modules/localcharset (Makefile.am): Rename install-exec-local
44240         rule to install-exec-localcharset, and make it a prerequisite of
44241         install-exec-local.  Likewise, rename the uninstall-local rule to
44242         uninstall-localcharset, and make it a prerequisite of the former.
44243
44244 2009-05-01  Bruno Haible  <bruno@clisp.org>
44245
44246         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
44247         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
44248         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
44249         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
44250         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
44251         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
44252         m4/locale-zh.m4, m4/codeset.m4.
44253
44254         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
44255         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
44256         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
44257         m4/locale-zh.m4.
44258
44259         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
44260         REPLACE_WCRTOMB if mbstate_t must be replaced.
44261         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
44262         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
44263
44264 2009-05-01  Bruno Haible  <bruno@clisp.org>
44265
44266         Avoid compiler warnings when redefining macros defined by <libintl.h>.
44267         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
44268         dngettext, dcngettext, textdomain, bindtextdomain,
44269         bind_textdomain_codeset): Undefine before redefining.
44270
44271 2009-04-30  Bruno Haible  <bruno@clisp.org>
44272
44273         Fix bug introduced on 2009-04-25.
44274         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
44275         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
44276         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
44277         is defined.
44278         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
44279         is defined.
44280         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
44281         is defined.
44282         Reported by Elbert_Pol <elbert.pol@gmail.com>.
44283
44284 2009-04-28  Bruno Haible  <bruno@clisp.org>
44285
44286         Comment tweaks.
44287         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
44288         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
44289         * lib/unicase.h (u*_casexfrm): Likewise.
44290         Reported by Paolo Bonzini.
44291
44292 2009-04-28  Bruno Haible  <bruno@clisp.org>
44293
44294         Fix a compilation error.
44295         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
44296         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
44297         Reported by Jim Meyering.
44298
44299 2009-04-27  Bruno Haible  <bruno@clisp.org>
44300
44301         New module 'libunistring'.
44302         * modules/libunistring: New file.
44303         * m4/libunistring.m4: New file.
44304         * MODULES.html.sh (Unicode string functions): Add it.
44305
44306 2009-04-27  Eric Blake  <ebb9@byu.net>
44307
44308         maint.mk: allow package-specific header to provide <config.h>
44309         * top/maint.mk (sc_require_config_h): New variable.
44310         (sc_require_config_h, sc_require_config_h_first): Use it.
44311
44312 2009-04-27  Simon Josefsson  <simon@josefsson.org>
44313
44314         * top/maint.mk (sc_avoid_if_before_free): Except
44315         useless-if-before-free script.
44316
44317 2009-04-27  Eric Blake  <ebb9@byu.net>
44318
44319         maintainer-makefile: depend on all required helper scripts
44320         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
44321         useless-if-before-free.
44322         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
44323         version, rather than assuming gnulib checkout is available.
44324         Reported by Simen Josefsson.
44325
44326 2009-04-26  Bruno Haible  <bruno@clisp.org>
44327
44328         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
44329         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
44330         "../" or "..".
44331
44332 2009-04-26  Bruno Haible  <bruno@clisp.org>
44333
44334         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
44335         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
44336         AC_LIB_HAVE_LINKFLAGS.
44337
44338 2009-04-26  Bruno Haible  <bruno@clisp.org>
44339
44340         Simplify calling convention of u*_conv_from_encoding.
44341         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
44342         u32_conv_from_encoding): Expect a resultbuf argument and return the
44343         result directly as a pointer.
44344         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
44345         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
44346         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
44347         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
44348         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
44349         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
44350         Update.
44351         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
44352         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
44353         * lib/vasnprintf.c (VASNPRINTF): Update.
44354         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
44355         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
44356         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
44357         * NEWS: Mention the change.
44358
44359 2009-04-26  Bruno Haible  <bruno@clisp.org>
44360
44361         Simplify calling convention of u*_conv_to_encoding.
44362         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
44363         u32_conv_to_encoding): Expect a resultbuf argument and return the
44364         result directly as a pointer.
44365         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
44366         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
44367         freeing scaled_offsets if mem_iconveha failed.
44368         * lib/unicase/u-casexfrm.h (FUNC): Update.
44369         * lib/uninorm/u-normxfrm.h (FUNC): Update.
44370         * lib/vasnprintf.c (VASNPRINTF): Update.
44371         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
44372         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
44373         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
44374         * NEWS: Mention the change.
44375
44376 2009-04-26  Bruno Haible  <bruno@clisp.org>
44377
44378         Avoid test failures on AIX and OSF/1.
44379         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
44380         malloc(0).
44381         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
44382         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
44383         Likewise.
44384         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
44385         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
44386         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
44387         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
44388         * doc/posix-functions/malloc.texi: Document the portability problem
44389         related to malloc(0).
44390
44391 2009-04-26  Bruno Haible  <bruno@clisp.org>
44392
44393         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
44394         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
44395         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
44396
44397 2009-04-25  Bruno Haible  <bruno@clisp.org>
44398
44399         Avoid link error when creating a namespace clean library.
44400         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
44401         as macro with arguments if already defined as an alias.
44402         * lib/signbitf.c (gl_signbitf): Don't undefine.
44403         * lib/signbitd.c (gl_signbitd): Don't undefine.
44404         * lib/signbitl.c (gl_signbitl): Don't undefine.
44405
44406 2009-04-25  Jim Meyering  <meyering@redhat.com>
44407
44408         vc-list-files: fix another quoting bug
44409         * build-aux/vc-list-files: Avoid sed backslash expansion
44410         of pathological directory names.
44411
44412 2009-04-25  Eric Blake  <ebb9@byu.net>
44413
44414         vc-list-files: fix shell quoting error
44415         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
44416         timestamp.
44417
44418 2009-04-25  Jim Meyering  <meyering@redhat.com>
44419
44420         vc-list-files: restore lost functionality with subdir argument
44421         * build-aux/vc-list-files: When given a non-"." sub-directory
44422         argument, substitute the $dir/ prefix back onto each resulting name.
44423         Otherwise, coreutils' root_tests check would fail.
44424
44425 2009-04-24  Eric Blake  <ebb9@byu.net>
44426
44427         vc-list-files: ignore git symlinks
44428         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
44429         than ls-files, to ignore git symlinks.
44430
44431         maint.mk: import improvements from m4
44432         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
44433         (move_if_change): Delete unused macro.
44434         (news-date-check, vc-diff-check): Support VPATH builds.
44435         (announcement): Likewise.  Split --bootstrap-tools list...
44436         (boostrap-tools): ...into separate list, which can be overridden
44437         in cfg.mk.
44438         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
44439         requiring dependency on useless-if-before-free module.
44440         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
44441         Support VPATH builds.
44442
44443 2009-04-24  Jim Meyering  <meyering@redhat.com>
44444
44445         maint.mk: remove coreutils-specific rules and variables
44446         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
44447         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
44448         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
44449
44450         maint.mk: remove obsolete rule
44451         * top/maint.mk (rel-check): Remove rule.
44452         (WGET, WGETFLAGS): Remove now-unused variables.
44453
44454 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44455
44456         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
44457         consistency.
44458
44459         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
44460         '$(PATH_SEPARATOR)' instead of ':'.
44461
44462 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44463
44464         * lib/getopt1.c (main): Use 'const' for static array.
44465
44466 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44467
44468         * top/maint.mk: Sync with coreutils.
44469         * NEWS: Explain incompatibilities.
44470
44471 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44472             Bruno Haible  <bruno@clisp.org>
44473
44474         Fix cross-compilation results.
44475         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
44476         statement, as third argument of AC_TRY_RUN.
44477         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
44478         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
44479         Likewise.
44480         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
44481         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
44482         Likewise.
44483         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
44484         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
44485         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
44486
44487 2009-04-20  Bruno Haible  <bruno@clisp.org>
44488
44489         Avoid test failure on mingw.
44490         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
44491
44492 2009-04-20  Bruno Haible  <bruno@clisp.org>
44493
44494         Avoid compilation error on mingw.
44495         * modules/localename-tests (Depends-on): Add locale.
44496
44497 2009-04-19  Bruno Haible  <bruno@clisp.org>
44498
44499         Support for building a shared library on Windows platforms.
44500         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
44501         (main): Test the presence of UNINORM_NFC here.
44502         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
44503         (main): Test the presence of UNINORM_NFD here.
44504         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
44505         (main): Test the presence of UNINORM_NFKC here.
44506         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
44507         (main): Test the presence of UNINORM_NFKD here.
44508
44509 2009-04-19  Bruno Haible  <bruno@clisp.org>
44510
44511         Avoid a compiler warning.
44512         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
44513         Change type of variable 'sequence'.
44514
44515 2009-04-19  Bruno Haible  <bruno@clisp.org>
44516
44517         * modules/configmake (Makefile.am): When the contents of configmake.h
44518         does not change, arrange to preserve its modification time.
44519
44520 2009-04-17  Simon Josefsson  <simon@josefsson.org>
44521
44522         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
44523         gettext domain.
44524
44525 2009-04-16  Jim Meyering  <meyering@redhat.com>
44526
44527         useless-if-before-free: improve conversion code
44528         * build-aux/useless-if-before-free: Adjust code-in-comment to match
44529         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
44530
44531 2009-04-14  Bruno Haible  <bruno@clisp.org>
44532
44533         * modules/fcntl (Depends-on): Add extensions.
44534         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
44535
44536 2009-04-12  Ben Pfaff  <blp@gnu.org>
44537
44538         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
44539         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
44540
44541 2009-03-20  Ben Pfaff  <blp@gnu.org>
44542
44543         Make rename replace existing destinations on Windows.
44544         * m4/rename.m4: Add test for Mingw.
44545         * lib/rename.c: Add rename replacement that uses MoveFileEx with
44546         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
44547         * doc/posix-functions/rename.texi: Document.
44548
44549 2009-04-10  Bruno Haible  <bruno@clisp.org>
44550
44551         New include file "iconveh.h".
44552         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
44553         * lib/striconveh.h: Include it.
44554         (enum iconv_ilseq_handler): Remove definition.
44555         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
44556         striconveh.h.
44557         * lib/striconveha.c: Include striconveh.h.
44558         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
44559         * modules/striconveh (Files): Add lib/iconveh.h.
44560         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
44561         lib/striconveh.h.
44562
44563 2009-04-10  Bruno Haible  <bruno@clisp.org>
44564
44565         * lib/uniconv.h: Update comment.
44566
44567 2009-04-10  Bruno Haible  <bruno@clisp.org>
44568
44569         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
44570         always.
44571         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
44572         * lib/unistr/u16-mbtouc-aux.c: Likewise.
44573         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
44574         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
44575         "unistring-notinline.h", so that the function gets defined always.
44576         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
44577         * lib/unistr/u8-uctomb.c: Likewise.
44578         * lib/unistr/u16-mbtouc.c: Likewise.
44579         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
44580         * lib/unistr/u16-uctomb.c: Likewise.
44581         * lib/unistr/u32-mbtouc.c: Likewise.
44582         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
44583         * lib/unistr/u32-uctomb.c: Likewise.
44584
44585 2009-04-10  Bruno Haible  <bruno@clisp.org>
44586
44587         Mark 'utime' obsolete.
44588         * modules/utime (Status, Notice): New sections.
44589         Suggested by Jim Meyering.
44590
44591         Fix cross-compile guess for utime test.
44592         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
44593         autoconf.
44594         * doc/posix-functions/utime.texi: Give more precisions.
44595         Reported by Jan <ipif@ymail.com>.
44596
44597 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
44598
44599         filevercmp: correct today's change
44600         * lib/filevercmp.c: Also handle coreutils' test inputs.
44601         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
44602
44603         Fix regression in 'filevercmp' module. Thanks Sven Joachim
44604         for reporting it.
44605         * lib/filevercmp.c: Special handle for "", "." and "..".
44606         * tests/test-filevercmp.c: Enlarge the set suite.
44607
44608 2009-04-07  Jim Meyering  <meyering@redhat.com>
44609
44610         useless-if-before-free: show how to remove braced useless free, too
44611         * build-aux/useless-if-before-free: still only in a comment, though.
44612
44613 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
44614
44615         maint.mk: import changes to syntax-check macros from coreutils
44616         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
44617         Use them in the relevant macros.
44618
44619 2009-04-06  Bruno Haible  <bruno@clisp.org>
44620
44621         Fix unportable use of bit-fields.
44622         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
44623         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
44624         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
44625
44626 2009-04-06  Bruno Haible  <bruno@clisp.org>
44627
44628         Avoid test failures on AIX and OSF/1.
44629         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
44630         that malloc(0) = NULL.
44631         * tests/unicase/test-u8-tolower.c (check): Likewise.
44632         * tests/unicase/test-u8-totitle.c (check): Likewise.
44633         * tests/unicase/test-u8-toupper.c (check): Likewise.
44634         * tests/unicase/test-u16-casefold.c (check): Likewise.
44635         * tests/unicase/test-u16-tolower.c (check): Likewise.
44636         * tests/unicase/test-u16-totitle.c (check): Likewise.
44637         * tests/unicase/test-u16-toupper.c (check): Likewise.
44638         * tests/unicase/test-u32-casefold.c (check): Likewise.
44639         * tests/unicase/test-u32-tolower.c (check): Likewise.
44640         * tests/unicase/test-u32-totitle.c (check): Likewise.
44641         * tests/unicase/test-u32-toupper.c (check): Likewise.
44642         * tests/uninorm/test-u8-nfc.c (check): Likewise.
44643         * tests/uninorm/test-u8-nfd.c (check): Likewise.
44644         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
44645         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
44646         * tests/uninorm/test-u16-nfc.c (check): Likewise.
44647         * tests/uninorm/test-u16-nfd.c (check): Likewise.
44648         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
44649         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
44650         * tests/uninorm/test-u32-nfc.c (check): Likewise.
44651         * tests/uninorm/test-u32-nfd.c (check): Likewise.
44652         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
44653         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
44654
44655 2009-04-05  Bruno Haible  <bruno@clisp.org>
44656
44657         Work around an autoconf limitation.
44658         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
44659         comment line if it would be longer than 3 KB.
44660
44661 2009-04-05  Bruno Haible  <bruno@clisp.org>
44662
44663         Avoid test failure with libiconv-1.13.
44664         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
44665         of the expected test results.
44666
44667 2009-04-05  Bruno Haible  <bruno@clisp.org>
44668
44669         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
44670         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
44671         that it should be installed.
44672
44673 2009-04-05  Bruno Haible  <bruno@clisp.org>
44674
44675         * gnulib-tool: New option --copy-file.
44676         (func_usage): Document it.
44677         (func_dest_tmpfilename): Moved out of func_import.
44678         (func_add_file, func_update_file): New functions, extracted from
44679         func_import.
44680         (func_import): Update.
44681
44682 2009-04-05  Karl Berry  <karl@gnu.org>
44683
44684         * README: prominently mention gnulib-tool.
44685         Rearrange sections so getting the code is near the top.
44686
44687 2009-04-05  Bruno Haible  <bruno@clisp.org>
44688
44689         * lib/unicase.h: Mention u*_cmp2.
44690         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
44691         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
44692         * lib/unicase/ulc-casecmp.c: Likewise.
44693         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
44694         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
44695         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
44696         unistr/u8-cmp.
44697         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
44698         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
44699         unistr/u16-cmp.
44700         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
44701         unistr/u32-cmp.
44702
44703         * lib/uninorm.h: Mention u*_cmp2.
44704         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
44705         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
44706         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
44707         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
44708         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
44709         unistr/u8-cmp.
44710         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
44711         unistr/u16-cmp.
44712         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
44713         unistr/u32-cmp.
44714
44715         New module 'unistr/u32-cmp2'.
44716         * lib/unistr/u32-cmp2.c: New file.
44717         * modules/unistr/u32-cmp2: New file.
44718
44719         New module 'unistr/u16-cmp2'.
44720         * lib/unistr/u16-cmp2.c: New file.
44721         * modules/unistr/u16-cmp2: New file.
44722
44723         New module 'unistr/u8-cmp2'.
44724         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
44725         * lib/unistr/u8-cmp2.c: New file.
44726         * lib/unistr/u-cmp2.h: New file.
44727         * modules/unistr/u8-cmp2: New file.
44728
44729 2009-04-05  Bruno Haible  <bruno@clisp.org>
44730
44731         * lib/unictype.h (uc_property_is_valid): New macro.
44732         * tests/unictype/test-pr_byname.c (main): Use it.
44733
44734         * lib/unistr.h: Doc fixes.
44735         * lib/uniconv.h: Doc fixes.
44736         * lib/unictype.h: Doc fixes.
44737
44738 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
44739
44740         Port coreutils 7.2 to Solaris 8.
44741
44742         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
44743         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
44744         for Solaris 8.  This is a bit of a hack, as it means it's the
44745         caller's responsibility to add -lnsl if needed, but most likely it
44746         won't be needed since only getaddrinfo uses this and getaddrinfo
44747         isn't needed on Solaris 8.
44748
44749         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
44750         problem to Solaris 8 encountered with coreutils 7.2, which
44751         resulted in a message "fnmatch.c:292: warning: passing argument 4
44752         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
44753         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
44754
44755 2009-04-03  Simon Josefsson  <simon@josefsson.org>
44756
44757         * m4/ld-version-script.m4: Add FIXME comment.
44758
44759 2009-04-02  Simon Josefsson  <simon@josefsson.org>
44760
44761         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
44762         SOVERSION variable.
44763
44764 2009-04-02  Bruno Haible  <bruno@clisp.org>
44765
44766         * Makefile (info, html, dvi, pdf): Combine the rules.
44767         Suggested by Jim Meyering.
44768
44769 2009-04-01  Bruno Haible  <bruno@clisp.org>
44770
44771         * Makefile (info, html, dvi, pdf): New targets.
44772         Reported by Reuben Thomas <rrt@sc3d.org>.
44773
44774 2009-04-01  Bruno Haible  <bruno@clisp.org>
44775
44776         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
44777         can be put into PATH.
44778         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
44779
44780 2009-04-01  Bruno Haible  <bruno@clisp.org>
44781
44782         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
44783
44784 2009-04-01  Bruno Haible  <bruno@clisp.org>
44785
44786         Rename module 'visibility'.
44787         * modules/lib-symbol-visibility: Renamed from modules/visibility.
44788         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
44789         * doc/gnulib.texi: Update.
44790         * MODULES.html.sh (Misc): Update.
44791         * NEWS: Mention the change.
44792
44793 2009-04-01  Simon Josefsson  <simon@josefsson.org>
44794
44795         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
44796         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
44797         Eric Blake <ebb9@byu.net> for review.
44798         * MODULES.html.sh: Add lib-msvc-compat.
44799         * doc/gnulib.texi: Link to new section.
44800         * m4/ld-output-def.m4: New file.
44801         * doc/ld-output-def.texi: New file.
44802
44803 2009-04-01  Simon Josefsson  <simon@josefsson.org>
44804
44805         Rename ld-version-script to lib-symbol-versions.  Suggested by
44806         Bruno Haible <bruno@clisp.org>.
44807         * modules/ld-version-script: Renamed to lib-symbol-versions.
44808         * doc/ld-version-script.texi: Fix module name.
44809         * MODULES.html.sh: Add lib-symbol-versions.
44810
44811 2009-03-31  Simon Josefsson  <simon@josefsson.org>
44812
44813         * modules/u64-tests: New file.
44814         * tests/test-u64.c: New file.
44815
44816 2009-03-04  Simon Josefsson  <simon@josefsson.org>
44817
44818         * MODULES.html.sh: Mention u64.
44819         * modules/u64: New module.
44820         * modules/crypto/sha512: Depend on u64 module instead of providing
44821         u64.h.
44822
44823 2009-03-27  Eric Blake  <ebb9@byu.net>
44824
44825         test-strerror: make debugging EAI_SYSTEM easier
44826         * modules/getaddrinfo-tests (Depends-on): Add strerror.
44827         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
44828         failure was EAI_SYSTEM.
44829
44830 2009-03-25  Bruno Haible  <bruno@clisp.org>
44831
44832         Fix a problem with --enable-relocatable on Solaris 7.
44833         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
44834         since 2008-02-24.
44835
44836 2009-03-25  Eric Blake  <ebb9@byu.net>
44837
44838         test-sockets: avoid gcc warning
44839         * tests/test-sockets.c (main): Silence compiler warning.
44840
44841 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
44842
44843         New modules nproc, pthread, contributed by Glen Lenker.
44844
44845         * MODULES.html.sh: Add pthread, nproc.
44846         * lib/nproc.c: New file.
44847         * lib/nproc.h: New file.
44848         * lib/pthread.in.h: New file.
44849         * m4/pthread.m4: New file.
44850         * modules/nproc: New file.
44851         * modules/pthread: New file.
44852
44853 2009-03-24  Simon Josefsson  <simon@josefsson.org>
44854
44855         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
44856         New variable.
44857
44858 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
44859
44860         filevercmp: handle simple~ and numbered.~3~ backup suffixes
44861         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
44862         * tests/test-filevercmp.c: Add tests for backup suffixes.
44863
44864 2009-03-24  Simon Josefsson  <simon@josefsson.org>
44865
44866         * modules/stdlib (Depends-on): Add stdint, needed when defining
44867         struct random_data on, for example, HP-UX 10.20.  Reported by
44868         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44869
44870 2009-03-24  Simon Josefsson  <simon@josefsson.org>
44871
44872         * lib/readline.c (readline): Call fflush on stdout after printing
44873         prompt.
44874
44875 2009-03-20  Bruno Haible  <bruno@clisp.org>
44876
44877         Remove dependency from 'close' module to -lws2_32 on native Windows.
44878         * lib/close-hook.h: New file.
44879         * lib/close-hook.c: New file.
44880         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
44881         w32sock.h.
44882         (_gl_close_fd_maybe_socket): Remove function.
44883         (rpl_close): Invoke execute_all_close_hooks instead of
44884         _gl_close_fd_maybe_socket.
44885         * lib/sockets.c: Include close-hook.h, w32sock.h.
44886         (close_fd_maybe_socket): New function, essentially from lib/close.c.
44887         (close_sockets_hook): New variable.
44888         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
44889         (gl_sockets_cleanup): Unregister it.
44890         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
44891         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
44892         * modules/close-hook: New file.
44893         * modules/close (Files): Remove lib/w32sock.h.
44894         (Depends-on): Add close-hook.
44895         (Link): Remove section.
44896         * modules/sockets (Files): Add lib/w32sock.h.
44897         (Depends-on): Add close-hook.
44898         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
44899         invocation.
44900         * NEWS: Mention that LIB_CLOSE is gone.
44901
44902 2009-03-23  Eric Blake  <ebb9@byu.net>
44903
44904         signal-tests: test previous patch
44905         * tests/test-signal.c: New file.
44906         * modules/signal-tests: Likewise.
44907
44908         signal.h: always support 'volatile sig_atomic_t'
44909         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
44910         (gl_SIGNAL_H_DEFAULTS): Add a default.
44911         * modules/signal (Makefile.am): Substitute if needed.
44912         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
44913         users can blindly add volatile.
44914         * doc/posix-headers/signal.texi (signal.h): Document it.
44915         Reported by Matthew Woehlke.
44916
44917 2009-03-23  Jim Meyering  <meyering@redhat.com>
44918
44919         pathmax: PATH_MAX: use pathconf only when available
44920         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
44921         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
44922         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
44923         This avoids a link failure in a PSP cross-compilation environment
44924         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
44925
44926         * lib/vasnprintf.c (divide): Fix typo in comment.
44927
44928 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44929
44930         * gnulib-tool (func_filter_filelist): Fix comment.
44931
44932 2009-03-20  Bruno Haible  <bruno@clisp.org>
44933
44934         Make sockets.h self-contained.
44935         * lib/sockets.c: Include sockets.h first.
44936         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
44937
44938 2009-03-19  Eric Blake  <ebb9@byu.net>
44939
44940         doc: mention more functions added in cygwin 1.7.0
44941         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
44942         addition.
44943         * doc/posix-functions/log2f.texi: Likewise.
44944
44945 2009-03-19  Jim Meyering  <meyering@redhat.com>
44946
44947         fsusage: avoid syntax error due to statement-before-declaration
44948         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
44949         after all declarations.  Reported by Matthew Woehlke in
44950         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
44951
44952 2009-03-18  Eric Blake  <ebb9@byu.net>
44953
44954         build-aux/compile: sync from automake
44955         * build-aux/compile: New file, from automake.
44956         * config/srclist.txt: Mention build-aux/compile.
44957
44958 2009-03-17  Bruno Haible  <bruno@clisp.org>
44959
44960         * lib/git-merge-changelog.c: Fix typo in comment.
44961         Reported by Reuben Thomas <rrt@sc3d.org>.
44962
44963 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
44964
44965         * m4/regex.m4: update and improve help for
44966         --without-included-regex.
44967
44968 2009-03-17  Simon Josefsson  <simon@josefsson.org>
44969
44970         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
44971         failure on missing include files.
44972
44973 2009-03-17  Eric Blake  <ebb9@byu.net>
44974
44975         doc: mention more functions added in cygwin 1.7.0
44976         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
44977         addition.
44978         * doc/posix-functions/fwscanf.texi: Likewise.
44979         * doc/posix-functions/swprintf.texi: Likewise.
44980         * doc/posix-functions/swscanf.texi: Likewise.
44981         * doc/posix-functions/vfwprintf.texi: Likewise.
44982         * doc/posix-functions/vfwscanf.texi: Likewise.
44983         * doc/posix-functions/vswprintf.texi: Likewise.
44984         * doc/posix-functions/vswscanf.texi: Likewise.
44985         * doc/posix-functions/vwprintf.texi: Likewise.
44986         * doc/posix-functions/vwscanf.texi: Likewise.
44987         * doc/posix-functions/wcscasecmp.texi: Likewise.
44988         * doc/posix-functions/wcsdup.texi: Likewise.
44989         * doc/posix-functions/wcsftime.texi: Likewise.
44990         * doc/posix-functions/wcsncasecmp.texi: Likewise.
44991         * doc/posix-functions/wprintf.texi: Likewise.
44992         * doc/posix-functions/wscanf.texi: Likewise.
44993         * doc/glibc-functions/gethostbyname2.texi: Likewise.
44994
44995 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44996
44997         maint.mk: really add $(AM_MAKEFLAGS)
44998         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
44999         was inadvertently omitted in the last commit.
45000         Spotted by Bruno Haible.
45001
45002         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
45003         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
45004         $(AM_MAKEFLAGS)' rather than plain `make'.
45005
45006         gnulib-tool: execute $MAKE not make
45007         * gnulib-tool: Default $MAKE to 'make'.
45008         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
45009         than make.  Initialize $MAKE in the do-autobuild script.
45010
45011         gnulib-tool: use $MAKE not make in generated files
45012         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
45013         make, in generated files.  Initialize $MAKE in the do-autobuild
45014         script.
45015
45016         * top/GNUmakefile (_have-git-version-gen): Fix typo.
45017
45018         GNUmakefile: disable parallelism only for multiple, recursive targets
45019         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
45020         additions in the Makefile.
45021         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
45022         by Automake.
45023         (.NOTPARALLEL): Only disable parallel builds if multiple targets
45024         are listed on the command line and at least one of them is
45025         listed in $(ALL_RECURSIVE_TARGETS).
45026
45027 2009-03-14  Bruno Haible  <bruno@clisp.org>
45028
45029         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
45030         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
45031         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
45032         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
45033         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
45034         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
45035         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
45036         unistr/u8-uctomb.
45037         * modules/unistr/u8-strchr (Depends-on): Likewise.
45038         * modules/unistr/u8-strrchr (Depends-on): Likewise.
45039         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
45040         unistr/u16-uctomb.
45041         * modules/unistr/u16-strchr (Depends-on): Likewise.
45042         * modules/unistr/u16-strrchr (Depends-on): Likewise.
45043
45044 2009-03-12  Bruno Haible  <bruno@clisp.org>
45045
45046         Work around select() bug on Interix 3.5.
45047         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
45048         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
45049         * m4/select.m4: New file.
45050         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
45051         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
45052         * modules/select (Files): Add m4/select.m4.
45053         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
45054         * modules/nanosleep (Depends-on): Add select.
45055         * modules/poll (Depends-on): Likewise.
45056         * doc/posix-functions/select.texi: Mention the Interix bug.
45057         Reported by Markus Duft <mduft@gentoo.org>.
45058
45059         * lib/select.c: Renamed from lib/winsock-select.c.
45060         * modules/select (Files): Add lib/select.c, remove
45061         lib/winsock-select.c.
45062         (configure.ac): Update.
45063
45064 2009-03-12  Jim Meyering  <meyering@redhat.com>
45065
45066         avoid gcc warnings about unused macro definitions
45067         * lib/readtokens.c (STREQ): Remove unused definition.
45068         * lib/xmalloc.c (SIZE_MAX): Likewise.
45069         * lib/openat-die.c (N_): Likewise.
45070         * lib/mountlist.c (SIZE_MAX): Remove definition.
45071         Instead, include <stdint.h>.
45072         * lib/readutmp.c: Likewise.
45073         * modules/readutmp (Depends-on): Add stdint.
45074         * modules/mountlist (Depends-on): Add stdint.
45075         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
45076
45077 2009-03-10  Bruno Haible  <bruno@clisp.org>
45078
45079         Tests for module 'mbmemcasecoll'.
45080         * modules/mbmemcasecoll-tests: New file.
45081         * tests/test-mbmemcasecoll1.sh: New file.
45082         * tests/test-mbmemcasecoll2.sh: New file.
45083         * tests/test-mbmemcasecoll3.sh: New file.
45084         * tests/test-mbmemcasecoll.c: New file.
45085
45086         New module 'mbmemcasecoll'.
45087         * lib/mbmemcasecoll.h: New file.
45088         * lib/mbmemcasecoll.c: New file.
45089         * modules/mbmemcasecoll: New file.
45090
45091         * tests/test-mbmemcasecmp.h: New file, extracted from
45092         tests/test-mbmemcasecmp.c.
45093         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
45094         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
45095         (main): Update.
45096         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
45097
45098 2009-03-09  Bruno Haible  <bruno@clisp.org>
45099
45100         Tests for module 'mbmemcasecmp'.
45101         * modules/mbmemcasecmp-tests: New file.
45102         * tests/test-mbmemcasecmp1.sh: New file.
45103         * tests/test-mbmemcasecmp2.sh: New file.
45104         * tests/test-mbmemcasecmp3.sh: New file.
45105         * tests/test-mbmemcasecmp.c: New file.
45106
45107         New module 'mbmemcasecmp'.
45108         * lib/mbmemcasecmp.h: New file.
45109         * lib/mbmemcasecmp.c: New file.
45110         * modules/mbmemcasecmp: New file.
45111
45112 2009-03-09  Bruno Haible  <bruno@clisp.org>
45113
45114         Tests for module 'unicase/ulc-casecoll'.
45115         * modules/unicase/ulc-casecoll-tests: New file.
45116         * tests/unicase/test-ulc-casecoll1.sh: New file.
45117         * tests/unicase/test-ulc-casecoll2.sh: New file.
45118         * tests/unicase/test-ulc-casecoll.c: New file.
45119
45120         New module 'unicase/ulc-casecoll'.
45121         * lib/unicase.h (ulc_casecoll): New declaration.
45122         * lib/unicase/ulc-casecoll.c: New file.
45123         * modules/unicase/ulc-casecoll: New file.
45124
45125         New module 'unicase/ulc-casexfrm'.
45126         * lib/unicase.h (ulc_casexfrm): New declaration.
45127         * lib/unicase/ulc-casexfrm.c: New file.
45128         * modules/unicase/ulc-casexfrm: New file.
45129
45130 2009-03-09  Bruno Haible  <bruno@clisp.org>
45131
45132         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
45133         invocations.
45134
45135         * m4/mbscasecmp.m4: Remove file.
45136         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
45137         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
45138
45139         * m4/mbscasestr.m4: Remove file.
45140         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
45141         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
45142
45143         * m4/mbschr.m4: Remove file.
45144         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
45145         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
45146
45147         * m4/mbscspn.m4: Remove file.
45148         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
45149         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
45150
45151         * m4/mbslen.m4: Remove file.
45152         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
45153         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
45154
45155         * m4/mbsncasecmp.m4: Remove file.
45156         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
45157         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
45158
45159         * m4/mbsnlen.m4: Remove file.
45160         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
45161         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
45162
45163         * m4/mbspbrk.m4: Remove file.
45164         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
45165         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
45166
45167         * m4/mbspcasecmp.m4: Remove file.
45168         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
45169         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
45170
45171         * m4/mbsrchr.m4: Remove file.
45172         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
45173         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
45174
45175         * m4/mbssep.m4: Remove file.
45176         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
45177         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
45178
45179         * m4/mbsspn.m4: Remove file.
45180         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
45181         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
45182
45183         * m4/mbsstr.m4: Remove file.
45184         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
45185         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
45186
45187         * m4/mbstok_r.m4: Remove file.
45188         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
45189         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
45190
45191         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
45192
45193         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
45194         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
45195
45196         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
45197
45198 2009-03-08  Bruno Haible  <bruno@clisp.org>
45199
45200         Tests for module 'unicase/ulc-casecmp'.
45201         * modules/unicase/ulc-casecmp-tests: New file.
45202         * tests/unicase/test-ulc-casecmp1.sh: New file.
45203         * tests/unicase/test-ulc-casecmp2.sh: New file.
45204         * tests/unicase/test-ulc-casecmp.c: New file.
45205
45206         New module 'unicase/ulc-casecmp'.
45207         * lib/unicase.h (ulc_casecmp): New declaration.
45208         * lib/unicase/ulc-casecmp.c: New file.
45209         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
45210         'const SRC_UNIT *'.
45211         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
45212         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
45213         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
45214         * modules/unicase/ulc-casecmp: New file.
45215
45216         Tests for module 'unicase/u32-is-cased'.
45217         * modules/unicase/u32-is-cased-tests: New file.
45218         * tests/unicase/test-u32-is-cased.c: New file.
45219
45220         Tests for module 'unicase/u16-is-cased'.
45221         * modules/unicase/u16-is-cased-tests: New file.
45222         * tests/unicase/test-u16-is-cased.c: New file.
45223
45224         Tests for module 'unicase/u8-is-cased'.
45225         * modules/unicase/u8-is-cased-tests: New file.
45226         * tests/unicase/test-u8-is-cased.c: New file.
45227         * tests/unicase/test-is-cased.h: New file.
45228
45229         New module 'unicase/u32-is-cased'.
45230         * lib/unicase/u32-is-cased.c: New file.
45231         * modules/unicase/u32-is-cased: New file.
45232
45233         New module 'unicase/u16-is-cased'.
45234         * lib/unicase/u16-is-cased.c: New file.
45235         * modules/unicase/u16-is-cased: New file.
45236
45237         New module 'unicase/u8-is-cased'.
45238         * lib/unicase/u8-is-cased.c: New file.
45239         * lib/unicase/u-is-cased.h: New file.
45240         * modules/unicase/u8-is-cased: New file.
45241
45242         Tests for module 'unicase/u32-is-casefolded'.
45243         * modules/unicase/u32-is-casefolded-tests: New file.
45244         * tests/unicase/test-u32-is-casefolded.c: New file.
45245
45246         Tests for module 'unicase/u16-is-casefolded'.
45247         * modules/unicase/u16-is-casefolded-tests: New file.
45248         * tests/unicase/test-u16-is-casefolded.c: New file.
45249
45250         Tests for module 'unicase/u8-is-casefolded'.
45251         * modules/unicase/u8-is-casefolded-tests: New file.
45252         * tests/unicase/test-u8-is-casefolded.c: New file.
45253         * tests/unicase/test-is-casefolded.h: New file.
45254
45255         New module 'unicase/u32-is-casefolded'.
45256         * lib/unicase/u32-is-casefolded.c: New file.
45257         * modules/unicase/u32-is-casefolded: New file.
45258
45259         New module 'unicase/u16-is-casefolded'.
45260         * lib/unicase/u16-is-casefolded.c: New file.
45261         * modules/unicase/u16-is-casefolded: New file.
45262
45263         New module 'unicase/u8-is-casefolded'.
45264         * lib/unicase/u8-is-casefolded.c: New file.
45265         * modules/unicase/u8-is-casefolded: New file.
45266
45267         Tests for module 'unicase/u32-is-titlecase'.
45268         * modules/unicase/u32-is-titlecase-tests: New file.
45269         * tests/unicase/test-u32-is-titlecase.c: New file.
45270
45271         Tests for module 'unicase/u16-is-titlecase'.
45272         * modules/unicase/u16-is-titlecase-tests: New file.
45273         * tests/unicase/test-u16-is-titlecase.c: New file.
45274
45275         Tests for module 'unicase/u8-is-titlecase'.
45276         * modules/unicase/u8-is-titlecase-tests: New file.
45277         * tests/unicase/test-u8-is-titlecase.c: New file.
45278         * tests/unicase/test-is-titlecase.h: New file.
45279
45280         New module 'unicase/u32-is-titlecase'.
45281         * lib/unicase/u32-is-titlecase.c: New file.
45282         * modules/unicase/u32-is-titlecase: New file.
45283
45284         New module 'unicase/u16-is-titlecase'.
45285         * lib/unicase/u16-is-titlecase.c: New file.
45286         * modules/unicase/u16-is-titlecase: New file.
45287
45288         New module 'unicase/u8-is-titlecase'.
45289         * lib/unicase/u8-is-titlecase.c: New file.
45290         * modules/unicase/u8-is-titlecase: New file.
45291
45292         Tests for module 'unicase/u32-is-lowercase'.
45293         * modules/unicase/u32-is-lowercase-tests: New file.
45294         * tests/unicase/test-u32-is-lowercase.c: New file.
45295
45296         Tests for module 'unicase/u16-is-lowercase'.
45297         * modules/unicase/u16-is-lowercase-tests: New file.
45298         * tests/unicase/test-u16-is-lowercase.c: New file.
45299
45300         Tests for module 'unicase/u8-is-lowercase'.
45301         * modules/unicase/u8-is-lowercase-tests: New file.
45302         * tests/unicase/test-u8-is-lowercase.c: New file.
45303         * tests/unicase/test-is-lowercase.h: New file.
45304
45305         New module 'unicase/u32-is-lowercase'.
45306         * lib/unicase/u32-is-lowercase.c: New file.
45307         * modules/unicase/u32-is-lowercase: New file.
45308
45309         New module 'unicase/u16-is-lowercase'.
45310         * lib/unicase/u16-is-lowercase.c: New file.
45311         * modules/unicase/u16-is-lowercase: New file.
45312
45313         New module 'unicase/u8-is-lowercase'.
45314         * lib/unicase/u8-is-lowercase.c: New file.
45315         * modules/unicase/u8-is-lowercase: New file.
45316
45317         Tests for module 'unicase/u32-is-uppercase'.
45318         * modules/unicase/u32-is-uppercase-tests: New file.
45319         * tests/unicase/test-u32-is-uppercase.c: New file.
45320
45321         Tests for module 'unicase/u16-is-uppercase'.
45322         * modules/unicase/u16-is-uppercase-tests: New file.
45323         * tests/unicase/test-u16-is-uppercase.c: New file.
45324
45325         Tests for module 'unicase/u8-is-uppercase'.
45326         * modules/unicase/u8-is-uppercase-tests: New file.
45327         * tests/unicase/test-u8-is-uppercase.c: New file.
45328         * tests/unicase/test-is-uppercase.h: New file.
45329
45330         New module 'unicase/u32-is-uppercase'.
45331         * lib/unicase/u32-is-uppercase.c: New file.
45332         * modules/unicase/u32-is-uppercase: New file.
45333
45334         New module 'unicase/u16-is-uppercase'.
45335         * lib/unicase/u16-is-uppercase.c: New file.
45336         * modules/unicase/u16-is-uppercase: New file.
45337
45338         New module 'unicase/u8-is-uppercase'.
45339         * lib/unicase/u8-is-uppercase.c: New file.
45340         * modules/unicase/u8-is-uppercase: New file.
45341
45342         New module 'unicase/u32-is-invariant'.
45343         * lib/unicase/u32-is-invariant.c: New file.
45344         * modules/unicase/u32-is-invariant: New file.
45345
45346         New module 'unicase/u16-is-invariant'.
45347         * lib/unicase/u16-is-invariant.c: New file.
45348         * modules/unicase/u16-is-invariant: New file.
45349
45350         New module 'unicase/u8-is-invariant'.
45351         * lib/unicase/u8-is-invariant.c: New file.
45352         * lib/unicase/invariant.h: New file.
45353         * lib/unicase/u-is-invariant.h: New file.
45354         * modules/unicase/u8-is-invariant: New file.
45355
45356         Tests for module 'unicase/u32-casecoll'.
45357         * modules/unicase/u32-casecoll-tests: New file.
45358         * tests/unicase/test-u32-casecoll.c: New file.
45359
45360         Tests for module 'unicase/u16-casecoll'.
45361         * modules/unicase/u16-casecoll-tests: New file.
45362         * tests/unicase/test-u16-casecoll.c: New file.
45363
45364         Tests for module 'unicase/u8-casecoll'.
45365         * modules/unicase/u8-casecoll-tests: New file.
45366         * tests/unicase/test-u8-casecoll.c: New file.
45367
45368         New module 'unicase/u32-casecoll'.
45369         * lib/unicase/u32-casecoll.c: New file.
45370         * modules/unicase/u32-casecoll: New file.
45371
45372         New module 'unicase/u16-casecoll'.
45373         * lib/unicase/u16-casecoll.c: New file.
45374         * modules/unicase/u16-casecoll: New file.
45375
45376         New module 'unicase/u8-casecoll'.
45377         * lib/unicase/u8-casecoll.c: New file.
45378         * lib/unicase/u-casecoll.h: New file.
45379         * modules/unicase/u8-casecoll: New file.
45380
45381         New module 'unicase/u32-casexfrm'.
45382         * lib/unicase/u32-casexfrm.c: New file.
45383         * modules/unicase/u32-casexfrm: New file.
45384
45385         New module 'unicase/u16-casexfrm'.
45386         * lib/unicase/u16-casexfrm.c: New file.
45387         * modules/unicase/u16-casexfrm: New file.
45388
45389         New module 'unicase/u8-casexfrm'.
45390         * lib/unicase/u8-casexfrm.c: New file.
45391         * lib/unicase/u-casexfrm.h: New file.
45392         * modules/unicase/u8-casexfrm: New file.
45393
45394         Tests for module 'unicase/u32-casecmp'.
45395         * modules/unicase/u32-casecmp-tests: New file.
45396         * tests/unicase/test-u32-casecmp.c: New file.
45397
45398         Tests for module 'unicase/u16-casecmp'.
45399         * modules/unicase/u16-casecmp-tests: New file.
45400         * tests/unicase/test-u16-casecmp.c: New file.
45401
45402         Tests for module 'unicase/u8-casecmp'.
45403         * modules/unicase/u8-casecmp-tests: New file.
45404         * tests/unicase/test-u8-casecmp.c: New file.
45405         * tests/unicase/test-casecmp.h: New file.
45406
45407         New module 'unicase/u32-casecmp'.
45408         * lib/unicase/u32-casecmp.c: New file.
45409         * modules/unicase/u32-casecmp: New file.
45410
45411         New module 'unicase/u16-casecmp'.
45412         * lib/unicase/u16-casecmp.c: New file.
45413         * modules/unicase/u16-casecmp: New file.
45414
45415         New module 'unicase/u8-casecmp'.
45416         * lib/unicase/u8-casecmp.c: New file.
45417         * lib/unicase/u-casecmp.h: New file.
45418         * modules/unicase/u8-casecmp: New file.
45419
45420         Tests for module 'unicase/u32-casefold'.
45421         * modules/unicase/u32-casefold-tests: New file.
45422         * tests/unicase/test-u32-casefold.c: New file.
45423
45424         Tests for module 'unicase/u16-casefold'.
45425         * modules/unicase/u16-casefold-tests: New file.
45426         * tests/unicase/test-u16-casefold.c: New file.
45427
45428         Tests for module 'unicase/u8-casefold'.
45429         * modules/unicase/u8-casefold-tests: New file.
45430         * tests/unicase/test-u8-casefold.c: New file.
45431
45432         New module 'unicase/u32-casefold'.
45433         * lib/unicase/u32-casefold.c: New file.
45434         * modules/unicase/u32-casefold: New file.
45435
45436         New module 'unicase/u16-casefold'.
45437         * lib/unicase/u16-casefold.c: New file.
45438         * modules/unicase/u16-casefold: New file.
45439
45440         New module 'unicase/u8-casefold'.
45441         * lib/unicase/u8-casefold.c: New file.
45442         * lib/unicase/u-casefold.h: New file.
45443         * modules/unicase/u8-casefold: New file.
45444
45445         New module 'unicase/tocasefold'.
45446         * lib/unicase/casefold.h: New file.
45447         * lib/unicase/tocasefold.c: New file.
45448         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
45449         * modules/unicase/tocasefold: New file.
45450
45451         Tests for module 'unicase/u32-totitle'.
45452         * modules/unicase/u32-totitle-tests: New file.
45453         * tests/unicase/test-u32-totitle.c: New file.
45454
45455         Tests for module 'unicase/u16-totitle'.
45456         * modules/unicase/u16-totitle-tests: New file.
45457         * tests/unicase/test-u16-totitle.c: New file.
45458
45459         Tests for module 'unicase/u8-totitle'.
45460         * modules/unicase/u8-totitle-tests: New file.
45461         * tests/unicase/test-u8-totitle.c: New file.
45462
45463         New module 'unicase/u32-totitle'.
45464         * lib/unicase/u32-totitle.c: New file.
45465         * modules/unicase/u32-totitle: New file.
45466
45467         New module 'unicase/u16-totitle'.
45468         * lib/unicase/u16-totitle.c: New file.
45469         * modules/unicase/u16-totitle: New file.
45470
45471         New module 'unicase/u8-totitle'.
45472         * lib/unicase/u8-totitle.c: New file.
45473         * lib/unicase/u-totitle.h: New file.
45474         * modules/unicase/u8-totitle: New file.
45475
45476         Tests for module 'unicase/u32-tolower'.
45477         * modules/unicase/u32-tolower-tests: New file.
45478         * tests/unicase/test-u32-tolower.c: New file.
45479
45480         Tests for module 'unicase/u16-tolower'.
45481         * modules/unicase/u16-tolower-tests: New file.
45482         * tests/unicase/test-u16-tolower.c: New file.
45483
45484         Tests for module 'unicase/u8-tolower'.
45485         * modules/unicase/u8-tolower-tests: New file.
45486         * tests/unicase/test-u8-tolower.c: New file.
45487
45488         New module 'unicase/u32-tolower'.
45489         * lib/unicase/u32-tolower.c: New file.
45490         * modules/unicase/u32-tolower: New file.
45491
45492         New module 'unicase/u16-tolower'.
45493         * lib/unicase/u16-tolower.c: New file.
45494         * modules/unicase/u16-tolower: New file.
45495
45496         New module 'unicase/u8-tolower'.
45497         * lib/unicase/u8-tolower.c: New file.
45498         * modules/unicase/u8-tolower: New file.
45499
45500         Tests for module 'unicase/u32-toupper'.
45501         * modules/unicase/u32-toupper-tests: New file.
45502         * tests/unicase/test-u32-toupper.c: New file.
45503
45504         Tests for module 'unicase/u16-toupper'.
45505         * modules/unicase/u16-toupper-tests: New file.
45506         * tests/unicase/test-u16-toupper.c: New file.
45507
45508         Tests for module 'unicase/u8-toupper'.
45509         * modules/unicase/u8-toupper-tests: New file.
45510         * tests/unicase/test-u8-toupper.c: New file.
45511
45512         New module 'unicase/u32-toupper'.
45513         * lib/unicase/u32-toupper.c: New file.
45514         * modules/unicase/u32-toupper: New file.
45515
45516         New module 'unicase/u16-toupper'.
45517         * lib/unicase/u16-toupper.c: New file.
45518         * modules/unicase/u16-toupper: New file.
45519
45520         New module 'unicase/u8-toupper'.
45521         * lib/unicase/u8-toupper.c: New file.
45522         * modules/unicase/u8-toupper: New file.
45523
45524         New module 'unicase/u32-casemap'.
45525         * lib/unicase/u32-casemap.c: New file.
45526         * modules/unicase/u32-casemap: New file.
45527
45528         New module 'unicase/u16-casemap'.
45529         * lib/unicase/u16-casemap.c: New file.
45530         * modules/unicase/u16-casemap: New file.
45531
45532         New module 'unicase/u8-casemap'.
45533         * lib/unicase/unicasemap.h: New file.
45534         * lib/unicase/u8-casemap.c: New file.
45535         * lib/unicase/u-casemap.h: New file.
45536         * modules/unicase/u8-casemap: New file.
45537
45538         New module 'unicase/special-casing'.
45539         * lib/unicase/special-casing.h: New file.
45540         * lib/unicase/special-casing.c: New file.
45541         * lib/unicase/special-casing-table.gperf: New file, generated by
45542         gen-uni-tables.c.
45543         * modules/unicase/special-casing: New file.
45544
45545         Tests for module 'unicase/locale-language'.
45546         * modules/unicase/locale-language-tests: New file.
45547         * tests/unicase/test-locale-language.sh: New file.
45548         * tests/unicase/test-locale-language.c: New file.
45549
45550         New module 'unicase/locale-language'.
45551         * lib/unicase/locale-language.c: New file.
45552         * lib/unicase/locale-languages.gperf: New file.
45553         * modules/unicase/locale-language: New file.
45554
45555         Generate more tables for case conversion and case folding.
45556         * lib/gen-uni-tables.c (SCC_*): New enum items.
45557         (struct special_casing_rule): New type.
45558         (casing_rules, num_casing_rules, allocated_casing_rules): New
45559         variables.
45560         (add_casing_rule, fill_casing_rules): New functions.
45561         (struct casefold_rule): New type.
45562         (casefolding_rules, num_casefolding_rules,
45563         allocated_casefolding_rules): New variables.
45564         (fill_casefolding_rules): New function.
45565         (unicode_casefold): New variable.
45566         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
45567         sort_casing_rules, output_casing_rules): New functions.
45568         (main): Accept to more arguments: SpecialCasing.txt and
45569         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
45570         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
45571         Output mapping for casefolding.
45572
45573         * lib/unicase.h: Include stdbool.h, uninorm.h.
45574         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
45575         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
45576         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
45577         arguments.
45578         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
45579         resultp arguments.
45580         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
45581         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
45582         resultp arguments.
45583         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
45584         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
45585         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
45586         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
45587         declarations.
45588         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
45589
45590 2009-03-08  Bruno Haible  <bruno@clisp.org>
45591
45592         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
45593         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
45594         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
45595         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
45596
45597 2009-03-07  Bruno Haible  <bruno@clisp.org>
45598
45599         Adjust u*_normcmp, u*_normcoll API.
45600         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
45601         u16_normcoll, u32_normcoll): Change failure conventions.
45602         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
45603         errno and return -1.
45604         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
45605
45606 2009-03-07  Bruno Haible  <bruno@clisp.org>
45607
45608         Tests for module 'uninorm/u32-normcoll'.
45609         * modules/uninorm/u32-normcoll-tests: New file.
45610         * tests/uninorm/test-u32-normcoll.c: New file.
45611
45612         Tests for module 'uninorm/u16-normcoll'.
45613         * modules/uninorm/u16-normcoll-tests: New file.
45614         * tests/uninorm/test-u16-normcoll.c: New file.
45615
45616         Tests for module 'uninorm/u8-normcoll'.
45617         * modules/uninorm/u8-normcoll-tests: New file.
45618         * tests/uninorm/test-u8-normcoll.c: New file.
45619
45620 2009-03-07  Bruno Haible  <bruno@clisp.org>
45621
45622         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
45623         tests/uninorm/test-u32-normcmp.c.
45624         * tests/uninorm/test-u32-normcmp.c: Include it.
45625         (test_nonascii): New function, extracted from main. Add some more
45626         tests.
45627         (main): Invoke test_ascii and test_nonascii.
45628         * modules/uninorm/u32-normcmp-tests (Files): Add
45629         tests/uninorm/test-u32-normcmp.h.
45630         (Depends-on): Remove uninorm/u32-normcmp.
45631
45632         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
45633         tests/uninorm/test-u16-normcmp.c.
45634         * tests/uninorm/test-u16-normcmp.c: Include it.
45635         (test_nonascii): New function, extracted from main. Add some more
45636         tests.
45637         (main): Invoke test_ascii and test_nonascii.
45638         * modules/uninorm/u16-normcmp-tests (Files): Add
45639         tests/uninorm/test-u16-normcmp.h.
45640         (Depends-on): Remove uninorm/u16-normcmp.
45641
45642         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
45643         tests/uninorm/test-u8-normcmp.c.
45644         * tests/uninorm/test-u8-normcmp.c: Include it.
45645         (test_nonascii): New function, extracted from main. Add some more
45646         tests.
45647         (main): Invoke test_ascii and test_nonascii.
45648         * modules/uninorm/u8-normcmp-tests (Files): Add
45649         tests/uninorm/test-u8-normcmp.h.
45650         (Depends-on): Remove uninorm/u8-normcmp.
45651
45652 2009-03-07  Bruno Haible  <bruno@clisp.org>
45653
45654         New module 'uninorm/u32-normcoll'.
45655         * lib/uninorm/u32-normcoll.c: New file.
45656         * modules/uninorm/u32-normcoll: New file.
45657
45658         New module 'uninorm/u16-normcoll'.
45659         * lib/uninorm/u16-normcoll.c: New file.
45660         * modules/uninorm/u16-normcoll: New file.
45661
45662         New module 'uninorm/u8-normcoll'.
45663         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
45664         declarations.
45665         * lib/uninorm/u8-normcoll.c: New file.
45666         * lib/uninorm/u-normcoll.h: New file.
45667         * modules/uninorm/u8-normcoll: New file.
45668
45669         New module 'uninorm/u32-normxfrm'.
45670         * lib/uninorm/u32-normxfrm.c: New file.
45671         * modules/uninorm/u32-normxfrm: New file.
45672
45673         New module 'uninorm/u16-normxfrm'.
45674         * lib/uninorm/u16-normxfrm.c: New file.
45675         * modules/uninorm/u16-normxfrm: New file.
45676
45677         New module 'uninorm/u8-normxfrm'.
45678         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
45679         declarations.
45680         * lib/uninorm/u8-normxfrm.c: New file.
45681         * lib/uninorm/u-normxfrm.h: New file.
45682         * modules/uninorm/u8-normxfrm: New file.
45683
45684 2009-03-07  Bruno Haible  <bruno@clisp.org>
45685
45686         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
45687         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
45688         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
45689
45690 2009-03-07  Bruno Haible  <bruno@clisp.org>
45691
45692         New module 'memxfrm'.
45693         * lib/memxfrm.h: New file.
45694         * lib/memxfrm.c: New file.
45695         * modules/memxfrm: New file.
45696
45697 2009-03-07  Bruno Haible  <bruno@clisp.org>
45698
45699         New module 'memcmp2'.
45700         * lib/memcmp2.h: New file.
45701         * lib/memcmp2.c: New file.
45702         * modules/memcmp2: New file.
45703
45704 2009-03-07  Bruno Haible  <bruno@clisp.org>
45705
45706         Tests for module 'uninorm/decomposing-form'.
45707         * modules/uninorm/decomposing-form-tests: New file.
45708         * tests/uninorm/test-decomposing-form.c: New file.
45709
45710         New module 'uninorm/decomposing-form'.
45711         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
45712         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
45713         Add 'decomposing_variant' field.
45714         * lib/uninorm/decomposing-form.c: New file.
45715         * lib/uninorm/nfc.c (uninorm_nfc): Update.
45716         * lib/uninorm/nfd.c (uninorm_nfd): Update.
45717         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
45718         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
45719         * modules/uninorm/decomposing-form: New file.
45720         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
45721         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
45722
45723 2009-03-07  Bruno Haible  <bruno@clisp.org>
45724
45725         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
45726         strings.
45727
45728 2009-03-06  Bruno Haible  <bruno@clisp.org>
45729
45730         Tests for module 'uninorm/u32-normcmp'.
45731         * tests/uninorm/test-u32-normcmp.c: New file.
45732         * modules/uninorm/u32-normcmp-tests: New file.
45733
45734         Tests for module 'uninorm/u16-normcmp'.
45735         * tests/uninorm/test-u16-normcmp.c: New file.
45736         * modules/uninorm/u16-normcmp-tests: New file.
45737
45738         Tests for module 'uninorm/u8-normcmp'.
45739         * tests/uninorm/test-u8-normcmp.c: New file.
45740         * modules/uninorm/u8-normcmp-tests: New file.
45741
45742         New module 'uninorm/u32-normcmp'.
45743         * lib/uninorm/u32-normcmp.c: New file.
45744         * modules/uninorm/u32-normcmp: New file.
45745
45746         New module 'uninorm/u16-normcmp'.
45747         * lib/uninorm/u16-normcmp.c: New file.
45748         * modules/uninorm/u16-normcmp: New file.
45749
45750         New module 'uninorm/u8-normcmp'.
45751         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
45752         declarations.
45753         * lib/uninorm/u8-normcmp.c: New file.
45754         * lib/uninorm/u-normcmp.h: New file.
45755         * modules/uninorm/u8-normcmp: New file.
45756
45757 2009-03-06  Bruno Haible  <bruno@clisp.org>
45758
45759         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
45760         Reported by Eric Blake.
45761
45762 2009-03-06  Eric Blake  <ebb9@byu.net>
45763             Bruno Haible  <bruno@clisp.org>
45764
45765         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
45766         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
45767         condition.
45768         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
45769         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
45770         condition.
45771         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
45772
45773 2009-03-06  Eric Blake  <ebb9@byu.net>
45774
45775         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
45776         to avoid compiler warnings.
45777         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
45778
45779 2009-03-05  Bruno Haible  <bruno@clisp.org>
45780
45781         * tests/test-ftell.c (main): Disable test beyond end of file on
45782         FreeMiNT.
45783         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
45784
45785 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
45786
45787         * lib/filevercmp.c: Move hidden files up in ordering.
45788         * tests/test-filevercmp.c: Add tests for hidden files.
45789
45790 2009-03-04  Bruno Haible  <bruno@clisp.org>
45791
45792         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
45793         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
45794         AM_CFLAGS.
45795         Reported by Simon Josefsson.
45796
45797 2009-03-03  Bruno Haible  <bruno@clisp.org>
45798
45799         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
45800         Reported by Simon Josefsson.
45801
45802         * doc/ld-version-script.texi: Update node reference.
45803
45804 2009-03-03  Bruno Haible  <bruno@clisp.org>
45805
45806         * modules/visibility (License): Change to 'unlimited'.
45807         Suggested by Simon Josefsson.
45808
45809 2009-03-03  Jim Meyering  <meyering@redhat.com>
45810
45811         unlinkdir: cannot_unlink_dir may modify process state
45812         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
45813         it's neither thread-safe nor appropriate for use in a library.
45814
45815 2009-03-03  Eric Blake  <ebb9@byu.net>
45816
45817         test-closein: silence test under Darwin
45818         * tests/test-closein.sh: Ignore stderr from cat, since we don't
45819         care if it dies from EPIPE or EBADF.
45820
45821 2009-03-03  Bruno Haible  <bruno@clisp.org>
45822
45823         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
45824         earlier.
45825         * doc/visibility.texi: Fix @node and @section.
45826
45827 2009-03-03  Simon Josefsson  <simon@josefsson.org>
45828
45829         * doc/gnulib.texi: Link to sections for ld version script and
45830         visibility.
45831         * doc/visibility.texi: Add @node and @section.
45832         * modules/ld-version-script: New module.
45833         * m4/ld-version-script.m4: New file.
45834         * doc/ld-version-script.texi: New file.
45835
45836 2009-03-02  David Lutterkort  <lutter@redhat.com>
45837
45838         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
45839         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45840
45841 2009-03-02  Bruno Haible  <bruno@clisp.org>
45842
45843         * doc/visibility.texi: Mention libtool's -export-symbols option.
45844
45845 2009-03-02  Jim Meyering  <meyering@redhat.com>
45846
45847         announce-gen: new option: --no-print-checksums
45848         * build-aux/announce-gen (usage): Describe it.
45849         (print_checksums): Print a newline here, not in the [*] footnote.
45850         (main): Honor it.
45851
45852 2009-03-01  Bruno Haible  <bruno@clisp.org>
45853
45854         Use socklen_t in the native Windows replacements prototypes.
45855         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
45856         instead of 'int'.
45857         * lib/getsockopt.c (rpl_getsockopt): Likewise.
45858         * lib/setsockopt.c (rpl_setsockopt): Likewise.
45859         * modules/getsockopt (Depends-on): Add socklen.
45860         * modules/setsockopt (Depends-on): Add socklen.
45861
45862 2009-03-01  Bruno Haible  <bruno@clisp.org>
45863
45864         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
45865         least 4.2.
45866
45867 2009-03-01  Eric Blake  <ebb9@byu.net>
45868             Bruno Haible  <bruno@clisp.org>
45869
45870         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
45871         error messages.
45872         * lib/wait-process.c (wait_subprocess): Omit error message about
45873         deadly signal sent to the child of termsigp != NULL.
45874
45875 2009-03-01  Eric Blake  <ebb9@byu.net>
45876
45877         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
45878
45879 2009-03-01  Bruno Haible  <bruno@clisp.org>
45880
45881         Avoid a gcc warning.
45882         * tests/test-sched.c (b): Make global.
45883         Reported by Eric Blake.
45884
45885 2009-01-19  Martin Lambers  <marlam@marlam.de>
45886
45887         Provide POSIX semantics for socket timeout options on W32.
45888         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
45889         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
45890         * modules/setsockopt: Depend on sys_time module for struct timeval.
45891         * modules/getsockopt: Depend on sys_time module for struct timeval.
45892
45893 2009-03-01  Simon Josefsson  <simon@josefsson.org>
45894
45895         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
45896         __USE_GNU, for consistency with netdb.in.h.
45897         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45898
45899 2009-03-01  Bruno Haible  <bruno@clisp.org>
45900
45901         More support for FreeMiNT.
45902         * lib/fseeko.c (rpl_fseeko): Complete last commit.
45903         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45904
45905 2009-03-01  Bruno Haible  <bruno@clisp.org>
45906
45907         More support for FreeMiNT.
45908         * lib/fpurge.c (fpurge): Correct last commit.
45909         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45910
45911 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45912
45913         Fix unportable awk script in vc-list-files.
45914         * build-aux/vc-list-files: In the replacement awk script, use
45915         substr with a second argument of 1, not zero.
45916         Report by Simon Josefsson.
45917
45918 2009-02-28  Bruno Haible  <bruno@clisp.org>
45919
45920         More support for FreeMiNT.
45921         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
45922         to FreeMiNT today.
45923         * lib/fwriting.c (fwriting): Likewise.
45924         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
45925
45926 2009-02-28  Bruno Haible  <bruno@clisp.org>
45927
45928         * tests/test-freadseek.c (main): Disable test beyond end of file on
45929         FreeMiNT.
45930         * tests/test-ftello.c (main): Likewise.
45931         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
45932
45933 2009-02-28  Bruno Haible  <bruno@clisp.org>
45934
45935         Add tentative support for FreeMiNT.
45936         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
45937         * lib/fpurge.c (fpurge): Likewise.
45938         * lib/freadable.c (freadable): Likewise.
45939         * lib/freading.c (freading): Likewise.
45940         * lib/freadptr.c (freadptr): Likewise.
45941         * lib/freadseek.c (freadptrinc): Likewise.
45942         * lib/fseeko.c (rpl_fseeko): Likewise.
45943         * lib/fseterr.c (fseterr): Likewise.
45944         * lib/fwritable.c (fwritable): Likewise.
45945         * lib/fwriting.c (fwriting): Likewise.
45946         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
45947         Hourihane.
45948         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45949
45950 2009-02-28  Bruno Haible  <bruno@clisp.org>
45951
45952         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
45953         SIGCHLD.
45954         Reported by Jim Meyering.
45955
45956 2009-02-28  Bruno Haible  <bruno@clisp.org>
45957
45958         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
45959         Mention the results of these tests on various platforms.
45960         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
45961         order.
45962         * doc/posix-functions/printf.texi: Likewise.
45963         * doc/posix-functions/snprintf.texi: Likewise.
45964         * doc/posix-functions/sprintf.texi: Likewise.
45965         * doc/posix-functions/vfprintf.texi: Likewise.
45966         * doc/posix-functions/vprintf.texi: Likewise.
45967         * doc/posix-functions/vsnprintf.texi: Likewise.
45968         * doc/posix-functions/vsprintf.texi: Likewise.
45969         * doc/glibc-functions/obstack_printf.texi: Likewise.
45970         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
45971
45972 2009-02-28  Bruno Haible  <bruno@clisp.org>
45973
45974         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
45975         Reported by Loïc Minier <lool@dooz.org>.
45976
45977 2009-02-27  Bruno Haible  <bruno@clisp.org>
45978
45979         * gnulib-tool (func_import): Make the sed expression used to create the
45980         sed script for updating the .gitignore file POSIX compliant.
45981         Reported by Eric Blake.
45982
45983 2009-02-27  Bruno Haible  <bruno@clisp.org>
45984
45985         * gnulib-tool (sed): Don't alias as "sed --posix".
45986         Reported by Eric Blake.
45987
45988 2009-02-27  Bruno Haible  <bruno@clisp.org>
45989
45990         Avoid test link errors.
45991         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
45992         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
45993         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
45994         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
45995         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45996
45997 2009-02-27  Bruno Haible  <bruno@clisp.org>
45998
45999         Avoid spurious "(cached)" in configure output.
46000         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
46001         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
46002         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
46003         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
46004         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
46005         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
46006         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
46007         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
46008         Reported by Eric Blake.
46009
46010 2009-02-27  Eric Blake  <ebb9@byu.net>
46011
46012         printf: fix regression in previous patch
46013         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
46014
46015 2009-02-27  Bruno Haible  <bruno@clisp.org>
46016
46017         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
46018         value.
46019         * lib/stdint.in.h: Likewise.
46020         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
46021
46022 2009-02-27  Eric Blake  <ebb9@byu.net>
46023
46024         doc: mention more functions added in cygwin 1.7.0
46025         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
46026         addition.
46027         * doc/posix-functions/open_wmemstream.texi: Likewise.
46028         * doc/posix-functions/wcsnlen.texi: Likewise.
46029         * doc/posix-functions/wcsnrtombs.texi: Likewise.
46030         * doc/posix-functions/wcstod.texi: Likewise.
46031         * doc/posix-functions/wcstof.texi: Likewise.
46032         * doc/posix-functions/wcstoimax.texi: Likewise.
46033         * doc/posix-functions/wcstok.texi: Likewise.
46034         * doc/posix-functions/wcstoumax.texi: Likewise.
46035
46036         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
46037         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
46038         * doc/posix-functions/fprintf.texi: Update.
46039         * doc/posix-functions/printf.texi: Update.
46040         * doc/posix-functions/snprintf.texi: Update.
46041         * doc/posix-functions/sprintf.texi: Update.
46042         * doc/posix-functions/vfprintf.texi: Update.
46043         * doc/posix-functions/vprintf.texi: Update.
46044         * doc/posix-functions/vsnprintf.texi: Update.
46045         * doc/posix-functions/vsprintf.texi: Update.
46046         * doc/glibc-functions/obstack_printf.texi: Update.
46047         * doc/glibc-functions/obstack_vprintf.texi: Update.
46048
46049 2009-02-26  Eric Blake  <ebb9@byu.net>
46050
46051         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
46052         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
46053         compilation bug by using runtime conversion.
46054         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
46055         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
46056         * modules/ceill-tests (Files): Use nan.h.
46057         * modules/floorl-tests (Files): Likewise.
46058         * modules/frexpl-tests (Files): Likewise.
46059         * modules/isnanl-tests (Files): Likewise.
46060         * modules/ldexpl-tests (Files): Likewise.
46061         * modules/roundl-tests (Files): Likewise.
46062         * modules/truncl-tests (Files): Likewise.
46063         * tests/test-ceill.c (main): Use a working NaN.
46064         * tests/test-floorl.c (main): Likewise.
46065         * tests/test-frexpl.c (main): Likewise.
46066         * tests/test-isnan.c (test_long_double): Likewise.
46067         * tests/test-isnanl.h (main): Likewise.
46068         * tests/test-ldexpl.h (main): Likewise.
46069         * tests/test-roundl.h (main): Likewise.
46070         * tests/test-truncl.h (main): Likewise.
46071         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
46072
46073 2009-02-26  Eric Blake  <ebb9@byu.net>
46074             Bruno Haible  <bruno@clisp.org>
46075
46076         Work around a *printf bug with %ls on Solaris.
46077         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
46078         precision is specified, sprintf stops converting the wide string
46079         argument when the number of bytes that have been produced by this
46080         conversion equals or exceeds the precision.
46081         * doc/posix-functions/fprintf.texi: Update.
46082         * doc/posix-functions/printf.texi: Update.
46083         * doc/posix-functions/snprintf.texi: Update.
46084         * doc/posix-functions/sprintf.texi: Update.
46085         * doc/posix-functions/vfprintf.texi: Update.
46086         * doc/posix-functions/vprintf.texi: Update.
46087         * doc/posix-functions/vsnprintf.texi: Update.
46088         * doc/posix-functions/vsprintf.texi: Update.
46089         * doc/glibc-functions/obstack_printf.texi: Update.
46090         * doc/glibc-functions/obstack_vprintf.texi: Update.
46091
46092 2009-02-26  Eric Blake  <ebb9@byu.net>
46093
46094         stdlib: favor compiler check of random.h
46095         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
46096         to avoid an ObjC random.h installed by Swarm.
46097
46098 2009-02-26  Bruno Haible  <bruno@clisp.org>
46099
46100         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
46101         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
46102         Reported by Gary V. Vaughan <gary@gnu.org>.
46103
46104 2009-02-26  Bruno Haible  <bruno@clisp.org>
46105
46106         Fix *printf behaviour regarding the %ls directive.
46107         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
46108         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
46109         NEED_PRINTF_DIRECTIVE_LS.
46110         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
46111         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
46112         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46113         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
46114         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
46115         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
46116         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
46117         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46118         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46119         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46120         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46121         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
46122         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46123         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46124         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46125         * doc/posix-functions/fprintf.texi: Update.
46126         * doc/posix-functions/printf.texi: Update.
46127         * doc/posix-functions/snprintf.texi: Update.
46128         * doc/posix-functions/sprintf.texi: Update.
46129         * doc/posix-functions/vfprintf.texi: Update.
46130         * doc/posix-functions/vprintf.texi: Update.
46131         * doc/posix-functions/vsnprintf.texi: Update.
46132         * doc/posix-functions/vsprintf.texi: Update.
46133         * doc/glibc-functions/obstack_printf.texi: Update.
46134         * doc/glibc-functions/obstack_vprintf.texi: Update.
46135         Reported by Eric Blake.
46136
46137 2009-02-25  Bruno Haible  <bruno@clisp.org>
46138
46139         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
46140         with known value.
46141         Reported by Gary V. Vaughan <gary@gnu.org>.
46142
46143 2009-02-25  Bruno Haible  <bruno@clisp.org>
46144
46145         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
46146         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
46147         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
46148         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
46149         Reported by Gary V. Vaughan <gary@gnu.org>.
46150
46151 2009-02-25  Bruno Haible  <bruno@clisp.org>
46152
46153         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
46154         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
46155         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
46156         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
46157         Reported by Gary V. Vaughan <gary@gnu.org>.
46158
46159 2009-02-25  Eric Blake  <ebb9@byu.net>
46160
46161         tests: skip fseek/ftell tests if ungetc is broken
46162         * m4/ungetc.m4: New file.
46163         * modules/fseek-tests: Split test, so ungetc dependency is
46164         separate from rest of test.
46165         * modules/fseeko-tests: Likewise.
46166         * modules/ftell-tests: Likewise.
46167         * modules/ftello-tests: Likewise.
46168         * tests/test-fseek.c (main): Isolate ungetc dependency.
46169         * tests/test-fseeko.c (main): Likewise.
46170         * tests/test-ftell.c (main): Likewise.
46171         * tests/test-ftello.c (main): Likewise.
46172         * tests/test-fseek2.sh: New file.
46173         * tests/test-fseeko2.sh: Likewise.
46174         * tests/test-ftell2.sh: Likewise.
46175         * tests/test-ftello2.sh: Likewise.
46176
46177 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
46178
46179         test-getaddrinfo: fix usage of skip return code 77
46180         * tests/test-gettaddrinfo.c: Return skip code 77 only
46181         for first occurance of skip (4x77 is not 77)
46182
46183 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
46184
46185         strtod: avoid C99 decl-after-statement
46186         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
46187
46188 2009-02-24  Eric Blake  <ebb9@byu.net>
46189
46190         strtod: detect HP-UX 11.31 bug
46191         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
46192         Reported by Gary V. Vaughan.
46193
46194 2009-02-23  Bruno Haible  <bruno@clisp.org>
46195
46196         Fix invalid read past end of memory block.
46197         * lib/vasnprintf.c (DCHAR_SET): Define.
46198         (local_wcslen): Define only when needed.
46199         (local_strnlen, local_wcsnlen): New functions.
46200         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
46201         directives that involve a conversion ourselves.
46202         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
46203         wcsnlen, mbrtowc, wcrtomb.
46204         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
46205         * tests/test-vasprintf-posix.c (test_function): Likewise.
46206         * tests/test-snprintf-posix.h (test_function): Likewise.
46207         * tests/test-sprintf-posix.h (test_function): Likewise.
46208         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46209
46210 2009-02-22  Bruno Haible  <bruno@clisp.org>
46211
46212         Implement new clarified decomposition of Hangul syllables.
46213         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
46214         of type LTV, return only a pairwise decomposition.
46215         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
46216         Likewise.
46217         * tests/uninorm/test-decomposition.c (main): Updated expected result.
46218         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
46219         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
46220
46221 2009-02-22  Bruno Haible  <bruno@clisp.org>
46222
46223         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
46224         zero-length results and shrink excess allocated memory.
46225         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
46226         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
46227         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
46228         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
46229         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
46230         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
46231         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
46232         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
46233         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
46234         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
46235         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
46236         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
46237
46238 2009-02-21  Bruno Haible  <bruno@clisp.org>
46239
46240         * doc/gnulib.texi: Include safe-alloc.texi earlier.
46241         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
46242         spaces after a period. Put a space between a macro name and its
46243         argument list. Trivial rewordings.
46244         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
46245         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
46246         (main): Return 0 explicitly.
46247
46248 2009-02-21  Bruno Haible  <bruno@clisp.org>
46249
46250         Tests for module 'uninorm/filter'.
46251         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
46252         * modules/uninorm/filter-tests: New file.
46253
46254         New module 'uninorm/filter'.
46255         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
46256         uninorm_filter_flush, uninorm_filter_free): New declarations.
46257         * lib/uninorm/uninorm-filter.c: New file.
46258         * modules/uninorm/filter: New file.
46259
46260 2009-02-21  Bruno Haible  <bruno@clisp.org>
46261
46262         Tests for module 'uninorm/nfkc'.
46263         * tests/uninorm/test-nfkc.c: New file.
46264         * tests/uninorm/test-u8-nfkc.c: New file.
46265         * tests/uninorm/test-u16-nfkc.c: New file.
46266         * tests/uninorm/test-u32-nfkc.c: New file.
46267         * tests/uninorm/test-u32-nfkc-big.sh: New file.
46268         * tests/uninorm/test-u32-nfkc-big.c: New file.
46269         * modules/uninorm/nfkc-tests: New file.
46270
46271         New module 'uninorm/nfkc'.
46272         * lib/uninorm/nfkc.c: New file.
46273         * modules/uninorm/nfkc: New file.
46274
46275         Tests for module 'uninorm/nfkd'.
46276         * tests/uninorm/test-nfkd.c: New file.
46277         * tests/uninorm/test-u8-nfkd.c: New file.
46278         * tests/uninorm/test-u16-nfkd.c: New file.
46279         * tests/uninorm/test-u32-nfkd.c: New file.
46280         * tests/uninorm/test-u32-nfkd-big.sh: New file.
46281         * tests/uninorm/test-u32-nfkd-big.c: New file.
46282         * modules/uninorm/nfkd-tests: New file.
46283
46284         New module 'uninorm/nfkd'.
46285         * lib/uninorm/nfkd.c: New file.
46286         * modules/uninorm/nfkd: New file.
46287
46288         Tests for module 'uninorm/nfc'.
46289         * tests/uninorm/test-nfc.c: New file.
46290         * tests/uninorm/test-u8-nfc.c: New file.
46291         * tests/uninorm/test-u16-nfc.c: New file.
46292         * tests/uninorm/test-u32-nfc.c: New file.
46293         * tests/uninorm/test-u32-nfc-big.sh: New file.
46294         * tests/uninorm/test-u32-nfc-big.c: New file.
46295         * modules/uninorm/nfc-tests: New file.
46296
46297         New module 'uninorm/nfc'.
46298         * lib/uninorm/nfc.c: New file.
46299         * modules/uninorm/nfc: New file.
46300
46301         Tests for module 'uninorm/nfd'.
46302         * tests/uninorm/test-nfd.c: New file.
46303         * tests/uninorm/test-u8-nfd.c: New file.
46304         * tests/uninorm/test-u16-nfd.c: New file.
46305         * tests/uninorm/test-u32-nfd.c: New file.
46306         * tests/uninorm/test-u32-nfd-big.sh: New file.
46307         * tests/uninorm/test-u32-nfd-big.c: New file.
46308         * tests/uninorm/test-u32-normalize-big.h: New file.
46309         * tests/uninorm/test-u32-normalize-big.c: New file.
46310         * tests/uninorm/NormalizationTest.txt: New file, created from
46311         Unicode 5.1.0 NormalizationTest.txt.
46312         * modules/uninorm/nfd-tests: New file.
46313
46314         New module 'uninorm/nfd'.
46315         * lib/uninorm/nfd.c: New file.
46316         * modules/uninorm/nfd: New file.
46317
46318         New module 'uninorm/u32-normalize'.
46319         * lib/uninorm/u32-normalize.c: New file.
46320         * modules/uninorm/u32-normalize: New file.
46321
46322         New module 'uninorm/u16-normalize'.
46323         * lib/uninorm/u16-normalize.c: New file.
46324         * modules/uninorm/u16-normalize: New file.
46325
46326         New module 'uninorm/u8-normalize'.
46327         * lib/uninorm/u8-normalize.c: New file.
46328         * lib/uninorm/normalize-internal.h: New file.
46329         * lib/uninorm/u-normalize-internal.h: New file.
46330         * modules/uninorm/u8-normalize: New file.
46331
46332         New module 'uninorm/decompose-internal'.
46333         * lib/uninorm/decompose-internal.c: New file.
46334         * modules/uninorm/decompose-internal: New file.
46335
46336         Tests for module 'uninorm/composition'.
46337         * tests/uninorm/test-composition.c: New file.
46338         * modules/uninorm/composition-tests: New file.
46339
46340         New module 'uninorm/composition'.
46341         * lib/uninorm/composition.c: New file.
46342         * lib/uninorm/composition-table.gperf: New file, generated by
46343         gen-uni-tables.
46344         * modules/uninorm/composition: New file.
46345
46346         Tests for module 'uninorm/compat-decomposition'.
46347         * tests/uninorm/test-compat-decomposition.c: New file.
46348         * modules/uninorm/compat-decomposition-tests: New file.
46349
46350         New module 'uninorm/compat-decomposition'.
46351         * lib/uninorm/decompose-internal.h: New file.
46352         * lib/uninorm/compat-decomposition.c: New file.
46353         * modules/uninorm/compat-decomposition: New file.
46354
46355         Tests for module 'uninorm/canonical-decomposition'.
46356         * tests/uninorm/test-canonical-decomposition.c: New file.
46357         * modules/uninorm/canonical-decomposition-tests: New file.
46358
46359         New module 'uninorm/canonical-decomposition'.
46360         * lib/uninorm/canonical-decomposition.c: New file.
46361         * modules/uninorm/canonical-decomposition: New file.
46362
46363         Tests for module 'uninorm/decomposition'.
46364         * tests/uninorm/test-decomposition.c: New file.
46365         * modules/uninorm/decomposition-tests: New file.
46366
46367         New module 'uninorm/decomposition'.
46368         * lib/uninorm/decomposition.c: New file.
46369         * modules/uninorm/decomposition: New file.
46370
46371         New module 'uninorm/decomposition-table'.
46372         * lib/uninorm/decomposition-table.h: New file.
46373         * lib/uninorm/decomposition-table.c: New file.
46374         * lib/uninorm/decomposition-table1.h: New file, generated by
46375         gen-uni-tables.
46376         * lib/uninorm/decomposition-table2.h: New file, generated by
46377         gen-uni-tables.
46378         * modules/uninorm/decomposition-table: New file.
46379
46380         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
46381         (UC_DECOMP_*): New enumeration items.
46382         (get_decomposition): New function.
46383         (struct decomp_table): New type.
46384         (output_decomposition, output_decomposition_tables): New functions.
46385         (unicode_composition_exclusions): New variable.
46386         (fill_composition_exclusions, debug_output_composition_tables): New
46387         functions.
46388         (main): Accept one more argument. Invoke fill_composition_exclusions.
46389         Output decomposition and composition tables.
46390
46391         New module 'uninorm/base'.
46392         * lib/uninorm.h: New file.
46393         * lib/unictype.h: Update comment.
46394         * modules/uninorm/base: New file.
46395
46396 2009-02-21  David Lutterkort  <lutter@redhat.com>
46397
46398         Tests for module 'safe-alloc'.
46399         * tests/test-safe-alloc.c: New file.
46400         * modules/safe-alloc-tests: New file.
46401
46402         New module 'safe-alloc'.
46403         * lib/safe-alloc.h: New file.
46404         * lib/safe-alloc.c: New file.
46405         * m4/safe-alloc.m4: New file.
46406         * modules/safe-alloc: New file.
46407         * doc/safe-alloc.texi: New file.
46408         * doc/gnulib.texi: Include it.
46409         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
46410         safe-alloc.
46411
46412 2009-02-18  Bruno Haible  <bruno@clisp.org>
46413
46414         Fix link error on non-glibc systems.
46415         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
46416         variable.
46417         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46418
46419 2009-02-18  Jim Meyering  <meyering@redhat.com>
46420
46421         fts: avoid used-uninitialized error due to recent change
46422         * lib/fts.c (fts_read): Guard uses of the new member,
46423         parent->fts_n_dirs_remaining, since it's not relevant for
46424         the parent of a directory specified on the command-line.
46425
46426 2009-02-17  James Youngman  <jay@gnu.org>
46427             Bruno Haible  <bruno@clisp.org>
46428
46429         * m4/include_next.m4: Reformulate comment.
46430
46431 2009-02-16  Jim Meyering  <meyering@redhat.com>
46432
46433         fts: add #if guards so that the fts_lgpl module still builds
46434         * lib/fts.c: Guard just-added hash-table-using parts with
46435         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
46436         Reported by Simon Josefsson.
46437
46438 2009-02-15  Bruno Haible  <bruno@clisp.org>
46439
46440         * modules/array-mergesort-tests: New file.
46441         * tests/test-array-mergesort.c: New file.
46442
46443         New module 'array-mergesort'.
46444         * modules/array-mergesort: New file.
46445         * lib/array-mergesort.h: New file.
46446
46447 2009-02-15  Bruno Haible  <bruno@clisp.org>
46448
46449         Fix 2009-02-07 commit.
46450         * lib/gen-uni-tables.c (output_predicate, output_category,
46451         output_combclass, output_bidi_category, output_decimal_digit,
46452         output_digit, output_numeric, output_mirror, output_scripts,
46453         output_ident_category, output_simple_mapping): Fix format directives.
46454         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
46455
46456 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
46457
46458         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
46459         fixes are available from IBM.
46460
46461 2009-02-13  Jim Meyering  <meyering@redhat.com>
46462
46463         fts: arrange not to stat non-directories in more cases
46464         This makes GNU find (when it doesn't need to stat each file)
46465         *much* more efficient at traversing reiserfs file systems.
46466         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
46467         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
46468         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
46469         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
46470         (leaf_optimization_applies): New function.
46471         (LCO_hash, LCO_compare): New helper functions.
46472         (link_count_optimize_ok): New function.
46473         (fts_stat): Initialize new member (if dir).
46474         (fts_read): Decrement parent's fts_n_dirs_remaining count if
46475         we've just stat'ed a directory.  Skip the stat call when possible.
46476         ---
46477         Note this AFS-related exchange:
46478         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
46479         and note find's pioctl call in find/fstype.c.
46480         But that is necessary only if you want to enable the
46481         optimization for AFS, and for now, I don't.
46482
46483         fts: move a function definition "up" (no semantic change)
46484         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
46485         "up" to precede upcoming use of a related function.
46486
46487 2009-02-11  Jim Meyering  <meyering@redhat.com>
46488
46489         fts: correct internal computation of nlinks (optimization-related)
46490         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
46491         whether the current entry is a directory, so don't test it.
46492
46493 2009-02-10  Bruno Haible  <bruno@clisp.org>
46494
46495         Tests for module 'uniwbrk/ulc-wordbreaks'.
46496         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
46497         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
46498         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
46499
46500         Tests for module 'uniwbrk/u32-wordbreaks'.
46501         * modules/uniwbrk/u32-wordbreaks-tests: New file.
46502         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
46503
46504         Tests for module 'uniwbrk/u16-wordbreaks'.
46505         * modules/uniwbrk/u16-wordbreaks-tests: New file.
46506         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
46507
46508         Tests for module 'uniwbrk/u8-wordbreaks'.
46509         * modules/uniwbrk/u8-wordbreaks-tests: New file.
46510         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
46511
46512 2009-02-10  Bruno Haible  <bruno@clisp.org>
46513
46514         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
46515         property.
46516         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
46517         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
46518         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
46519
46520 2009-02-10  Simon Josefsson  <simon@josefsson.org>
46521
46522         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
46523         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
46524
46525 2009-02-10  Bruno Haible  <bruno@clisp.org>
46526
46527         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
46528         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
46529         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
46530         * lib/unilbrk/u8-possible-linebreaks.c: Update.
46531         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
46532         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
46533
46534 2009-02-09  Simon Josefsson  <simon@josefsson.org>
46535
46536         * lib/sockets.h (gl_fd_to_handle): New function.
46537
46538         * tests/test-sockets.c: Call gl_fd_to_handle.
46539
46540 2009-02-09  Bruno Haible  <bruno@clisp.org>
46541
46542         * doc/havelib.texi: Document the conventions on bi-arch systems.
46543
46544 2009-02-08  Bruno Haible  <bruno@clisp.org>
46545
46546         Document the AC_LIB_LINKFLAGS macro.
46547         * doc/havelib.texi: New file, mostly written on 2005-05-24.
46548         * doc/gnulib.texi: Include it.
46549
46550 2009-02-08  Bruno Haible  <bruno@clisp.org>
46551
46552         Fix wrong order of sections, compared to TOC.
46553         * doc/gnulib.texi: Include relocatable-maint.texi after the
46554         "Regular expressions" node, not before.
46555
46556 2009-02-08  Bruno Haible  <bruno@clisp.org>
46557
46558         Tests for module 'unicase/totitle'.
46559         * modules/unicase/totitle-tests: New file.
46560
46561         Tests for module 'unicase/tolower'.
46562         * modules/unicase/tolower-tests: New file.
46563
46564         Tests for module 'unicase/toupper'.
46565         * modules/unicase/toupper-tests: New file.
46566         * tests/unicase/test-mapping-part1.h: New file.
46567         * tests/unicase/test-mapping-part2.h: New file.
46568
46569         New module 'unicase/totitle'.
46570         * modules/unicase/totitle: New file.
46571         * lib/unicase/totitle.c: New file.
46572
46573         New module 'unicase/tolower'.
46574         * modules/unicase/tolower: New file.
46575         * lib/unicase/tolower.c: New file.
46576
46577         New module 'unicase/toupper'.
46578         * modules/unicase/toupper: New file.
46579         * lib/unicase/toupper.c: New file.
46580         * lib/unicase/simple-mapping.h: New file.
46581
46582         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
46583         (mapping_table): New structure.
46584         (output_simple_mapping): New function.
46585         (main): Invoke output_simple_mapping_test and output_simple_mapping.
46586         * modules/gen-uni-tables (Description): Update.
46587         * lib/unicase/toupper.h: New file, automatically generated by
46588         gen-uni-tables.
46589         * lib/unicase/tolower.h: New file, automatically generated by
46590         gen-uni-tables.
46591         * lib/unicase/totitle.h: New file, automatically generated by
46592         gen-uni-tables.
46593         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
46594         gen-uni-tables.
46595         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
46596         gen-uni-tables.
46597         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
46598         gen-uni-tables.
46599
46600         New module 'unicase/base'.
46601         * modules/unicase/base: New file.
46602         * lib/unicase.h: New file.
46603
46604 2009-02-08  Bruno Haible  <bruno@clisp.org>
46605
46606         New module 'uniwbrk/ulc-wordbreaks'.
46607         * modules/uniwbrk/ulc-wordbreaks: New file.
46608         * lib/uniwbrk/ulc-wordbreaks.c: New file.
46609
46610         New module 'uniwbrk/u32-wordbreaks'.
46611         * modules/uniwbrk/u32-wordbreaks: New file.
46612         * lib/uniwbrk/u32-wordbreaks.c: New file.
46613
46614         New module 'uniwbrk/u16-wordbreaks'.
46615         * modules/uniwbrk/u16-wordbreaks: New file.
46616         * lib/uniwbrk/u16-wordbreaks.c: New file.
46617
46618         New module 'uniwbrk/u8-wordbreaks'.
46619         * modules/uniwbrk/u8-wordbreaks: New file.
46620         * lib/uniwbrk/u8-wordbreaks.c: New file.
46621         * lib/uniwbrk/u-wordbreaks.h: New file.
46622
46623         New module 'uniwbrk/table'.
46624         * modules/uniwbrk/table: New file.
46625         * lib/uniwbrk/wbrktable.h: New file.
46626         * lib/uniwbrk/wbrktable.c: New file.
46627
46628         New module 'uniwbrk/wordbreak-property'.
46629         * modules/uniwbrk/wordbreak-property: New file.
46630         * lib/uniwbrk/wordbreak-property.c: New file.
46631
46632         * lib/gen-uni-tables.c (WBP_*): New enum items.
46633         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
46634         (unicode_org_wbp): New variable.
46635         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
46636         New functions.
46637         (wbp_table): New structure.
46638         (output_wbp, output_wbrk_tables): New functions.
46639         (main): Accept additional argument. Invoke fill_org_wbp,
46640         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
46641         output_wbrk_tables.
46642         * modules/gen-uni-tables (Description): Update.
46643         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
46644         gen-uni-tables.
46645
46646         New module 'uniwbrk/base'.
46647         * modules/uniwbrk/base: New file.
46648         * lib/uniwbrk.h: New file.
46649
46650 2009-02-08  Bruno Haible  <bruno@clisp.org>
46651
46652         Update to Unicode 5.1.0.
46653         * lib/gen-uni-tables.c (is_property_alphabetic): Include
46654         U+2185..U+2188.
46655         (is_property_default_ignorable_code_point): Don't include characters
46656         of category Cc or Cs and not-a-characters.
46657         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
46658         U+0D79, U+109E, U+109F, U+A60C.
46659         * lib/unictype/bidi_of.h: Regenerated.
46660         * lib/unictype/blocks.h: Regenerated.
46661         * lib/unictype/categ_C.h: Regenerated.
46662         * lib/unictype/categ_Cf.h: Regenerated.
46663         * lib/unictype/categ_Cn.h: Regenerated.
46664         * lib/unictype/categ_L.h: Regenerated.
46665         * lib/unictype/categ_Ll.h: Regenerated.
46666         * lib/unictype/categ_Lm.h: Regenerated.
46667         * lib/unictype/categ_Lo.h: Regenerated.
46668         * lib/unictype/categ_Lu.h: Regenerated.
46669         * lib/unictype/categ_M.h: Regenerated.
46670         * lib/unictype/categ_Mc.h: Regenerated.
46671         * lib/unictype/categ_Me.h: Regenerated.
46672         * lib/unictype/categ_Mn.h: Regenerated.
46673         * lib/unictype/categ_N.h: Regenerated.
46674         * lib/unictype/categ_Nd.h: Regenerated.
46675         * lib/unictype/categ_Nl.h: Regenerated.
46676         * lib/unictype/categ_No.h: Regenerated.
46677         * lib/unictype/categ_P.h: Regenerated.
46678         * lib/unictype/categ_Pd.h: Regenerated.
46679         * lib/unictype/categ_Pe.h: Regenerated.
46680         * lib/unictype/categ_Pf.h: Regenerated.
46681         * lib/unictype/categ_Pi.h: Regenerated.
46682         * lib/unictype/categ_Po.h: Regenerated.
46683         * lib/unictype/categ_Ps.h: Regenerated.
46684         * lib/unictype/categ_S.h: Regenerated.
46685         * lib/unictype/categ_Sk.h: Regenerated.
46686         * lib/unictype/categ_Sm.h: Regenerated.
46687         * lib/unictype/categ_So.h: Regenerated.
46688         * lib/unictype/categ_of.h: Regenerated.
46689         * lib/unictype/combining.h: Regenerated.
46690         * lib/unictype/ctype_alnum.h: Regenerated.
46691         * lib/unictype/ctype_alpha.h: Regenerated.
46692         * lib/unictype/ctype_graph.h: Regenerated.
46693         * lib/unictype/ctype_lower.h: Regenerated.
46694         * lib/unictype/ctype_print.h: Regenerated.
46695         * lib/unictype/ctype_punct.h: Regenerated.
46696         * lib/unictype/ctype_upper.h: Regenerated.
46697         * lib/unictype/decdigit.h: Regenerated.
46698         * lib/unictype/digit.h: Regenerated.
46699         * lib/unictype/mirror.h: Regenerated.
46700         * lib/unictype/numeric.h: Regenerated.
46701         * lib/unictype/pr_alphabetic.h: Regenerated.
46702         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
46703         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
46704         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
46705         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
46706         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
46707         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
46708         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
46709         * lib/unictype/pr_combining.h: Regenerated.
46710         * lib/unictype/pr_dash.h: Regenerated.
46711         * lib/unictype/pr_decimal_digit.h: Regenerated.
46712         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
46713         * lib/unictype/pr_deprecated.h: Regenerated.
46714         * lib/unictype/pr_diacritic.h: Regenerated.
46715         * lib/unictype/pr_extender.h: Regenerated.
46716         * lib/unictype/pr_format_control.h: Regenerated.
46717         * lib/unictype/pr_grapheme_base.h: Regenerated.
46718         * lib/unictype/pr_grapheme_extend.h: Regenerated.
46719         * lib/unictype/pr_grapheme_link.h: Regenerated.
46720         * lib/unictype/pr_id_continue.h: Regenerated.
46721         * lib/unictype/pr_id_start.h: Regenerated.
46722         * lib/unictype/pr_ideographic.h: Regenerated.
46723         * lib/unictype/pr_ignorable_control.h: Regenerated.
46724         * lib/unictype/pr_lowercase.h: Regenerated.
46725         * lib/unictype/pr_math.h: Regenerated.
46726         * lib/unictype/pr_numeric.h: Regenerated.
46727         * lib/unictype/pr_other_alphabetic.h: Regenerated.
46728         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
46729         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
46730         * lib/unictype/pr_other_id_continue.h: Regenerated.
46731         * lib/unictype/pr_other_lowercase.h: Regenerated.
46732         * lib/unictype/pr_other_math.h: Regenerated.
46733         * lib/unictype/pr_punctuation.h: Regenerated.
46734         * lib/unictype/pr_sentence_terminal.h: Regenerated.
46735         * lib/unictype/pr_soft_dotted.h: Regenerated.
46736         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
46737         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
46738         * lib/unictype/pr_unified_ideograph.h: Regenerated.
46739         * lib/unictype/pr_uppercase.h: Regenerated.
46740         * lib/unictype/pr_xid_continue.h: Regenerated.
46741         * lib/unictype/pr_xid_start.h: Regenerated.
46742         * lib/unictype/pr_zero_width.h: Regenerated.
46743         * lib/unictype/scripts.h: Regenerated.
46744         * lib/unictype/scripts_byname.gperf: Regenerated.
46745         * lib/unictype/sy_java_ident.h: Regenerated.
46746         * lib/unilbrk/lbrkprop1.h: Regenerated.
46747         * lib/unilbrk/lbrkprop2.h: Regenerated.
46748         * tests/unictype/test-categ_C.c: Regenerated.
46749         * tests/unictype/test-categ_Cf.c: Regenerated.
46750         * tests/unictype/test-categ_Cn.c: Regenerated.
46751         * tests/unictype/test-categ_L.c: Regenerated.
46752         * tests/unictype/test-categ_Ll.c: Regenerated.
46753         * tests/unictype/test-categ_Lm.c: Regenerated.
46754         * tests/unictype/test-categ_Lo.c: Regenerated.
46755         * tests/unictype/test-categ_Lu.c: Regenerated.
46756         * tests/unictype/test-categ_M.c: Regenerated.
46757         * tests/unictype/test-categ_Mc.c: Regenerated.
46758         * tests/unictype/test-categ_Me.c: Regenerated.
46759         * tests/unictype/test-categ_Mn.c: Regenerated.
46760         * tests/unictype/test-categ_N.c: Regenerated.
46761         * tests/unictype/test-categ_Nd.c: Regenerated.
46762         * tests/unictype/test-categ_Nl.c: Regenerated.
46763         * tests/unictype/test-categ_No.c: Regenerated.
46764         * tests/unictype/test-categ_P.c: Regenerated.
46765         * tests/unictype/test-categ_Pd.c: Regenerated.
46766         * tests/unictype/test-categ_Pe.c: Regenerated.
46767         * tests/unictype/test-categ_Pf.c: Regenerated.
46768         * tests/unictype/test-categ_Pi.c: Regenerated.
46769         * tests/unictype/test-categ_Po.c: Regenerated.
46770         * tests/unictype/test-categ_Ps.c: Regenerated.
46771         * tests/unictype/test-categ_S.c: Regenerated.
46772         * tests/unictype/test-categ_Sk.c: Regenerated.
46773         * tests/unictype/test-categ_Sm.c: Regenerated.
46774         * tests/unictype/test-categ_So.c: Regenerated.
46775         * tests/unictype/test-ctype_alnum.c: Regenerated.
46776         * tests/unictype/test-ctype_alpha.c: Regenerated.
46777         * tests/unictype/test-ctype_graph.c: Regenerated.
46778         * tests/unictype/test-ctype_lower.c: Regenerated.
46779         * tests/unictype/test-ctype_print.c: Regenerated.
46780         * tests/unictype/test-ctype_punct.c: Regenerated.
46781         * tests/unictype/test-ctype_upper.c: Regenerated.
46782         * tests/unictype/test-decdigit.h: Regenerated.
46783         * tests/unictype/test-digit.h: Regenerated.
46784         * tests/unictype/test-numeric.h: Regenerated.
46785         * tests/unictype/test-pr_alphabetic.c: Regenerated.
46786         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
46787         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
46788         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
46789         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
46790         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
46791         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
46792         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
46793         * tests/unictype/test-pr_combining.c: Regenerated.
46794         * tests/unictype/test-pr_dash.c: Regenerated.
46795         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
46796         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
46797         * tests/unictype/test-pr_deprecated.c: Regenerated.
46798         * tests/unictype/test-pr_diacritic.c: Regenerated.
46799         * tests/unictype/test-pr_extender.c: Regenerated.
46800         * tests/unictype/test-pr_format_control.c: Regenerated.
46801         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
46802         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
46803         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
46804         * tests/unictype/test-pr_id_continue.c: Regenerated.
46805         * tests/unictype/test-pr_id_start.c: Regenerated.
46806         * tests/unictype/test-pr_ideographic.c: Regenerated.
46807         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
46808         * tests/unictype/test-pr_lowercase.c: Regenerated.
46809         * tests/unictype/test-pr_math.c: Regenerated.
46810         * tests/unictype/test-pr_numeric.c: Regenerated.
46811         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
46812         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
46813         Regenerated.
46814         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
46815         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
46816         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
46817         * tests/unictype/test-pr_other_math.c: Regenerated.
46818         * tests/unictype/test-pr_punctuation.c: Regenerated.
46819         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
46820         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
46821         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
46822         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
46823         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
46824         * tests/unictype/test-pr_uppercase.c: Regenerated.
46825         * tests/unictype/test-pr_xid_continue.c: Regenerated.
46826         * tests/unictype/test-pr_xid_start.c: Regenerated.
46827         * tests/unictype/test-pr_zero_width.c: Regenerated.
46828
46829         Update to Unicode 5.1.0.
46830         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
46831         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
46832         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
46833         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
46834         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
46835         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
46836         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
46837         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
46838         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
46839         (nonspacing_table_ind): Update.
46840         * tests/uniwidth/test-uc_width2.sh: Update expected result.
46841
46842         Update to Unicode 5.1.0.
46843         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
46844         code transform.
46845         * lib/uniname/uniname.c (unicode_character_name,
46846         unicode_name_character): Add the range 0x1Fxxx to the code transform.
46847         * lib/uniname/uninames.h: Regenerated.
46848         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
46849
46850 2009-02-07  Bruno Haible  <bruno@clisp.org>
46851
46852         Merge gen-ctype and gen-lbrk into a single program.
46853         * lib/gen-uni-tables.c: New file, incorporating
46854         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
46855         Add directory prefixes to the names of the generated files.
46856         * lib/unictype/gen-ctype.c: Remove file.
46857         * lib/unilbrk/gen-lbrk.c: Remove file.
46858         * modules/gen-uni-tables: New file.
46859         * modules/unictype/gen-ctype: Remove file.
46860         * modules/unilbrk/gen-lbrk: Remove file.
46861
46862 2009-02-07  Bruno Haible  <bruno@clisp.org>
46863
46864         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
46865
46866         New module 'unistr/u32-strcoll'.
46867         * modules/unistr/u32-strcoll: New file.
46868         * lib/unistr/u32-strcoll.c: New file.
46869
46870         New module 'unistr/u16-strcoll'.
46871         * modules/unistr/u16-strcoll: New file.
46872         * lib/unistr/u16-strcoll.c: New file.
46873
46874         New module 'unistr/u8-strcoll'.
46875         * modules/unistr/u8-strcoll: New file.
46876         * lib/unistr/u8-strcoll.c: New file.
46877         * lib/unistr/u-strcoll.h: New file.
46878
46879 2009-02-07  Bruno Haible  <bruno@clisp.org>
46880
46881         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
46882         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
46883         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
46884         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
46885         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
46886         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
46887
46888 2009-02-07  Bruno Haible  <bruno@clisp.org>
46889
46890         Make 64-bit clean.
46891         * lib/unictype/gen-ctype.c (output_predicate, output_category,
46892         output_combclass, output_bidi_category, output_decimal_digit,
46893         output_digit, output_numeric, output_mirror, output_scripts,
46894         output_ident_category): Use proper width specifier in format strings.
46895
46896 2009-02-07  Bruno Haible  <bruno@clisp.org>
46897
46898         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
46899         failure behaviour.
46900
46901 2009-02-07  Jim Meyering  <meyering@redhat.com>
46902
46903         regex: avoid compilation failure with upcoming gcc-4.4
46904         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
46905         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
46906         "... error: integer overflow in preprocessor expression".
46907
46908 2009-02-05  Ben Pfaff  <blp@gnu.org>
46909
46910         Fix link errors on Windows when close module is used.
46911         * modules/close: Add $(LIB_CLOSE) to Link section.
46912         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
46913         $(LIB_CLOSE) on Windows.
46914
46915 2009-02-05  Jim Meyering  <meyering@redhat.com>
46916
46917         still avoid unused-parameter warnings, but do it cleanly
46918         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
46919         (get_fs_usage): Cast to void instead.
46920         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
46921         (dev_from_mount_options, read_file_system_list): Cast to void.
46922         Prompted by Bruno Haible.
46923
46924 2009-02-04  Jim Meyering  <meyering@redhat.com>
46925
46926         fsusage.c: correct copyright year
46927         * lib/fsusage.c: Reflect year in which the change is pushed into
46928
46929         avoid misc. warnings
46930         * lib/fsusage.c (UNUSED_PARAM): Define.
46931         (get_fs_usage): Mark parameter "disk" as unused.
46932         * lib/getugroups.c (getgrent): Use "void" in prototype.
46933         * lib/mountlist.c: Mark unused parameters.
46934         (read_file_system_list): Declare a local with "const".
46935         * lib/nanosleep.c (getnow): Declare static.
46936         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
46937
46938         dirfd: set errno upon failure
46939         * lib/dirfd.c: Include <errno.h>.
46940         Set errno to ENOTSUP when returning -1.
46941         * modules/dirfd (Depends-on): Add errno.
46942         Suggested by John Kodis <kodis@comcast.net>.
46943
46944 2009-02-01  Bruno Haible  <bruno@clisp.org>
46945
46946         Don't assume sizeof (long) >= sizeof (void *).
46947         * lib/memcmp.c: Include stdint.h.
46948         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
46949         srcp2 to 'const byte *'.
46950         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
46951         types to uintptr_t.
46952         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
46953         * modules/memcmp (Depends-on): Add stdint.
46954         Reported by Ozkan Sezer <sezeroz@gmail.com>.
46955
46956 2009-01-30  Eric Blake  <ebb9@byu.net>
46957
46958         fix more require-before-expand issues
46959         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
46960         expand, AC_PROG_AWK.
46961         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
46962
46963 2009-01-28  Eric Blake  <ebb9@byu.net>
46964
46965         version-etc: use consistent URL formatting
46966         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
46967         Improve formatting.  Use fputs for string without %.
46968
46969 2009-01-28  Jim Meyering  <meyering@redhat.com>
46970
46971         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
46972         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
46973         "underquoted definition of NAME" from autoconf-2.59.
46974
46975 2009-01-28  Bruno Haible  <bruno@clisp.org>
46976
46977         * doc/gnulib.texi: Add "Obsolete modules" to index.
46978
46979 2009-01-28  Jim Meyering  <meyering@redhat.com>
46980
46981         useless-if-before-free: recognize more variants
46982         * build-aux/useless-if-before-free: Also recognize e.g.,
46983         if (NULL != p) free (p);
46984
46985 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
46986
46987         test-getaddrinfo: skip (don't fail) this test when there's no network
46988         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
46989         on the presumption that it means you lack network access.
46990
46991 2009-01-26  Jim Meyering  <meyering@redhat.com>
46992
46993         fflush: avoid warnings on modern systems
46994         * lib/fflush.c (rpl_fflush): Move declarations of locals,
46995         pos and result, into scopes where they're used.
46996
46997 2009-01-26  Eric Blake  <ebb9@byu.net>
46998
46999         Silence warning reintroduced by recent extensions patch.
47000         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
47001         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
47002         autoconf.
47003
47004         Backport improved autoconf semantics of AC_DEFUN_ONCE.
47005         * m4/00gnulib.m4: New file.
47006         * gnulib-tool (func_get_filelist): Always use it.
47007         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
47008         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
47009
47010 2009-01-25  Bruno Haible  <bruno@clisp.org>
47011
47012         Make test-quotearg work on MacOS X and AIX.
47013         * tests/test-quotearg.sh: New file.
47014         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
47015         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
47016         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
47017         include <libintl.h>.
47018         (fake_locale): Remove variable.
47019         (gettext, dgettext, dcgettext): Remove functions.
47020         (main): Instead of setting a fake locale, set a real locale. Call
47021         textdomain and bindtextdomain.
47022         * modules/quotearg-tests (Files): Add the new files.
47023         (Depends-on): Add gettext, setenv, unsetenv.
47024         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
47025         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
47026         Augment TESTS_ENVIRONMENT.
47027
47028 2009-01-25  Bruno Haible  <bruno@clisp.org>
47029
47030         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
47031         fr_FR.ISO8859-1 locale on MacOS X.
47032         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
47033         ja_JP.eucJP locale on MacOS X.
47034         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
47035         zh_CN.GB18030 locale on MacOS X.
47036
47037 2009-01-25  Bruno Haible  <bruno@clisp.org>
47038
47039         Avoid link errors on MacOS X 10.3.
47040         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
47041         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
47042
47043 2009-01-25  Bruno Haible  <bruno@clisp.org>
47044
47045         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
47046         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
47047         * modules/pipe (Files): Remove m4/posix_spawn.m4.
47048         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
47049         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
47050         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
47051         posix_spawnattr_init, posix_spawnattr_setsigmask,
47052         posix_spawnattr_setflags, posix_spawnattr_destroy.
47053
47054         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
47055         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
47056         * modules/execute (Files): Remove m4/posix_spawn.m4.
47057         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
47058         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
47059         posix_spawnattr_init, posix_spawnattr_setsigmask,
47060         posix_spawnattr_setflags, posix_spawnattr_destroy.
47061
47062 2009-01-25  Bruno Haible  <bruno@clisp.org>
47063
47064         * lib/glthread/threadlib.c: Include <stdlib.h>.
47065
47066 2009-01-25  Bruno Haible  <bruno@clisp.org>
47067
47068         * lib/glthread/threadlib.c (dummy): New declaration.
47069
47070 2009-01-25  Bruno Haible  <bruno@clisp.org>
47071
47072         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
47073         multibyte characters also for the GB18030 encoding. Don't crash when
47074         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
47075
47076 2009-01-25  Bruno Haible  <bruno@clisp.org>
47077
47078         Avoid redefining 'struct random_data' on OSF/1 5.1.
47079         * lib/stdlib.in.h: Include <random.h> if it exists.
47080         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
47081         HAVE_RANDOM_H. Include <random.h> when testing whether
47082         'struct random_data' exists.
47083         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
47084
47085 2009-01-25  Bruno Haible  <bruno@clisp.org>
47086
47087         Don't install charset.alias on MacOS X >= 10.3.
47088         * lib/localcharset.c (DARWIN7): New macro.
47089         (get_charset_aliases): Hardcode the result for Darwin7.
47090         * modules/localcharset (install-exec-local): Don't install
47091         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
47092
47093 2009-01-25  Bruno Haible  <bruno@clisp.org>
47094
47095         Don't install charset.alias on mingw and Cygwin.
47096         * modules/localcharset (install-exec-local): Don't install
47097         charset.alias on mingw and Cygwin, if the file does not yet exist.
47098         The result for these platforms is hardcoded in localcharset.c.
47099
47100 2009-01-25  Bruno Haible  <bruno@clisp.org>
47101
47102         Make it possible again to use AC_GNU_SOURCE together with gnulib.
47103         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
47104         before requiring AC_USE_SYSTEM_EXTENSIONS.
47105
47106 2009-01-25  Jim Meyering  <meyering@redhat.com>
47107
47108         c-strtod: avoid warnings
47109         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
47110         "assignment discards qualifiers from pointer target type" warnings.
47111
47112 2009-01-24  Bruno Haible  <bruno@clisp.org>
47113
47114         Add support for non-UTF-8 locales on MacOS X.
47115         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
47116         canonical encodings. For Darwin 7 and newer, don't map traditional
47117         encodings to UTF-8.
47118         Reported by Vincent Lefevre <vincent@vinc17.org>
47119         at <http://savannah.gnu.org/bugs/?25235>.
47120
47121 2009-01-24  Bruno Haible  <bruno@clisp.org>
47122
47123         * doc/gnulib.texi (Obsolete modules): New section.
47124         Reported by Mike Frysinger <vapier@gentoo.org>.
47125
47126 2009-01-24  Bruno Haible  <bruno@clisp.org>
47127
47128         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
47129         (%.dvi): New rule.
47130
47131 2009-01-24  Bruno Haible  <bruno@clisp.org>
47132
47133         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
47134         Reported by Eric Blake.
47135
47136 2009-01-24  Bruno Haible  <bruno@clisp.org>
47137
47138         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
47139         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
47140         Reported by Gary V. Vaughan <gary@gnu.org>.
47141
47142 2009-01-24  Bruno Haible  <bruno@clisp.org>
47143
47144         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
47145
47146 2009-01-23  Bruno Haible  <bruno@clisp.org>
47147
47148         Make c-strtod, c-strtold usable in libraries.
47149         * lib/c-strtod.c: Include string.h instead of xalloc.h.
47150         (C_STRTOD): Call strdup instead of xstrdup.
47151         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
47152         * modules/c-strtold (Depends-on): Likewise.
47153         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
47154         * NEWS: Mention the change.
47155         Reported by Michael Gold <mgold@ncf.ca>.
47156
47157 2009-01-23  Jim Meyering  <meyering@redhat.com>
47158
47159         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
47160         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
47161         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
47162
47163 2009-01-23  Simon Josefsson  <simon@josefsson.org>
47164
47165         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
47166         GNU CoreUtils.
47167         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
47168         * modules/version-etc (Description): Update.
47169
47170 2009-01-22  Bruno Haible  <bruno@clisp.org>
47171
47172         Cache the C locale object.
47173         * lib/c-strtod.c (c_locale_cache): New variable.
47174         (c_locale): New function.
47175         (C_STRTOD): Use it, and don't call freelocale.
47176         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
47177         Suggested by Paolo Bonzini.
47178
47179 2009-01-21  Bruno Haible  <bruno@clisp.org>
47180
47181         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
47182         conditions other than overflow.
47183
47184 2009-01-21  Bruno Haible  <bruno@clisp.org>
47185
47186         * lib/c-strtod.c: Include errno.h.
47187         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
47188         value from STRTOD_L and STRTOD.
47189
47190 2009-01-21  Bruno Haible  <bruno@clisp.org>
47191         and Jim Meyering  <meyering@redhat.com>
47192
47193         nanosleep: skip configure test (fail it) for apple universal builds
47194         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
47195         universal builds, assume that nanosleep does not work.
47196         * modules/nanosleep (Depends-on): Add multiarch.
47197
47198         mktime: skip configure test (fail it) for apple universal builds
47199         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
47200         universal builds, assume that mktime does not work.
47201         * modules/mktime (Depends-on): Add multiarch.
47202
47203 2009-01-21  Eric Blake  <ebb9@byu.net>
47204
47205         multiarch: avoid expand-before-require warning
47206         * modules/multiarch (configure.ac): Require, rather than expand,
47207         gl_MULTIARCH.
47208         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
47209         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
47210         enforce that all clients require it.  Partial reversion of
47211         2008-12-29 patch.
47212
47213         error: avoid expand-before-require warning
47214         * modules/errno (configure.ac): Require, rather than expand,
47215         gl_HEADER_ERRNO_H.
47216         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
47217         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
47218         enforce that all clients require it.
47219
47220         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
47221         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
47222         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
47223         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
47224
47225 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
47226
47227         Revert:
47228         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
47229
47230         regex: do not depend on obsolete modules.
47231         * modules/regex: Remove memcmp and memmove.
47232
47233 2009-01-20  Bruno Haible  <bruno@clisp.org>
47234
47235         Make the 'link' module link on Windows NT 4.
47236         * lib/link.c (_WIN32_WINNT): Don't define.
47237         (CreateHardLinkFuncType): New type.
47238         (CreateHardLinkFunc, initialized): New variables.
47239         (initialize): New function.
47240         (link): Invoke CreateHardLink indirectly through the function pointer.
47241
47242 2009-01-20  Bruno Haible  <bruno@clisp.org>
47243
47244         Fix compilation failure on mingw.
47245         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
47246
47247 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
47248
47249         * doc/c-strtod.texi: Mention a couple of restrictions.
47250
47251 2009-01-20  Jim Meyering  <meyering@redhat.com>
47252
47253         gettimeofday: move more declarations out of functions
47254         * lib/gettimeofday.c: Move extern declarations of tzset and
47255         gmtime out of containing functions.  Prompted by Bruno Haible.
47256
47257 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
47258
47259         regex: do not depend on obsolete modules.
47260         * modules/regex: Remove memcmp and memmove.
47261
47262 2009-01-19  Bruno Haible  <bruno@clisp.org>
47263
47264         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
47265         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
47266         gl_BIGENDIAN, not AC_C_BIGENDIAN.
47267         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
47268         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
47269
47270 2009-01-19  Bruno Haible  <bruno@clisp.org>
47271
47272         * tests/test-link.c: Include <errno.h>.
47273         (main): Exit with code 77 when a hard link cannot be created due to
47274         the file system.
47275         * tests/test-link.sh: Skip test when a hard link cannot be created due
47276         to the file system.
47277         Suggested by Eric Blake.
47278
47279 2009-01-19  Martin Lambers  <marlam@marlam.de>
47280
47281         * modules/link-tests: New file.
47282         * tests/test-link.sh: New file.
47283         * tests/test-link.c: New file.
47284
47285 2009-01-19  Eric Blake  <ebb9@byu.net>
47286
47287         doc: mention another function added in cygwin 1.7.0
47288         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
47289         Another new function in cygwin 1.7.
47290
47291 2009-01-19  Bruno Haible  <bruno@clisp.org>
47292
47293         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
47294         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
47295         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
47296         gl_BIGENDIAN, not AC_C_BIGENDIAN.
47297         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
47298         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
47299         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
47300         * m4/md4.m4 (gl_MD4): Likewise.
47301         * m4/md5.m4 (gl_MD5): Likewise.
47302         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
47303         * m4/sha1.m4 (gl_SHA1): Likewise.
47304         * m4/sha256.m4 (gl_SHA256): Likewise.
47305         * m4/sha512.m4 (gl_SHA512): Likewise.
47306
47307 2009-01-19  Bruno Haible  <bruno@clisp.org>
47308
47309         * modules/uniname/uniname-tests (Depends-on): Add progname.
47310         * tests/uniname/test-uninames.c: Include progname.h.
47311         (main): Call set_program_name.
47312
47313         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
47314         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
47315         (main): Call set_program_name.
47316
47317         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
47318         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
47319         (main): Call set_program_name.
47320
47321         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
47322         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
47323         (main): Call set_program_name.
47324
47325         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
47326         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
47327         (main): Call set_program_name.
47328
47329         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
47330         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
47331         (main): Call set_program_name.
47332
47333         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
47334         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
47335         (main): Call set_program_name.
47336
47337         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
47338         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
47339         (main): Call set_program_name.
47340
47341         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
47342         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
47343         (main): Call set_program_name.
47344
47345 2009-01-19  Eric Blake  <ebb9@byu.net>
47346
47347         test-unistd: test previous patch
47348         * tests/test-unistd.c: Test *_FILENO macros.
47349
47350         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
47351         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47352         Guarantee a definition.
47353         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
47354         * modules/unistd-safer (Depends-on): Add dependency on unistd.
47355         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
47356         * lib/dup-safer.c (STDERR_FILENO): Likewise.
47357         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47358         Likewise.
47359         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
47360         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
47361         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47362         Likewise.
47363         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
47364         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
47365         (STDERR_FILENO): Likewise.
47366         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
47367         (STDERR_FILENO): Likewise.
47368         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
47369         (STDERR_FILENO): Likewise.
47370         Reported by Elbert Pol.
47371
47372 2009-01-19  Eric Blake  <ebb9@byu.net>
47373
47374         doc: mention more functions added in cygwin 1.7.0
47375         * doc/posix-functions/abort.texi (abort): Update wording related
47376         to cygwin.
47377         * doc/posix-functions/daylight.texi (daylight): Likewise.
47378         * doc/posix-functions/optarg.texi (optarg): Likewise.
47379         * doc/posix-functions/optarg.texi (opterr): Likewise.
47380         * doc/posix-functions/optarg.texi (optind): Likewise.
47381         * doc/posix-functions/optarg.texi (optopt): Likewise.
47382         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
47383         worked in 1.5.x, and was withdrawn in 1.7.
47384         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
47385         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
47386         cygwin versions.
47387         * doc/posix-functions/perror.texi (perror): Likewise.
47388         * doc/posix-functions/printf.texi (printf): Likewise.
47389         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
47390         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
47391         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
47392         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
47393         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
47394         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
47395         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
47396         Likewise.
47397         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
47398         Likewise.
47399         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
47400         this function.
47401         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
47402         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
47403         Likewise.
47404         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
47405         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
47406         * doc/posix-functions/confstr.texi (confstr): Likewise.
47407         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
47408         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
47409         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
47410         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
47411         * doc/posix-functions/fputws.texi (fputws): Likewise.
47412         * doc/posix-functions/fwide.texi (fwide): Likewise.
47413         * doc/posix-functions/getwc.texi (getwc): Likewise.
47414         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
47415         * doc/posix-functions/putwc.texi (putwc): Likewise.
47416         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
47417         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
47418         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
47419         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
47420         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
47421         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
47422         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
47423         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
47424         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
47425         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
47426         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
47427
47428 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
47429
47430         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
47431         * lib/ioctl.c: Include <sys/ioctl.h>.
47432
47433 2009-01-19  Simon Josefsson  <simon@josefsson.org>
47434
47435         * modules/getdate-tests (Depends-on): Add progname.
47436         * tests/test-getdate.c: Use progname module, to avoid link errors
47437         on non-glibc systems.
47438
47439 2009-01-18  Simon Josefsson  <simon@josefsson.org>
47440
47441         * modules/filenamecat-tests (Depends-on): Add progname.
47442         * modules/fstrcmp-tests (Depends-on): Likewise.
47443
47444         * tests/test-filenamecat.c: Use progname module, to avoid link
47445         errors on non-glibc systems.
47446         * tests/test-fstrcmp.c: Likewise.
47447
47448 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
47449
47450         gettimeofday: avoid warning: nested extern declaration of 'localtime'
47451         * lib/gettimeofday.c: Move extern declaration out of function.
47452
47453 2009-01-18  Bruno Haible  <bruno@clisp.org>
47454
47455         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
47456         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
47457         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
47458
47459 2009-01-18  Bruno Haible  <bruno@clisp.org>
47460
47461         * lib/strftime.c (MEMPCPY): Remove unused macro.
47462         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
47463
47464 2009-01-18  Martin Lambers  <marlam@marlam.de>
47465
47466         New module 'link'.
47467         * lib/unistd.in.h (link): New declaration.
47468         * lib/link.c: New file.
47469         * m4/link.m4: New file.
47470         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
47471         HAVE_LINK.
47472         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
47473         * modules/link: New file.
47474         * doc/posix-functions/link.texi: Mention the new module.
47475
47476 2009-01-18  Bruno Haible  <bruno@clisp.org>
47477
47478         * tests/test-avltree_list.c (main): Call set_program_name.
47479         * tests/test-avltree_oset.c (main): Likewise.
47480         * tests/test-obstack-printf.c: Include progname.h.
47481         (main): Call set_program_name.
47482         * tests/test-quotearg.c: Include progname.h.
47483         (main): Call set_program_name.
47484         * tests/test-xmemdup0.c: Include progname.h.
47485         (main): Call set_program_name.
47486
47487 2009-01-18  Bruno Haible  <bruno@clisp.org>
47488
47489         New module 'alphasort'.
47490         * lib/dirent.in.h (alphasort): New declaration.
47491         * lib/alphasort.c: New file, from glibc with modifications.
47492         * m4/alphasort.m4: New file.
47493         * modules/alphasort: New file.
47494         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
47495         HAVE_ALPHASORT.
47496         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
47497         HAVE_ALPHASORT.
47498         * doc/posix-functions/alphasort.texi: Mention the new module and the
47499         portability problems.
47500
47501 2009-01-18  Bruno Haible  <bruno@clisp.org>
47502
47503         New module 'scandir'.
47504         * lib/dirent.in.h (scandir): New declaration.
47505         * lib/scandir.c: New file, from glibc with modifications.
47506         * m4/scandir.m4: New file.
47507         * modules/scandir: New file.
47508         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
47509         HAVE_SCANDIR.
47510         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
47511         HAVE_SCANDIR.
47512         * doc/posix-functions/scandir.texi: Mention the new module and the
47513         portability problems.
47514
47515 2009-01-17  Bruno Haible  <bruno@clisp.org>
47516
47517         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
47518         Update documentation.
47519         (func_remove_suffix): Escape all dots in the suffix. Update
47520         documentation.
47521         (func_filter_filelist): Update documentation.
47522         Reported by Ralf Wildenhues.
47523
47524 2009-01-17  Bruno Haible  <bruno@clisp.org>
47525
47526         * modules/dprintf-posix-tests: New file.
47527         * tests/test-dprintf-posix.sh: New file.
47528         * tests/test-dprintf-posix.c: New file.
47529
47530         New modules 'dprintf', 'dprintf-posix'.
47531         * lib/stdio.in.h (dprintf): New declaration.
47532         * lib/dprintf.c: New file.
47533         * m4/dprintf.m4: New file.
47534         * m4/dprintf-posix.m4: New file.
47535         * modules/dprintf: New file.
47536         * modules/dprintf-posix: New file.
47537         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
47538         HAVE_DPRINTF, REPLACE_DPRINTF.
47539         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
47540         HAVE_DPRINTF, REPLACE_DPRINTF.
47541         * doc/posix-functions/dprintf.texi: Mention the new modules.
47542
47543 2009-01-17  Bruno Haible  <bruno@clisp.org>
47544
47545         * modules/vdprintf-posix-tests: New file.
47546         * tests/test-vdprintf-posix.sh: New file.
47547         * tests/test-vdprintf-posix.c: New file.
47548
47549         New modules 'vdprintf', 'vdprintf-posix'.
47550         * lib/stdio.in.h (vdprintf): New declaration.
47551         * lib/vdprintf.c: New file.
47552         * m4/vdprintf.m4: New file.
47553         * m4/vdprintf-posix.m4: New file.
47554         * modules/vdprintf: New file.
47555         * modules/vdprintf-posix: New file.
47556         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
47557         HAVE_VDPRINTF, REPLACE_VDPRINTF.
47558         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
47559         HAVE_VDPRINTF, REPLACE_VDPRINTF.
47560         * doc/posix-functions/vdprintf.texi: Mention the new modules.
47561
47562 2009-01-17  Bruno Haible  <bruno@clisp.org>
47563
47564         Fix replacement of fopen on mingw.
47565         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
47566         mingw.
47567
47568 2009-01-17  Bruno Haible  <bruno@clisp.org>
47569
47570         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
47571         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
47572
47573 2009-01-17  Bruno Haible  <bruno@clisp.org>
47574
47575         Avoid test-fflush2.sh failure on mingw.
47576         * tests/test-fflush2.c: Include binary-io.h.
47577         (main): Put standard input into binary mode.
47578         * modules/fflush-tests (Depends-on): Add binary-io.
47579
47580 2009-01-17  Bruno Haible  <bruno@clisp.org>
47581
47582         * lib/wchar.in.h: In another particular situation, include only the
47583         system's <wchar.h> file.
47584         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
47585         Reported by Albert Chin-A-Young <china@thewrittenword.com>
47586         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
47587
47588 2009-01-17  Bruno Haible  <bruno@clisp.org>
47589
47590         Support for stripping executables in --enable-relocatable.
47591         * build-aux/install-reloc: Expect one more argument, or an environment
47592         variable RELOC_STRIP_PROG. If set, strip the destination program and
47593         its wrapper.
47594         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
47595         RELOC_STRIP_PROG.
47596         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
47597         to set RELOCATABLE_STRIP.
47598         * NEWS: Mention the new Makefile requirement.
47599
47600 2009-01-17  Bruno Haible  <bruno@clisp.org>
47601
47602         * build-aux/install-reloc: Remove debugging information left over by
47603         C compiler on MacOS X.
47604
47605 2009-01-17  Bruno Haible  <bruno@clisp.org>
47606
47607         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
47608         * lib/progreloc.c (find_executable): Fix type of pointer passed to
47609         _NSGetExecutablePath.
47610
47611 2009-01-16  Jim Meyering  <meyering@redhat.com>
47612
47613         strerror: avoid warnings about discarding "const"
47614         * lib/strerror.c (rpl_strerror): Instead of returning a const
47615         string from each and every "case", use a variable, and add a single
47616         cast after the switch.
47617
47618 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
47619
47620         * lib/arpa_inet.in.h: Add extern "C" block for C++.
47621
47622 2009-01-16  Bruno Haible  <bruno@clisp.org>
47623
47624         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
47625         array initializer syntax that also works in C++ mode.
47626         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47627
47628 2009-01-16  Jim Meyering  <meyering@redhat.com>
47629
47630         poll: suppress a warning
47631         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
47632         to ignore "...unsigned expression < 0 is always false" warnings.
47633
47634 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
47635
47636         poll: remove declarations of unused variables
47637         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
47638         sockbuf and optlen.
47639
47640 2009-01-15  Bruno Haible  <bruno@clisp.org>
47641
47642         Make fflush-after-ungetc POSIX compliant on BSD systems.
47643         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
47644         (clear_ungetc_buffer): Implement also for other systems.
47645         (rpl_fflush): On glibc systems, invoke
47646         clear_ungetc_buffer_preserving_position. Otherwise, invoke
47647         clear_ungetc_buffer after fetching the stream's position, not before.
47648
47649 2009-01-15  Bruno Haible  <bruno@clisp.org>
47650
47651         Make fflush-after-ungetc POSIX compliant on glibc systems.
47652         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
47653         after ungetc.
47654         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
47655         (rpl_fflush): On glibc systems, simply call the system's fflush
47656         function after clearing the ungetc buffer.
47657         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
47658         Instead, lseek only to the end of file, then use the system's fseeko
47659         for the rest. On glibc systems, reset the EOF indicator bit.
47660
47661 2009-01-15  Jim Meyering  <meyering@redhat.com>
47662
47663         openmp.m4: revert quote-adding change, for portability to older autoconf
47664         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
47665         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
47666         Simon Josefsson noticed the problem when using autoconf-2.61.
47667
47668 2009-01-15  Bruno Haible  <bruno@clisp.org>
47669
47670         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
47671         * tests/test-fflush2.c (ASSERT): Always fail.
47672         (main): Add two tests for fflush() after ungetc(), taking into account
47673         the Austin Group's clarification.
47674         Suggested by Eric Blake.
47675
47676 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
47677
47678         mktime.m4: remove K&R-style function prototypes
47679         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
47680         for the Sun C++ compiler.
47681
47682 2009-01-14  Bruno Haible  <bruno@clisp.org>
47683
47684         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
47685         while including <wchar.h>.
47686         * lib/wchar.in.h: In two particular situations on HP-UX, include only
47687         the system's <wchar.h> file.
47688         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47689
47690 2009-01-14  Bruno Haible  <bruno@clisp.org>
47691
47692         * m4/csharp.m4: Don't mention gettext on the serial number line.
47693         * m4/csharpexec.m4: Likewise.
47694         * m4/eaccess.m4: Likewise.
47695         * m4/javaexec.m4: Likewise.
47696         * m4/sig_atomic_t.m4: Likewise.
47697         * m4/tmpdir.m4: Likewise.
47698         * m4/intldir.m4: Bump gettext version.
47699         * m4/lib-ld.m4: Likewise.
47700
47701 2009-01-14  Bruno Haible  <bruno@clisp.org>
47702
47703         * lib/progname.c (set_program_name): Add more comments.
47704         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
47705
47706 2009-01-14  Simon Josefsson  <simon@josefsson.org>
47707
47708         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
47709         were sys/stat.h does not define it.
47710
47711 2009-01-14  Jim Meyering  <meyering@redhat.com>
47712
47713         many *.m4 files: improve m4 quoting
47714         99% of this change was performed by running the following commands:
47715         git ls-files | grep '\.m4$' | xargs perl -pi \
47716           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
47717           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
47718           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
47719           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
47720         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
47721         The remainder were to add Copyright dates, increment serial numbers,
47722         undo some changes in comments, exclude m4/intl.m4, and add quotes
47723         around the "1" in ",1" where the unusual spacing prohibited the
47724         above regexps from doing the job.  For more details, see
47725         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
47726         * m4/acl.m4: Modified.
47727         * m4/afs.m4: Likewise.
47728         * m4/alloca.m4: Likewise.
47729         * m4/argp.m4: Likewise.
47730         * m4/argz.m4: Likewise.
47731         * m4/atexit.m4: Likewise.
47732         * m4/bison-i18n.m4: Likewise.
47733         * m4/bison.m4: Likewise.
47734         * m4/byteswap.m4: Likewise.
47735         * m4/c-stack.m4: Likewise.
47736         * m4/c-strtod.m4: Likewise.
47737         * m4/calloc.m4: Likewise.
47738         * m4/canonicalize-lgpl.m4: Likewise.
47739         * m4/chown.m4: Likewise.
47740         * m4/clock_time.m4: Likewise.
47741         * m4/codeset.m4: Likewise.
47742         * m4/copy-file.m4: Likewise.
47743         * m4/csharp.m4: Likewise.
47744         * m4/csharpcomp.m4: Likewise.
47745         * m4/csharpexec.m4: Likewise.
47746         * m4/d-ino.m4: Likewise.
47747         * m4/d-type.m4: Likewise.
47748         * m4/dirfd.m4: Likewise.
47749         * m4/double-slash-root.m4: Likewise.
47750         * m4/eaccess.m4: Likewise.
47751         * m4/eealloc.m4: Likewise.
47752         * m4/environ.m4: Likewise.
47753         * m4/errno_h.m4: Likewise.
47754         * m4/euidaccess.m4: Likewise.
47755         * m4/execute.m4: Likewise.
47756         * m4/fatal-signal.m4: Likewise.
47757         * m4/fchdir.m4: Likewise.
47758         * m4/fcntl_h.m4: Likewise.
47759         * m4/fileblocks.m4: Likewise.
47760         * m4/filenamecat.m4: Likewise.
47761         * m4/findprog.m4: Likewise.
47762         * m4/flexmember.m4: Likewise.
47763         * m4/fnmatch.m4: Likewise.
47764         * m4/fopen.m4: Likewise.
47765         * m4/fpending.m4: Likewise.
47766         * m4/fprintf-posix.m4: Likewise.
47767         * m4/free.m4: Likewise.
47768         * m4/frexp.m4: Likewise.
47769         * m4/frexpl.m4: Likewise.
47770         * m4/fsusage.m4: Likewise.
47771         * m4/ftruncate.m4: Likewise.
47772         * m4/gc-camellia.m4: Likewise.
47773         * m4/gc-random.m4: Likewise.
47774         * m4/gc.m4: Likewise.
47775         * m4/getaddrinfo.m4: Likewise.
47776         * m4/getcwd-abort-bug.m4: Likewise.
47777         * m4/getcwd-path-max.m4: Likewise.
47778         * m4/getdate.m4: Likewise.
47779         * m4/getdomainname.m4: Likewise.
47780         * m4/getgroups.m4: Likewise.
47781         * m4/gethostname.m4: Likewise.
47782         * m4/gethrxtime.m4: Likewise.
47783         * m4/getline.m4: Likewise.
47784         * m4/getloadavg.m4: Likewise.
47785         * m4/getndelim2.m4: Likewise.
47786         * m4/getpass.m4: Likewise.
47787         * m4/gettext.m4: Likewise.
47788         * m4/gettime.m4: Likewise.
47789         * m4/gettimeofday.m4: Likewise.
47790         * m4/gnulib-common.m4: Likewise.
47791         * m4/group-member.m4: Likewise.
47792         * m4/host-os.m4: Likewise.
47793         * m4/iconv.m4: Likewise.
47794         * m4/iconv_open.m4: Likewise.
47795         * m4/inet_ntop.m4: Likewise.
47796         * m4/inet_pton.m4: Likewise.
47797         * m4/inline.m4: Likewise.
47798         * m4/intldir.m4: Likewise.
47799         * m4/intlmacosx.m4: Likewise.
47800         * m4/intmax.m4: Likewise.
47801         * m4/intmax_t.m4: Likewise.
47802         * m4/inttypes.m4: Likewise.
47803         * m4/inttypes_h.m4: Likewise.
47804         * m4/inttypes-pri.m4: Likewise.
47805         * m4/isapipe.m4: Likewise.
47806         * m4/isnand.m4: Likewise.
47807         * m4/isnanf.m4: Likewise.
47808         * m4/isnanl.m4: Likewise.
47809         * m4/javacomp.m4: Likewise.
47810         * m4/javaexec.m4: Likewise.
47811         * m4/jm-winsz1.m4: Likewise.
47812         * m4/jm-winsz2.m4: Likewise.
47813         * m4/lchown.m4: Likewise.
47814         * m4/lcmessage.m4: Likewise.
47815         * m4/ldexpl.m4: Likewise.
47816         * m4/lib-ld.m4: Likewise.
47817         * m4/lib-link.m4: Likewise.
47818         * m4/libsigsegv.m4: Likewise.
47819         * m4/link-follow.m4: Likewise.
47820         * m4/localcharset.m4: Likewise.
47821         * m4/locale-fr.m4: Likewise.
47822         * m4/locale-ja.m4: Likewise.
47823         * m4/locale-tr.m4: Likewise.
47824         * m4/locale-zh.m4: Likewise.
47825         * m4/lock.m4: Likewise.
47826         * m4/longlong.m4: Likewise.
47827         * m4/ls-mntd-fs.m4: Likewise.
47828         * m4/lstat.m4: Likewise.
47829         * m4/malloc.m4: Likewise.
47830         * m4/mathl.m4: Likewise.
47831         * m4/mbrtowc.m4: Likewise.
47832         * m4/mbstate_t.m4: Likewise.
47833         * m4/mbswidth.m4: Likewise.
47834         * m4/memchr.m4: Likewise.
47835         * m4/memcmp.m4: Likewise.
47836         * m4/memcpy.m4: Likewise.
47837         * m4/memmem.m4: Likewise.
47838         * m4/memmove.m4: Likewise.
47839         * m4/mempcpy.m4: Likewise.
47840         * m4/memrchr.m4: Likewise.
47841         * m4/memset.m4: Likewise.
47842         * m4/minmax.m4: Likewise.
47843         * m4/mkdir-slash.m4: Likewise.
47844         * m4/mkdtemp.m4: Likewise.
47845         * m4/mktime.m4: Likewise.
47846         * m4/mmap-anon.m4: Likewise.
47847         * m4/mountlist.m4: Likewise.
47848         * m4/nanosleep.m4: Likewise.
47849         * m4/nls.m4: Likewise.
47850         * m4/nocrash.m4: Likewise.
47851         * m4/open.m4: Likewise.
47852         * m4/openat.m4: Likewise.
47853         * m4/openmp.m4: Likewise.
47854         * m4/pathmax.m4: Likewise.
47855         * m4/perl.m4: Likewise.
47856         * m4/physmem.m4: Likewise.
47857         * m4/pipe.m4: Likewise.
47858         * m4/po.m4: Likewise.
47859         * m4/poll.m4: Likewise.
47860         * m4/posixtm.m4: Likewise.
47861         * m4/posixver.m4: Likewise.
47862         * m4/printf-frexp.m4: Likewise.
47863         * m4/printf-frexpl.m4: Likewise.
47864         * m4/printf-posix.m4: Likewise.
47865         * m4/printf-posix-rpl.m4: Likewise.
47866         * m4/printf.m4: Likewise.
47867         * m4/progtest.m4: Likewise.
47868         * m4/putenv.m4: Likewise.
47869         * m4/readline.m4: Likewise.
47870         * m4/readlink.m4: Likewise.
47871         * m4/readutmp.m4: Likewise.
47872         * m4/realloc.m4: Likewise.
47873         * m4/regex.m4: Likewise.
47874         * m4/relocatable.m4: Likewise.
47875         * m4/relocatable-lib.m4: Likewise.
47876         * m4/rename-dest-slash.m4: Likewise.
47877         * m4/rename.m4: Likewise.
47878         * m4/rmdir-errno.m4: Likewise.
47879         * m4/rmdir.m4: Likewise.
47880         * m4/roundf.m4: Likewise.
47881         * m4/roundl.m4: Likewise.
47882         * m4/rpmatch.m4: Likewise.
47883         * m4/save-cwd.m4: Likewise.
47884         * m4/selinux-selinux-h.m4: Likewise.
47885         * m4/setenv.m4: Likewise.
47886         * m4/settime.m4: Likewise.
47887         * m4/sig2str.m4: Likewise.
47888         * m4/sig_atomic_t.m4: Likewise.
47889         * m4/signalblocking.m4: Likewise.
47890         * m4/signbit.m4: Likewise.
47891         * m4/sigpipe.m4: Likewise.
47892         * m4/sockets.m4: Likewise.
47893         * m4/sockpfaf.m4: Likewise.
47894         * m4/st_dm_mode.m4: Likewise.
47895         * m4/stat-time.m4: Likewise.
47896         * m4/stdbool.m4: Likewise.
47897         * m4/stdint.m4: Likewise.
47898         * m4/stdint_h.m4: Likewise.
47899         * m4/stpcpy.m4: Likewise.
47900         * m4/stpncpy.m4: Likewise.
47901         * m4/strcase.m4: Likewise.
47902         * m4/strchrnul.m4: Likewise.
47903         * m4/strcspn.m4: Likewise.
47904         * m4/strdup.m4: Likewise.
47905         * m4/strftime.m4: Likewise.
47906         * m4/strndup.m4: Likewise.
47907         * m4/strnlen.m4: Likewise.
47908         * m4/strpbrk.m4: Likewise.
47909         * m4/strptime.m4: Likewise.
47910         * m4/strsep.m4: Likewise.
47911         * m4/strtod.m4: Likewise.
47912         * m4/strtoimax.m4: Likewise.
47913         * m4/strtok_r.m4: Likewise.
47914         * m4/strtol.m4: Likewise.
47915         * m4/strtoll.m4: Likewise.
47916         * m4/strtoul.m4: Likewise.
47917         * m4/strtoull.m4: Likewise.
47918         * m4/strtoumax.m4: Likewise.
47919         * m4/strverscmp.m4: Likewise.
47920         * m4/threadlib.m4: Likewise.
47921         * m4/timegm.m4: Likewise.
47922         * m4/tm_gmtoff.m4: Likewise.
47923         * m4/tmpdir.m4: Likewise.
47924         * m4/tmpfile.m4: Likewise.
47925         * m4/tzset.m4: Likewise.
47926         * m4/uintmax_t.m4: Likewise.
47927         * m4/unlinkdir.m4: Likewise.
47928         * m4/unlocked-io.m4: Likewise.
47929         * m4/uptime.m4: Likewise.
47930         * m4/userspec.m4: Likewise.
47931         * m4/utimbuf.m4: Likewise.
47932         * m4/utime.m4: Likewise.
47933         * m4/utimes-null.m4: Likewise.
47934         * m4/utimes.m4: Likewise.
47935         * m4/vararrays.m4: Likewise.
47936         * m4/vasnprintf.m4: Likewise.
47937         * m4/vfprintf-posix.m4: Likewise.
47938         * m4/vprintf-posix.m4: Likewise.
47939         * m4/wait-process.m4: Likewise.
47940         * m4/wchar_t.m4: Likewise.
47941         * m4/wint_t.m4: Likewise.
47942         * m4/write-any-file.m4: Likewise.
47943         * m4/yield.m4: Likewise.
47944
47945 2009-01-13  Bruno Haible  <bruno@clisp.org>
47946
47947         Avoid test-copy-file.sh failures when ACL support insufficient.
47948         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
47949         TESTS_ENVIRONMENT.
47950         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
47951         Reported by Jim Meyering.
47952
47953 2009-01-13  Bruno Haible  <bruno@clisp.org>
47954
47955         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
47956         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
47957         * modules/unistdio/u8-printf-parse (Files): Likewise.
47958         * modules/unistdio/u32-printf-parse (Files): Likewise.
47959         * modules/unistdio/ulc-printf-parse (Files): Likewise.
47960
47961 2009-01-13  Simon Josefsson  <simon@josefsson.org>
47962
47963         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
47964         and m4/inttypes_h.m4 too.
47965
47966 2009-01-12  Eric Blake  <ebb9@byu.net>
47967
47968         tests: IRIX 6.2 cc can't compile -0.0 into .data
47969         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
47970         rather than at compile-time.
47971         * tests/test-floorl.c (minus_zero): Likewise.
47972         * tests/test-frexpl.c (minus_zero): Likewise.
47973         * tests/test-isnan.c (minus_zerol): Likewise.
47974         * tests/test-isnanl.h (minus_zero): Likewise.
47975         * tests/test-ldexpl.c (minus_zero): Likewise.
47976         * tests/test-roundl.c (minus_zero): Likewise.
47977         * tests/test-signbit.c (minus_zerol): Likewise.
47978         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
47979         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
47980         * tests/test-truncl.c (minus_zero): Likewise.
47981         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
47982         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
47983         Reported by Tom G. Christensen and Nelson H. F. Beebe.
47984
47985 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
47986
47987         regex: fix glibc bug 9697
47988         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
47989         handling.
47990
47991 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
47992
47993         regex: fix glibc bug 697
47994         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
47995         being NULL also if there are no backreferences.
47996
47997 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
47998
47999         regex: merge glibc changes
48000         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
48001         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
48002         re_string_skip_chars, re_string_reconstruct): Likewise.
48003         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
48004
48005 2009-01-07  Jim Meyering  <meyering@redhat.com>
48006
48007         poll: filter through cppi
48008         * lib/poll.c: Indent cpp directives to reflect nesting.
48009
48010 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
48011
48012         poll: don't return uninitialized
48013         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
48014
48015 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
48016
48017         avoid compile failure on AIX 6.1
48018         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
48019         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
48020
48021 2009-01-04  Jim Meyering  <meyering@redhat.com>
48022
48023         remove duplicate inclusion of <stdio.h>
48024         * tests/test-fprintf-posix.c: Likewise.
48025         * tests/test-printf-posix.c: Likewise.
48026         * tests/test-snprintf-posix.c: Likewise.
48027         * tests/test-sprintf-posix.c: Likewise.
48028         * tests/test-vasprintf-posix.c: Likewise.
48029         * tests/test-vfprintf-posix.c: Likewise.
48030         * tests/test-vprintf-posix.c: Likewise.
48031         * tests/test-vsnprintf-posix.c: Likewise.
48032         * tests/test-vsprintf-posix.c: Likewise.
48033
48034 2009-01-03  Jim Meyering  <meyering@redhat.com>
48035
48036         gnulib-tool: fix sed-based filtering
48037         * gnulib-tool (func_filter_filelist): Remove extra backslash
48038         in sed_fff_filter definition.
48039
48040 2009-01-02  Jim Meyering  <meyering@redhat.com>
48041
48042         strftime: avoid compilation failure on Solaris 2.6
48043         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
48044         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
48045         Don't #define mbrlen or mbsinit, since now they're guaranteed to
48046         be available.  Reported by Tom G. Christensen.  Details in
48047         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
48048
48049 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48050             Bruno Haible  <bruno@clisp.org>
48051
48052         Speed up gnulib-tool by doing more string processing through shell
48053         built-ins.
48054         * gnulib-tool (fast_func_append): New variable.
48055         (func_remove_prefix, func_remove_suffix): New functions.
48056         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
48057         (func_filter_filelist): New function.
48058         (func_get_dependencies): Use func_remove_suffix instead of sed.
48059         (func_get_automake_snippet): Use func_filter_filelist instead of a
48060         subshell and sed invocation.
48061
48062 2009-01-01  Bruno Haible  <bruno@clisp.org>
48063
48064         Fix a security bug.
48065         * gnulib-tool (func_import, import, update): Don't allow the characters
48066         '"', '$', '`', '\' in macro arguments that become part of commands that
48067         are evaluated.
48068
48069 2009-01-01  Bruno Haible  <bruno@clisp.org>
48070
48071         * gnulib-tool (func_reset_sigpipe): Add more comments.
48072
48073 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48074
48075         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
48076         func_emit_tests_Makefile_am, func_import): Abort loops early if we
48077         already know the answer.
48078
48079 2009-01-01  Jim Meyering  <meyering@redhat.com>
48080
48081         * lib/version-etc.c (version_etc_va): Update copyright year.
48082
48083 2008-12-30  Bruno Haible  <bruno@clisp.org>
48084
48085         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
48086         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
48087         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
48088
48089 2008-12-29  Eric Blake  <ebb9@byu.net>
48090
48091         multiarch: avoid autoconf AC_REQUIRE bug
48092         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
48093         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
48094         2.63 and older.
48095         Reported by Bruno Haible, and analyzed in
48096         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
48097
48098 2008-12-29  Bruno Haible  <bruno@clisp.org>
48099
48100         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
48101         files in subdirectories correctly.
48102         Reported by Ralf Wildenhues.
48103
48104 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48105
48106         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
48107         rather than 'join FILE -', for Solaris join.
48108
48109 2008-12-29  Bruno Haible  <bruno@clisp.org>
48110
48111         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
48112         quoting.
48113         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
48114         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
48115         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
48116         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
48117         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
48118         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
48119         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
48120         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
48121         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
48122         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
48123         * m4/nls.m4 (AM_NLS): Likewise.
48124         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
48125         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
48126         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
48127         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
48128         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
48129         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
48130         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
48131         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
48132         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
48133         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
48134         * m4/xsize.m4 (gl_XSIZE): Likewise.
48135         Suggested by Jim Meyering.
48136
48137 2008-11-17  Bruce Korb  <bkorb@gnu.org>
48138
48139         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
48140         * lib/parse-duration.c: use a switch instead of cascading if's.
48141
48142 2008-12-29  Eric Blake  <ebb9@byu.net>
48143
48144         wchar.h: supply WEOF on Irix 5.3
48145         * lib/wchar.in.h (wint_t): Also supply WEOF.
48146         * lib/wctype.in.h (wint_t): Likewise.
48147         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
48148         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
48149         Reported by Tom G. Christensen.
48150
48151 2008-12-26  Bruno Haible  <bruno@clisp.org>
48152
48153         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
48154         i486, i586, i686.
48155
48156 2008-12-26  Bruno Haible  <bruno@clisp.org>
48157
48158         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
48159
48160 2008-12-26  Bruno Haible  <bruno@clisp.org>
48161
48162         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
48163         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
48164         not __STDC_CONSTANT_MACROS.
48165         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
48166
48167 2008-12-25  Bruno Haible  <bruno@clisp.org>
48168
48169         Add support for universal builds to vasnprintf.
48170         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
48171         universal builds, guess no.
48172         * modules/vasnprintf-posix (Depends-on): Add multiarch.
48173         * modules/vasprintf-posix (Depends-on): Likewise.
48174         * modules/fprintf-posix (Depends-on): Likewise.
48175         * modules/vfprintf-posix (Depends-on): Likewise.
48176         * modules/snprintf-posix (Depends-on): Likewise.
48177         * modules/vsnprintf-posix (Depends-on): Likewise.
48178         * modules/sprintf-posix (Depends-on): Likewise.
48179         * modules/vsprintf-posix (Depends-on): Likewise.
48180         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48181         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48182         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48183         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48184         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48185         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48186         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48187
48188         Add support for universal builds to <inttypes.h>.
48189         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
48190         _SCNu64_PREFIX): In Apple
48191         universal builds, define directly, using _LP64.
48192         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
48193         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
48194         * modules/inttypes (Depends-on): Add multiarch.
48195         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
48196
48197         Add support for universal builds to <stdint.h>.
48198         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
48199         universal builds, define directly, using _LP64.
48200         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
48201         Apple universal builds, don't test for the size and suffix of ptrdiff_t
48202         and size_t.
48203         * modules/stdint (Depends-on): Add multiarch.
48204         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
48205
48206         New module 'multiarch'.
48207         * modules/multiarch: New file.
48208         * m4/multiarch.m4: New file.
48209
48210 2008-12-25  Bruno Haible  <bruno@clisp.org>
48211
48212         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
48213
48214 2008-12-25  Bruno Haible  <bruno@clisp.org>
48215
48216         * modules/btowc (License): Relicense under LGPLv2+.
48217         * modules/mbsinit (License): Likewise.
48218         * modules/mbrtowc (License): Likewise.
48219         * modules/wcrtomb (License): Likewise.
48220         * modules/streq (License): Likewise.
48221         Reported by David Lutterkort <lutter@redhat.com>.
48222
48223 2008-12-23  Bruno Haible  <bruno@clisp.org>
48224
48225         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
48226
48227 2008-12-23  Bruno Haible  <bruno@clisp.org>
48228
48229         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
48230         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
48231         GETADDRINFO_LIB, not in LIBS.
48232         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
48233         * modules/canon-host (Link): Likewise.
48234         * NEWS: Mention the change.
48235         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
48236         GETADDRINFO_LIB.
48237
48238 2008-12-22  Bruno Haible  <bruno@clisp.org>
48239
48240         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
48241         * doc/posix-functions/iswalpha_l.texi: Likewise.
48242         * doc/posix-functions/iswblank_l.texi: Likewise.
48243         * doc/posix-functions/iswcntrl_l.texi: Likewise.
48244         * doc/posix-functions/iswctype_l.texi: Likewise.
48245         * doc/posix-functions/iswdigit_l.texi: Likewise.
48246         * doc/posix-functions/iswgraph_l.texi: Likewise.
48247         * doc/posix-functions/iswlower_l.texi: Likewise.
48248         * doc/posix-functions/iswprint_l.texi: Likewise.
48249         * doc/posix-functions/iswpunct_l.texi: Likewise.
48250         * doc/posix-functions/iswspace_l.texi: Likewise.
48251         * doc/posix-functions/iswupper_l.texi: Likewise.
48252         * doc/posix-functions/iswxdigit_l.texi: Likewise.
48253         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
48254         * doc/posix-functions/open_wmemstream.texi: Likewise.
48255         * doc/posix-functions/swscanf.texi: Likewise.
48256         * doc/posix-functions/towctrans_l.texi: Likewise.
48257         * doc/posix-functions/towlower.texi: Likewise.
48258         * doc/posix-functions/towlower_l.texi: Likewise.
48259         * doc/posix-functions/towupper.texi: Likewise.
48260         * doc/posix-functions/towupper_l.texi: Likewise.
48261         * doc/posix-functions/vfwprintf.texi: Likewise.
48262         * doc/posix-functions/vfwscanf.texi: Likewise.
48263         * doc/posix-functions/vswscanf.texi: Likewise.
48264         * doc/posix-functions/vwprintf.texi: Likewise.
48265         * doc/posix-functions/vwscanf.texi: Likewise.
48266         * doc/posix-functions/wcpcpy.texi: Likewise.
48267         * doc/posix-functions/wcpncpy.texi: Likewise.
48268         * doc/posix-functions/wcscasecmp.texi: Likewise.
48269         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
48270         * doc/posix-functions/wcscoll_l.texi: Likewise.
48271         * doc/posix-functions/wcsdup.texi: Likewise.
48272         * doc/posix-functions/wcsncasecmp.texi: Likewise.
48273         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
48274         * doc/posix-functions/wcsnlen.texi: Likewise.
48275         * doc/posix-functions/wcsnrtombs.texi: Likewise.
48276         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
48277         * doc/posix-functions/wctrans_l.texi: Likewise.
48278         * doc/posix-functions/wctype_l.texi: Likewise.
48279         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
48280         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
48281         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
48282         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
48283         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
48284         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
48285         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
48286         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
48287         * doc/glibc-functions/wcschrnul.texi: Likewise.
48288         * doc/glibc-functions/wcsftime_l.texi: Likewise.
48289         * doc/glibc-functions/wcstod_l.texi: Likewise.
48290         * doc/glibc-functions/wcstof_l.texi: Likewise.
48291         * doc/glibc-functions/wcstol_l.texi: Likewise.
48292         * doc/glibc-functions/wcstold_l.texi: Likewise.
48293         * doc/glibc-functions/wcstoll_l.texi: Likewise.
48294         * doc/glibc-functions/wcstoq.texi: Likewise.
48295         * doc/glibc-functions/wcstoul_l.texi: Likewise.
48296         * doc/glibc-functions/wcstoull_l.texi: Likewise.
48297         * doc/glibc-functions/wcstouq.texi: Likewise.
48298         * doc/glibc-functions/wmempcpy.texi: Likewise.
48299
48300 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
48301             Eric Blake  <ebb9@byu.net>
48302             Paolo Bonzini  <bonzini@gnu.org>
48303             Bruno Haible  <bruno@clisp.org>
48304
48305         Make c-stack work on Haiku.
48306         * lib/c-stack.c (SA_ONSTACK): Define fallback.
48307         (c_stack_action): Use SA_ONSTACK flag.
48308
48309 2008-12-22  Bruno Haible  <bruno@clisp.org>
48310
48311         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
48312
48313 2008-12-22  Bruno Haible  <bruno@clisp.org>
48314
48315         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
48316         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
48317         being overridden.
48318         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
48319         New macros.
48320         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
48321         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
48322         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
48323         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
48324
48325 2008-12-22  Bruno Haible  <bruno@clisp.org>
48326
48327         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
48328         from test code.
48329
48330 2008-12-22  Eric Blake  <ebb9@byu.net>
48331
48332         Avoid gcc warnings on cygwin.
48333         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
48334         Avoid unused variable.
48335         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
48336         Likewise.
48337
48338 2008-12-22  Bruno Haible  <bruno@clisp.org>
48339
48340         Remove HAVE_MBRTOWC conditionals.
48341         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
48342         (mbscasecmp): Assume mbrtowc function.
48343         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
48344         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
48345         * lib/mbschr.c: Include mbuiter.h unconditionally.
48346         (mbschr): Assume mbrtowc function.
48347         * lib/mbscspn.c: Include mbuiter.h unconditionally.
48348         (mbscspn): Assume mbrtowc function.
48349         * lib/mbslen.c: Include mbuiter.h unconditionally.
48350         (mbslen): Assume mbrtowc function.
48351         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
48352         (mbsncasecmp): Assume mbrtowc function.
48353         * lib/mbsnlen.c: Include mbiter.h unconditionally.
48354         (mbsnlen): Assume mbrtowc function.
48355         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
48356         (mbspbrk): Assume mbrtowc function.
48357         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
48358         (mbspcasecmp): Assume mbrtowc function.
48359         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
48360         (mbsrchr): Assume mbrtowc function.
48361         * lib/mbssep.c: Include mbuiter.h unconditionally.
48362         (mbssep): Assume mbrtowc function.
48363         * lib/mbsspn.c: Include mbuiter.h unconditionally.
48364         (mbsspn): Assume mbrtowc function.
48365         * lib/mbsstr.c: Include mbuiter.h unconditionally.
48366         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
48367         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
48368         (mbstok_r): Assume mbrtowc function.
48369         * lib/propername.c: Include mbuiter.h unconditionally.
48370         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
48371         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
48372         (trim2): Assume mbrtowc function.
48373         * lib/mbswidth.c (mbsinit): Remove fallback definition.
48374         (mbsnwidth): Assume mbrtowc function.
48375         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
48376         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
48377         fallback definitions.
48378         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
48379
48380 2008-12-22  Bruno Haible  <bruno@clisp.org>
48381
48382         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
48383
48384 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
48385
48386         * modules/regex: Request emulations for the mb*/wc* functions we need.
48387         * m4/regex.m4: Don't look for those functions here.
48388         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
48389
48390 2008-12-22  Bruno Haible  <bruno@clisp.org>
48391
48392         * modules/fnmatch (Depends-on): Remove duplicated dependency.
48393
48394 2008-12-21  Bruno Haible  <bruno@clisp.org>
48395
48396         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
48397         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
48398         (Include): Remove conditionalization.
48399         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
48400         (Include): Remove conditionalization.
48401         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
48402         (Include): Remove conditionalization.
48403         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
48404         * m4/mbfile.m4 (gl_MBFILE): Likewise.
48405         * NEWS: Mention the change.
48406         Reported by Alan Hourihane <alanh@fairlite.co.uk>
48407         via Sergey Poznyakoff <gray@gnu.org.ua>.
48408
48409 2008-12-21  Bruno Haible  <bruno@clisp.org>
48410
48411         * MODULES.html.sh (Extended multibyte and wide character utilities
48412         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
48413         wcrtomb, wcsrtombs.
48414         (Support for systems lacking POSIX:2008): Add accept, bind, close,
48415         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
48416         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
48417         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
48418
48419 2008-12-21  Bruno Haible  <bruno@clisp.org>
48420
48421         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
48422
48423 2008-12-21  Bruno Haible  <bruno@clisp.org>
48424
48425         * modules/wcsnrtombs-tests: New file.
48426         * tests/test-wcsnrtombs1.sh: New file.
48427         * tests/test-wcsnrtombs2.sh: New file.
48428         * tests/test-wcsnrtombs3.sh: New file.
48429         * tests/test-wcsnrtombs4.sh: New file.
48430         * tests/test-wcsnrtombs.c: New file.
48431
48432         New module 'wcsnrtombs'.
48433         * lib/wchar.in.h (wcsnrtombs): New declaration.
48434         * lib/wcsnrtombs.c: New file.
48435         * lib/wcsrtombs-state.c: New file.
48436         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
48437         (internal_state): Remove variable.
48438         * m4/wcsnrtombs.m4: New file.
48439         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
48440         compilation units.
48441         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
48442         HAVE_WCSNRTOMBS.
48443         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
48444         HAVE_WCSNRTOMBS.
48445         * modules/wcsnrtombs: New file.
48446         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
48447         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
48448
48449 2008-12-21  Bruno Haible  <bruno@clisp.org>
48450
48451         * modules/wcsrtombs-tests: New file.
48452         * tests/test-wcsrtombs1.sh: New file.
48453         * tests/test-wcsrtombs2.sh: New file.
48454         * tests/test-wcsrtombs3.sh: New file.
48455         * tests/test-wcsrtombs4.sh: New file.
48456         * tests/test-wcsrtombs.c: New file.
48457
48458         New module 'wcsrtombs'.
48459         * lib/wchar.in.h (wcsrtombs): New declaration.
48460         * lib/wcsrtombs.c: New file.
48461         * m4/wcsrtombs.m4: New file.
48462         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
48463         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
48464         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
48465         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
48466         * modules/wcsrtombs: New file.
48467         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
48468         bugs.
48469
48470 2008-12-21  Bruno Haible  <bruno@clisp.org>
48471
48472         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
48473         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
48474         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
48475         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
48476         if not correct.
48477         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
48478         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
48479         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48480         m4/locale-zh.m4, m4/codeset.m4.
48481         * doc/posix-functions/wcrtomb.texi: Document the bug.
48482
48483 2008-12-21  Bruno Haible  <bruno@clisp.org>
48484
48485         Work around a btowc() bug on IRIX 6.5.
48486         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
48487         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
48488         REPLACE_WTOBC if not.
48489         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
48490         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
48491         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
48492
48493 2008-12-21  Bruno Haible  <bruno@clisp.org>
48494
48495         * modules/wcrtomb-tests: New file.
48496         * tests/test-wcrtomb.sh: New file.
48497         * tests/test-wcrtomb.c: New file.
48498
48499         New module 'wcrtomb'.
48500         * lib/wchar.in.h (wcrtomb): New declaration.
48501         * lib/wcrtomb.c: New file.
48502         * m4/wcrtomb.m4: New file.
48503         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
48504         HAVE_WCRTOMB.
48505         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
48506         HAVE_WCRTOMB.
48507         * modules/wcrtomb: New file.
48508         * doc/posix-functions/wcrtomb.texi: Mention the new module.
48509
48510 2008-12-21  Bruno Haible  <bruno@clisp.org>
48511
48512         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
48513         * modules/mbsrtowcs (Files): Likewise.
48514         * modules/wctob (Files): Likewise.
48515         * modules/c-strcase-tests (Files): Likewise.
48516         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
48517         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
48518         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
48519         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
48520         * modules/vasnprintf-posix-tests (Files): Likewise.
48521
48522 2008-12-21  William Pursell  <bill.pursell@gmail.com>
48523
48524         gitlog-to-changelog: pass all command-line arguments to git-log
48525         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
48526         it is sometimes convenient to filter the commits in various ways.
48527         gitlog-to-changelog only allows --since to specify a start date,
48528         but git-log itself supports many other filtering mechanisms.
48529         At the moment, I want to filter by branch name.  Rather than
48530         adding a --branch option to gitlog-to-changelog, it seems more
48531         flexible to simply pass all options directly to git-log and let
48532         git do the work.  Notice that this effectively makes --since a
48533         redundant option for gitlog-to-changelog, but removing it would
48534         require current usage to change since calls would then require
48535         an additional '--'.
48536
48537 2008-12-21  Bruno Haible  <bruno@clisp.org>
48538
48539         * modules/mbsnrtowcs-tests: New file.
48540         * tests/test-mbsnrtowcs1.sh: New file.
48541         * tests/test-mbsnrtowcs2.sh: New file.
48542         * tests/test-mbsnrtowcs3.sh: New file.
48543         * tests/test-mbsnrtowcs4.sh: New file.
48544         * tests/test-mbsnrtowcs.c: New file.
48545
48546         New module 'mbsnrtowcs'.
48547         * lib/wchar.in.h (mbsnrtowcs): New declaration.
48548         * lib/mbsnrtowcs.c: New file.
48549         * lib/mbsrtowcs-state.c: New file.
48550         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
48551         (internal_state): Remove variable.
48552         * m4/mbsnrtowcs.m4: New file.
48553         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
48554         compilation units.
48555         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
48556         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
48557         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
48558         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
48559         * modules/mbsnrtowcs: New file.
48560         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
48561         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
48562         portability problem.
48563
48564 2008-12-21  Bruno Haible  <bruno@clisp.org>
48565
48566         Work around mbsrtowcs bug.
48567         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
48568         (gl_FUNC_MBSRTOWCS): Invoke it.
48569         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48570         m4/locale-zh.m4.
48571         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
48572
48573 2008-12-21  Bruno Haible  <bruno@clisp.org>
48574
48575         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
48576
48577 2008-12-21  Bruno Haible  <bruno@clisp.org>
48578
48579         Update doc for AIX.
48580         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
48581         16-bit wchar_t type.
48582         * doc/posix-functions/btowc.texi: Likewise.
48583         * doc/posix-functions/fgetwc.texi: Likewise.
48584         * doc/posix-functions/fgetws.texi: Likewise.
48585         * doc/posix-functions/fputwc.texi: Likewise.
48586         * doc/posix-functions/fputws.texi: Likewise.
48587         * doc/posix-functions/fwide.texi: Likewise.
48588         * doc/posix-functions/fwprintf.texi: Likewise.
48589         * doc/posix-functions/fwscanf.texi: Likewise.
48590         * doc/posix-functions/getwchar.texi: Likewise.
48591         * doc/posix-functions/getwc.texi: Likewise.
48592         * doc/posix-functions/iswalnum.texi: Likewise.
48593         * doc/posix-functions/iswalpha.texi: Likewise.
48594         * doc/posix-functions/iswblank.texi: Likewise.
48595         * doc/posix-functions/iswcntrl.texi: Likewise.
48596         * doc/posix-functions/iswctype.texi: Likewise.
48597         * doc/posix-functions/iswdigit.texi: Likewise.
48598         * doc/posix-functions/iswgraph.texi: Likewise.
48599         * doc/posix-functions/iswlower.texi: Likewise.
48600         * doc/posix-functions/iswprint.texi: Likewise.
48601         * doc/posix-functions/iswpunct.texi: Likewise.
48602         * doc/posix-functions/iswspace.texi: Likewise.
48603         * doc/posix-functions/iswupper.texi: Likewise.
48604         * doc/posix-functions/iswxdigit.texi: Likewise.
48605         * doc/posix-functions/mbrtowc.texi: Likewise.
48606         * doc/posix-functions/mbsrtowcs.texi: Likewise.
48607         * doc/posix-functions/mbstowcs.texi: Likewise.
48608         * doc/posix-functions/mbtowc.texi: Likewise.
48609         * doc/posix-functions/putwchar.texi: Likewise.
48610         * doc/posix-functions/putwc.texi: Likewise.
48611         * doc/posix-functions/swprintf.texi: Likewise.
48612         * doc/posix-functions/tolower.texi: Likewise.
48613         * doc/posix-functions/toupper.texi: Likewise.
48614         * doc/posix-functions/towctrans.texi: Likewise.
48615         * doc/posix-functions/ungetwc.texi: Likewise.
48616         * doc/posix-functions/vswprintf.texi: Likewise.
48617         * doc/posix-functions/wcrtomb.texi: Likewise.
48618         * doc/posix-functions/wcscat.texi: Likewise.
48619         * doc/posix-functions/wcschr.texi: Likewise.
48620         * doc/posix-functions/wcscmp.texi: Likewise.
48621         * doc/posix-functions/wcscoll.texi: Likewise.
48622         * doc/posix-functions/wcscpy.texi: Likewise.
48623         * doc/posix-functions/wcscspn.texi: Likewise.
48624         * doc/posix-functions/wcsftime.texi: Likewise.
48625         * doc/posix-functions/wcslen.texi: Likewise.
48626         * doc/posix-functions/wcsncat.texi: Likewise.
48627         * doc/posix-functions/wcsncmp.texi: Likewise.
48628         * doc/posix-functions/wcsncpy.texi: Likewise.
48629         * doc/posix-functions/wcspbrk.texi: Likewise.
48630         * doc/posix-functions/wcsrchr.texi: Likewise.
48631         * doc/posix-functions/wcsrtombs.texi: Likewise.
48632         * doc/posix-functions/wcsspn.texi: Likewise.
48633         * doc/posix-functions/wcsstr.texi: Likewise.
48634         * doc/posix-functions/wcstod.texi: Likewise.
48635         * doc/posix-functions/wcstof.texi: Likewise.
48636         * doc/posix-functions/wcstoimax.texi: Likewise.
48637         * doc/posix-functions/wcstok.texi: Likewise.
48638         * doc/posix-functions/wcstold.texi: Likewise.
48639         * doc/posix-functions/wcstoll.texi: Likewise.
48640         * doc/posix-functions/wcstol.texi: Likewise.
48641         * doc/posix-functions/wcstombs.texi: Likewise.
48642         * doc/posix-functions/wcstoull.texi: Likewise.
48643         * doc/posix-functions/wcstoul.texi: Likewise.
48644         * doc/posix-functions/wcstoumax.texi: Likewise.
48645         * doc/posix-functions/wcswidth.texi: Likewise.
48646         * doc/posix-functions/wcsxfrm.texi: Likewise.
48647         * doc/posix-functions/wctob.texi: Likewise.
48648         * doc/posix-functions/wctomb.texi: Likewise.
48649         * doc/posix-functions/wctrans.texi: Likewise.
48650         * doc/posix-functions/wctype.texi: Likewise.
48651         * doc/posix-functions/wcwidth.texi: Likewise.
48652         * doc/posix-functions/wmemchr.texi: Likewise.
48653         * doc/posix-functions/wmemcmp.texi: Likewise.
48654         * doc/posix-functions/wmemcpy.texi: Likewise.
48655         * doc/posix-functions/wmemmove.texi: Likewise.
48656         * doc/posix-functions/wmemset.texi: Likewise.
48657         * doc/posix-functions/wprintf.texi: Likewise.
48658         * doc/posix-functions/wscanf.texi: Likewise.
48659
48660 2008-12-21  Bruno Haible  <bruno@clisp.org>
48661
48662         Update doc for HP-UX 11.11.
48663         * doc/posix-functions/btowc.texi: Clarify that the function is missing
48664         in HP-UX version 11.00, not in all versions of HP-UX 11.
48665         * doc/posix-functions/fwide.texi: Likewise.
48666         * doc/posix-functions/fwprintf.texi: Likewise.
48667         * doc/posix-functions/fwscanf.texi: Likewise.
48668         * doc/posix-functions/inet_ntop.texi: Likewise.
48669         * doc/posix-functions/inet_pton.texi: Likewise.
48670         * doc/posix-functions/mbrlen.texi: Likewise.
48671         * doc/posix-functions/mbrtowc.texi: Likewise.
48672         * doc/posix-functions/mbsinit.texi: Likewise.
48673         * doc/posix-functions/mbsrtowcs.texi: Likewise.
48674         * doc/posix-functions/swprintf.texi: Likewise.
48675         * doc/posix-functions/swscanf.texi: Likewise.
48676         * doc/posix-functions/towctrans.texi: Likewise.
48677         * doc/posix-functions/vfwprintf.texi: Likewise.
48678         * doc/posix-functions/vswprintf.texi: Likewise.
48679         * doc/posix-functions/vwprintf.texi: Likewise.
48680         * doc/posix-functions/wcrtomb.texi: Likewise.
48681         * doc/posix-functions/wcsrtombs.texi: Likewise.
48682         * doc/posix-functions/wcsstr.texi: Likewise.
48683         * doc/posix-functions/wctob.texi: Likewise.
48684         * doc/posix-functions/wctrans.texi: Likewise.
48685         * doc/posix-functions/wmemchr.texi: Likewise.
48686         * doc/posix-functions/wmemcmp.texi: Likewise.
48687         * doc/posix-functions/wmemcpy.texi: Likewise.
48688         * doc/posix-functions/wmemmove.texi: Likewise.
48689         * doc/posix-functions/wmemset.texi: Likewise.
48690         * doc/posix-functions/wprintf.texi: Likewise.
48691         * doc/posix-functions/wscanf.texi: Likewise.
48692
48693 2008-12-21  Bruno Haible  <bruno@clisp.org>
48694
48695         Work around a portability problem.
48696         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
48697         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
48698
48699 2008-12-20  Bruno Haible  <bruno@clisp.org>
48700
48701         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
48702         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
48703         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
48704         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
48705         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
48706
48707         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
48708         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
48709         set.
48710         (GNULIB_defined_mbstate_t): New macro.
48711         (mbsinit): Redefine if REPLACE_MBSINIT is set.
48712         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
48713         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
48714         reuses the system's mbrtowc function but works around the bugs.
48715         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
48716         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
48717         macros.
48718         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
48719         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
48720         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
48721         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
48722         REPLACE_MBSINIT if mbsinit needs to be overridden.
48723         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
48724         REPLACE_MBSINIT, REPLACE_MBRTOWC.
48725         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
48726         REPLACE_MBSINIT, REPLACE_MBRTOWC.
48727         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48728         m4/locale-zh.m4.
48729         (Depends): Add mbsinit.
48730         * modules/mbsinit (Depends): Add mbrtowc.
48731         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
48732
48733 2008-12-20  Bruno Haible  <bruno@clisp.org>
48734
48735         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
48736         so that there are no conversion errors on AIX.
48737         * tests/test-mbsrtowcs.c (main): LIkewise.
48738
48739 2008-12-20  Bruno Haible  <bruno@clisp.org>
48740
48741         Work around wctob bug on Solaris <= 9.
48742         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
48743         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
48744         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
48745         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
48746         * modules/wctob (Files): Add m4/locale-fr.m4.
48747         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
48748
48749 2008-12-20  Bruno Haible  <bruno@clisp.org>
48750
48751         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
48752         /dev/null.
48753         * tests/test-select-in.sh: Likewise.
48754         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48755
48756 2008-12-20  Bruno Haible  <bruno@clisp.org>
48757
48758         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
48759         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
48760         Cygwin 1.5.x.
48761
48762 2008-12-20  Bruno Haible  <bruno@clisp.org>
48763
48764         Ensure mbstate_t is defined on HP-UX 11.11.
48765         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
48766         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
48767         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
48768         AC_USE_SYSTEM_EXTENSIONS.
48769         * modules/fnmatch (Depends-on): Add extensions.
48770         * modules/mbrlen (Depends-on): Likewise.
48771         * modules/mbrtowc (Depends-on): Likewise.
48772         * modules/mbsinit (Depends-on): Likewise.
48773         * modules/mbsrtowcs (Depends-on): Likewise.
48774         * modules/mbswidth (Depends-on): Likewise.
48775         * modules/quotearg (Depends-on): Likewise.
48776         * modules/strftime (Depends-on): Likewise.
48777
48778 2008-12-20  Bruno Haible  <bruno@clisp.org>
48779
48780         Ensure wctob is declared on IRIX 6.5.
48781         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
48782         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
48783         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
48784         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
48785         of HAVE_WCTOB.
48786         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
48787         HAVE_WCTOB.
48788         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
48789
48790 2008-12-19  Bruno Haible  <bruno@clisp.org>
48791
48792         * modules/mbsrtowcs-tests: New file.
48793         * tests/test-mbsrtowcs1.sh: New file.
48794         * tests/test-mbsrtowcs2.sh: New file.
48795         * tests/test-mbsrtowcs3.sh: New file.
48796         * tests/test-mbsrtowcs4.sh: New file.
48797         * tests/test-mbsrtowcs.c: New file.
48798
48799         New module 'mbsrtowcs'.
48800         * lib/wchar.in.h (mbsrtowcs): New declaration.
48801         * lib/mbsrtowcs.c: New file.
48802         * m4/mbsrtowcs.m4: New file.
48803         * modules/mbsrtowcs: New file.
48804         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
48805         HAVE_MBSRTOWCS.
48806         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
48807         HAVE_MBSRTOWCS.
48808         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
48809
48810 2008-12-19  Bruno Haible  <bruno@clisp.org>
48811
48812         New module 'mbrlen'.
48813         * lib/wchar.in.h (mbrlen): New declaration.
48814         * lib/mbrlen.c: New file.
48815         * m4/mbrlen.m4: New file.
48816         * modules/mbrlen: New file.
48817         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
48818         HAVE_MBRLEN.
48819         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
48820         HAVE_MBRLEN.
48821         * doc/posix-functions/mbrlen.texi: Document the new module.
48822
48823 2008-12-19  Bruno Haible  <bruno@clisp.org>
48824
48825         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
48826         * modules/mbrtowc (Depends-on): Add verify.
48827         Suggested by Paul Eggert.
48828
48829 2008-12-18  Bruno Haible  <bruno@clisp.org>
48830
48831         * modules/mbsinit-tests: New file.
48832         * tests/test-mbsinit.sh: New file.
48833         * tests/test-mbsinit.c: New file.
48834
48835 2008-12-18  Bruno Haible  <bruno@clisp.org>
48836
48837         * modules/mbrtowc-tests: New file.
48838         * tests/test-mbrtowc1.sh: New file.
48839         * tests/test-mbrtowc2.sh: New file.
48840         * tests/test-mbrtowc3.sh: New file.
48841         * tests/test-mbrtowc4.sh: New file.
48842         * tests/test-mbrtowc.c: New file.
48843
48844         New module 'mbrtowc'.
48845         * lib/wchar.in.h (mbstate_t): Override when the system does not have
48846         mbsinit and mbrtowc.
48847         (mbrtowc): New declaration.
48848         * lib/mbrtowc.c: New file.
48849         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
48850         * modules/mbrtowc: New file.
48851         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
48852         HAVE_MBRTOWC.
48853         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
48854         HAVE_MBRTOWC.
48855         * doc/posix-functions/mbrtowc.texi: Document the new module.
48856
48857 2008-12-18  Bruno Haible  <bruno@clisp.org>
48858
48859         New module 'wctob'.
48860         * lib/wchar.in.h (wctob): New declaration.
48861         * lib/wctob.c: New file.
48862         * m4/wctob.m4: New file.
48863         * modules/wctob: New file.
48864         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
48865         HAVE_WCTOB.
48866         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
48867         * doc/posix-functions/wctob.texi: Document the new module.
48868
48869 2008-12-18  Bruno Haible  <bruno@clisp.org>
48870
48871         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
48872         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
48873
48874 2008-12-18  Simon Josefsson  <simon@josefsson.org>
48875
48876         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
48877         G. Christensen" <tgc@jupiterrise.com>.
48878
48879         * lib/flock.c: Need to include errno.h.  Reported by "Tom
48880         G. Christensen" <tgc@jupiterrise.com>.
48881
48882         * lib/flock.c: Need to include string.h.  Reported by "Tom
48883         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
48884         <ebb9@byu.net>.
48885
48886 2008-12-18  Bruno Haible  <bruno@clisp.org>
48887
48888         * m4/locale-ja.m4: New file, from GNU gettext.
48889
48890 2008-12-17  Bruno Haible  <bruno@clisp.org>
48891
48892         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
48893         Suggested by Eric Blake.
48894
48895 2008-12-17  Bruno Haible  <bruno@clisp.org>
48896
48897         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
48898
48899 2008-12-17  Bruno Haible  <bruno@clisp.org>
48900
48901         * lib/mbsinit.c: Include verify.h. Verify an assumption.
48902         * modules/mbsinit (Depends-on): Add verify.
48903         Suggested by Paul Eggert.
48904
48905 2008-12-17  Bruno Haible  <bruno@clisp.org>
48906
48907         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
48908         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
48909         gl_FUNC_MBRTOWC.
48910         * m4/mbiter.m4 (gl_MBITER): LIkewise.
48911         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
48912         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
48913         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
48914         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
48915         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
48916         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
48917         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
48918         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
48919         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
48920         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
48921         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
48922         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
48923         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
48924         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
48925         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
48926         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
48927         * modules/trim (configure.ac): Likewise.
48928
48929 2008-12-17  Bruno Haible  <bruno@clisp.org>
48930
48931         * modules/btowc-tests: New file.
48932         * tests/test-btowc1.sh: New file.
48933         * tests/test-btowc2.sh: New file.
48934         * tests/test-btowc.c: New file.
48935
48936         New module 'btowc'.
48937         * lib/wchar.in.h (btowc): New declaration.
48938         * lib/btowc.c: New file.
48939         * m4/btowc.m4: New file.
48940         * modules/btowc: New file.
48941         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
48942         HAVE_BTOWC.
48943         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
48944         * doc/posix-functions/btowc.texi: Document the new module.
48945
48946 2008-12-17  Bruno Haible  <bruno@clisp.org>
48947
48948         New module 'mbsinit'.
48949         * lib/wchar.in.h (mbsinit): New declaration.
48950         * lib/mbsinit.c: New file.
48951         * m4/mbsinit.m4: New file.
48952         * modules/mbsinit: New file.
48953         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
48954         HAVE_MBSINIT.
48955         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
48956         HAVE_MBSINIT.
48957         * doc/posix-functions/mbsinit.texi: Document the new module.
48958
48959 2008-12-16  Bruno Haible  <bruno@clisp.org>
48960
48961         * lib/unistd.in.h: Add comment.
48962         * tests/test-environ.c: Don't include <stdlib.h>.
48963
48964 2008-12-16  Bruno Haible  <bruno@clisp.org>
48965
48966         * lib/parse-duration.h (parse_duration): Document return value
48967         convention.
48968         * lib/parse-duration.c: Include specification header first. Add
48969         comments.
48970         (_): Remove macro.
48971         (parse_year_month_day, parse_hour_minute_second): Move side effects
48972         outside of strchr call.
48973         (parse_non_iso8601): Move side effects outside of isspace call.
48974         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
48975         call.
48976
48977 2008-12-16  Bruno Haible  <bruno@clisp.org>
48978
48979         * tests/test-parse-duration.sh: Produce no output when the test
48980         succeeds.
48981
48982 2008-12-16  Bruno Haible  <bruno@clisp.org>
48983
48984         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
48985         expressions.
48986
48987 2008-12-15  Bruno Haible  <bruno@clisp.org>
48988
48989         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
48990         * doc/glibc-functions/flistxattr.texi: Likewise.
48991         * doc/glibc-functions/fopencookie.texi: Likewise.
48992         * doc/glibc-functions/fremovexattr.texi: Likewise.
48993         * doc/glibc-functions/fsetxattr.texi: Likewise.
48994         * doc/glibc-functions/getxattr.texi: Likewise.
48995         * doc/glibc-functions/lgetxattr.texi: Likewise.
48996         * doc/glibc-functions/listxattr.texi: Likewise.
48997         * doc/glibc-functions/llistxattr.texi: Likewise.
48998         * doc/glibc-functions/lremovexattr.texi: Likewise.
48999         * doc/glibc-functions/lsetxattr.texi: Likewise.
49000         * doc/glibc-functions/removexattr.texi: Likewise.
49001         * doc/glibc-functions/setxattr.texi: Likewise.
49002         * doc/posix-functions/open_memstream.texi: Likewise.
49003
49004 2008-12-15  Eric Blake  <ebb9@byu.net>
49005
49006         Update doc for cygwin 1.7.
49007         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
49008         functions.
49009         * doc/posix-functions/fchmodat.texi: Likewise.
49010         * doc/posix-functions/fchownat.texi: Likewise.
49011         * doc/posix-functions/fdopendir.texi: Likewise.
49012         * doc/posix-functions/fmemopen.texi: Likewise.
49013         * doc/posix-functions/freeaddrinfo.texi: Likewise.
49014         * doc/posix-functions/fstatat.texi: Likewise.
49015         * doc/posix-functions/futimens.texi: Likewise.
49016         * doc/posix-functions/gai_strerror.texi: Likewise.
49017         * doc/posix-functions/getaddrinfo.texi: Likewise.
49018         * doc/posix-functions/getnameinfo.texi: Likewise.
49019         * doc/posix-functions/if_freenameindex.texi: Likewise.
49020         * doc/posix-functions/if_indextoname.texi: Likewise.
49021         * doc/posix-functions/if_nameindex.texi: Likewise.
49022         * doc/posix-functions/if_nametoindex.texi: Likewise.
49023         * doc/posix-functions/insque.texi: Likewise.
49024         * doc/posix-functions/linkat.texi: Likewise.
49025         * doc/posix-functions/llrint.texi: Likewise.
49026         * doc/posix-functions/llrintf.texi: Likewise.
49027         * doc/posix-functions/llrintl.texi: Likewise.
49028         * doc/posix-functions/lockf.texi: Likewise.
49029         * doc/posix-functions/lrintl.texi: Likewise.
49030         * doc/posix-functions/mkdirat.texi: Likewise.
49031         * doc/posix-functions/mkfifoat.texi: Likewise.
49032         * doc/posix-functions/mknodat.texi: Likewise.
49033         * doc/posix-functions/mq_close.texi: Likewise.
49034         * doc/posix-functions/mq_getattr.texi: Likewise.
49035         * doc/posix-functions/mq_notify.texi: Likewise.
49036         * doc/posix-functions/mq_open.texi: Likewise.
49037         * doc/posix-functions/mq_receive.texi: Likewise.
49038         * doc/posix-functions/mq_send.texi: Likewise.
49039         * doc/posix-functions/mq_setattr.texi: Likewise.
49040         * doc/posix-functions/mq_timedreceive.texi: Likewise.
49041         * doc/posix-functions/mq_timedsend.texi: Likewise.
49042         * doc/posix-functions/mq_unlink.texi: Likewise.
49043         * doc/posix-functions/open_memstream.texi: Likewise.
49044         * doc/posix-functions/openat.texi: Likewise.
49045         * doc/posix-functions/posix_fadvise.texi: Likewise.
49046         * doc/posix-functions/posix_fallocate.texi: Likewise.
49047         * doc/posix-functions/posix_madvise.texi: Likewise.
49048         * doc/posix-functions/posix_memalign.texi: Likewise.
49049         * doc/posix-functions/posix_openpt.texi: Likewise.
49050         * doc/posix-functions/readlinkat.texi: Likewise.
49051         * doc/posix-functions/remque.texi: Likewise.
49052         * doc/posix-functions/renameat.texi: Likewise.
49053         * doc/posix-functions/rintl.texi: Likewise.
49054         * doc/posix-functions/sem_unlink.texi: Likewise.
49055         * doc/posix-functions/shm_open.texi: Likewise.
49056         * doc/posix-functions/shm_unlink.texi: Likewise.
49057         * doc/posix-functions/signgam.texi: Likewise.
49058         * doc/posix-functions/sigset.texi: Likewise.
49059         * doc/posix-functions/stpcpy.texi: Likewise.
49060         * doc/posix-functions/stpncpy.texi: Likewise.
49061         * doc/posix-functions/strerror.texi: Likewise.
49062         * doc/posix-functions/strtod.texi: Likewise.
49063         * doc/posix-functions/symlinkat.texi: Likewise.
49064         * doc/posix-functions/unlinkat.texi: Likewise.
49065         * doc/posix-functions/utimensat.texi: Likewise.
49066         * doc/glibc-functions/bindresvport.texi: Likewise.
49067         * doc/glibc-functions/dn_expand.texi: Likewise.
49068         * doc/glibc-functions/exp10.texi: Likewise.
49069         * doc/glibc-functions/exp10f.texi: Likewise.
49070         * doc/glibc-functions/fgetxattr.texi: Likewise.
49071         * doc/glibc-functions/flistxattr.texi: Likewise.
49072         * doc/glibc-functions/fopencookie.texi: Likewise.
49073         * doc/glibc-functions/freeifaddrs.texi: Likewise.
49074         * doc/glibc-functions/fremovexattr.texi: Likewise.
49075         * doc/glibc-functions/fsetxattr.texi: Likewise.
49076         * doc/glibc-functions/getifaddrs.texi: Likewise.
49077         * doc/glibc-functions/getxattr.texi: Likewise.
49078         * doc/glibc-functions/lgetxattr.texi: Likewise.
49079         * doc/glibc-functions/listxattr.texi: Likewise.
49080         * doc/glibc-functions/llistxattr.texi: Likewise.
49081         * doc/glibc-functions/lremovexattr.texi: Likewise.
49082         * doc/glibc-functions/lsetxattr.texi: Likewise.
49083         * doc/glibc-functions/pow10.texi: Likewise.
49084         * doc/glibc-functions/pow10f.texi: Likewise.
49085         * doc/glibc-functions/rcmd_af.texi: Likewise.
49086         * doc/glibc-functions/removexattr.texi: Likewise.
49087         * doc/glibc-functions/res_init.texi: Likewise.
49088         * doc/glibc-functions/res_mkquery.texi: Likewise.
49089         * doc/glibc-functions/res_query.texi: Likewise.
49090         * doc/glibc-functions/res_querydomain.texi: Likewise.
49091         * doc/glibc-functions/res_send.texi: Likewise.
49092         * doc/glibc-functions/rresvport_af.texi: Likewise.
49093         * doc/glibc-functions/setxattr.texi: Likewise.
49094         * doc/glibc-functions/strcasestr.texi: Likewise.
49095
49096 2008-12-15  Bruno Haible  <bruno@clisp.org>
49097
49098         Fix compilation error on OSF/1 4.0.
49099         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
49100         <sys/time.h>, simply delegate to the system header.
49101         Reported by Daniel Richard G. <oss@teragram.com>.
49102
49103 2008-12-15  Bruno Haible  <bruno@clisp.org>
49104
49105         * doc/posix-functions/openat.texi: Mention the 'openat' module.
49106         * doc/posix-functions/fchmodat.texi: Likewise.
49107         * doc/posix-functions/fchownat.texi: Likewise.
49108         * doc/posix-functions/fdopendir.texi: Likewise.
49109         * doc/posix-functions/fstatat.texi: Likewise.
49110         * doc/posix-functions/mkdirat.texi: Likewise.
49111         * doc/posix-functions/unlinkat.texi: Likewise.
49112
49113 2008-12-14  Bruno Haible  <bruno@clisp.org>
49114
49115         Update doc for POSIX:2008.
49116         * doc/posix-functions/faccessat.texi: New file.
49117         * doc/posix-functions/fchmodat.texi: New file.
49118         * doc/posix-functions/fchownat.texi: New file.
49119         * doc/posix-functions/fdopendir.texi: New file.
49120         * doc/posix-functions/fstatat.texi: New file.
49121         * doc/posix-functions/futimens.texi: New file.
49122         * doc/posix-functions/linkat.texi: New file.
49123         * doc/posix-functions/mkdirat.texi: New file.
49124         * doc/posix-functions/mkfifoat.texi: New file.
49125         * doc/posix-functions/mknodat.texi: New file.
49126         * doc/posix-functions/open_wmemstream.texi: New file.
49127         * doc/posix-functions/openat.texi: New file.
49128         * doc/posix-functions/psiginfo.texi: New file.
49129         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
49130         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
49131         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
49132         * doc/posix-functions/readlinkat.texi: New file.
49133         * doc/posix-functions/renameat.texi: New file.
49134         * doc/posix-functions/strerror_l.texi: New file.
49135         * doc/posix-functions/symlinkat.texi: New file.
49136         * doc/posix-functions/unlinkat.texi: New file.
49137         * doc/posix-functions/utimensat.texi: New file.
49138         * doc/gnulib.texi (Function Substitutes): Add these subsections.
49139
49140 2008-12-14  Bruno Haible  <bruno@clisp.org>
49141
49142         Update doc for POSIX:2008.
49143         * doc/posix-functions/alphasort.texi: Renamed from
49144         doc/glibc-functions/alphasort.texi.
49145         * doc/posix-functions/dirfd.texi: Renamed from
49146         doc/glibc-functions/dirfd.texi.
49147         * doc/posix-functions/dprintf.texi: Renamed from
49148         doc/glibc-functions/dprintf.texi.
49149         * doc/posix-functions/duplocale.texi: Renamed from
49150         doc/glibc-functions/duplocale.texi.
49151         * doc/posix-functions/fexecve.texi: Renamed from
49152         doc/glibc-functions/fexecve.texi.
49153         * doc/posix-functions/fmemopen.texi: Renamed from
49154         doc/glibc-functions/fmemopen.texi.
49155         * doc/posix-functions/freelocale.texi: Renamed from
49156         doc/glibc-functions/freelocale.texi.
49157         * doc/posix-functions/getdate_err.texi: Renamed from
49158         doc/glibc-functions/getdate_err.texi.
49159         * doc/posix-functions/isalnum_l.texi: Renamed from
49160         doc/glibc-functions/isalnum_l.texi.
49161         * doc/posix-functions/isalpha_l.texi: Renamed from
49162         doc/glibc-functions/isalpha_l.texi.
49163         * doc/posix-functions/isblank_l.texi: Renamed from
49164         doc/glibc-functions/isblank_l.texi.
49165         * doc/posix-functions/iscntrl_l.texi: Renamed from
49166         doc/glibc-functions/iscntrl_l.texi.
49167         * doc/posix-functions/isdigit_l.texi: Renamed from
49168         doc/glibc-functions/isdigit_l.texi.
49169         * doc/posix-functions/isgraph_l.texi: Renamed from
49170         doc/glibc-functions/isgraph_l.texi.
49171         * doc/posix-functions/islower_l.texi: Renamed from
49172         doc/glibc-functions/islower_l.texi.
49173         * doc/posix-functions/isprint_l.texi: Renamed from
49174         doc/glibc-functions/isprint_l.texi.
49175         * doc/posix-functions/ispunct_l.texi: Renamed from
49176         doc/glibc-functions/ispunct_l.texi.
49177         * doc/posix-functions/isspace_l.texi: Renamed from
49178         doc/glibc-functions/isspace_l.texi.
49179         * doc/posix-functions/isupper_l.texi: Renamed from
49180         doc/glibc-functions/isupper_l.texi.
49181         * doc/posix-functions/iswalnum_l.texi: Renamed from
49182         doc/glibc-functions/iswalnum_l.texi.
49183         * doc/posix-functions/iswalpha_l.texi: Renamed from
49184         doc/glibc-functions/iswalpha_l.texi.
49185         * doc/posix-functions/iswblank_l.texi: Renamed from
49186         doc/glibc-functions/iswblank_l.texi.
49187         * doc/posix-functions/iswcntrl_l.texi: Renamed from
49188         doc/glibc-functions/iswcntrl_l.texi.
49189         * doc/posix-functions/iswctype_l.texi: Renamed from
49190         doc/glibc-functions/iswctype_l.texi.
49191         * doc/posix-functions/iswdigit_l.texi: Renamed from
49192         doc/glibc-functions/iswdigit_l.texi.
49193         * doc/posix-functions/iswgraph_l.texi: Renamed from
49194         doc/glibc-functions/iswgraph_l.texi.
49195         * doc/posix-functions/iswlower_l.texi: Renamed from
49196         doc/glibc-functions/iswlower_l.texi.
49197         * doc/posix-functions/iswprint_l.texi: Renamed from
49198         doc/glibc-functions/iswprint_l.texi.
49199         * doc/posix-functions/iswpunct_l.texi: Renamed from
49200         doc/glibc-functions/iswpunct_l.texi.
49201         * doc/posix-functions/iswspace_l.texi: Renamed from
49202         doc/glibc-functions/iswspace_l.texi.
49203         * doc/posix-functions/iswupper_l.texi: Renamed from
49204         doc/glibc-functions/iswupper_l.texi.
49205         * doc/posix-functions/iswxdigit_l.texi: Renamed from
49206         doc/glibc-functions/iswxdigit_l.texi.
49207         * doc/posix-functions/isxdigit_l.texi: Renamed from
49208         doc/glibc-functions/isxdigit_l.texi.
49209         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
49210         doc/glibc-functions/mbsnrtowcs.texi.
49211         * doc/posix-functions/mkdtemp.texi: Renamed from
49212         doc/glibc-functions/mkdtemp.texi.
49213         * doc/posix-functions/newlocale.texi: Renamed from
49214         doc/glibc-functions/newlocale.texi.
49215         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
49216         doc/glibc-functions/nl_langinfo_l.texi.
49217         * doc/posix-functions/open_memstream.texi: Renamed from
49218         doc/glibc-functions/open_memstream.texi.
49219         * doc/posix-functions/opterr.texi: Renamed from
49220         doc/glibc-functions/opterr.texi.
49221         * doc/posix-functions/optind.texi: Renamed from
49222         doc/glibc-functions/optind.texi.
49223         * doc/posix-functions/optopt.texi: Renamed from
49224         doc/glibc-functions/optopt.texi.
49225         * doc/posix-functions/psignal.texi: Renamed from
49226         doc/glibc-functions/psignal.texi.
49227         * doc/posix-functions/scandir.texi: Renamed from
49228         doc/glibc-functions/scandir.texi.
49229         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
49230         doc/glibc-functions/sched_get_priority_min.texi.
49231         * doc/posix-functions/signgam.texi: Renamed from
49232         doc/glibc-functions/signgam.texi.
49233         * doc/posix-functions/stpcpy.texi: Renamed from
49234         doc/glibc-functions/stpcpy.texi.
49235         * doc/posix-functions/stpncpy.texi: Renamed from
49236         doc/glibc-functions/stpncpy.texi.
49237         * doc/posix-functions/strcasecmp_l.texi: Renamed from
49238         doc/glibc-functions/strcasecmp_l.texi.
49239         * doc/posix-functions/strcoll_l.texi: Renamed from
49240         doc/glibc-functions/strcoll_l.texi.
49241         * doc/posix-functions/strfmon_l.texi: Renamed from
49242         doc/glibc-functions/strfmon_l.texi.
49243         * doc/posix-functions/strftime_l.texi: Renamed from
49244         doc/glibc-functions/strftime_l.texi.
49245         * doc/posix-functions/strncasecmp_l.texi: Renamed from
49246         doc/glibc-functions/strncasecmp_l.texi.
49247         * doc/posix-functions/strndup.texi: Renamed from
49248         doc/glibc-functions/strndup.texi.
49249         * doc/posix-functions/strnlen.texi: Renamed from
49250         doc/glibc-functions/strnlen.texi.
49251         * doc/posix-functions/strsignal.texi: Renamed from
49252         doc/glibc-functions/strsignal.texi.
49253         * doc/posix-functions/strxfrm_l.texi: Renamed from
49254         doc/glibc-functions/strxfrm_l.texi.
49255         * doc/posix-functions/timer_gettime.texi: Renamed from
49256         doc/glibc-functions/timer_gettime.texi.
49257         * doc/posix-functions/tolower_l.texi: Renamed from
49258         doc/glibc-functions/tolower_l.texi.
49259         * doc/posix-functions/toupper_l.texi: Renamed from
49260         doc/glibc-functions/toupper_l.texi.
49261         * doc/posix-functions/towctrans_l.texi: Renamed from
49262         doc/glibc-functions/towctrans_l.texi.
49263         * doc/posix-functions/towlower_l.texi: Renamed from
49264         doc/glibc-functions/towlower_l.texi.
49265         * doc/posix-functions/towupper_l.texi: Renamed from
49266         doc/glibc-functions/towupper_l.texi.
49267         * doc/posix-functions/uselocale.texi: Renamed from
49268         doc/glibc-functions/uselocale.texi.
49269         * doc/posix-functions/vdprintf.texi: Renamed from
49270         doc/glibc-functions/vdprintf.texi.
49271         * doc/posix-functions/wcpcpy.texi:
49272         Renamed from doc/glibc-functions/wcpcpy.texi.
49273         * doc/posix-functions/wcpncpy.texi: Renamed from
49274         doc/glibc-functions/wcpncpy.texi.
49275         * doc/posix-functions/wcscasecmp.texi: Renamed from
49276         doc/glibc-functions/wcscasecmp.texi.
49277         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
49278         doc/glibc-functions/wcscasecmp_l.texi.
49279         * doc/posix-functions/wcscoll_l.texi: Renamed from
49280         doc/glibc-functions/wcscoll_l.texi.
49281         * doc/posix-functions/wcsdup.texi: Renamed from
49282         doc/glibc-functions/wcsdup.texi.
49283         * doc/posix-functions/wcsncasecmp.texi: Renamed from
49284         doc/glibc-functions/wcsncasecmp.texi.
49285         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
49286         doc/glibc-functions/wcsncasecmp_l.texi.
49287         * doc/posix-functions/wcsnlen.texi: Renamed from
49288         doc/glibc-functions/wcsnlen.texi.
49289         * doc/posix-functions/wcsnrtombs.texi: Renamed from
49290         doc/glibc-functions/wcsnrtombs.texi.
49291         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
49292         doc/glibc-functions/wcsxfrm_l.texi.
49293         * doc/posix-functions/wctrans_l.texi: Renamed from
49294         doc/glibc-functions/wctrans_l.texi.
49295         * doc/posix-functions/wctype_l.texi: Renamed from
49296         doc/glibc-functions/wctype_l.texi.
49297         * doc/gnulib.texi (Function Substitutes): Add these subsections.
49298         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
49299         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
49300         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
49301         these subsections.
49302         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
49303         Remove sections.
49304
49305 2008-12-14  Bruno Haible  <bruno@clisp.org>
49306
49307         Update doc for POSIX:2008.
49308         * doc/posix-functions/*.texi: Update URL of POSIX specification.
49309
49310 2008-12-14  Bruno Haible  <bruno@clisp.org>
49311
49312         Update doc for POSIX:2008.
49313         * doc/pastposix-functions/bcmp.texi: Renamed from
49314         doc/posix-functions/bcmp.texi.
49315         * doc/pastposix-functions/bcopy.texi: Renamed from
49316         doc/posix-functions/bcopy.texi.
49317         * doc/pastposix-functions/bsd_signal.texi: Renamed from
49318         doc/posix-functions/bsd_signal.texi.
49319         * doc/pastposix-functions/bzero.texi: Renamed from
49320         doc/posix-functions/bzero.texi.
49321         * doc/pastposix-functions/ecvt.texi: Renamed from
49322         doc/posix-functions/ecvt.texi.
49323         * doc/pastposix-functions/fcvt.texi: Renamed from
49324         doc/posix-functions/fcvt.texi.
49325         * doc/pastposix-functions/ftime.texi: Renamed from
49326         doc/posix-functions/ftime.texi.
49327         * doc/pastposix-functions/gcvt.texi: Renamed from
49328         doc/posix-functions/gcvt.texi.
49329         * doc/pastposix-functions/getcontext.texi: Renamed from
49330         doc/posix-functions/getcontext.texi.
49331         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
49332         doc/posix-functions/gethostbyaddr.texi.
49333         * doc/pastposix-functions/gethostbyname.texi: Renamed from
49334         doc/posix-functions/gethostbyname.texi.
49335         * doc/pastposix-functions/getwd.texi: Renamed from
49336         doc/posix-functions/getwd.texi.
49337         * doc/pastposix-functions/h_errno.texi: Renamed from
49338         doc/posix-functions/h_errno.texi.
49339         * doc/pastposix-functions/index.texi: Renamed from
49340         doc/posix-functions/index.texi.
49341         * doc/pastposix-functions/makecontext.texi: Renamed from
49342         doc/posix-functions/makecontext.texi.
49343         * doc/pastposix-functions/mktemp.texi: Renamed from
49344         doc/posix-functions/mktemp.texi.
49345         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
49346         doc/posix-functions/pthread_attr_getstackaddr.texi.
49347         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
49348         doc/posix-functions/pthread_attr_setstackaddr.texi.
49349         * doc/pastposix-functions/rindex.texi: Renamed from
49350         doc/posix-functions/rindex.texi.
49351         * doc/pastposix-functions/scalb.texi: Renamed from
49352         doc/posix-functions/scalb.texi.
49353         * doc/pastposix-functions/setcontext.texi: Renamed from
49354         doc/posix-functions/setcontext.texi.
49355         * doc/pastposix-functions/swapcontext.texi: Renamed from
49356         doc/posix-functions/swapcontext.texi.
49357         * doc/pastposix-functions/ualarm.texi: Renamed from
49358         doc/posix-functions/ualarm.texi.
49359         * doc/pastposix-functions/usleep.texi: Renamed from
49360         doc/posix-functions/usleep.texi.
49361         * doc/pastposix-functions/vfork.texi: Renamed from
49362         doc/posix-functions/vfork.texi.
49363         * doc/pastposix-functions/wcswcs.texi: Renamed from
49364         doc/posix-functions/wcswcs.texi.
49365         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
49366         (Function Substitutes): Update.
49367
49368 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49369
49370         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
49371         m4/strerror.m4.
49372
49373 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49374             Bruno Haible  <bruno@clisp.org>
49375
49376         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
49377
49378 2008-12-13  Bruno Haible  <bruno@clisp.org>
49379
49380         * modules/strtoull (Depends-on): Remove unistd.
49381
49382 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49383
49384         * modules/strtoull (Depends-on): Add stdlib.
49385
49386 2008-12-11  Simon Josefsson  <simon@josefsson.org>
49387
49388         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
49389
49390 2008-12-10  Jim Meyering  <meyering@redhat.com>
49391
49392         gl_ASSERT: don't say assertions are disabled when they're not
49393         * m4/assert.m4 (gl_ASSERT): Do not make configure report
49394         "checking whether to enable assertions... no", when they are in
49395         fact enabled.  This is solely a bug in the output of configure.
49396         In spite of saying "no", NDEBUG was not defined in that case.
49397         Also, as noted by Eric Blake, leave assertions enabled upon
49398         --enable-assert=INVALID.
49399
49400 2008-12-10  Bruno Haible  <bruno@clisp.org>
49401
49402         Change MODULES.html to refer to POSIX:2008 where possible.
49403         * MODULES.html.sh (POSIX2008_URL): New variable.
49404         (posix_headers): Remove sys/timeb, ucontext.
49405         (posix2001_headers): New variable.
49406         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
49407         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
49408         index, makecontext, mktemp, pthread_attr_getstackaddr,
49409         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
49410         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
49411         (posix2001_functions): New variable.
49412         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
49413         otherwise.
49414
49415 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49416
49417         add missing include to parse-duration.c
49418         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
49419         * modules/parse-duration (Depends-on): Add xalloc.
49420
49421         fix sed script reading maint.mk
49422         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
49423         (syntax-check-rules): Use it.
49424
49425 2008-12-09  Bruno Haible  <bruno@clisp.org>
49426
49427         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
49428         MacOS X 10.4/PowerPC.
49429         Reported by Simon Josefsson.
49430
49431 2008-12-08  Jim Meyering  <meyering@redhat.com>
49432
49433         work around mingw's lack of some S_IF definitions
49434         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
49435         Reported by Simon Josefsson.
49436
49437 2008-12-08  Bruno Haible  <bruno@clisp.org>
49438
49439         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
49440         applied to variables. Needed on MacOS X 10.4/PowerPC.
49441         Reported by Simon Josefsson.
49442
49443 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
49444         and Eric Blake  <ebb9@byu.net>
49445
49446         assert: honor --enable-assert
49447         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
49448         order to honor --enable-assert, rather than treating it as a
49449         synonym for --disable-assert.
49450
49451 2008-12-08  Jim Meyering  <meyering@redhat.com>
49452
49453         * lib/posixtm.c: Remove now-useless declaration of mktime.
49454
49455         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
49456
49457 2008-12-07  Bruno Haible  <bruno@clisp.org>
49458
49459         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
49460         test_once): Mark functions as static.
49461         * tests/test-tls.c (test_tls): Likewise.
49462
49463 2008-12-07  Bruno Haible  <bruno@clisp.org>
49464
49465         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
49466         iconv_register_autodetect.
49467
49468 2008-12-07  Jim Meyering  <meyering@redhat.com>
49469
49470         posixtm.c: avoid a warning
49471         * lib/posixtm.c (posixtime): Don't initialize tm0.
49472         It's no longer needed to placate gcc4's -Wuninitialized,
49473         and the attempt to placate would elicit a new warning.
49474
49475         unicodeio.c: mark unused parameters
49476         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
49477         (fallback_failure_callback): Likewise.
49478
49479 2008-12-07  Bruno Haible  <bruno@clisp.org>
49480
49481         * gnulib-tool (func_create_testdir): When building the tests
49482         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
49483         Reported by Simon Josefsson.
49484
49485 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49486
49487         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
49488
49489 2008-12-06  Bruno Haible  <bruno@clisp.org>
49490
49491         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
49492         Suggested by Eric Blake.
49493
49494 2008-12-06  Bruno Haible  <bruno@clisp.org>
49495
49496         Fix a c-stack test failure on MacOS X.
49497         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
49498         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
49499         handler for SIGBUS as well.
49500         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
49501         install a signal handler for SIGBUS as well.
49502         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
49503
49504 2008-12-06  Bruno Haible  <bruno@clisp.org>
49505
49506         Advocacy documentation.
49507         * doc/gnulib-intro.texi (Benefits): New section.
49508         * doc/gnulib.texi: Update.
49509
49510 2008-12-06  Bruno Haible  <bruno@clisp.org>
49511
49512         Document the 'manywarnings' module.
49513         * doc/manywarnings.texi: New file.
49514         * doc/gnulib.texi: Include it.
49515
49516 2008-12-05  Eric Blake  <ebb9@byu.net>
49517
49518         tests: silence some gcc warnings
49519         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
49520         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
49521         type mismatches.
49522
49523 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49524             Bruno Haible  <bruno@clisp.org>
49525
49526         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
49527
49528 2008-11-29  Jim Meyering  <meyering@redhat.com>
49529
49530         unicodeio.c: mark unused parameters
49531         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
49532         (fallback_failure_callback): Likewise.
49533
49534         fts: fix a thinko
49535         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
49536         (set_stat_type): Return S_IF*-valued "type" directly.
49537         Prompted by James Youngman's spotting a related bug.
49538         Confirmed by further testing through find.
49539
49540         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
49541         * lib/fts.c (D_TYPE): Define.
49542         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
49543         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
49544         (s_ifmt_shift_bits): New function.
49545         (set_stat_type): New function.
49546         (fts_build): When not calling fts_stat, call set_stat_type
49547         to propagate dirent.d_type info to fts_read caller.
49548         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
49549         fts_statp->st_mode type information may be valid.
49550
49551 2008-11-28  Simon Josefsson  <simon@josefsson.org>
49552
49553         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
49554         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
49555         <sds@gnu.org>.
49556
49557 2008-11-20  Bruno Haible  <bruno@clisp.org>
49558
49559         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
49560         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
49561         INCLUDE_NEXT.
49562         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
49563         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
49564         * modules/math (Makefile.am): Substitute
49565         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
49566         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49567
49568 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
49569             Bruno Haible  <bruno@clisp.org>
49570
49571         * lib/stdint.in.h: Define all type macros so that their expansion is
49572         a single typedef'ed token. Fixes a compilation failure in Boost which
49573         does "using ::int8_t;".
49574
49575 2008-11-18  Simon Josefsson  <simon@josefsson.org>
49576
49577         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
49578         gl_MANYWARN_ALL_GCC.
49579         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
49580         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
49581         * modules/manywarnings: New file.
49582         * MODULES.html.sh: Mention manywarnings module.
49583
49584 2008-11-18  Bruno Haible  <bruno@clisp.org>
49585
49586         * doc/gnulib-tool.texi (Unit tests): New section.
49587
49588 2008-11-18  Simon Josefsson  <simon@josefsson.org>
49589
49590         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
49591         paths like 'lib/po/foo.po'.
49592
49593 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49594
49595         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
49596         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
49597
49598 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49599
49600         * m4/warnings.m4: Use CPPFLAGS to really check whether the
49601         parameter works.
49602
49603 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49604
49605         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
49606
49607 2008-11-17  Bruce Korb  <bkorb@gnu.org>
49608
49609         * modules/parse-duration-tests: New file.
49610         * tests/test-parse-duration.sh: New file.
49611         * tests/test-parse-duration.c: New file.
49612
49613         New module 'parse-duration'.
49614         * lib/parse-duration.h: New file.
49615         * lib/parse-duration.c: New file.
49616         * modules/parse-duration: New file.
49617
49618 2008-11-17  Bruno Haible  <bruno@clisp.org>
49619
49620         * tests/test-select-out.sh: Comment out the first pipe test.
49621         Reported by Simon Josefsson.
49622
49623 2008-11-17  Bruno Haible  <bruno@clisp.org>
49624
49625         * modules/getaddrinfo (Depends-on): Add servent, hostent.
49626         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
49627         gl_HOSTENT.
49628
49629 2008-11-17  Bruno Haible  <bruno@clisp.org>
49630
49631         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
49632         -lnetwork and -lnet. Needed for Haiku and BeOS.
49633
49634 2008-11-16  Bruno Haible  <bruno@clisp.org>
49635
49636         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
49637
49638 2008-11-16  Bruno Haible  <bruno@clisp.org>
49639
49640         Avoid test failure on Haiku.
49641         * tests/test-fsync.c: Include <errno.h>.
49642         (main): Don't require that fsync (0) fails.
49643
49644 2008-11-15  Bruno Haible  <bruno@clisp.org>
49645
49646         New module 'hostent'.
49647         * modules/hostent: New file.
49648         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
49649
49650 2008-11-15  Bruno Haible  <bruno@clisp.org>
49651
49652         New module 'servent'.
49653         * modules/servent: New file.
49654         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
49655
49656 2008-11-15  Bruno Haible  <bruno@clisp.org>
49657
49658         Avoid generating same test program with two different rules.
49659         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
49660         test-frexp to test-frexp-nolibm.
49661         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
49662         test-frexpl to test-frexpl-nolibm.
49663
49664 2008-11-15  Bruno Haible  <bruno@clisp.org>
49665
49666         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
49667         $(FREXPL_LIBM).
49668
49669 2008-11-15  Bruno Haible  <bruno@clisp.org>
49670
49671         * lib/netdb.in.h: Activate the definitions also when the system's
49672         <netdb.h> has 'struct addrinfo'.
49673         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
49674         EAI_OVERFLOW or AI_NUMERICSERV.
49675         * doc/posix-headers/netdb.texi: Document the problem.
49676
49677 2008-11-15  Bruno Haible  <bruno@clisp.org>
49678
49679         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
49680
49681         Make the 'sched' module work on platforms where <sched.h> exists but
49682         is incomplete (such as Haiku).
49683         * lib/sched.in.h; Include the system's <sched.h> if it exists.
49684         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
49685         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
49686         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
49687         HAVE_STRUCT_SCHED_PARAM.
49688         * modules/sched (Depends-on): Add include_next.
49689         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
49690         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
49691         * doc/posix-headers/sched.texi: Document the issue.
49692
49693 2008-11-13  Jim Meyering  <meyering@redhat.com>
49694
49695         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
49696         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
49697         test would fail due to the difference in the Report bugs to ...
49698         line.  The expected address is empty, "<>", while the actual
49699         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
49700
49701 2008-11-12  Bruno Haible  <bruno@clisp.org>
49702
49703         lstat: don't compile lstat.c on systems lacking lstat
49704         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
49705         which don't have lstat; this is handled by lib/sys_stat.in.h already.
49706         Reported by Daniel P. Berrange via Jim Meyering.
49707
49708 2008-11-12  Jim Meyering  <meyering@redhat.com>
49709
49710         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
49711
49712 2008-11-12  Simon Josefsson  <simon@josefsson.org>
49713
49714         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
49715         instead.
49716
49717 2008-11-12  Bruno Haible  <bruno@clisp.org>
49718
49719         * lib/unicodeio.c: Include unistr.h.
49720         (utf8_wctomb): Remove function.
49721         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
49722
49723 2008-11-12  Simon Josefsson  <simon@josefsson.org>
49724
49725         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
49726         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
49727         <bruno@clisp.org>.
49728         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
49729
49730 2008-11-12  Simon Josefsson  <simon@josefsson.org>
49731
49732         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
49733         * doc/gnulib.texi: Add section for warnings.
49734
49735 2008-11-11  Bruno Haible  <bruno@clisp.org>
49736
49737         * lib/sockets.h: Add a comment.
49738
49739 2008-11-11  Karl Berry  <karl@gnu.org>
49740
49741         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
49742
49743 2008-11-11  Eric Blake  <ebb9@byu.net>
49744
49745         fdl.texi: avoid git symlinks
49746         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
49747
49748 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49749
49750         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
49751
49752 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49753
49754         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
49755         (gl_WARN_ADD): Substitute $2 if literal.
49756
49757 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49758
49759         * m4/warning.m4: Remove.
49760
49761 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49762
49763         * m4/warnings.m4: Almost complete rewrite. :-)
49764
49765 2008-11-10  Simon Josefsson  <simon@josefsson.org>
49766
49767         * modules/warnings: New module.
49768         * m4/warnings.m4: New file.
49769         * MODULES.html.sh: Mention warnings module.
49770         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
49771         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49772
49773 2008-11-10  Eric Blake  <ebb9@byu.net>
49774
49775         fdl.texi: make a symlink to the latest version
49776         * doc/standards.texi: Revert today's earlier change.
49777         * doc/fdl-1.2.texi: Rename from old fdl.texi...
49778         * doc/fdl.texi: ...and replace this with a symlink to the newer
49779         fdl-1.3.texi.
49780
49781 2008-11-10  Bruno Haible  <bruno@clisp.org>
49782
49783         * tests/test-select-fd.c (main): Accept the result file name as fourth
49784         argument.
49785         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
49786         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
49787
49788 2008-11-10  Bruno Haible  <bruno@clisp.org>
49789
49790         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
49791         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
49792         as autoconf-substituted macros.
49793         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
49794         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
49795         gl_NETDB_H_DEFAULTS. Set these variables.
49796         * modules/netdb (Makefile.am): Substitute these variables.
49797
49798 2008-11-10  Eric Blake  <ebb9@byu.net>
49799
49800         standards.texi: include correct file for FDL 1.3
49801         * doc/standards.texi (GNU Free Documentation License): Change
49802         include file to pull in FDL 1.3, not 1.2.
49803
49804         fdl.texi: revert accidental change to license
49805         * doc/fdl.texi: This is FDL 1.2, not 1.3.
49806
49807 2008-11-10  Bruno Haible  <bruno@clisp.org>
49808
49809         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
49810         cross-compiling guesses also when the native compile gives no result.
49811
49812 2008-11-10  Bruno Haible  <bruno@clisp.org>
49813
49814         * lib/spawni.c (__spawni): Force variable into the stack.
49815
49816 2008-11-10  Bruno Haible  <bruno@clisp.org>
49817
49818         Add support for Haiku.
49819         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
49820         glibc and BeOS, but also on Haiku.
49821         * lib/fpurge.c (fpurge): Likewise.
49822         * lib/freadable.c (freadable): Likewise.
49823         * lib/freadahead.c (freadahead): Likewise.
49824         * lib/freading.c (freading): Likewise.
49825         * lib/freadptr.c (freadptr): Likewise.
49826         * lib/freadseek.c (freadptrinc): Likewise.
49827         * lib/fseeko.c (rpl_fseeko): Likewise.
49828         * lib/fseterr.c (fseterr): Likewise.
49829         * lib/fwritable.c (fwritable): Likewise.
49830         * lib/fwriting.c (fwriting): Likewise.
49831         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
49832
49833 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
49834
49835         * lib/config.charset: Treat Haiku like BeOS.
49836
49837 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
49838
49839         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
49840         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
49841
49842 2008-11-08  Bruno Haible  <bruno@clisp.org>
49843
49844         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
49845         AC_CACHE_CHECK.
49846
49847 2008-11-08  Bruno Haible  <bruno@clisp.org>
49848
49849         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
49850
49851 2008-11-08  Bruno Haible  <bruno@clisp.org>
49852
49853         * tests/test-select-fd.c: New file.
49854         * tests/test-select-in.sh: New file.
49855         * tests/test-select-out.sh: New file.
49856         * tests/test-select-stdin.c: New file.
49857         * modules/select-tests (Files): Add the new files.
49858         (Depends-on): Add gettimeofday.
49859         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
49860         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
49861         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
49862
49863 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
49864             Bruno Haible  <bruno@clisp.org>
49865
49866         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
49867
49868 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
49869
49870         * build-aux/pmccabe2html: Added support for C++ source files.
49871
49872 2008-11-05  Ben Pfaff  <blp@gnu.org>
49873
49874         Fix lib/close.c build on Windows.
49875         * modules/close (Files): Add lib/w32sock.h.
49876
49877 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
49878
49879         Accept Bison's NEWS format.
49880         * build-aux/announce-gen (print_news_deltas): Tweak
49881         $re_prefix.
49882
49883 2008-11-04  Bruno Haible  <bruno@clisp.org>
49884
49885         * modules/random_r (Maintainer): Add glibc.
49886
49887 2008-11-04  Simon Josefsson  <simon@josefsson.org>
49888
49889         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
49890         by karl@freefriends.org (Karl Berry).
49891         * doc/alloca.texi: Likewise.
49892         * doc/c-ctype.texi: Likewise.
49893         * doc/c-strcase.texi: Likewise.
49894         * doc/c-strcaseeq.texi: Likewise.
49895         * doc/c-strcasestr.texi: Likewise.
49896         * doc/c-strstr.texi: Likewise.
49897         * doc/c-strtod.texi: Likewise.
49898         * doc/c-strtold.texi: Likewise.
49899         * doc/ctime.texi: Likewise.
49900         * doc/error.texi: Likewise.
49901         * doc/fdl.texi: Likewise.
49902         * doc/gcd.texi: Likewise.
49903         * doc/getdate.texi: Likewise.
49904         * doc/gnulib-intro.texi: Likewise.
49905         * doc/gnulib-tool.texi: Likewise.
49906         * doc/gnulib.texi: Likewise.
49907         * doc/inet_ntoa.texi: Likewise.
49908         * doc/maintain.texi: Likewise.
49909         * doc/make-stds.texi: Likewise.
49910         * doc/quote.texi: Likewise.
49911         * doc/regexprops-generic.texi: Likewise.
49912         * doc/standards.texi: Likewise.
49913         * doc/verify.texi: Likewise.
49914         * doc/visibility.texi: Likewise.
49915         * doc/gnulib.texi (GNU Free Documentation License): Include
49916         fdl-1.3.texi instead of fdl.texi.
49917
49918 2008-11-04  Simon Josefsson  <simon@josefsson.org>
49919
49920         * doc/fdl-1.3.texi: New file, from
49921         <http://www.gnu.org/licenses/fdl-1.3.texi>.
49922         * modules/fdl-1.3: Add.
49923         * MODULES.html.sh: Add fdl-1.3.
49924
49925 2008-11-03  Bruno Haible  <bruno@clisp.org>
49926
49927         Make determination of absolute name of header file work with AIX xlc.
49928         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
49929         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
49930         preprocessing.
49931         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
49932         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
49933
49934 2008-11-03  Simon Josefsson  <simon@josefsson.org>
49935
49936         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
49937         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
49938         <ludo@gnu.org>.
49939
49940 2008-11-02  Bruno Haible  <bruno@clisp.org>
49941
49942         Mark 'strpbrk' obsolete.
49943         * modules/strpbrk (Status, Notice): New sections.
49944         * modules/strtok_r (Depends-on): Add strpbrk.
49945
49946 2008-11-02  Bruno Haible  <bruno@clisp.org>
49947
49948         Mark 'strdup' obsolete.
49949         * modules/strdup (Status, Notice): New sections.
49950         * modules/findprog (Depends-on): Add strdup.
49951         * modules/getaddrinfo (Depends-on): Likewise.
49952         * modules/localename (Depends-on): Likewise.
49953         * modules/relocatable-lib (Depends-on): Likewise.
49954         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
49955         * modules/relocatable-prog (Depends-on): Likewise.
49956         * modules/trim (Depends-on): Likewise.
49957         * modules/unictype/gen-ctype (Depends-on): Likewise.
49958         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
49959
49960 2008-11-02  Bruno Haible  <bruno@clisp.org>
49961
49962         Mark 'strcspn' obsolete.
49963         * modules/strcspn (Status, Notice): New sections.
49964
49965 2008-11-02  Bruno Haible  <bruno@clisp.org>
49966
49967         Mark 'rmdir' obsolete.
49968         * modules/rmdir (Status, Notice): New sections.
49969         * modules/clean-temp (Depends-on): Add rmdir.
49970         * modules/openat (Depends-on): Likewise.
49971
49972 2008-11-02  Bruno Haible  <bruno@clisp.org>
49973
49974         Mark 'raise' obsolete.
49975         * modules/raise (Status, Notice): New sections.
49976         (Include): Specify <signal.h>.
49977         * modules/stdio (Depends-on): Add raise.
49978         * modules/write (Depends-on): Likewise.
49979
49980 2008-11-02  Bruno Haible  <bruno@clisp.org>
49981
49982         Mark 'memset' obsolete.
49983         * modules/memset (Status, Notice): New sections.
49984
49985 2008-11-02  Bruno Haible  <bruno@clisp.org>
49986
49987         Mark 'memmove' obsolete.
49988         * modules/memmove (Status, Notice): New sections.
49989         * modules/argp (Depends-on): Add memmove.
49990         * modules/argz (Depends-on): Likewise.
49991         * modules/canonicalize (Depends-on): Likewise.
49992         * modules/canonicalize-lgpl (Depends-on): Likewise.
49993         * modules/fts (Depends-on): Likewise.
49994         * modules/getcwd (Depends-on): Likewise.
49995         * modules/human (Depends-on): Likewise.
49996         * modules/regex (Depends-on): Likewise.
49997         * modules/striconveh (Depends-on): Likewise.
49998         * modules/trim (Depends-on): Likewise.
49999         * modules/unistr/u8-move (Depends-on): Likewise.
50000         * modules/unistr/u16-move (Depends-on): Likewise.
50001         * modules/unistr/u32-move (Depends-on): Likewise.
50002
50003 2008-11-02  Bruno Haible  <bruno@clisp.org>
50004
50005         Mark 'memcpy' obsolete.
50006         * modules/memcpy (Status, Notice): New sections.
50007
50008 2008-11-02  Bruno Haible  <bruno@clisp.org>
50009
50010         Mark 'memcmp' obsolete.
50011         * modules/memcmp (Status, Notice): New sections.
50012         * modules/argmatch (Depends-on): Add memchr.
50013         * modules/backupfile (Depends-on): Likewise.
50014         * modules/c-strcasestr (Depends-on): Likewise.
50015         * modules/crypto/des (Depends-on): Likewise.
50016         * modules/csharpcomp (Depends-on): Likewise.
50017         * modules/fnmatch (Depends-on): Likewise.
50018         * modules/git-merge-changelog (Depends-on): Likewise.
50019         * modules/isnand (Depends-on): Likewise.
50020         * modules/isnand-nolibm (Depends-on): Likewise.
50021         * modules/isnanf (Depends-on): Likewise.
50022         * modules/isnanf-nolibm (Depends-on): Likewise.
50023         * modules/isnanl (Depends-on): Likewise.
50024         * modules/isnanl-nolibm (Depends-on): Likewise.
50025         * modules/mbchar (Depends-on): Likewise.
50026         * modules/memcoll (Depends-on): Likewise.
50027         * modules/quotearg (Depends-on): Likewise.
50028         * modules/regex (Depends-on): Likewise.
50029         * modules/relocatable-prog (Depends-on): Likewise.
50030         * modules/same (Depends-on): Likewise.
50031         * modules/signbit (Depends-on): Likewise.
50032         * modules/strcasestr-simple (Depends-on): Likewise.
50033         * modules/unictype/gen-ctype (Depends-on): Likewise.
50034         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
50035         * modules/uniname/uniname (Depends-on): Likewise.
50036         * modules/unistr/u8-cmp (Depends-on): Likewise.
50037
50038 2008-11-02  Bruno Haible  <bruno@clisp.org>
50039
50040         Mark 'memchr' obsolete.
50041         * modules/memchr (Status, Notice): New sections.
50042         * modules/argp (Depends-on): Add memchr.
50043         * modules/base64 (Depends-on): Likewise.
50044         * modules/c-strcasestr (Depends-on): Likewise.
50045         * modules/chdir-long (Depends-on): Likewise.
50046         * modules/fnmatch (Depends-on): Likewise.
50047         * modules/getsubopt (Depends-on): Likewise.
50048         * modules/git-merge-changelog (Depends-on): Likewise.
50049         * modules/glob (Depends-on): Likewise.
50050         * modules/strcasestr-simple (Depends-on): Likewise.
50051         * modules/strnlen (Depends-on): Likewise.
50052
50053 2008-11-02  Bruno Haible  <bruno@clisp.org>
50054
50055         Mark 'atexit' obsolete.
50056         * modules/atexit (Status, Notice): New sections.
50057         * modules/chdir-long (Depends-on): Add atexit.
50058         * modules/wait-process (Depends-on): Likewise.
50059
50060 2008-11-02  Bruno Haible  <bruno@clisp.org>
50061
50062         * gnulib-tool: New option --with-obsolete.
50063         (func_usage): Document it.
50064         (func_modules_transitive_closure): Drop obsolete dependencies if
50065         incobsolete is not true.
50066         (func_import): Read and save the incobsolete variable to the cache.
50067
50068 2008-11-02  Bruno Haible  <bruno@clisp.org>
50069
50070         * modules/TEMPLATE-EXTENDED: New field 'Status'.
50071         * gnulib-tool: New option --extract-status.
50072         (func_usage): Document it.
50073         (sed_extract_prog): Recognize it.
50074         (func_get_status): New function.
50075
50076 2008-10-30  Simon Josefsson  <simon@josefsson.org>
50077
50078         * modules/sockets (License): Change from LGPL to LGPLv2+.
50079
50080 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50081
50082         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
50083
50084 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50085
50086         * MODULES.html.sh (Support for systems lacking POSIX:2001):
50087         Mention times and sys_times.
50088         * modules/sys_times, modules/sys_times-tests: New modules.
50089         * modules/times, modules/times-tests: Likewise
50090         * m4/sys_times_h.m4: New file.
50091         * lib/sys_times.in.h: Likewise
50092         * lib/times.c: Likewise.
50093         * tests/test-sys_times.c: Likewise.
50094         * tests/test-times.c: Likewise.
50095         * doc/posix-headers/sys_times.texi: Update.
50096         * doc/posix-functions/times.texi: Update.
50097
50098 2008-10-28  Jim Meyering  <meyering@redhat.com>
50099
50100         * modules/tempname (Depends-on): Add lstat.
50101
50102         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
50103
50104 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50105
50106         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
50107         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
50108         using idiom used elsewhere in gnulib.
50109
50110 2008-10-27  Jim Meyering  <meyering@redhat.com>
50111
50112         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
50113
50114 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50115
50116         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
50117         TESTS_ENVIRONMENT, for shell scripts that needs to call built
50118         programs.
50119         * tests/test-argp-2.sh: Use $EXEEXT when needed.
50120
50121 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50122
50123         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
50124
50125 2008-10-27  Bruno Haible  <bruno@clisp.org>
50126
50127         * tests/test-lstat.c: Include <stdio.h>.
50128
50129 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50130
50131         * modules/lstat-tests: New module.
50132         * tests/test-lstat.c: New file.
50133
50134 2008-10-26  Jim Meyering  <meyering@redhat.com>
50135
50136         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
50137
50138 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50139             Bruno Haible  <bruno@clisp.org>
50140
50141         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
50142         * modules/configmake (Include): Add a note that the include must come
50143         after all system headers.
50144         * lib/javaversion.c: Include configmake.h after all other includes.
50145
50146 2008-10-26  Bruno Haible  <bruno@clisp.org>
50147
50148         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
50149         HAVE_STRUCT_RANDOM_DATA to 1.
50150         (gl_STDLIB_H): Simplify.
50151
50152 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50153
50154         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
50155         substitute HAVE_STRUCT_RANDOM_DATA.
50156         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
50157         random_data.
50158         * modules/stdlib (Makefile.am): Substitute
50159         HAVE_STRUCT_RANDOM_DATA.
50160
50161 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50162
50163         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
50164         * doc/gnulib-intro.texi (Copyright): Likewise.
50165
50166 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50167
50168         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
50169         findings.
50170
50171 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
50172             Bruno Haible  <bruno@clisp.org>
50173
50174         * lib/unistd.in.h: Include <winsock2.h>.
50175         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
50176         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
50177         Provide dummy declarations.
50178         (gethostname): Override.
50179         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
50180         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
50181         gl_PREREQ_SYS_H_WINSOCK2.
50182         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
50183         * doc/posix-functions/gethostname.texi: More details.
50184
50185 2008-10-25  Bruno Haible  <bruno@clisp.org>
50186
50187         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
50188         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
50189         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
50190
50191         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
50192         here ...
50193         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
50194         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
50195         gl_UNISTD_H_DEFAULTS.
50196
50197 2008-10-25  Eric Blake  <ebb9@byu.net>
50198
50199         signbit: avoid spurious compiler failure
50200         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
50201         declarations inside function.
50202
50203 2008-10-24  Simon Josefsson  <simon@josefsson.org>
50204             Bruno Haible  <bruno@clisp.org>
50205
50206         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
50207         * modules/random_r (Depends-on): Add stdint.
50208
50209 2008-10-24  Bruno Haible  <bruno@clisp.org>
50210
50211         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
50212         Eggert.
50213         * modules/strerror (License): Likewise.
50214
50215 2008-10-24  Jim Meyering  <meyering@redhat.com>
50216
50217         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
50218         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
50219
50220 2008-10-24  Eric Blake  <ebb9@byu.net>
50221
50222         getgroups: fix compilation when getgroups is available
50223         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
50224         but with <config.h> override of getgroups disabled.
50225
50226 2008-10-24  Simon Josefsson  <simon@josefsson.org>
50227
50228         * doc/gnulib.texi (Header files): Add note about C++ problems.
50229         Explained by Bruno Haible <bruno@clisp.org>.
50230
50231 2008-10-23  Bruno Haible  <bruno@clisp.org>
50232
50233         Define a dummy SA_NODEFER macro on Interix.
50234         * lib/signal.in.h (SA_NODEFER): Define fallback.
50235         Reported by Aleksey Cheusov <cheusov@tut.by> via
50236         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
50237
50238 2008-10-23  Bruno Haible  <bruno@clisp.org>
50239
50240         * modules/freadahead (License): Change to LGPLv2+.
50241         Suggested by Simon Josefsson.
50242
50243 2008-10-23  Jim Meyering  <meyering@redhat.com>
50244
50245         random_r: new module
50246         * modules/random_r: New file.
50247         * m4/random_r.m4: New file.
50248         * lib/random_r.c: New file, from glibc.
50249         * modules/random_r-tests: New file.
50250         * tests/test-random_r.c: New file.
50251         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
50252          Declare.
50253         (RAND_MAX): Define.
50254         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
50255         * modules/stdlib: Substitute them, too.
50256         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
50257         * doc/glibc-functions/initstate_r.texi: Mention the new module.
50258         * doc/glibc-functions/random_r.texi: Likewise.
50259         * doc/glibc-functions/setstate_r.texi: Likewise.
50260         * doc/glibc-functions/srandom_r.texi: Likewise.
50261         * config/srclist.txt: Mention it.
50262
50263 2008-10-23  David Lutterkort  <lutter@redhat.com>
50264
50265         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
50266         link requirement
50267
50268 2008-10-23  Jim Meyering  <meyering@redhat.com>
50269
50270         selinux-h: mark parameters of stub functions as intentionally unused
50271         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
50272         * lib/se-context.in.h: Likewise.
50273
50274 2008-10-22  Simon Josefsson  <simon@josefsson.org>
50275
50276         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
50277
50278 2008-10-22  Simon Josefsson  <simon@josefsson.org>
50279
50280         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
50281
50282 2008-10-22  Eric Blake  <ebb9@byu.net>
50283
50284         glthread/thread: avoid compiler warning
50285         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
50286         Add unreachable abort to silence compiler.
50287
50288 2008-10-22  Eric Blake  <ebb9@byu.net>
50289
50290         netdb: also supply struct addrinfo for cygwin 1.5.x
50291         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
50292         older cygwin.
50293         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
50294         cygwin.
50295         * doc/posix-headers/netdb.texi (netdb.h): Document this.
50296
50297 2008-10-22  Bruno Haible  <bruno@clisp.org>
50298
50299         * users.txt: Update entry about pspp.
50300
50301 2008-10-21  Bruno Haible  <bruno@clisp.org>
50302
50303         Simplification.
50304         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
50305         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
50306
50307         Simplification.
50308         * lib/ioctl.c (ioctl): Don't undefine.
50309         * lib/socket.c (socket): Don't undefine.
50310
50311         Remove unused module indicator macros.
50312         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
50313         GNULIB_$1 as a C macro.
50314
50315         * doc/posix-functions/close.texi: Undo last change.
50316         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
50317         Windows platforms.
50318
50319 2008-10-21  Bruno Haible  <bruno@clisp.org>
50320
50321         Add gethostname() declaration to <unistd.h>.
50322         * lib/unistd.in.h (gethostname): New declaration.
50323         * lib/gethostname.c: Include <unistd.h>.
50324         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
50325         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
50326         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
50327         and HAVE_GETHOSTNAME.
50328         * modules/gethostname (Depends-on): Add unistd.
50329         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50330         (Include): Specify <unistd.h>.
50331         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
50332         HAVE_GETHOSTNAME.
50333         * tests/test-gethostname.c: Include <unistd.h> first.
50334
50335 2008-10-21  Bruno Haible  <bruno@clisp.org>
50336
50337         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
50338         * modules/select-tests (Depends-on): Likewise.
50339         Reported by Simon Josefsson.
50340
50341 2008-10-21  Simon Josefsson  <simon@josefsson.org>
50342
50343         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
50344         * lib/accept.c: New file, based on winsock.c.
50345         * lib/bind.c: New file, based on winsock.c.
50346         * lib/connect.c: New file, based on winsock.c.
50347         * lib/getpeername.c: New file, based on winsock.c.
50348         * lib/getsockname.c: New file, based on winsock.c.
50349         * lib/getsockopt.c: New file, based on winsock.c.
50350         * lib/ioctl.c: New file, based on winsock.c.
50351         * lib/listen.c: New file, based on winsock.c.
50352         * lib/recv.c: New file, based on winsock.c.
50353         * lib/recvfrom.c: New file, based on winsock.c.
50354         * lib/send.c: New file, based on winsock.c.
50355         * lib/sendto.c: New file, based on winsock.c.
50356         * lib/setsockopt.c: New file, based on winsock.c.
50357         * lib/shutdown.c: New file, based on winsock.c.
50358         * lib/socket.c: New file, based on winsock.c.
50359         * lib/w32sock.h: New file, based on winsock.c.
50360         * lib/winsock.c: Remove file.
50361         * modules/accept: Likewise.
50362         * modules/bind: Likewise.
50363         * modules/connect: Likewise.
50364         * modules/getpeername: Likewise.
50365         * modules/getsockname: Likewise.
50366         * modules/getsockopt: Likewise.
50367         * modules/ioctl: Likewise.
50368         * modules/listen: Likewise.
50369         * modules/recv: Likewise.
50370         * modules/recvfrom: Likewise.
50371         * modules/send: Likewise.
50372         * modules/sendto: Likewise.
50373         * modules/setsockopt: Likewise.
50374         * modules/shutdown: Likewise.
50375         * modules/socket: Use socket.c instead of winsock.c.
50376         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
50377         * doc/posix-functions/accept.texi: Doc fix.
50378         * doc/posix-functions/bind.texi: Doc fix.
50379         * doc/posix-functions/close.texi: Doc fix.
50380         * doc/posix-functions/connect.texi: Doc fix.
50381         * doc/posix-functions/getpeername.texi: Doc fix.
50382         * doc/posix-functions/getsockname.texi: Doc fix.
50383         * doc/posix-functions/getsockopt.texi: Doc fix.
50384         * doc/posix-functions/ioctl.texi: Doc fix.
50385         * doc/posix-functions/listen.texi: Doc fix.
50386         * doc/posix-functions/recv.texi: Doc fix.
50387         * doc/posix-functions/recvfrom.texi: Doc fix.
50388         * doc/posix-functions/send.texi: Doc fix.
50389         * doc/posix-functions/sendto.texi: Doc fix.
50390         * doc/posix-functions/setsockopt.texi: Doc fix.
50391         * doc/posix-functions/shutdown.texi: Doc fix.
50392         * doc/posix-functions/socket.texi: Doc fix.
50393
50394 2008-10-20  Bruno Haible  <bruno@clisp.org>
50395
50396         Take into account the role of SIGABRT_COMPAT on Windows 2008.
50397         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
50398         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
50399         as an alias for SIGABRT.
50400         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
50401         (sigaction): Map it to SIGABRT.
50402         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
50403
50404 2008-10-20  Bruno Haible  <bruno@clisp.org>
50405
50406         * lib/fts.c: Don't include lstat.h.
50407         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
50408
50409         Move the lstat() declaration to <sys/stat.h>.
50410         * lib/lstat.h: Remove file.
50411         * lib/sys_stat.in.h: Add special invocation convention.
50412         (lstat): New declaration.
50413         * lib/lstat.c (orig_lstat): New function.
50414         (rpl_lstat): Use orig_lstat instead of lstat.
50415         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
50416         AC_C_INLINE. Set REPLACE_LSTAT.
50417         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
50418         and REPLACE_LSTAT.
50419         * modules/lstat (Files): Remove lib/lstat.h.
50420         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
50421         (Include): Specify <sys/stat.h> instead of lstat.h.
50422         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
50423         REPLACE_LSTAT.
50424         * NEWS: Mention the change.
50425
50426 2008-10-20  Bruno Haible  <bruno@clisp.org>
50427
50428         * modules/posix_spawn-tests: New file.
50429         * tests/test-posix_spawn3.c: New file.
50430
50431 2008-10-20  Bruno Haible  <bruno@clisp.org>
50432
50433         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
50434         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
50435         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
50436         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
50437         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
50438
50439 2008-10-20  Bruno Haible  <bruno@clisp.org>
50440
50441         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
50442         of posix_spawn on AIX 5.3.
50443
50444 2008-10-20  Bruno Haible  <bruno@clisp.org>
50445
50446         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
50447
50448 2008-10-20  Bruno Haible  <bruno@clisp.org>
50449
50450         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
50451         of AC_LANG_PROGRAM.
50452
50453 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50454
50455         * lib/netdb.in.h: Don't define GNU specific constants until they
50456         are supported or needed.  Reported by Bruno Haible
50457         <bruno@clisp.org>.
50458
50459 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50460
50461         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
50462
50463 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50464
50465         * lib/getaddrinfo.h: Remove file.
50466         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
50467         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
50468         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
50469         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
50470         * modules/netdb: Substitute GNULIB_GETADDRINFO.
50471         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
50472         * tests/test-getaddrinfo.c: Likewise.
50473         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
50474         * NEWS: Mention change.
50475
50476 2008-10-19  Bruno Haible  <bruno@clisp.org>
50477
50478         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
50479
50480 2008-10-19  Bruno Haible  <bruno@clisp.org>
50481
50482         * lib/wait-process.c: Include simply <sys/wait.h>.
50483         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
50484         WIFSTOPPED): Remove fallback definitions.
50485         * modules/wait-process (Depends-on): Add sys_wait.
50486
50487         New module 'sys_wait'.
50488         * modules/sys_wait: New file.
50489         * lib/sys_wait.in.h: New file, partially copied from
50490         lib/wait-process.c.
50491         * m4/sys_wait_h.m4: New file.
50492         * doc/posix-headers/sys_wait.texi: Mention the new module.
50493
50494 2008-10-19  Bruno Haible  <bruno@clisp.org>
50495
50496         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
50497
50498 2008-10-19  Bruno Haible  <bruno@clisp.org>
50499
50500         Assume that waitpid() fills an 'int' status, not a 'union wait'.
50501         * lib/wait-process.c (WAIT_T): Remove type.
50502         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
50503         (wait_subprocess): Update.
50504
50505 2008-10-19  Bruno Haible  <bruno@clisp.org>
50506
50507         New module 'atoll'.
50508         * modules/atoll: New file.
50509         * lib/stdlib.in.h (atoll): New declaration.
50510         * lib/atoll.c: New file, from glibc with modifications.
50511         * m4/atoll.m4: New file.
50512         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
50513         HAVE_ATOLL.
50514         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
50515         * doc/posix-functions/atoll.texi: Mention the new module.
50516
50517 2008-10-19  Bruno Haible  <bruno@clisp.org>
50518
50519         Add strtoull() declaration to <stdlib.h>.
50520         * lib/stdlib.in.h (strtoull): New declaration.
50521         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
50522         Set HAVE_STRTOULL.
50523         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
50524         HAVE_STRTOULL.
50525         * modules/strtoull (Depends-on): Add stdlib.
50526         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50527         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
50528         HAVE_STRTOULL.
50529
50530 2008-10-19  Bruno Haible  <bruno@clisp.org>
50531
50532         Add strtoll() declaration to <stdlib.h>.
50533         * lib/stdlib.in.h (strtoll): New declaration.
50534         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
50535         Set HAVE_STRTOLL.
50536         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
50537         HAVE_STRTOLL.
50538         * modules/strtoll (Depends-on): Add stdlib.
50539         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50540         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
50541
50542 2008-10-19  Bruno Haible  <bruno@clisp.org>
50543
50544         * modules/bcopy (Depends-on): Add strings.
50545         (Include): Specify <strings.h>.
50546
50547 2008-10-19  Bruno Haible  <bruno@clisp.org>
50548
50549         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
50550
50551 2008-10-19  Bruno Haible  <bruno@clisp.org>
50552
50553         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
50554         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
50555         mingw.
50556
50557 2008-10-19  Bruno Haible  <bruno@clisp.org>
50558
50559         * lib/atanl.c: Don't include isnanl.h.
50560         * lib/cosl.c: Likewise.
50561         * lib/ldexpl.c: Likewise.
50562         * lib/logl.c: Likewise.
50563         * lib/sinl.c: Likewise.
50564         * lib/sqrtl.c: Likewise.
50565         * lib/tanl.c: Likewise.
50566
50567         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
50568         * lib/isnanf.h: Remove file.
50569         * lib/isnand.h: Remove file.
50570         * lib/isnanl.h: Remove file.
50571         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
50572         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
50573         macros.
50574         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
50575         HAVE_ISNANF, don't define it as a C macro.
50576         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
50577         HAVE_ISNAND, don't define it as a C macro.
50578         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
50579         HAVE_ISNANL, don't define it as a C macro.
50580         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
50581         HAVE_ISNAN[FDL].
50582         * modules/isnanf (Files): Remove lib/isnanf.h.
50583         (Depends-on): Add math.
50584         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50585         (Include): Specify <math.h> instead of isnanf.h.
50586         * modules/isnand (Files): Remove lib/isnand.h.
50587         (Depends-on): Add math.
50588         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50589         (Include): Specify <math.h> instead of isnand.h.
50590         * modules/isnanl (Files): Remove lib/isnanl.h.
50591         (Depends-on): Add math.
50592         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50593         (Include): Specify <math.h> instead of isnanl.h.
50594         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
50595         HAVE_ISNAN[FDL].
50596         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
50597         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
50598         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
50599         * NEWS: Mention the change.
50600
50601 2008-10-18  Bruno Haible  <bruno@clisp.org>
50602
50603         Add getusershell(), setusershell(), endusershell() declarations to
50604         <unistd.h>.
50605         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
50606         declarations.
50607         * lib/getusershell.c: Include unistd.h.
50608         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
50609         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
50610         HAVE_GETUSERSHELL.
50611         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
50612         and HAVE_GETUSERSHELL.
50613         * modules/getusershell (Depends-on): Add unistd, extensions.
50614         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50615         (Include): Specify <unistd.h>.
50616         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
50617         HAVE_GETUSERSHELL.
50618
50619 2008-10-18  Bruno Haible  <bruno@clisp.org>
50620
50621         Add a getloadavg() declaration to <stdlib.h>.
50622         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
50623         getloadavg declaration.
50624         (getloadavg): New declaration.
50625         * lib/getloadavg.c: Include <stdlib.h> first.
50626         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
50627         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
50628         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
50629         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
50630         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
50631         * modules/getloadavg (Depends-on): Add stdlib, extensions.
50632         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50633         (Include): Specify <stdlib.h>.
50634         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
50635         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
50636
50637 2008-10-18  Bruno Haible  <bruno@clisp.org>
50638
50639         * lib/dirchownmod.c: Don't include lchmod.h.
50640
50641         Move the lchmod() declaration to <sys/stat.h>.
50642         * lib/lchmod.h: Remove file.
50643         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
50644         (lchmod): New declaration, moved here from lib/lchown.h.
50645         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
50646         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
50647         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
50648         and HAVE_LCHMOD.
50649         * modules/lchmod (Files): Remove lib/lchmod.h.
50650         (Depends-on): Add sys_stat, extensions.
50651         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
50652         (Include): Specify <sys/stat.h> instead of lchmod.h.
50653         * modules/sys_stat (Depends-on): Add link-warning.
50654         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
50655         definition of GL_LINK_WARNING.
50656         * NEWS: Mention the change.
50657
50658 2008-10-18  Bruno Haible  <bruno@clisp.org>
50659
50660         * lib/fchdir.c: Don't include dirfd.h.
50661         * lib/fts.c: Likewise.
50662         * lib/getcwd.c: Likewise.
50663         * lib/glob.c: Likewise.
50664
50665         Move the dirfd() declaration to <dirent.h>.
50666         * lib/dirfd.h: Remove file.
50667         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
50668         (dirfd): New declaration.
50669         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
50670         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
50671         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
50672         HAVE_DECL_DIRFD.
50673         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
50674         HAVE_DECL_DIRFD.
50675         * modules/dirfd (Files): Remove lib/dirfd.h.
50676         (Depends-on): Add dirent, extensions.
50677         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
50678         (Include): Specify <dirent.h> instead of dirfd.h.
50679         * modules/dirent (Depends-on): Add link-warning.
50680         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
50681         definition of GL_LINK_WARNING.
50682         * NEWS: Mention the change.
50683
50684 2008-10-18  Bruno Haible  <bruno@clisp.org>
50685
50686         Move the euidaccess() declaration to <unistd.h>.
50687         * lib/euidaccess.h: Remove file.
50688         * lib/unistd.in.h (euidaccess): New declaration.
50689         * lib/euidaccess.c: Don't include euidaccess.h.
50690         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
50691         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
50692         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
50693         and HAVE_EUIDACCESS.
50694         * modules/euidaccess (Files): Remove lib/euidaccess.h.
50695         (Depends-on): Add unistd.
50696         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50697         (Include): Specify <unistd.h> instead of euidaccess.h.
50698         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
50699         HAVE_EUIDACCESS.
50700         * NEWS: Mention the change.
50701
50702 2008-10-18  Bruno Haible  <bruno@clisp.org>
50703
50704         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
50705
50706         Move the getdomainname() declaration to <unistd.h>.
50707         * lib/getdomainname.h: Remove file.
50708         * lib/unistd.in.h (getdomainname): New declaration.
50709         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
50710         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
50711         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
50712         HAVE_GETDOMAINNAME.
50713         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50714         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
50715         * modules/getdomainname (Files): Remove lib/getdomainname.h.
50716         (Depends-on): Add unistd, extensions.
50717         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50718         (Includes): Specify <unistd.h> instead of getdomainname.h.
50719         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
50720         HAVE_GETDOMAINNAME.
50721         * NEWS: Mention the change.
50722
50723 2008-10-18  Bruno Haible  <bruno@clisp.org>
50724
50725         * modules/dirent: New file.
50726         * m4/dirent_h.m4: New file.
50727         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
50728         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
50729         * modules/fchdir (Files): Remove lib/dirent.in.h.
50730         (Depends-on): Add dirent.
50731         (Makefile.am): Move rules to modules/dirent.
50732         * doc/posix-headers/dirent.texi: Mention the new module.
50733
50734 2008-10-18  Bruno Haible  <bruno@clisp.org>
50735
50736         Avoid -Wunused-parameter warnings in public gnulib header files.
50737         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
50738         macro.
50739         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
50740
50741 2008-10-18  Bruno Haible  <bruno@clisp.org>
50742
50743         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
50744         * doc/glibc-functions/error.texi: Mention the module 'error'.
50745         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
50746         * doc/glibc-functions/getdomainname.texi: Mention the module
50747         'getdomainname'.
50748         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
50749         * doc/glibc-functions/getpagesize.texi: Mention the module
50750         'getpagesize'.
50751         * doc/glibc-functions/getusershell.texi: Mention the module
50752         'getusershell'.
50753         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
50754         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
50755         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
50756         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
50757         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
50758         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
50759         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
50760         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
50761         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
50762         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
50763         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
50764         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
50765         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
50766         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
50767
50768 2008-10-17  Bruno Haible  <bruno@clisp.org>
50769
50770         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
50771         HP-UX and IRIX, use -0.0L.
50772         * tests/test-ceill.c (minus_zero): Likewise.
50773         * tests/test-floorl.c (minus_zero): Likewise.
50774         * tests/test-frexpl.c (minus_zero): Likewise.
50775         * tests/test-isnan.c (minus_zerol): Likewise.
50776         * tests/test-isnanl.h (minus_zero): Likewise.
50777         * tests/test-ldexpl.c (minus_zero): Likewise.
50778         * tests/test-roundl.c (minus_zero): Likewise.
50779         * tests/test-signbit.c (minus_zerol): Likewise.
50780         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
50781         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
50782         * tests/test-truncl.c (minus_zero): Likewise.
50783         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
50784         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
50785         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
50786         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
50787
50788 2008-10-17  Bruno Haible  <bruno@clisp.org>
50789
50790         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
50791         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
50792         that it gets activated only for gcc >= 3.0.
50793         * lib/dirent.in.h: Likewise.
50794         * lib/errno.in.h: Likewise.
50795         * lib/fcntl.in.h: Likewise.
50796         * lib/float.in.h: Likewise.
50797         * lib/iconv.in.h: Likewise.
50798         * lib/inttypes.in.h: Likewise.
50799         * lib/locale.in.h: Likewise.
50800         * lib/math.in.h: Likewise.
50801         * lib/netdb.in.h: Likewise.
50802         * lib/netinet_in.in.h: Likewise.
50803         * lib/search.in.h: Likewise.
50804         * lib/signal.in.h: Likewise.
50805         * lib/spawn.in.h: Likewise.
50806         * lib/stdarg.in.h: Likewise.
50807         * lib/stdint.in.h: Likewise.
50808         * lib/stdio.in.h: Likewise.
50809         * lib/stdlib.in.h: Likewise.
50810         * lib/string.in.h: Likewise.
50811         * lib/strings.in.h: Likewise.
50812         * lib/sys_file.in.h: Likewise.
50813         * lib/sys_ioctl.in.h: Likewise.
50814         * lib/sys_select.in.h: Likewise.
50815         * lib/sys_socket.in.h: Likewise.
50816         * lib/sys_stat.in.h: Likewise.
50817         * lib/sys_time.in.h: Likewise.
50818         * lib/sysexits.in.h: Likewise.
50819         * lib/time.in.h: Likewise.
50820         * lib/unistd.in.h: Likewise.
50821         * lib/wchar.in.h: Likewise.
50822         * lib/wctype.in.h: Likewise.
50823         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50824
50825 2008-10-17  Jim Meyering  <meyering@redhat.com>
50826
50827         ignore-value: don't depend on inline module
50828         * modules/ignore-value (Depends-on): Remove 'inline'.
50829         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
50830         Suggestion from Bruno Haible.
50831
50832 2008-10-17  Bruno Haible  <bruno@clisp.org>
50833
50834         New implementation of condition variables for Win32.
50835         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
50836         (gl_linked_waitqueue_t): New type.
50837         (gl_cond_t): Use it.
50838         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
50839         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
50840         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
50841         (glthread_cond_init_func, glthread_cond_wait_func,
50842         glthread_cond_timedwait_func, glthread_cond_signal_func,
50843         glthread_cond_broadcast_func, glthread_cond_destroy_func):
50844         Reimplemented on the basis of gl_linked_waitqueue_t.
50845         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
50846         gl_waitqueue_t.
50847         (gl_rwlock_t): Update.
50848         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
50849
50850 2008-10-17  Simon Josefsson  <simon@josefsson.org>
50851
50852         * modules/recvfrom (Depends-on): Add dependency on getpeername.
50853         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
50854
50855 2008-10-17  Jim Meyering  <meyering@redhat.com>
50856
50857         ignore-value: new module
50858         * modules/ignore-value: New file.
50859         * lib/ignore-value.h: New file.
50860         * MODULES.html.sh (Compiler warning management): New section,
50861         just for this module.  More to come.
50862
50863 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
50864
50865         open-safer.c: avoid 'signed and unsigned in conditional...' warning
50866         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
50867         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
50868
50869 2008-10-16  Jim Meyering  <meyering@redhat.com>
50870
50871         openat-die.c: avoid 'no previous prototype' warning
50872         * lib/openat-die.c: Include "openat.h".
50873         Reported by Reuben Thomas <rrt@sc3d.org>.
50874
50875 2008-10-16  Simon Josefsson  <simon@josefsson.org>
50876
50877         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
50878         * lib/netdb.in.h: Fix typo.
50879         Reported by Bruno Haible  <bruno@clisp.org>
50880
50881         * lib/netdb.in.h: Include sys/socket.h for platforms without
50882         netdb.h, to get structures like hostent on MinGW.
50883         * modules/netdb (Depends-on): Add sys_socket.
50884
50885 2008-10-15  Simon Josefsson  <simon@josefsson.org>
50886
50887         * modules/netdb, modules/netdb-tests: New file.
50888         * m4/netdb_h.m4: New file.
50889         * lib/netdb.in.h: Add, currently just an empty file pending
50890         definitions.
50891         * tests/test-netdb.c: New file.
50892         * doc/posix-headers/netdb.texi: Mention that we replace it if
50893         needed.
50894         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50895         netdb.
50896
50897 2008-10-15  Simon Josefsson  <simon@josefsson.org>
50898
50899         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
50900         with code.
50901
50902 2008-10-13  Bruno Haible  <bruno@clisp.org>
50903
50904         * lib/glthread/cond.c (glthread_cond_wait_func,
50905         glthread_cond_timedwait_func): Add a comment.
50906
50907 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50908
50909         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
50910         * tests/test-select.c: Likewise,
50911
50912 2008-10-13  Bruno Haible  <bruno@clisp.org>
50913
50914         * lib/glthread/cond.c (glthread_cond_wait_func,
50915         glthread_cond_timedwait_func): Fix variable name.
50916         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
50917
50918 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
50919
50920         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
50921         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
50922         struct sockaddr.sa_len.
50923         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
50924
50925 2008-10-13  Simon Josefsson  <simon@josefsson.org>
50926
50927         * build-aux/pmccabe2html: Add css and css_url parameters.
50928
50929 2008-10-12  Bruno Haible  <bruno@clisp.org>
50930
50931         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
50932         calling aclx_get.
50933         Reported by Rainer Tammer <tammer@tammer.net>.
50934
50935 2008-10-12  Bruno Haible  <bruno@clisp.org>
50936
50937         Use msvcrt aware primitives for creation/termination of Win32 threads.
50938         * lib/glthread/thread.c: Include <process.h>.
50939         (glthread_create_func): Use _beginthreadex instead of CreateThread.
50940         (wrapper_func): Update signature.
50941         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
50942
50943 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50944             Bruno Haible  <bruno@clisp.org>
50945
50946         Provide a Win32 implementation of the 'cond' module.
50947         * lib/glthread/cond.h [USE_WIN32]: New implementation.
50948         * lib/glthread/cond.c (glthread_cond_init_func,
50949         glthread_cond_wait_func, glthread_cond_timedwait_func,
50950         glthread_cond_signal_func, glthread_cond_broadcast_func,
50951         glthread_cond_destroy_func) [USE_WIN32]: New functions.
50952         * modules/cond (Dependencies): Add gettimeofday.
50953
50954 2008-10-11  Bruno Haible  <bruno@clisp.org>
50955
50956         Make sleep work on older versions of mingw.
50957         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
50958         only whether it exists.
50959         * doc/posix-functions/sleep.texi: Mention the problem with older
50960         versions of mingw.
50961
50962 2008-10-11  Bruno Haible  <bruno@clisp.org>
50963
50964         New module 'shutdown'.
50965         * modules/shutdown: New file.
50966         * lib/sys_socket.in.h (shutdown): New declaration.
50967         * lib/winsock.c (shutdown): New function.
50968         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
50969         GNULIB_SHUTDOWN.
50970         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
50971         * doc/posix-functions/shutdown.texi: Document the new module.
50972
50973 2008-10-11  Jim Meyering  <meyering@redhat.com>
50974
50975         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
50976
50977 2008-10-11  Bruno Haible  <bruno@clisp.org>
50978
50979         New module 'fclose'.
50980         * modules/fclose: New file.
50981         * lib/stdio.in.h (fclose): New declaration.
50982         * lib/fclose.c: New file.
50983         * m4/fclose.m4: New file.
50984         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
50985         REPLACE_FCLOSE.
50986         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
50987         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
50988         REPLACE_FCLOSE.
50989         * modules/close (Depends-on): fclose.
50990         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
50991
50992 2008-10-11  Bruno Haible  <bruno@clisp.org>
50993
50994         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
50995         set errno and don't call _close.
50996
50997 2008-10-10  Bruno Haible  <bruno@clisp.org>
50998
50999         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
51000         ACL, not afterwards. Fixes test failure on Cygwin.
51001
51002 2008-10-09  Ben Pfaff  <blp@gnu.org>
51003
51004         * build-aux/announce-gen: Fix gnulib version related part of usage
51005         message.  Die with a useful error message if no tarballs are
51006         found.
51007
51008 2008-10-10  Jim Meyering  <meyering@redhat.com>
51009
51010         bootstrap: use git's --depth=N option only if it's supported
51011         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
51012         recognize the --depth option.  Reported by Pádraig Brady.
51013
51014 2008-10-09  Bruno Haible  <bruno@clisp.org>
51015
51016         New module 'ioctl'.
51017         * modules/ioctl: New file.
51018         * lib/sys_socket.in.h (ioctl): Remove declaration.
51019         * lib/winsock.c: Include <sys/ioctl.h>.
51020         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
51021         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
51022         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
51023         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
51024         * doc/posix-functions/ioctl.texi: Mention the new module.
51025
51026 2008-10-09  Bruno Haible  <bruno@clisp.org>
51027
51028         New module 'sys_ioctl'.
51029         * lib/sys_ioctl.in.h: New file.
51030         * m4/sys_ioctl_h.m4: New file.
51031         * modules/sys_ioctl: New file.
51032         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
51033
51034 2008-10-09  Bruno Haible  <bruno@clisp.org>
51035
51036         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
51037         * lib/winsock.c: Include <stdarg.h>.
51038         (rpl_ioctl): Change to second argument 'int' and then varargs.
51039
51040 2008-10-09  Bruno Haible  <bruno@clisp.org>
51041
51042         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
51043         when the sys_socket module is present and the system has <winsock2.h>.
51044
51045 2008-10-09  Bruno Haible  <bruno@clisp.org>
51046
51047         * doc/posix-functions/close.texi: Mention module 'close' instead of
51048         module 'sys_socket'.
51049
51050 2008-10-09  Bruno Haible  <bruno@clisp.org>
51051
51052         * doc/glibc-headers/sys_ioctl.texi: New file.
51053         * doc/gnulib.texi: Include it.
51054
51055 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51056             Bruno Haible  <bruno@clisp.org>
51057
51058         Combine the two replacements of 'close'.
51059         * lib/sys_socket.in.h (close): Define to a reminder to include
51060         <unistd.h>.
51061         (_gl_close_fd_maybe_socket): New declaration.
51062         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
51063         * lib/winsock.c (close): Remove undefinition.
51064         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
51065         needed for the gnulib module 'close'.
51066         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
51067         define to an error symbol or to a warning, if suitable.
51068         * lib/close.c: Include <sys/socket.h>.
51069         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
51070         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
51071         UNISTD_H_HAVE_WINSOCK2_H.
51072         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
51073         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51074         UNISTD_H_HAVE_WINSOCK2_H.
51075         * modules/sys_socket (Files): Add m4/unistd_h.m4.
51076         (configure.ac): Set a module indicator.
51077         (Makefile.am): Substitute GNULIB_CLOSE.
51078         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
51079         * modules/poll-tests (Depends-on): Add close.
51080         * modules/select-tests (Depends-on): Likewise.
51081
51082 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51083             Bruno Haible  <bruno@clisp.org>
51084
51085         New module 'close'.
51086         * modules/close: New file.
51087         * lib/unistd.in.h (close): Move declaration out of the
51088         FCHDIR_REPLACEMENT scope.
51089         (_gl_unregister_fd): New declaration.
51090         * lib/close.c: New file.
51091         * lib/fchdir.c (rpl_close): Remove function.
51092         * m4/close.m4: New file.
51093         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
51094         close.
51095         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
51096         REPLACE_CLOSE.
51097         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
51098         REPLACE_CLOSE.
51099         * modules/fchdir (Depends-on): Add close.
51100
51101 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51102             Bruno Haible  <bruno@clisp.org>
51103
51104         * lib/fcntl.in.h (open): Simplify conditionals.
51105         (_gl_register_fd): New declaration.
51106         * lib/fchdir.c (rpl_open): Remove function.
51107         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
51108         also.
51109         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
51110         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
51111         open.
51112
51113 2008-10-09  Jim Meyering  <meyering@redhat.com>
51114
51115         GNUmakefile: use the more name-space-friendly "_version"
51116         * top/GNUmakefile (_dummy): Update.
51117         (_version): Rename from "version".
51118
51119 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51120             Bruno Haible  <bruno@clisp.org>
51121
51122         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
51123         rpl_close.
51124         (_gl_register_fd): New function, extracted from rpl_open.
51125         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
51126         (rpl_open, rpl_opendir): Use _gl_register_fd.
51127
51128 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51129
51130         Fix organization of 'open' replacement.
51131         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
51132         (gl_FUNC_OPEN): Use it.
51133         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
51134
51135 2008-10-08  Bruno Haible  <bruno@clisp.org>
51136
51137         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
51138
51139 2008-10-08  Simon Josefsson  <simon@josefsson.org>
51140
51141         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
51142         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
51143         listen).
51144
51145 2008-10-08  Eric Blake  <ebb9@byu.net>
51146
51147         GNUmakefile: add 'make version' target
51148         * top/GNUmakefile (_curr-ver): Split version update rules...
51149         (version): ...into a target.
51150
51151 2008-10-07  Bruno Haible  <bruno@clisp.org>
51152
51153         Use a more portable replacement expression for -0.0L.
51154         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
51155         instead of -0.0L. Fix m4 quotation.
51156
51157         * tests/test-signbit.c: Include <float.h>.
51158         (minus_zero): New variable.
51159         (test_signbitl): Use minus_zero instead of -zero.
51160         * modules/signbit-tests (Depends-on): Add float.
51161
51162         * tests/test-ceill.c: Include <float.h>.
51163         (zero): Remove variable.
51164         (minus_zero): New variable.
51165         (main): Use minus_zero instead of -zero.
51166         * modules/ceill-tests (Depends-on): Add float.
51167
51168         * tests/test-floorl.c: Include <float.h>.
51169         (zero): Remove variable.
51170         (minus_zero): New variable.
51171         (main): Use minus_zero instead of -zero.
51172         * modules/floorl-tests (Depends-on): Add float.
51173
51174         * tests/test-roundl.c: Include <float.h>.
51175         (zero): Remove variable.
51176         (minus_zero): New variable.
51177         (main): Use minus_zero instead of -zero.
51178         * modules/roundl-tests (Depends-on): Add float.
51179
51180         * tests/test-truncl.c: Include <float.h>.
51181         (zero): Remove variable.
51182         (minus_zero): New variable.
51183         (main): Use minus_zero instead of -zero.
51184         * modules/truncl-tests (Depends-on): Add float.
51185
51186         * tests/test-frexpl.c (zero): Remove variable.
51187         (minus_zero): New variable.
51188         (main): Use minus_zero instead of -zero.
51189         * modules/frexpl-tests (Depends-on): Add float.
51190
51191         * tests/test-isnan.c (zerol): Remove variable.
51192         (minus_zerol): New variable.
51193         (test_long_double): Use minus_zerol instead of -zerol.
51194         * modules/isnan-tests (Depends-on): Add float.
51195
51196         * tests/test-isnanl.h (zero): Remove variable.
51197         (minus_zero): New variable.
51198         (main): Use minus_zero instead of -zero.
51199         * modules/isnanl-nolibm-tests (Depends-on): Add float.
51200         * modules/isnanl-tests (Depends-on): Add float.
51201
51202         * tests/test-ldexpl.c (zero): Remove variable.
51203         (minus_zero): New variable.
51204         (main): Use minus_zero instead of -zero.
51205         * modules/ldexpl-tests (Depends-on): Add float.
51206
51207         * tests/test-snprintf-posix.h (zerol): Remove variable.
51208         (minus_zerol): New variable.
51209         (test_function): Use minus_zerol instead of -zerol.
51210         * modules/snprintf-posix-tests (Depends-on): Add float.
51211         * modules/vsnprintf-posix-tests (Depends-on): Add float.
51212
51213         * tests/test-sprintf-posix.h (zerol): Remove variable.
51214         (minus_zerol): New variable.
51215         (test_function): Use minus_zerol instead of -zerol.
51216         * modules/sprintf-posix-tests (Depends-on): Add float.
51217         * modules/vsprintf-posix-tests (Depends-on): Add float.
51218
51219         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
51220         (minus_zerol): New variable.
51221         (test_function): Use minus_zerol instead of -zerol.
51222         * modules/vasnprintf-posix-tests (Depends-on): Add float.
51223
51224         * tests/test-vasprintf-posix.c (zerol): Remove variable.
51225         (minus_zerol): New variable.
51226         (test_function): Use minus_zerol instead of -zerol.
51227         * modules/vasprintf-posix-tests (Depends-on): Add float.
51228
51229 2008-10-07  Simon Josefsson  <simon@josefsson.org>
51230
51231         * MODULES.html.sh (Support for building documentation): Mention
51232         pmccabe2html.  Sort entries.
51233
51234         Add pmccabe2html module, from gnupdf.
51235         * build-aux/pmccabe.css: New file.
51236         * build-aux/pmccabe2html: New file.
51237         * m4/pmccabe2html.m4: New file.
51238         * modules/pmccabe2html: New file.
51239
51240 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
51241
51242         flock: new module
51243         * MODULES.html.sh: Add to list of modules.
51244         * lib/flock.c: flock implementation for Windows and Unix systems
51245         which have fcntl.
51246         * doc/glibc-functions/flock.texi: Update documentation.
51247         * lib/sys_file.in.h: <sys/file.h> header file.
51248         * m4/flock.m4: M4 macros.
51249         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
51250         * modules/flock: flock module.
51251         * modules/flock-tests: flock tests module.
51252         * modules/sys_file: sys/file.h module.
51253         * tests/test-flock.c: test suite for flock.
51254
51255 2008-10-06  Jim Meyering  <meyering@redhat.com>
51256
51257         bootstrap: check for LT_INIT more portably still ;-)
51258         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
51259         Spotted by Bruno Haible.
51260
51261 2008-10-06  Eric Blake  <ebb9@byu.net>
51262
51263         test-signbit: avoid tripping Irix cc bug on -0.0L
51264         * tests/test-signbit.c (minus_zerol): Delete, and replace with
51265         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
51266         entire testsuite consistent and avoids an Irix 6.2 bug.
51267
51268 2008-10-05  Bruno Haible  <bruno@clisp.org>
51269             Jim Meyering  <jim@meyering.net>
51270
51271         Add an option for ignoring EPIPE during close_stdout.
51272         * lib/closeout.h: Include <stdbool.h>.
51273         (close_stdout_set_ignore_EPIPE): New declaration.
51274         * lib/closeout.c: Include <stdbool.h>.
51275         (ignore_EPIPE): New variable.
51276         (close_stdout_set_ignore_EPIPE): New function.
51277         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
51278         * lib/close-stream.c (close_stream): Mention the possible EPIPE
51279         failure.
51280         * modules/closeout (Depends-on): Add stdbool.
51281
51282 2008-10-05  Bruno Haible  <bruno@clisp.org>
51283
51284         * modules/accept: New file.
51285         * modules/bind: New file.
51286         * modules/connect: New file.
51287         * modules/getpeername: New file.
51288         * modules/getsockname: New file.
51289         * modules/getsockopt: New file.
51290         * modules/listen: New file.
51291         * modules/recv: New file.
51292         * modules/recvfrom: New file.
51293         * modules/send: New file.
51294         * modules/sendto: New file.
51295         * modules/setsockopt: New file.
51296         * modules/socket: New file.
51297         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
51298         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
51299         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
51300         the particular module is requested. Add a link warning when the
51301         particular module is not requested.
51302         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
51303         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
51304         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
51305         the particular module is requested.
51306         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
51307         gl_SYS_SOCKET_H_DEFAULTS): New macros.
51308         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
51309         * modules/sys_socket (Depends-on): Add link-warning.
51310         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
51311         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
51312         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
51313         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
51314         GL_LINK_WARNING.
51315         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
51316         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
51317         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
51318         * doc/posix-functions/getpeername.texi: Mention the new module
51319         'getpeername'.
51320         * doc/posix-functions/getsockname.texi: Mention the new module
51321         'getsockname'.
51322         * doc/posix-functions/getsockopt.texi: Mention the new module
51323         'getsockopt'.
51324         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
51325         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
51326         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
51327         * doc/posix-functions/send.texi: Mention the new module 'send'.
51328         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
51329         * doc/posix-functions/setsockopt.texi: Mention the new module
51330         'setsockopt'.
51331         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
51332         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
51333         listen, connect, accept.
51334         * modules/select-tests (Depends-on): Likewise.
51335
51336 2008-10-05  Bruno Haible  <bruno@clisp.org>
51337
51338         * lib/winsock.c (strerror): Remove unused #undef.
51339         (rpl_close): Remove unused local variable.
51340
51341         * modules/sys_socket (Depends-on); Add errno.
51342
51343 2008-10-05  Bruno Haible  <bruno@clisp.org>
51344
51345         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
51346         (select): Add a link warning when the 'select' module is not used.
51347         * modules/sys_select (Depends-on): Add link-warning.
51348         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
51349         Suggested by Paolo Bonzini.
51350
51351 2008-10-05  Jim Meyering  <meyering@redhat.com>
51352
51353         bootstrap: check for LT_INIT more portably
51354         * build-aux/bootstrap: Avoid using grep -E, since it's not
51355         portable enough.  Suggestion from Bruno Haible.
51356
51357 2008-10-05  Bruno Haible  <bruno@clisp.org>
51358
51359         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
51360         as being fixed by gnulib.
51361
51362 2008-10-05  Bruno Haible  <bruno@clisp.org>
51363
51364         * modules/select-tests: New file, mostly copied from
51365         modules/sys_select-tests.
51366         * tests/test-select.c: New file, mostly copied from
51367         tests/test-sys_select.c.
51368         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
51369         * modules/sys_select-tests (Depends-on): Remove all dependencies.
51370         (Makefile.am): Remove test_sys_select_LDADD.
51371
51372         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
51373         to an undefined symbol, for an error message.
51374         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
51375         (gl_SYS_SELECT_H_DEFAULTS): New macro.
51376         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
51377         winsock-select.c here.
51378         * modules/sys_select (Files): Remove lib/winsock-select.c.
51379         (Depends-on): Remove alloca.
51380         (Makefile.am): Substitute GNULIB_SELECT.
51381         * modules/select: New file.
51382         * doc/posix-functions/select.texi: Update.
51383
51384 2008-10-05  Bruno Haible  <bruno@clisp.org>
51385
51386         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
51387         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
51388         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
51389         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
51390         getdtablesize.
51391         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
51392         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
51393
51394 2008-10-05  Bruno Haible  <bruno@clisp.org>
51395
51396         * modules/getdtablesize-tests: New file.
51397         * tests/test-getdtablesize.c: New file.
51398
51399         New module 'getdtablesize'.
51400         * lib/unistd.in.h (getdtablesize): New declaration.
51401         * lib/getdtablesize.c: New file.
51402         * m4/getdtablesize.m4: New file.
51403         * modules/getdtablesize: New file.
51404         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51405         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
51406         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
51407         HAVE_GETDTABLESIZE.
51408         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
51409
51410 2008-10-05  Bruno Haible  <bruno@clisp.org>
51411
51412         * modules/sched (Makefile.am): Fix typo.
51413         Reported by Simon Josefsson.
51414
51415 2008-10-05  Jim Meyering  <meyering@redhat.com>
51416
51417         bootstrap: check for LT_INIT, too
51418         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
51419         are deprecated.  Suggestion from Ralf Wildenhues.
51420
51421 2008-10-05  Bruno Haible  <bruno@clisp.org>
51422
51423         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
51424         overriding them by ours.
51425         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
51426
51427 2008-10-05  Jim Meyering  <meyering@redhat.com>
51428
51429         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
51430         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
51431         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
51432
51433 2008-10-04  Bruno Haible  <bruno@clisp.org>
51434
51435         * modules/dup2 (License): Change to LGPLv2+.
51436         * modules/sleep (License): Likewise.
51437         * modules/perror (License): Likewise.
51438         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
51439         Blake.
51440         * modules/signal (License): Likewise.
51441         * modules/sigprocmask (License): Likewise.
51442         * modules/raise (License): Change to LGPLv2+, with approval by Jim
51443         Meyering.
51444
51445 2008-10-04  Bruno Haible  <bruno@clisp.org>
51446
51447         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
51448         Reported by Rainer Tammer <tammer@tammer.net>.
51449
51450 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
51451             Bruno Haible  <bruno@clisp.org>
51452
51453         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
51454         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
51455         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
51456
51457 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
51458
51459         filevercmp: new module
51460         * lib/filevercmp.h: New function filevercmp comparing version strings.
51461         * lib/filevercmp.c: Implementation of filevercmp function.
51462         * modules/filevercmp: Module metadata.
51463         * tests/test-filevercmp.c: Unit test for new module.
51464         * modules/filevercmp-tests: Unit test metadata.
51465         * MODULES.html.sh: Add filevercmp module.
51466
51467 2008-10-03  Bruno Haible  <bruno@clisp.org>
51468
51469         * lib/c-ctype.h: Add comment.
51470         Reported by Jim Meyering.
51471
51472 2008-10-02  Bruno Haible  <bruno@clisp.org>
51473
51474         * modules/posix_spawn-internal (Depends-on): Add 'open'.
51475
51476 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51477
51478         * build-aux/bootstrap: Allow renaming bootstrap, and change the
51479         name of bootstrap.conf accordingly.
51480
51481 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51482
51483         * build-aux/bootstrap: Install git-merge-changelog configuration
51484         items into .gitconfig if needed.
51485
51486 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51487
51488         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
51489         git repository, and initialize/update it accordingly.
51490
51491 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
51492
51493         * modules/fsync-tests: New file.
51494         * tests/test-fsync.c: New file.
51495
51496         New module 'fsync'.
51497         * lib/fsync.c: New file.
51498         * m4/fsync.m4: New file.
51499         * modules/fsync: New file.
51500         * lib/unistd.in.h (fsync): New declaration.
51501         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
51502         GNULIB_FSYNC and HAVE_FSYNC.
51503         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
51504         * MODULES.html.sh (posix_functions): Add fsync.
51505         * doc/posix-functions/fsync.texi: Mention the new module.
51506
51507 2008-10-02  Jim Meyering  <meyering@redhat.com>
51508
51509         fts.c: sync with similar code from coreutils' remove.c
51510         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
51511         Guard also with "#if defined __linux__", since for now at least,
51512         this code is Linux-kernel-specific.
51513
51514 2008-10-02  Jim Meyering  <meyering@redhat.com>
51515
51516         fts: bug fixes
51517         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
51518         Include <sys/vfs.h>, not <sys/statfs.h>.
51519
51520         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
51521         Include <sys/vfs.h>, not <sys/statfs.h>.
51522
51523 2008-10-01  Bruno Haible  <bruno@clisp.org>
51524
51525         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
51526         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
51527         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
51528         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
51529         * doc/posix-functions/posix_spawnp.texi: Likewise.
51530         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
51531         whether posix_spawn actually works.
51532         * m4/pipe.m4 (gl_PIPE): Likewise.
51533         * modules/execute (Files): Add m4/posix_spawn.m4.
51534         * modules/pipe (Files): Add m4/posix_spawn.m4.
51535         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
51536
51537 2008-10-01  Jim Meyering  <meyering@redhat.com>
51538
51539         remove trailing spaces
51540         * NEWS: Likewise.
51541         * lib/poll.c (poll): Likewise.
51542         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
51543         * lib/winsock.c (rpl_close): Likewise.
51544         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
51545         * modules/yield: Likewise.
51546         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
51547         * tests/test-sys_select.c (connect_to_socket): Likewise.
51548
51549         fts.c: adjust a new interface to be more generally useful
51550         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
51551         (fts_build): Adjust caller.
51552
51553 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51554
51555         * modules/cond-tests: New file.
51556         * tests/test-cond.c: New file.
51557
51558 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51559             Bruno Haible  <bruno@clisp.org>
51560
51561         * modules/cond (Dependencies): Add errno, time.
51562         * lib/glthread/cond.h: Include <time.h>.
51563         (gl_cond_define, gl_cond_define_initialized): Use the same definition
51564         across platforms.
51565
51566 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51567             Bruno Haible  <bruno@clisp.org>
51568
51569         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
51570
51571 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51572             Bruno Haible  <bruno@clisp.org>
51573
51574         * modules/tls-tests (Depends-on): Add thread, yield.
51575         (configure.ac): Remove all checks.
51576         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
51577         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
51578         gl_thread_self): Remove definitions. Include glthread/thread.h and
51579         glthread/yield.h instead.
51580         (test_tls): Pass an additional NULL argument to gl_thread_join.
51581
51582 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51583             Bruno Haible  <bruno@clisp.org>
51584
51585         * modules/lock-tests (Depends-on): Add thread, yield.
51586         (configure.ac): Remove all checks.
51587         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
51588         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
51589         gl_thread_self): Remove definitions. Include glthread/thread.h and
51590         glthread/yield.h instead.
51591         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
51592         additional NULL argument to gl_thread_join.
51593
51594 2008-09-30  Bruno Haible  <bruno@clisp.org>
51595
51596         Fix the Win32 implementation of the 'thread' module.
51597         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
51598         pointer type.
51599         (gl_thread_self): Invoke gl_thread_self_func.
51600         (gl_thread_self_func): New declaration.
51601         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
51602         (do_init_self_key, init_self_key): New functions.
51603         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
51604         Remove some fields.
51605         (running_threads, running_lock): Remove variables.
51606         (get_current_thread_handle): New function.
51607         (gl_thread_self_func, wrapper_func, glthread_create_func,
51608         glthread_join_func, gl_thread_exit_func): Largely rewritten and
51609         simplified.
51610
51611 2008-09-30  Bruno Haible  <bruno@clisp.org>
51612
51613         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
51614         files.
51615
51616 2008-09-30  Jim Meyering  <meyering@redhat.com>
51617
51618         fts.m4: correct the test for statfs.f_type
51619         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
51620         when checking for statfs.f_type.
51621
51622 2008-09-15  Simon Josefsson  <simon@josefsson.org>
51623
51624         tests: avoid some compiler warnings
51625         * tests/test-memchr.c (main): Pass NULL indirectly.
51626         * tests/test-getdate.c (main): Remove unused variable 'ret'.
51627
51628 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
51629
51630         getdate.y: disallow countable dayshifts like "4 yesterday ago"
51631         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
51632         exactly specified dayshifts.
51633         (dayshift): New rule.
51634         (rel): Add dayshift.
51635         (relative_time_table) [tomorrow, yesterday, today, now]:
51636         Use tDAY_SHIFT in place of tDAY_UNIT.
51637         * tests/test-getdate.c: Add tests for now-disallowed countable
51638         dayshifts, e.g., "4 yesterday ago".
51639
51640 2008-09-29  Bruno Haible  <bruno@clisp.org>
51641
51642         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
51643         * tests/test-posix_spawn1.in.sh: Renamed from
51644         tests/test-posix_spawn.in.sh.
51645         * tests/test-posix_spawn2.c: New file.
51646         * tests/test-posix_spawn2.in.sh: New file.
51647         * modules/posix_spawnp-tests (Files): Update.
51648         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
51649
51650 2008-09-29  Bruno Haible  <bruno@clisp.org>
51651
51652         Propagate effects of putenv/setenv/unsetenv to child processes.
51653         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
51654         * lib/pipe.c (create_pipe): Likewise.
51655
51656 2008-09-29  Bruno Haible  <bruno@clisp.org>
51657
51658         Enable use of shell scripts as executables in mingw.
51659         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
51660         run the program as a shell script.
51661         * lib/pipe.c (create_pipe): Likewise.
51662         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
51663         resulting array.
51664
51665 2008-09-29  Eric Blake  <ebb9@byu.net>
51666
51667         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
51668
51669 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
51670
51671         * doc/posix-functions/accept.texi: Update mingw problems.
51672         * doc/posix-functions/bind.texi: Update mingw problems.
51673         * doc/posix-functions/close.texi: Update mingw problems.
51674         * doc/posix-functions/connect.texi: Update mingw problems.
51675         * doc/posix-functions/getpeername.texi: Update mingw problems.
51676         * doc/posix-functions/getsockname.texi: Update mingw problems.
51677         * doc/posix-functions/getsockopt.texi: Update mingw problems.
51678         * doc/posix-functions/ioctl.texi: Update mingw problems.
51679         * doc/posix-functions/listen.texi: Update mingw problems.
51680         * doc/posix-functions/recv.texi: Update mingw problems.
51681         * doc/posix-functions/recvfrom.texi: Update mingw problems.
51682         * doc/posix-functions/select.texi: Update mingw problems.
51683         * doc/posix-functions/send.texi: Update mingw problems.
51684         * doc/posix-functions/sendto.texi: Update mingw problems.
51685         * doc/posix-functions/setsockopt.texi: Update mingw problems.
51686         * doc/posix-functions/socket.texi: Update mingw problems.
51687
51688 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
51689             Bruno Haible  <bruno@clisp.org>
51690
51691         * lib/sys_select.in.h: Include sys/time.h.
51692         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
51693         * modules/sys_select: Depend on sys_time.
51694         * tests/test-sys_select.c: Test that sys/select.h defines struct
51695         timeval fully.
51696
51697 2008-09-29  Bruno Haible  <bruno@clisp.org>
51698
51699         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
51700         * lib/sys_select.in.h: Likewise.
51701
51702 2008-09-29  Bruno Haible  <bruno@clisp.org>
51703
51704         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
51705
51706 2008-09-29  Bruno Haible  <bruno@clisp.org>
51707
51708         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
51709         Set LIBSOCKET instead of augmenting LIBS.
51710         * modules/sockets (Link): New section.
51711         * modules/sockets-tests (test_sockets_LDADD): New variable.
51712         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
51713         * modules/poll-tests (test_poll_LDADD): New variable.
51714         * NEWS: Document the change.
51715
51716 2008-09-29  Bruno Haible  <bruno@clisp.org>
51717
51718         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
51719         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
51720         ARPA_INET_H directly.
51721         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
51722
51723 2008-09-28  Bruno Haible  <bruno@clisp.org>
51724
51725         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
51726         from gl_HEADER_SYS_SOCKET.
51727         (gl_HEADER_SYS_SOCKET): Invoke it.
51728         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
51729
51730 2008-09-28  Bruno Haible  <bruno@clisp.org>
51731
51732         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
51733         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
51734         Needed on OSF/1 4.0.
51735
51736 2008-09-28  Bruno Haible  <bruno@clisp.org>
51737
51738         Override open more carefully.
51739         * lib/open.c (orig_open): New function.
51740         (rpl_open): Use orig_open instead of open.
51741         * lib/fcntl.in.h: Add special invocation convention.
51742         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
51743         (gl_FUNC_OPEN): Invoke it.
51744
51745         Override freopen more carefully.
51746         * lib/freopen.c (orig_freopen): New function.
51747         (rpl_freopen): Use orig_freopen instead of freopen.
51748         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
51749         (gl_FUNC_FREOPEN): Invoke it.
51750
51751         Override fopen more carefully.
51752         * lib/fopen.c (orig_fopen): New function.
51753         (rpl_fopen): Use orig_fopen instead of fopen.
51754         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
51755         (gl_FUNC_FOPEN): Invoke it.
51756         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
51757
51758 2008-09-28  Bruno Haible  <bruno@clisp.org>
51759
51760         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
51761         SIGPIPE.
51762
51763 2008-09-28  Bruno Haible  <bruno@clisp.org>
51764
51765         * tests/test-sigaction.c (handler, main): Disable the check whether
51766         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
51767         glibc systems with LinuxThreads.
51768
51769 2008-09-28  Bruno Haible  <bruno@clisp.org>
51770
51771         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
51772
51773         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
51774         with AIX xlc.
51775         * lib/fcntl.in.h (open): Likewise.
51776         Reported by Rainer Tammer <tammer@tammer.net>.
51777
51778 2008-09-28  Bruno Haible  <bruno@clisp.org>
51779
51780         * modules/posix_spawnp-tests: New file.
51781         * tests/test-posix_spawn.c: New file.
51782         * tests/test-posix_spawn.in.sh: New file.
51783
51784         New module 'posix_spawnp'.
51785         * modules/posix_spawnp: New file.
51786         * lib/spawnp.c: New file, from GNU libc with modifications.
51787         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
51788
51789         New module 'posix_spawn'.
51790         * modules/posix_spawn: New file.
51791         * lib/spawn.c: New file, from GNU libc with modifications.
51792         * doc/posix-functions/posix_spawn.texi: Mention the new module.
51793
51794         New module 'posix_spawnattr_destroy'.
51795         * modules/posix_spawnattr_destroy: New file.
51796         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
51797         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
51798         module.
51799
51800         New module 'posix_spawnattr_setsigmask'.
51801         * modules/posix_spawnattr_setsigmask: New file.
51802         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
51803         modifications.
51804         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
51805         new module.
51806
51807         New module 'posix_spawnattr_getsigmask'.
51808         * modules/posix_spawnattr_getsigmask: New file.
51809         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
51810         modifications.
51811         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
51812         new module.
51813
51814         New module 'posix_spawnattr_setsigdefault'.
51815         * modules/posix_spawnattr_setsigdefault: New file.
51816         * lib/spawnattr_setdefault.c: New file, from GNU libc with
51817         modifications.
51818         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
51819         new module.
51820
51821         New module 'posix_spawnattr_getsigdefault'.
51822         * modules/posix_spawnattr_getsigdefault: New file.
51823         * lib/spawnattr_getdefault.c: New file, from GNU libc with
51824         modifications.
51825         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
51826         new module.
51827
51828         New module 'posix_spawnattr_setschedpolicy'.
51829         * modules/posix_spawnattr_setschedpolicy: New file.
51830         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
51831         modifications.
51832         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
51833         new module.
51834
51835         New module 'posix_spawnattr_getschedpolicy'.
51836         * modules/posix_spawnattr_getschedpolicy: New file.
51837         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
51838         modifications.
51839         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
51840         new module.
51841
51842         New module 'posix_spawnattr_setschedparam'.
51843         * modules/posix_spawnattr_setschedparam: New file.
51844         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
51845         modifications.
51846         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
51847         new module.
51848
51849         New module 'posix_spawnattr_getschedparam'.
51850         * modules/posix_spawnattr_getschedparam: New file.
51851         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
51852         modifications.
51853         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
51854         new module.
51855
51856         New module 'posix_spawnattr_setpgroup'.
51857         * modules/posix_spawnattr_setpgroup: New file.
51858         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
51859         modifications.
51860         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
51861         module.
51862
51863         New module 'posix_spawnattr_getpgroup'.
51864         * modules/posix_spawnattr_getpgroup: New file.
51865         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
51866         modifications.
51867         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
51868         module.
51869
51870         New module 'posix_spawnattr_setflags'.
51871         * modules/posix_spawnattr_setflags: New file.
51872         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
51873         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
51874         module.
51875
51876         New module 'posix_spawnattr_getflags'.
51877         * modules/posix_spawnattr_getflags: New file.
51878         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
51879         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
51880         module.
51881
51882         New module 'posix_spawnattr_init'.
51883         * modules/posix_spawnattr_init: New file.
51884         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
51885         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
51886         module.
51887
51888         New module 'posix_spawn_file_actions_destroy'.
51889         * modules/posix_spawn_file_actions_destroy: New file.
51890         * lib/spawn_faction_destroy.c: New file, from GNU libc with
51891         modifications.
51892         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
51893         the new module.
51894
51895         New module 'posix_spawn_file_actions_addopen'.
51896         * modules/posix_spawn_file_actions_addopen: New file.
51897         * lib/spawn_faction_addopen.c: New file, from GNU libc with
51898         modifications.
51899         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
51900         the new module.
51901
51902         New module 'posix_spawn_file_actions_adddup2'.
51903         * modules/posix_spawn_file_actions_adddup2: New file.
51904         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
51905         modifications.
51906         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
51907         the new module.
51908
51909         New module 'posix_spawn_file_actions_addclose'.
51910         * modules/posix_spawn_file_actions_addclose: New file.
51911         * lib/spawn_faction_addclose.c: New file, from GNU libc with
51912         modifications.
51913         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
51914         the new module.
51915
51916         New module 'posix_spawn_file_actions_init'.
51917         * modules/posix_spawn_file_actions_init: New file.
51918         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
51919         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
51920         new module.
51921
51922         New module 'posix_spawn-internal'.
51923         * modules/posix_spawn-internal: New file.
51924         * lib/spawn_int.h: New file, from GNU libc with modifications.
51925         * lib/spawni.c: New file, from GNU libc with modifications.
51926         * m4/posix_spawn.m4: New file.
51927
51928         New module 'spawn'.
51929         * modules/spawn: New file.
51930         * lib/spawn.in.h: New file, from GNU libc with modifications.
51931         * m4/spawn_h.m4: New file.
51932         * doc/posix-headers/spawn.texi: Mention the new module.
51933
51934 2008-09-28  Bruno Haible  <bruno@clisp.org>
51935
51936         * modules/sched-tests: New file.
51937         * tests/test-sched.c: New file.
51938
51939         New module 'sched'.
51940         * modules/sched: New file.
51941         * lib/sched.in.h: New file.
51942         * m4/sched_h.m4: New file.
51943         * doc/posix-headers/sched.texi: Mention the new module.
51944
51945 2008-09-27  Eric Blake  <ebb9@byu.net>
51946
51947         Fix previous patch, and tweak references to $0.
51948         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
51949         (func_version, func_gnulib_dir): Don't call this program
51950         gnulib-tool.
51951         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
51952         with using $0 in function.
51953         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
51954         (func_fatal_error): Reuse the name the user invoked us with.
51955
51956 2008-09-27  Bruno Haible  <bruno@clisp.org>
51957
51958         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
51959         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
51960         (gl_ICONV_H): Not here.
51961         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
51962         instead of assigning ICONV_H directly.
51963
51964         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
51965         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
51966         WCHAR_H directly.
51967
51968 2008-09-27  Bruno Haible  <bruno@clisp.org>
51969
51970         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
51971         * modules/arpa_inet (Depends-on): Add link-warning.
51972         (Makefile.am): Insert the definition of GL_LINK-WARNING.
51973         * modules/unistd (Makefile.am): Likewise.
51974
51975 2008-09-26  Bruno Haible  <bruno@clisp.org>
51976
51977         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
51978         variables.
51979         (func_version): Essentially copied from gnulib-tool.
51980         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
51981         func_readlink): Copied from gnulib-tool.
51982
51983 2008-09-26  Bruno Haible  <bruno@clisp.org>
51984
51985         * gnulib-tool (func_version): Change directory to $gnulib_dir before
51986         invoking git-version-gen.
51987
51988 2008-09-26  Bruno Haible  <bruno@clisp.org>
51989
51990         * posix-modules: Update to directory names changed on 2008-01-19.
51991         Remove commas in output before splitting into words. No more need to
51992         avoid 'ftruncate' since 2007-02-19.
51993
51994 2008-09-26  Bruno Haible  <bruno@clisp.org>
51995
51996         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
51997
51998 2008-09-26  Bruno Haible  <bruno@clisp.org>
51999
52000         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
52001         * modules/fwriteerror (Depends-on): Add errno.
52002
52003 2008-09-26  Bruno Haible  <bruno@clisp.org>
52004
52005         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
52006         * tests/test-vc-list-files-cvs.sh: Likewise.
52007
52008 2008-09-26  Bruno Haible  <bruno@clisp.org>
52009
52010         * doc/posix-headers/sys_resource.texi: Reorder items.
52011
52012 2008-09-26  Jim Meyering  <meyering@redhat.com>
52013
52014         fts: tweak inode comparison function
52015         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
52016         inode numbers, as documented.
52017
52018         fts: sort dirent entries on inode number before traversing
52019         This avoids a quadratic, seek-related performance penalty when
52020         operating on a directory containing many entries (measurable at 10k;
52021         3.5 hours at 2 million entries with a cold cache) on certain types
52022         of file systems, including ext3 and ext4, but not tmpfs.
52023         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
52024         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
52025         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
52026         (fs_handles_readdir_ordered_dirents_efficiently): New function.
52027         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
52028         (fts_build): Set the stat.st_ino member from D_INO.
52029         If it is likely to be useful, sort dirent entries on inode number.
52030
52031         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
52032         and the struct statfs.f_type member.
52033         * modules/fts (Depends-on): Add d-ino.
52034
52035 2008-09-26  Bruno Haible  <bruno@clisp.org>
52036
52037         * modules/sigpipe-die (Depends-on): Add sigpipe.
52038
52039         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
52040         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
52041         and GNULIB_STDIO_H_SIGPIPE are set.
52042         * lib/stdio-write.c: New file.
52043         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
52044         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52045         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52046         REPLACE_STDIO_WRITE_FUNCS.
52047         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
52048         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52049         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52050         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
52051         * modules/stdio (Files): Add lib/stdio-write.c.
52052         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
52053         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52054         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52055         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
52056         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
52057         REPLACE_FPRINTF_POSIX.
52058         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
52059         REPLACE_PRINTF_POSIX.
52060         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
52061         REPLACE_VFPRINTF_POSIX.
52062         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
52063         REPLACE_VPRINTF_POSIX.
52064         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
52065         SIGPIPE issue.
52066         * doc/posix-functions/fputc.texi: Likewise.
52067         * doc/posix-functions/fputs.texi: Likewise.
52068         * doc/posix-functions/fwrite.texi: Likewise.
52069         * doc/posix-functions/printf.texi: Likewise.
52070         * doc/posix-functions/putc.texi: Likewise.
52071         * doc/posix-functions/putchar.texi: Likewise.
52072         * doc/posix-functions/puts.texi: Likewise.
52073         * doc/posix-functions/vfprintf.texi: Likewise.
52074         * doc/posix-functions/vprintf.texi: Likewise.
52075
52076         * modules/safe-write (Depends-on): Add write.
52077
52078         * modules/sigpipe-tests: New file.
52079         * tests/test-sigpipe.c: New file.
52080         * tests/test-sigpipe.sh: New file.
52081
52082         * modules/write: New file.
52083         * lib/unistd.in.h: Include <sys/types.h>.
52084         (write): New declaration.
52085         * lib/write.c: New file.
52086         * m4/write.m4: New file.
52087         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52088         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
52089         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
52090         GNULIB_WRITE, REPLACE_WRITE.
52091         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
52092         and the SIGPIPE issue.
52093
52094         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
52095         (raise): New declaration.
52096         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
52097         (ext_signal): New function.
52098         (rpl_raise): New function.
52099         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
52100         GNULIB_SIGNAL_H_SIGPIPE.
52101         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
52102         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
52103
52104         * modules/sigpipe: New file.
52105         * m4/sigpipe.m4: New file.
52106
52107 2008-09-25  Derek Price  <derek@ximbiot.com>
52108             Bruno Haible  <bruno@clisp.org>
52109
52110         * gnulib-tool (func_import): Report all license incompatibilities, not
52111         just the first one.
52112
52113 2008-09-25  Bruno Haible  <bruno@clisp.org>
52114
52115         * gnulib-tool (func_import): When computing the edits, consider not
52116         only the Makefile.ams that exist but also those that will be generated.
52117
52118 2008-09-25  Simon Josefsson  <simon@josefsson.org>
52119
52120         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
52121         fixes gnulib-tool --test warning about duplicate dependency.
52122
52123 2008-09-25  Bruno Haible  <bruno@clisp.org>
52124
52125         * gnulib-tool: Don't ask the user to perform edits in the generated
52126         Makefile.ams.
52127         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
52128         apply to the Makefile.am being generated.
52129         (func_emit_tests_Makefile_am): Execute edits that apply to the
52130         Makefile.am being generated.
52131         (func_import): Setup list of Makefile.am edits before emitting the
52132         Makefile.ams, not at the end.
52133         (func_create_testdir): Update.
52134         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52135
52136 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52137
52138         * gnulib-tool (func_import): Store the --tests-base option in the
52139         comment in gnulib-cache.m4.
52140
52141 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
52142
52143         * NEWS: Document increased portability that sys_select now provides.
52144
52145         * lib/sys_select.in.h: Install select wrapper.
52146         * lib/sys_socket.in.h: Use more descriptive name when there is no
52147         select wrapper.
52148         * lib/winsock-select.c: New.
52149         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
52150         Require gl_HEADER_SYS_SOCKET.
52151         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
52152         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
52153         * tests/test-sys_select.c: Add functional tests.
52154
52155 2008-09-24  Eric Blake  <ebb9@byu.net>
52156
52157         open, fopen: close fd leak in last patch
52158         * lib/open.c (rpl_open): Close fd before returning error.
52159         * lib/fopen.c (rpl_fopen): Close fd before returning error.
52160         * doc/posix-functions/open.texi (open): Document that Irix also
52161         has the bug.
52162         * doc/posix-functions/fopen.texi (fopen): Likewise.
52163         Reported by Paolo Bonzini.
52164
52165 2008-09-24  Bruno Haible  <bruno@clisp.org>
52166
52167         Ensure that a filename ending in a slash cannot be used to access a
52168         non-directory.
52169         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
52170         to check whether it's really a directory.
52171         * lib/fopen.c: Include fcntl.h, unistd.h.
52172         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
52173         and fdopen().
52174         * modules/fopen (Depends-on): Add unistd.
52175         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
52176         * tests/test-fopen.c (main): Likewise.
52177         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
52178         * doc/posix-functions/fopen.texi: Likewise.
52179         Reported by Eric Blake.
52180
52181 2008-09-23  Eric Blake  <ebb9@byu.net>
52182
52183         c-stack: avoid compiler optimizations when provoking overflow
52184         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
52185         recursion harder to optimize, to ensure a stack overflow occurs.
52186         * tests/test-c-stack.c (recurse): Likewise.
52187         Borrowed from libsigsegv.
52188
52189         c-stack: work around Irix sigaltstack bug
52190         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
52191         whether sigaltstack uses wrong end of stack_t (copied in part from
52192         libsigsegv).
52193         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
52194         Irix bug, without requiring an over-allocation.
52195         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
52196         bug.
52197
52198         fopen: document mingw bug on directories
52199         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
52200         not allowing a stream visiting a directory, even though reading
52201         from such a stream is not portable.
52202
52203 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52204
52205         * lib/poll.c: Rewrite.
52206         * modules/poll: Depend on alloca.
52207
52208 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52209
52210         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
52211         instead define prototypes for a full set of wrappers.  Ensure
52212         that Cygwin does not use the compatibility code, which is only
52213         for MinGW.
52214         * lib/winsock.c: New.
52215         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
52216         * modules/sys_socket: Add lib/winsock.c.
52217
52218         * modules/poll-tests: Add errno and perror.
52219         * tests/test-poll.c: Use ioctl, not ioctlsocket.
52220
52221 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52222
52223         * tests/test-poll.c: Downgrade minimum needed Winsock version.
52224
52225 2008-09-23  Bruno Haible  <bruno@clisp.org>
52226
52227         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
52228         * doc/glibc-functions/*: Likewise.
52229
52230 2008-09-23  Simon Josefsson  <simon@josefsson.org>
52231
52232         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
52233         success.
52234
52235 2008-09-22  Eric Blake  <ebb9@byu.net>
52236             Bruno Haible  <bruno@clisp.org>
52237
52238         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
52239         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
52240         supply %A but mishandle pseudo-NaN.
52241         Reported by Simon Josefsson.
52242
52243 2008-09-21  Bruno Haible  <bruno@clisp.org>
52244
52245         * tests/test-lock.c (main): Tweak skip message.
52246         * tests/test-tls.c (main): Likewise.
52247
52248 2008-09-21  Bruno Haible  <bruno@clisp.org>
52249
52250         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
52251         whether 'struct sigaction' has sa_sigaction here...
52252         (gl_PREREQ_SIG_HANDLER_H): ... not here.
52253         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
52254
52255 2008-09-21  Bruno Haible  <bruno@clisp.org>
52256
52257         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
52258         section.
52259         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
52260         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
52261         the new section.
52262         (Support for obsolete systems lacking POSIX:2001): New section.
52263         (String handling <string.h>): Move strdup to the new section.
52264         Suggested by Simon Josefsson and Paolo Bonzini.
52265
52266 2008-09-21  Bruno Haible  <bruno@clisp.org>
52267
52268         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
52269         exponents in %e and %g results on 'long double'. Needed for mingw's
52270         improved *printf functions.
52271         * tests/test-vasprintf-posix.c (test_function): Likewise.
52272         * tests/test-snprintf-posix.h (test_function): Likewise.
52273         * tests/test-sprintf-posix.h (test_function): Likewise.
52274         Reported by Eric Blake.
52275
52276 2008-09-21  Bruno Haible  <bruno@clisp.org>
52277
52278         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
52279         * tests/test-sprintf-posix.h (test_function): Likewise.
52280
52281 2008-09-21  Bruno Haible  <bruno@clisp.org>
52282
52283         * modules/getpass (Depends-on): Add strdup-posix.
52284
52285         New module 'strdup-posix'.
52286         * modules/strdup-posix: New file.
52287         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
52288         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
52289         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52290         REPLACE_STRDUP.
52291         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
52292         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
52293         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52294         strdup-posix.
52295
52296         * modules/strdup (Depends-on): Remove malloc-posix.
52297
52298 2008-09-20  Bruno Haible  <bruno@clisp.org>
52299
52300         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
52301         Wildenhues.
52302
52303 2008-09-20  Bruno Haible  <bruno@clisp.org>
52304
52305         Ensure that wint_t gets defined on IRIX 5.3.
52306         * lib/wchar.in.h (wint_t): Define if not defined by the system.
52307         * lib/wctype.in.h (wint_t): Likewise.
52308         (__wctype_wint_t): Remove type.
52309         (isw*): Use wint_t instead of __wctype_wint_t.
52310         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
52311         * modules/wchar (Files): Add m4/wint_t.m4.
52312         (Makefile.am): Substitute HAVE_WINT_T.
52313         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
52314         * tests/test-wctype.c: Check that wint_t is defined.
52315         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
52316         * doc/posix-headers/wctype.texi: Likewise.
52317         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52318
52319 2008-09-18  Bruno Haible  <bruno@clisp.org>
52320
52321         * gnulib-tool (func_exit): Update comment.
52322
52323 2008-09-18  Simon Josefsson  <simon@josefsson.org>
52324
52325         * modules/getaddrinfo (Depends-on): Remove strdup, this module
52326         assumes strdup exists and does not depend on strdup to return
52327         ENOMEM on out of memory conditions.
52328
52329 2008-09-18  Bruno Haible  <bruno@clisp.org>
52330
52331         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
52332         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
52333         digits for the exponent.
52334
52335 2008-09-18  Jim Meyering  <meyering@redhat.com>
52336             Bruno Haible  <bruno@clisp.org>
52337
52338         * lib/vasnprintf.c (decimal_point_char): Define also if
52339         NEED_PRINTF_INFINITE_LONG_DOUBLE.
52340
52341 2008-09-16  Bruno Haible  <bruno@clisp.org>
52342         and Eric Blake  <ebb9@byu.net>
52343
52344         vasnprintf: support Irix 5.3
52345         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
52346         that mishandle long double infinity.
52347         Reported by Tom G. Christensen.
52348
52349 2008-09-16  Bruno Haible  <bruno@clisp.org>
52350
52351         * doc/glibc-functions/scandir.texi: Mention the function is missing on
52352         Solaris 9.
52353         * doc/glibc-functions/alphasort.texi: Likewise.
52354         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
52355
52356 2008-09-16  Jim Meyering  <meyering@redhat.com>
52357
52358         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
52359         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
52360         a umask modification leak out of a subshell.  Otherwise, the
52361         opensolaris /bin/sh would be accepted and thus cause unwarranted
52362         failures in the coreutils test suite.
52363
52364 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
52365
52366         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
52367         to succeed.
52368
52369 2008-09-16  Jim Meyering  <meyering@redhat.com>
52370
52371         avoid spurious test failure when library is built without ACL support
52372         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
52373         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
52374         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
52375         * tests/test-copy-acl.sh: Likewise.
52376
52377 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52378
52379         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
52380         based on character occurrence counts.
52381
52382 2008-09-15  Eric Blake  <ebb9@byu.net>
52383
52384         tests: avoid some compiler warnings
52385         * tests/test-memchr.c (main): Pass NULL indirectly.
52386         * tests/test-closein.c (main): Avoid unused variable.
52387
52388 2008-09-15  Bruno Haible  <bruno@clisp.org>
52389
52390         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
52391         are missing on OpenBSD 4.0 individually.
52392         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52393
52394 2008-09-15  Bruno Haible  <bruno@clisp.org>
52395
52396         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
52397         * doc/posix-functions/strerror.texi: Mention also Cygwin.
52398         * doc/posix-functions/perror.texi: Likewise.
52399         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
52400         is missing.
52401         Reported by Eric Blake.
52402
52403         * lib/errno.in.h: Use replacement values >= 2000.
52404         Reported by Eric Blake.
52405
52406 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52407
52408         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
52409         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
52410         limit.
52411         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
52412         compareseq was aborted.
52413
52414 2008-09-14  Bruno Haible  <bruno@clisp.org>
52415
52416         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
52417         yvec_edit_count.
52418         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
52419         (fstrcmp_bounded): Simplify result computation accordingly.
52420
52421 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52422
52423         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
52424         (fstrcmp): Define in terms of fstrcmp_bounded.
52425         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
52426         lower_bound argument.
52427         Return quickly if the result is certainly < lower_bound.
52428         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
52429
52430 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52431
52432         * lib/diffseq.h (EARLY_ABORT): New macro.
52433         (compareseq): Change return type to bool. Return true when EARLY_ABORT
52434         evaluates to true.
52435
52436 2008-09-14  Bruno Haible  <bruno@clisp.org>
52437
52438         * modules/perror-tests: New file.
52439         * tests/test-perror.sh: New file.
52440         * tests/test-perror.c: New file.
52441
52442         New module 'perror'.
52443         * lib/stdio.in.h (perror): New declaration.
52444         * lib/perror.c: New file.
52445         * m4/perror.m4: New file.
52446         * modules/perror: New file.
52447         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
52448         * doc/posix-functions/perror.texi: Mention the perror module.
52449         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
52450         REPLACE_PERROR.
52451         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
52452         REPLACE_PERROR.
52453
52454 2008-09-14  Bruno Haible  <bruno@clisp.org>
52455
52456         * modules/stdio (Makefile.am): Reorder to match the order in
52457         lib/stdio.in.h.
52458         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
52459
52460 2008-09-13  Bruno Haible  <bruno@clisp.org>
52461
52462         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
52463
52464 2008-09-13  Bruno Haible  <bruno@clisp.org>
52465
52466         Extend strerror to cover the added errno values.
52467         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
52468         (rpl_strerror): Provide error messages for the added errno values and
52469         for the WSA* values.
52470         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
52471         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
52472         strerror.
52473         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
52474         * modules/strerror (Depends-on): Add errno.
52475         * doc/posix-functions/strerror.texi: Document the change.
52476         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
52477         and EOVERFLOW.
52478
52479 2008-09-13  Bruno Haible  <bruno@clisp.org>
52480
52481         * modules/EOVERFLOW: Remove file.
52482         * m4/eoverflow.m4: Remove file.
52483         * modules/EOVERFLOW-tests: Remove file.
52484         * tests/test-EOVERFLOW.c: Remove file.
52485         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
52486         * modules/ftell (Depends-on): Likewise.
52487         * modules/getdelim (Depends-on): Likewise.
52488         * modules/getugroups (Depends-on): Likewise.
52489         * modules/poll (Depends-on): Likewise.
52490         * modules/snprintf (Depends-on): Likewise.
52491         * modules/sprintf-posix (Depends-on): Likewise.
52492         * modules/vasnprintf (Depends-on): Likewise.
52493         * modules/vasprintf (Depends-on): Likewise.
52494         * modules/vfprintf-posix (Depends-on): Likewise.
52495         * modules/vsnprintf (Depends-on): Likewise.
52496         * modules/vsprintf-posix (Depends-on): Likewise.
52497         * modules/xvasprintf (Depends-on): Likewise.
52498         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52499         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
52500         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
52501         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
52502         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52503         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
52504         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
52505         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
52506         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52507         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
52508         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
52509         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
52510         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52511         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
52512         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
52513         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
52514         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52515         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
52516         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
52517         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
52518         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52519         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
52520         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
52521         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
52522         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
52523         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52524         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
52525         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
52526         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
52527         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
52528         * MODULES.html.sh: Remove EOVERFLOW.
52529         * NEWS: Mention the change.
52530
52531 2008-09-13  Bruno Haible  <bruno@clisp.org>
52532
52533         * modules/errno-tests: New file.
52534         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
52535
52536         * lib/errno.in.h: New file.
52537         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
52538         * modules/errno: New file.
52539         * doc/posix-headers/errno.texi: Update documentation.
52540         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
52541
52542 2008-09-13  Bruno Haible  <bruno@clisp.org>
52543
52544         * tests/test-poll.c: Use #if for native Windows, rather than testing
52545         __MSVCRT__.
52546
52547 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52548             Bruno Haible  <bruno@clisp.org>
52549
52550         * lib/glob.c: Don't include <pwd.h> on native Windows.
52551         (WINDOWS32): New macro.
52552         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
52553
52554 2008-09-13  Bruno Haible  <bruno@clisp.org>
52555
52556         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
52557         (ETIMEDOUT): Remove macro.
52558         (glthread_cond_timedwait_multithreaded): New declaration.
52559         (glthread_cond_timedwait): Use it.
52560         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
52561         (glthread_cond_timedwait_multithreaded): New function.
52562
52563 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52564
52565         * modules/poll-tests: Do not check for io.h.
52566         * tests/test-poll.c: Check for __MSVCRT__ instead.
52567
52568 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52569
52570         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
52571         * modules/poll-tests: Add inet_pton, stdbool, sockets.
52572         * tests/test-poll.c: Use them.  Use _pipe on Windows.
52573
52574 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52575
52576         * modules/poll-tests: New.
52577         * tests/test-poll.c: New.
52578
52579 2008-09-12  Eric Blake  <ebb9@byu.net>
52580
52581         frexp: test for NetBSD failure on -0.0
52582         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
52583         not all, bugs from NetBSD 3.0 have been fixed.
52584         * doc/posix-functions/frexp.texi (frexp): Document bug.
52585         Reported by Thomas Klausner.
52586
52587         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
52588         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
52589         literal -0.0.
52590         Reported by Jonathan C. Patschke <jp@centtech.com>.
52591
52592 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52593
52594         * lib/glthread/cond.h: Use dummy implementation also if
52595         USE_WIN32_THREADS.
52596
52597 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52598
52599         * modules/fnmatch-posix (License): Change to LGPLv2+.
52600         * modules/fnmatch-gnu (License): Likewise.
52601
52602 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52603
52604         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
52605
52606 2008-09-11  Jim Meyering  <meyering@redhat.com>
52607
52608         * users.txt: Add gtk-vnc.
52609
52610 2008-09-08  Simon Josefsson  <simon@josefsson.org>
52611
52612         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
52613         rotate amounts.
52614
52615         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
52616         required for 16-bit and 8-bit rotates.
52617         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
52618         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
52619         UINT8_MAX instead of hard-coded constants.
52620         Suggested by Paul Eggert.
52621
52622 2008-09-07  Bruno Haible  <bruno@clisp.org>
52623
52624         * tests/test-striconveh.c (main): Check behaviour when converting from
52625         UTF-7.
52626
52627         Make striconveh work better with stateful encodings.
52628         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
52629         that iconv does not increment the inptr when returning -1/EINVAL.
52630
52631 2008-09-07  Bruno Haible  <bruno@clisp.org>
52632
52633         * build-aux/config.rpath: Update according to libtool-2.2.6.
52634         * build-aux/config.libpath: Likewise.
52635
52636 2008-09-06  Bruno Haible  <bruno@clisp.org>
52637
52638         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
52639         * lib/freadptr.c (freadptr): Likewise.
52640         * lib/freadseek.c (freadptrinc): Likewise.
52641         Reported by Simon Josefsson.
52642
52643 2008-09-06  Bruno Haible  <bruno@clisp.org>
52644
52645         * modules/freadptr (License): Change to LGPLv2+.
52646         * modules/freadseek (License): Likewise.
52647         Suggested by Eric Blake.
52648
52649         * modules/memchr2 (License): Change to LGPLv2+.
52650         Approved by Eric Blake.
52651
52652 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52653             Bruno Haible  <bruno@clisp.org>
52654
52655         Make gnulib-tool work with native 'sed' on AIX.
52656         * gnulib-tool (sed_noop): New variable.
52657         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
52658         func_add_or_update, func_create_testdir): Use it to initialize sed
52659         script variables.
52660         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52661
52662 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
52663             Bruno Haible  <bruno@clisp.org>
52664
52665         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
52666         also works after #include directives.
52667
52668 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
52669
52670         getdate.y: reject an out-of-range timezone value
52671         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
52672         the range [-24...+24].  When specified with only one or two digits,
52673         * tests/test-getdate.c: Tests for the fix.
52674         * doc/getdate.texi: Document this change.
52675
52676 2008-09-03  Bruno Haible  <bruno@clisp.org>
52677
52678         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
52679
52680 2008-09-02  Simon Josefsson  <simon@josefsson.org>
52681
52682         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
52683         <bruce.korb@gmail.com> with ideas from Ben Pfaff
52684         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
52685         Blake <ebb9@byu.net>.
52686
52687         * tests/test-bitrotate.c: Add more test vectors.
52688
52689 2008-09-02  Eric Blake  <ebb9@byu.net>
52690
52691         vasnprintf-posix: handle large precision via %.*d
52692         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
52693         when handling it ourselves.
52694         * tests/test-vasnprintf-posix.c (test_function): Add test.
52695         * tests/test-snprintf-posix.h (test_function): Likewise.
52696         * tests/test-sprintf-posix.h (test_function): Likewise.
52697         * tests/test-vasprintf-posix.c (test_function): Likewise.
52698         Reported by Alain Guibert.
52699
52700 2008-09-01  Eric Blake  <ebb9@byu.net>
52701
52702         c-stack: make configure-time check more robust
52703         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
52704         successful sigaction call.
52705         Reported by Tom G. Christensen.
52706
52707 2008-09-01  Bruno Haible  <bruno@clisp.org>
52708
52709         New module 'findprog-lgpl'.
52710         * modules/findprog-lgpl: New file.
52711         * lib/findprog-lgpl.c: New file.
52712         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
52713         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
52714         to decide whether to use strdup or xstrdup, concatenated_filename or
52715         xconcatenated_filename.
52716
52717 2008-09-01  Bruno Haible  <bruno@clisp.org>
52718
52719         Split module 'concat-filename' into 'concat-filename' (LGPL) and
52720         'xconcat-filename' (GPL).
52721         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
52722         (License): Change to LGPLv2+.
52723         * modules/xconcat-filename: New file.
52724         * lib/concat-filename.h (concatenated_filename): Change specification.
52725         (xconcatenated_filename): New declaration.
52726         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
52727         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
52728         memory situations.
52729         * lib/xconcat-filename.c: New file.
52730         * NEWS: Mention the change.
52731         * lib/findprog.c: Include concat-filename.h, not filename.h.
52732         (find_in_path): Use xconcatenated_filename instead of
52733         concatenated_filename.
52734         * lib/javacomp.c: Include concat-filename.h, not filename.h.
52735         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
52736         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
52737         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
52738         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
52739         instead of concatenated_filename.
52740         * lib/javaexec.c: Include concat-filename.h, not filename.h.
52741         (execute_java_class): Use xconcatenated_filename instead of
52742         concatenated_filename.
52743         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
52744         * modules/javacomp (Depends-on): Likewise.
52745         * modules/javaexec (Depends-on): Likewise.
52746
52747 2008-09-01  Bruno Haible  <bruno@clisp.org>
52748
52749         Split module 'filename' into 'filename' and 'concat-filename'.
52750         * modules/filename: Keep only lib/filename.h.
52751         (License): Change to LGPLv2+.
52752         * modules/concat-filename: New file, extracted from modules/filename.
52753         * lib/filename.h (concatenated_filename): Remove declaration.
52754         * lib/concat-filename.h: New file, extracted from lib/filename.h.
52755         * lib/concat-filename.c: Include concat-filename.h.
52756         * NEWS: Mention the change.
52757
52758 2008-09-01  Simon Josefsson  <simon@josefsson.org>
52759
52760         * lib/bitrotate.h (rotl8, rotr8): Add.
52761
52762         * modules/bitrotate (configure.ac): Need
52763         AC_REQUIRE([AC_C_INLINE]).
52764         (Description): Mention stdint.h.  Reported by Bruno Haible
52765         <bruno@clisp.org>.
52766
52767         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
52768         Paolo Bonzini <bonzini@gnu.org>.
52769
52770 2008-08-31  Bruno Haible  <bruno@clisp.org>
52771
52772         Assume Solaris specific bi-arch conventions on Solaris systems.
52773         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
52774         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
52775         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
52776         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
52777         like acl_libdirstem.
52778         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
52779         acl_libdirstem.
52780         * NEWS: Mention the change.
52781         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
52782
52783 2008-08-31  Jim Meyering  <meyering@redhat.com>
52784
52785         * lib/strftime.h: Add comments describing the two added arguments.
52786
52787         remove duplicate #include directives
52788         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
52789         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
52790
52791 2008-08-31  Bruno Haible  <bruno@clisp.org>
52792
52793         New module 'sigpipe-die'.
52794         * modules/sigpipe-die: New file.
52795         * lib/sigpipe-die.h: New file.
52796         * lib/sigpipe-die.c: New file.
52797         * MODULES.html.sh (Signal handling): Add sigpipe-die.
52798
52799 2008-08-31  Bruno Haible  <bruno@clisp.org>
52800
52801         Don't override previously installed signal handlers.
52802         * lib/fatal-signal.c (saved_sigactions): New variable.
52803         (uninstall_handlers): Reset the signal to the saved handler, not
52804         to SIG_DFL (except when ignored).
52805         (install_handlers): Save the previous handlers.
52806
52807 2008-08-30  Bruno Haible  <bruno@clisp.org>
52808
52809         * gnulib-tool (func_reset_sigpipe): New function.
52810         (func_get_automake_snippet, func_modules_transitive_closure,
52811         func_import): Invoke it before a join command that reads from stdin,
52812         to avoid "echo: write error: Broken pipe" error messages on stderr.
52813         Reported by Sam Steingold <sds@gnu.org>.
52814
52815 2008-08-30  Bruno Haible  <bruno@clisp.org>
52816
52817         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
52818         Code copied from m4/open.m4.
52819         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
52820         access and the filename ends in a slash. Code copied from lib/open.c.
52821         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
52822         * tests/test-fopen.c (main): Check against bug with trailing slash.
52823
52824 2008-08-29  Bruno Haible  <bruno@clisp.org>
52825
52826         Avoid some "gcc -pedantic" warnings.
52827         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
52828         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
52829         * lib/dirent.in.h: Likewise.
52830         * lib/fcntl.in.h: Likewise.
52831         * lib/float.in.h: Likewise.
52832         * lib/iconv.in.h: Likewise.
52833         * lib/inttypes.in.h: Likewise.
52834         * lib/locale.in.h: Likewise.
52835         * lib/math.in.h: Likewise.
52836         * lib/netinet_in.in.h: Likewise.
52837         * lib/search.in.h: Likewise.
52838         * lib/signal.in.h: Likewise.
52839         * lib/stdarg.in.h: Likewise.
52840         * lib/stdint.in.h: Likewise.
52841         * lib/stdio.in.h: Likewise.
52842         * lib/stdlib.in.h: Likewise.
52843         * lib/string.in.h: Likewise.
52844         * lib/strings.in.h: Likewise.
52845         * lib/sys_select.in.h: Likewise.
52846         * lib/sys_socket.in.h: Likewise.
52847         * lib/sys_stat.in.h: Likewise.
52848         * lib/sys_time.in.h: Likewise.
52849         * lib/sysexits.in.h: Likewise.
52850         * lib/time.in.h: Likewise.
52851         * lib/unistd.in.h: Likewise.
52852         * lib/wchar.in.h: Likewise.
52853         * lib/wctype.in.h: Likewise.
52854         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
52855         * modules/fchdir (Makefile.am): Likewise.
52856         * modules/fcntl (Makefile.am): Likewise.
52857         * modules/float (Makefile.am): Likewise.
52858         * modules/iconv_open (Makefile.am): Likewise.
52859         * modules/inttypes (Makefile.am): Likewise.
52860         * modules/locale (Makefile.am): Likewise.
52861         * modules/math (Makefile.am): Likewise.
52862         * modules/netinet_in (Makefile.am): Likewise.
52863         * modules/search (Makefile.am): Likewise.
52864         * modules/signal (Makefile.am): Likewise.
52865         * modules/stdarg (Makefile.am): Likewise.
52866         * modules/stdint (Makefile.am): Likewise.
52867         * modules/stdio (Makefile.am): Likewise.
52868         * modules/stdlib (Makefile.am): Likewise.
52869         * modules/string (Makefile.am): Likewise.
52870         * modules/strings (Makefile.am): Likewise.
52871         * modules/sys_select (Makefile.am): Likewise.
52872         * modules/sys_socket (Makefile.am): Likewise.
52873         * modules/sys_stat (Makefile.am): Likewise.
52874         * modules/sys_time (Makefile.am): Likewise.
52875         * modules/sysexits (Makefile.am): Likewise.
52876         * modules/time (Makefile.am): Likewise.
52877         * modules/unistd (Makefile.am): Likewise.
52878         * modules/wchar (Makefile.am): Likewise.
52879         * modules/wctype (Makefile.am): Likewise.
52880         Reported by Reuben Thomas <rrt@sc3d.org>.
52881
52882 2008-08-29  Bruno Haible  <bruno@clisp.org>
52883
52884         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
52885         any more.
52886
52887 2008-08-29  Simon Josefsson  <simon@josefsson.org>
52888
52889         * MODULES.html.sh (Misc): Add bitrotate.
52890
52891         * modules/bitrotate: New file.
52892
52893         * lib/bitrotate.h: New file.
52894
52895         * modules/bitrotate-tests: New file.
52896
52897         * tests/test-bitrotate.c: New file.
52898
52899         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
52900         on the bitrotate module.
52901
52902         * lib/arctwo.c: Use new bitrotate module.
52903
52904 2008-08-29  Jim Meyering  <meyering@redhat.com>
52905
52906         bootstrap: merge changes from coreutils
52907         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
52908         of copied files.  Remove a kludge, now that this is fixed.
52909         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
52910         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
52911         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
52912
52913 2008-08-29  Bruno Haible  <bruno@clisp.org>
52914
52915         * MODULES.html.sh: Remove --cvs-urls option.
52916
52917 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
52918
52919         maint.mk: adjust to file name change
52920         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
52921
52922 2008-08-28  Jim Meyering  <meyering@redhat.com>
52923
52924         * modules/getndelim2 (License): Relicense to LGPLv2+.
52925         Approved by Richard Stallman for the version of 1995, and by
52926         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
52927
52928 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
52929
52930         * lib/getdelim.c (flockfile, funlockfile): Make all of them
52931         dummy if one is not available.  Do not touch them if
52932         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
52933         (getc_maybe_unlocked): New.
52934         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
52935
52936 2008-08-26  Eric Blake  <ebb9@byu.net>
52937
52938         doc/INSTALL: resync from autoconf
52939         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
52940         (INSTALL_PRELUDE): Delete; this is done more efficiently by
52941         moving...
52942         * install.texi [!autoconf]: ...here.  Resync from autoconf.
52943         * INSTALL: Regenerate.
52944         * INSTALL.ISO: New file.
52945         * INSTALL.UTF-8: Likewise.
52946
52947 2008-08-26  Jim Meyering  <meyering@redhat.com>
52948
52949         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
52950         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
52951         these definitions conditional, so that they may be overridden, too.
52952
52953 2008-08-26  Bruno Haible  <bruno@clisp.org>
52954
52955         Generate INSTALL file variants with prettier quotes.
52956         * doc/Makefile (INSTALL_PRELUDE): New macro.
52957         (INSTALL): Use it.
52958         (INSTALL.ISO, INSTALL.UTF-8): New rules.
52959
52960 2008-08-26  Bruno Haible  <bruno@clisp.org>
52961
52962         Run makeinfo in an English locale.
52963         * doc/Makefile (MAKEINFO): New variable.
52964
52965 2008-08-26  Bruno Haible  <bruno@clisp.org>
52966
52967         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
52968         Suggested by Eric Blake.
52969
52970 2008-08-25  Bruno Haible  <bruno@clisp.org>
52971
52972         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
52973
52974 2008-08-25  Eric Blake  <ebb9@byu.net>
52975
52976         c-stack: test that stack overflow can be caught
52977         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
52978         that platform allows handling stack overflow; at least OS/2 EMX
52979         has sigaltstack, but crashes before transferring control to
52980         handler on stack overflow.
52981         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
52982         check for HAVE_STACK_OVERFLOW_HANDLING.
52983         Reported by Elbert Pol.
52984
52985 2008-08-25  Bruno Haible  <bruno@clisp.org>
52986
52987         * doc/posix-functions/strftime.texi: Fix description of strftime
52988         module.
52989
52990 2008-08-24  Bruno Haible  <bruno@clisp.org>
52991
52992         * tests/uniwidth/test-uc_width2.c: New file.
52993         * tests/uniwidth/test-uc_width2.sh: New file.
52994         * modules/uniwidth/width-tests (Files): Add the new files.
52995         (TESTS): Add uniwidth/test-uc_width2.sh.
52996         (TESTS_ENVIRONMENT): New variable.
52997         (check_PROGRAMS): Add test-uc_width2.
52998         (test_uc_width2_SOURCES): New variable.
52999
53000         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
53001         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
53002         not 0x00AB.
53003         Reported by Alexander V. Lukyanov <lav@netis.ru>.
53004
53005 2008-08-22  Eric Blake  <ebb9@byu.net>
53006
53007         test-lock, test-tls: mention why a test is skipped
53008         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
53009         skipped.
53010         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
53011
53012         count-one-bits: relax license
53013         * modules/count-one-bits (License): Relicense to LGPLv2+.
53014         Suggested by Ludovic Courtès, approved by Ben Pfaff.
53015
53016 2008-08-22  Andreas Schwab  <schwab@suse.de>
53017
53018         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
53019         Remove spurious space in assignment.
53020
53021 2008-08-21  Simon Josefsson  <simon@josefsson.org>
53022
53023         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
53024         Paul Eggert <eggert@CS.UCLA.EDU>.
53025
53026 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
53027
53028         * modules/gettext: Add m4/threadlib.m4.
53029
53030 2008-08-19  Eric Blake  <ebb9@byu.net>
53031
53032         test-c-stack: fix compilation failure on FreeBSD 5.0
53033         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
53034         headers before <sys/resource.h>.
53035         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
53036         the bug.
53037         Reported by Nelson H. F. Beebe.
53038
53039         strverscmp: migrate from "strverscmp.h" to <string.h>
53040         * modules/string (Makefile.am): Add new hooks.
53041         * modules/strverscmp (Files): Remove strverscmp.h.
53042         (Depends-on): Add string.
53043         (configure.ac): Add indicator.
53044         (Include): Mention new header.
53045         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
53046         defaults.
53047         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
53048         results.
53049         * lib/strverscmp.h: Delete.
53050         * lib/string.in.h (strverscmp): Provide declaration, when needed.
53051         * tests/test-strverscmp.c (includes): Adjust client.
53052         * lib/check-version.c (includes): Likewise.
53053         * NEWS: Document the change.
53054
53055         strverscmp: add unit test
53056         * modules/strverscmp-tests: New file.
53057         * tests/test-strverscmp.c: Likewise.
53058
53059 2008-08-19  Simon Josefsson  <simon@josefsson.org>
53060
53061         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
53062         regarding Windows crypto stuff, from Mono.
53063
53064 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
53065
53066         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
53067         if present, for intel RND.  Return error on failures.
53068
53069 2008-08-18  Ben Pfaff  <blp@gnu.org>
53070
53071         gitlog-to-changelog: give better diagnostic for failed pipe-open
53072         * build-aux/gitlog-to-changelog: Improve error message: suggest
53073         that the version of Git may be too old.
53074
53075 2008-08-18  Simon Josefsson  <simon@josefsson.org>
53076
53077         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
53078         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
53079
53080 2008-08-18  Bruno Haible  <bruno@clisp.org>
53081
53082         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
53083         pthread_in_use().
53084
53085 2008-08-18  Bruno Haible  <bruno@clisp.org>
53086
53087         * lib/glthread/threadlib.c: Include <pthread.h>.
53088
53089 2008-08-18  Bruno Haible  <bruno@clisp.org>
53090
53091         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
53092         glthread_recursive_lock_* macros.
53093         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
53094         Fix syntax error.
53095
53096 2008-08-18  Bruno Haible  <bruno@clisp.org>
53097
53098         * lib/glthread/thread.c: Avoid forcing a context switch right after
53099         thread creation.
53100
53101 2008-08-17  Bruno Haible  <bruno@clisp.org>
53102
53103         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
53104         * lib/glthread/thread.h: Provide Win32 specific implementation.
53105         * modules/thread (Files): Add lib/glthread/thread.c.
53106         (Depends-on): Add lock.
53107         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
53108
53109 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53110
53111         New module 'yield'.
53112         * modules/yield: New file.
53113         * lib/glthread/yield.h: New file.
53114         * m4/yield.m4: New file.
53115         * MODULES.html.sh (Multithreading): Add yield.
53116
53117 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53118
53119         New module 'thread'.
53120         * modules/thread: New file.
53121         * lib/glthread/thread.h: New file.
53122         * m4/thread.m4: New file.
53123         * MODULES.html.sh (Multithreading): Add thread.
53124
53125 2008-08-17  Bruno Haible  <bruno@clisp.org>
53126
53127         * lib/glthread/lock.h: Include <stdlib.h> always.
53128         * lib/glthread/tls.h: Likewise.
53129         * lib/glthread/cond.h: Likewise.
53130
53131 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53132
53133         New module 'cond'.
53134         * modules/cond: New file.
53135         * lib/glthread/cond.h: New file.
53136         * lib/glthread/cond.c: New file.
53137         * m4/cond.m4: New file.
53138         * MODULES.html.sh (Multithreading): Add cond.
53139
53140 2008-08-16  Eric Blake  <ebb9@byu.net>
53141
53142         c-stack: fix regression on Irix 5.3 from 2008-06-21
53143         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
53144         sa_sigaction...
53145         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
53146         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
53147         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
53148         * modules/signal (Makefile.am): Use the value.
53149         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
53150         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
53151         * doc/posix-headers/signal.texi (signal.h): Document this
53152         portability issue.
53153         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
53154         Reported by Tom G. Christensen.
53155
53156 2008-08-17  Bruno Haible  <bruno@clisp.org>
53157
53158         New module 'threadlib'.
53159         * modules/threadlib: New file.
53160         * lib/glthread/threadlib.c: New file, extracted from
53161         lib/glthread/lock.c.
53162         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
53163         functions.
53164         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
53165         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
53166         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
53167         macros.
53168         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
53169         (gl_DISABLE_THREADS): Remove macro.
53170         * modules/lock (Files): Remove build-aux/config.rpath.
53171         (Depends-on): Remove havelib. Add threadlib.
53172         (configure.ac-early): Remove section.
53173         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
53174         * modules/tls (Depends-on): Remove lock. Add threadlib.
53175         (Link): New section, copied from threadlib.
53176         * MODULES.html.sh (Multithreading): Add threadlib.
53177
53178 2008-08-14  Bruno Haible  <bruno@clisp.org>
53179
53180         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
53181         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
53182         glthread_rwlock_unlock, glthread_rwlock_destroy,
53183         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
53184         glthread_recursive_lock_destroy): Define as macros always.
53185         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
53186         glthread_lock_lock.
53187         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
53188         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
53189         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
53190         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
53191         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
53192         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
53193         (glthread_recursive_lock_lock_func): Renamed from
53194         glthread_recursive_lock_lock.
53195         (glthread_recursive_lock_unlock_func): Renamed from
53196         glthread_recursive_lock_unlock.
53197         (glthread_recursive_lock_destroy_func): Renamed from
53198         glthread_recursive_lock_destroy.
53199
53200 2008-08-14  Bruno Haible  <bruno@clisp.org>
53201
53202         * lib/glthread/lock.h: Renamed from lib/lock.h.
53203         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
53204         * lib/glthread/tls.h: Renamed from lib/tls.h.
53205         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
53206         * lib/fstrcmp.c: Update includes.
53207         * lib/strsignal.c: Update includes.
53208         * modules/lock (Files, Makefile.am): Update.
53209         (Include): Change to "glthread/lock.h".
53210         * modules/tls (Files, Makefile.am): Update.
53211         (Include): Change to "glthread/tls.h".
53212         * tests/test-lock.c: Update includes.
53213         * tests/test-tls.c: Update includes.
53214         * NEWS: Mention the renamed header files.
53215
53216 2008-08-11  Jim Meyering  <meyering@redhat.com>
53217
53218         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
53219
53220 2008-08-11  Eric Blake  <ebb9@byu.net>
53221
53222         test-c-stack: avoid C99-ism
53223         * tests/test-c-stack.c (main): Fix whitespace, move declaration
53224         before statement.
53225         Reported by Alain Guibert.
53226
53227 2008-08-10  Jim Meyering  <meyering@redhat.com>
53228
53229         ensure that return value of uinttostr et al are not ignored
53230         * lib/inttostr.h (__GNUC_PREREQ): Define.
53231         (__attribute_warn_unused_result__): Define.
53232         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
53233
53234 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
53235
53236         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
53237         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
53238
53239 2008-08-07  Jim Meyering  <meyering@redhat.com>
53240
53241         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
53242
53243         * modules/mkstemp (License): Relicense under LGPLv2+.
53244         * modules/tempname (License): Likewise.
53245
53246 2008-08-06  Bruno Haible  <bruno@clisp.org>
53247
53248         * lib/poll.c (poll): Further micro-optimization.
53249
53250 2008-08-06  Jim Meyering  <meyering@redhat.com>
53251
53252         inet_pton.c: use locale-independent tolower
53253         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
53254         (inet_pton6): Use c_tolower rather than tolower.
53255         * modules/inet_pton (Depends-on): Add c-ctype.
53256
53257 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
53258
53259         * lib/poll.c (poll): Avoid division when timeout is 0, cache
53260         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
53261
53262 2008-08-06  Jim Meyering  <meyering@redhat.com>
53263
53264         * modules/inet_pton (License): Relicense under LGPLv2+.
53265
53266 2008-08-03  Bruno Haible  <bruno@clisp.org>
53267
53268         Additional non-aborting API for lock and tls.
53269         * lib/lock.h: Include <errno.h>.
53270         (glthread_lock_init): New macro/function.
53271         (gl_lock_init): Define as wrapper around glthread_lock_init.
53272         (glthread_lock_lock): New macro/function.
53273         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
53274         (glthread_lock_unlock): New macro/function.
53275         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
53276         (glthread_lock_destroy): New macro/function.
53277         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
53278         (glthread_rwlock_init): New macro/function.
53279         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
53280         (glthread_rwlock_rdlock): New macro/function.
53281         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
53282         (glthread_rwlock_wrlock): New macro/function.
53283         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
53284         (glthread_rwlock_unlock): New macro/function.
53285         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
53286         (glthread_rwlock_destroy): New macro/function.
53287         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
53288         (glthread_recursive_lock_init): New macro/function.
53289         (gl_recursive_lock_init): Define as wrapper around
53290         glthread_recursive_lock_init.
53291         (glthread_recursive_lock_lock): New macro/function.
53292         (gl_recursive_lock_lock): Define as wrapper around
53293         glthread_recursive_lock_lock.
53294         (glthread_recursive_lock_unlock): New macro/function.
53295         (gl_recursive_lock_unlock): Define as wrapper around
53296         glthread_recursive_lock_unlock.
53297         (glthread_recursive_lock_destroy): New macro/function.
53298         (gl_recursive_lock_destroy): Define as wrapper around
53299         glthread_recursive_lock_destroy.
53300         (glthread_once): New macro/function.
53301         (gl_once): Define as wrapper around glthread_once.
53302         Update function declarations.
53303         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
53304         glthread_rwlock_init. Return error code.
53305         (glthread_rwlock_rdlock_multithreaded): Renamed from
53306         glthread_rwlock_rdlock. Return error code.
53307         (glthread_rwlock_wrlock_multithreaded): Renamed from
53308         glthread_rwlock_wrlock. Return error code.
53309         (glthread_rwlock_unlock_multithreaded): Renamed from
53310         glthread_rwlock_unlock. Return error code.
53311         (glthread_rwlock_destroy_multithreaded): Renamed from
53312         glthread_rwlock_destroy. Return error code.
53313         (glthread_recursive_lock_init_multithreaded): Renamed from
53314         glthread_recursive_lock_init. Return error code.
53315         (glthread_recursive_lock_lock_multithreaded): Renamed from
53316         glthread_recursive_lock_lock. Return error code.
53317         (glthread_recursive_lock_unlock_multithreaded): Renamed from
53318         glthread_recursive_lock_unlock. Return error code.
53319         (glthread_recursive_lock_destroy_multithreaded): Renamed from
53320         glthread_recursive_lock_destroy. Return error code.
53321         (glthread_once_call): Make static.
53322         (glthread_once_multithreaded): Renamed from glthread_once.
53323         * lib/tls.h: Include <errno.h>.
53324         (glthread_tls_key_init): New macro/function.
53325         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
53326         (glthread_tls_set): New macro/function.
53327         (gl_tls_set): Define as wrapper around glthread_tls_set.
53328         (glthread_tls_key_destroy): New macro/function.
53329         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
53330         Update function declarations.
53331         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
53332         glthread_tls_get.
53333         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
53334
53335 2008-08-04  Eric Blake  <ebb9@byu.net>
53336
53337         gnumakefile: use space, not TAB, outside of targets
53338         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
53339
53340 2008-08-02  Jim Meyering  <meyering@redhat.com>
53341
53342         getdate.y: avoid locale-dependent date parsing failure
53343         In Turkish locales, getdate would fail to recognize keywords
53344         containing a lowercase "i".  The solution is not to rely on
53345         locale-sensitive case-conversion.
53346         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
53347         (lookup_word): Use c_toupper in place of toupper.
53348         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
53349         Reported by Vefa Bicakci <bicave@superonline.com> in
53350         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
53351         * modules/getdate (Depends-on): Add c-ctype.
53352
53353 2008-08-02  Bruno Haible  <bruno@clisp.org>
53354
53355         * gnulib-tool (func_import): When updating or creating a .gitignore
53356         file, prepend each added line with a slash, and ignore leading slashes
53357         from the existing lines.
53358         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
53359
53360 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53361
53362         Portability fix for GNU make 3.79.1.
53363         * top/GNUmakefile: Avoid 'else COND', which older GNU make
53364         versions do not understand.
53365
53366 2008-08-01  Bruno Haible  <bruno@clisp.org>
53367
53368         Work around bug of HP-UX 10.20 cc with -0.0 literal.
53369         * tests/test-isnanf.h (zero): New variable.
53370         (main): Avoid literal -0.0f.
53371         * tests/test-isnand.h (zero): New variable.
53372         (main): Avoid literal -0.0.
53373         * tests/test-isnanl.h (zero): New variable.
53374         (main): Avoid literal -0.0L.
53375         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
53376         (test_float, test_double, test_long_double): Avoid literals -0.0f,
53377         -0.0, -0.0L.
53378         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
53379         (test_signbitd): Avoid literal -0.0.
53380         (test_signbitl): Avoid literal -0.0L.
53381         * tests/test-ceilf1.c (zero): New variable.
53382         (main): Avoid literal -0.0f.
53383         * tests/test-ceill.c (zero): New variable.
53384         (main): Avoid literal -0.0L.
53385         * tests/test-floorf1.c (zero): New variable.
53386         (main): Avoid literal -0.0f.
53387         * tests/test-floorl.c (zero): New variable.
53388         (main): Avoid literal -0.0L.
53389         * tests/test-roundf1.c (zero): New variable.
53390         (main): Avoid literal -0.0f.
53391         * tests/test-round1.c (zero): New variable.
53392         (main): Avoid literal -0.0.
53393         * tests/test-roundl.c (zero): New variable.
53394         (main): Avoid literal -0.0L.
53395         * tests/test-truncf1.c (zero): New variable.
53396         (main): Avoid literal -0.0f.
53397         * tests/test-trunc1.c (zero): New variable.
53398         (main): Avoid literal -0.0.
53399         * tests/test-truncl.c (zero): New variable.
53400         (main): Avoid literal -0.0L.
53401         * tests/test-frexp.c (zero): New variable.
53402         (main): Avoid literal -0.0.
53403         * tests/test-frexpl.c (zero): New variable.
53404         (main): Avoid literal -0.0L.
53405         * tests/test-ldexpl.c (zero): New variable.
53406         (main): Avoid literal -0.0L.
53407         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
53408         (zerod, zerol): New variables.
53409         (test_function): Avoid literals -0.0, -0.0L.
53410         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
53411         (zerod, zerol): New variables.
53412         (test_function): Avoid literals -0.0, -0.0L.
53413         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
53414         (zerod, zerol): New variables.
53415         (test_function): Avoid literals -0.0, -0.0L.
53416         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
53417         (zerod, zerol): New variables.
53418         (test_function): Avoid literals -0.0, -0.0L.
53419         * tests/test-strtod.c (zero): New variable.
53420         (main): Avoid literal -0.0.
53421         Reported by Jonathan C. Patschke <jp@centtech.com>.
53422
53423 2008-07-31  Jim Meyering  <meyering@redhat.com>
53424
53425         sha256.h: correct definition of SHA224_DIGEST_SIZE
53426         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
53427         Reported by Paulie Pena IV <paulie4@gmail.com>.
53428         Define as 224 / 8, rather than as a literal.
53429         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
53430         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
53431         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
53432
53433 2008-07-31  Bruno Haible  <bruno@clisp.org>
53434
53435         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
53436         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
53437         Reported by Jonathan Patschke <jp@centtech.com>.
53438
53439 2008-07-31  Bruno Haible  <bruno@clisp.org>
53440
53441         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
53442         Reported by Paolo Bonzini <bonzini@gnu.org>.
53443
53444 2008-07-30  Eric Blake  <ebb9@byu.net>
53445
53446         test-strtod: allow compilation without -lm
53447         * tests/test-strtod.c (main): Avoid link dependence on fabs.
53448         Reported by Dennis Clarke <blastwave@gmail.com>.
53449
53450 2008-07-28  Jim Meyering  <meyering@redhat.com>
53451
53452         bootstrap: work also when there are no .po files in po/
53453         * build-aux/bootstrap (update_po_files): Complete the change
53454         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
53455
53456 2008-07-27  Jim Meyering  <meyering@redhat.com>
53457
53458         * users.txt: Add zile.
53459
53460 2008-07-26  Ben Pfaff  <blp@gnu.org>
53461
53462         Add missing dependencies on new m4/exponent[fdl].m4 files.
53463         * modules/isnanf-nolibm: Add m4/exponentf.m4.
53464         * modules/isnand-nolibm: Add m4/exponentd.m4.
53465         * modules/isnanl-nolibm: Add m4/exponentl.m4.
53466         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
53467         m4/isnan[fdl].m4, because the macros actually used moved.
53468         Reported by Jim Meyering.
53469
53470 2008-07-14  Ben Pfaff  <blp@gnu.org>
53471
53472         Add isinf module.
53473         * lib/isinf.c: New file.
53474         * lib/math.in.h: Define isinf macro if we have decided to replace
53475         it.
53476         * m4/isinf.m4: New file.
53477         * m4/math_h.m4: Initialize and substitute variables for isinf
53478         module.
53479         * modules/isinf: New file.
53480         * modules/isinf-tests: New file.
53481         * modules/math: Add substitutions for new module.
53482         * tests/test-isinf.c: New file.
53483         * doc/posix-functions/isinf.texi: Mention new module.
53484         * MODULES.html.sh: Mention new module.
53485
53486 2008-07-14  Ben Pfaff  <blp@gnu.org>
53487
53488         Factor out some macros for use by additional modules.
53489         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
53490         exponentf.m4.
53491         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
53492         exponentd.m4.
53493         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
53494         file exponentl.m4.
53495         * m4/exponentf.m4: New file.
53496         * m4/exponentd.m4: New file.
53497         * m4/exponentl.m4: New file.
53498         * modules/isnanf: Use new file m4/exponentf.m4.
53499         * modules/isnand: Use new file m4/exponentd.m4.
53500         * modules/isnanl: Use new file m4/exponentl.m4.
53501
53502 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
53503
53504         mktime.c: normalize tp->tm_isdst value to -1/0/1.
53505         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
53506         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
53507         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
53508
53509         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
53510         readlink on platforms without PATH_MAX.
53511
53512 2008-07-21  Eric Blake  <ebb9@byu.net>
53513
53514         Warn, not fail, on stale version.
53515         * top/GNUmakefile (_curr-ver): Tone down previous patch.
53516
53517         Don't allow installation with stale devel version number.
53518         * top/GNUmakefile (_is-install-target): New macro.
53519         (_curr-ver): Forbid installation with stale version number.
53520
53521 2008-07-20  Bruno Haible  <bruno@clisp.org>
53522
53523         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
53524         TESTS_ENVIRONMENT.
53525         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
53526
53527 2008-07-20  Bruno Haible  <bruno@clisp.org>
53528
53529         * lib/c-stack.h (c_stack_action): Add documentation.
53530         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
53531
53532 2008-07-20  Bruno Haible  <bruno@clisp.org>
53533
53534         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
53535         * modules/readlink (License): Likewise.
53536
53537 2008-07-17  Eric Blake  <ebb9@byu.net>
53538
53539         * modules/c-stack (Link): Fix typo.
53540
53541         Make c-stack use libsigsegv, when available.
53542         * modules/c-stack (Depends-on): Add libsigsegv.
53543         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
53544         needed.
53545         * lib/c-stack.c (SIGSTKSZ): Define fallback.
53546         (segv_handler, overflow_handler, c_stack_action)
53547         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
53548         implementation when libsigsegv is available, but only when using
53549         the library is necessary.
53550         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
53551         comment, explaining why XSI check fails on Linux.
53552         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
53553         * tests/test-c-stack2.sh: Tweak skip message.
53554         * NEWS: Document new link-time requirements.
53555
53556 2008-07-16  Eric Blake  <ebb9@byu.net>
53557
53558         c-stack: Expose false positives when not using libsigsegv.
53559         * modules/c-stack-tests (Files): Expand test.
53560         * tests/test-c-stack.c (main): Add means to conditionally trigger
53561         non-overflow SIGSEGV.
53562         * tests/test-c-stack2.sh: New file.
53563
53564 2008-07-14  Bruno Haible  <bruno@clisp.org>
53565
53566         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
53567         Reported by Eric Blake.
53568
53569 2008-07-14  Sam Steingold  <sds@gnu.org>
53570             Bruno Haible  <bruno@clisp.org>
53571
53572         New module libsigsegv.
53573         * modules/libsigsegv: New file.
53574         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
53575         modifications.
53576         * MODULES.html.sh (Signal handling): New section.
53577
53578 2008-07-14  Bruno Haible  <bruno@clisp.org>
53579
53580         * modules/unictype/ctype-* (Description): Add the word "function".
53581         Improves the resulting doc in MODULES.html.
53582
53583 2008-07-12  Ben Pfaff  <blp@gnu.org>
53584
53585         Add longlong module.
53586         * modules/longlong: New file.
53587
53588 2008-07-12  Bruno Haible  <bruno@clisp.org>
53589
53590         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
53591         to empty.
53592
53593 2008-07-10  Ben Pfaff  <blp@gnu.org>
53594
53595         Add isnan module.
53596         * doc/posix-functions/isnan.texi: Mention new module.
53597         * lib/math.in.h: Define isnan macro if we have decided to replace
53598         it.
53599         * m4/isnan.m4: New file.
53600         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
53601         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
53602         also.
53603         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
53604         redundancy.
53605         * m4/math_h.m4: Initialize and substitute variables for isnan
53606         module.
53607         * modules/isnan: New file.
53608         * modules/isnan-tests: New file.
53609         * modules/math: Add substitutions for new module.
53610         * tests/test-isnan.c: New file.
53611         * MODULES.html.sh: Mention new module.
53612
53613 2008-07-10  Ben Pfaff  <blp@gnu.org>
53614
53615         Add isnanf module.
53616         * lib/isnanf.m4: New file.
53617         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
53618         (gl_HAVE_ISNANF_IN_LIBM): New macro.
53619         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
53620         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
53621         * modules/isnanf: New file.
53622         * modules/isnanf-tests: New file.
53623         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
53624         files.
53625         * tests/test-isnanf-nolibm.c: factored most of its contents into
53626         new file tests/test-isnanf.h.
53627         * tests/test-isnanf.h: New file.
53628         * tests/test-isnanf.c: New file.
53629         * MODULES.html.sh: Mention new module.
53630         * doc/glibc-functions/isnanf.texi: Mention new module.
53631
53632 2008-07-10  Ben Pfaff  <blp@gnu.org>
53633
53634         Add isnand module.
53635         * lib/isnand.h: New file.
53636         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
53637         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
53638         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
53639         functionality also.
53640         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
53641         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
53642         (gl_HAVE_ISNAND_IN_LIBM): New macro.
53643         * modules/isnand: New file.
53644         * modules/isnand-tests: New file.
53645         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
53646         files.
53647         * tests/test-isnand-nolibm.c: factored most of its contents into
53648         new file tests/test-isnand.h.
53649         * tests/test-isnand.h: New file.
53650         * tests/test-isnand.c: New file.
53651         * MODULES.html.sh: Mention new module.
53652
53653 2008-07-10  Ben Pfaff  <blp@gnu.org>
53654
53655         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
53656         * lib/isnand.h: Rename lib/isnand-nolibm.h.
53657         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
53658         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
53659         * modules/isnanf-nolibm: Update references to renamed files.
53660         * modules/isnand-nolibm: Likewise.
53661         * modules/isnanf-nolibm-tests: Likewise.
53662         * modules/isnand-nolibm-tests: Likewise.
53663         * lib/frexp.c: Likewise.
53664         * lib/isfinite.c: Likewise.
53665         * lib/signbitd.c: Likewise.
53666         * lib/signbitf.c: Likewise.
53667         * lib/vasnprintf.c: Likewise.
53668         * tests/test-ceilf1.c: Likewise.
53669         * tests/test-ceilf2.c: Likewise.
53670         * tests/test-floorf1.c: Likewise.
53671         * tests/test-floorf2.c: Likewise.
53672         * tests/test-frexp.c: Likewise.
53673         * tests/test-round1.c: Likewise.
53674         * tests/test-round2.c: Likewise.
53675         * tests/test-roundf1.c: Likewise.
53676         * tests/test-strtod.c: Likewise.
53677         * tests/test-trunc1.c: Likewise.
53678         * tests/test-trunc2.c: Likewise.
53679         * tests/test-truncf1.c: Likewise.
53680         * tests/test-truncf2.c: Likewise.
53681         * NEWS: Mention the renamed header files.
53682
53683 2008-07-11  Jim Meyering  <meyering@redhat.com>
53684
53685         vc-list-files: make the last-resort awk code more portable
53686         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
53687         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
53688         does not support it.
53689
53690 2008-07-10  Eric Blake  <ebb9@byu.net>
53691
53692         Work with tar's bootstrap.
53693         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
53694         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
53695         an m4 comment.
53696
53697 2008-07-09  Jim Meyering  <meyering@redhat.com>
53698
53699         posix-shell.m4: fix typo that made this test malfunction
53700         * m4/posix-shell.m4: Remove capitalization in variable name.
53701
53702 2008-07-08  Bruno Haible  <bruno@clisp.org>
53703
53704         * m4/onceonly.m4: Update comments.
53705         Reported by Ben Pfaff <blp@cs.stanford.edu>.
53706
53707 2008-07-04  Jim Meyering  <meyering@redhat.com>
53708
53709         * users.txt: Add vc-dwim.
53710         (bison, coreutils): Use the gitweb URL.
53711
53712 2008-07-03  Jim Meyering  <meyering@redhat.com>
53713
53714         * users.txt: Add libffcall.  From Sam Steingold.
53715
53716 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
53717
53718         getdate.y: do not ignore TZ with relative day, month or year offset
53719         * lib/getdate.y (get_date): Move the tz-handling block to follow the
53720         relative-date-handling, since otherwise, the latter would clobber the
53721         sole output (an updated Start value) of the tz-handling block.
53722         * tests/test-getdate.c: Tests for the fix
53723
53724 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53725
53726         Recognize 'foo_LIBRARIES += libgnu.a'.
53727         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
53728         makefile snippet has already specified an installation location,
53729         also using '+='.
53730
53731 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
53732
53733         getdate.y: factor out common actions
53734         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
53735         Use them in place of open-coded actions.
53736
53737 2008-07-01  Simon Josefsson  <simon@josefsson.org>
53738
53739         Add self-test for getdate module.
53740         * modules/getdate-tests: New file.
53741         * tests/test-getdate.c: New file.
53742
53743 2008-06-29  Bruno Haible  <bruno@clisp.org>
53744
53745         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
53746         .gitignore.
53747         Reported by Sylvain Beucler <beuc@beuc.net>.
53748
53749 2008-06-29  Bruno Haible  <bruno@clisp.org>
53750
53751         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
53752         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
53753
53754 2008-06-29  Bruno Haible  <bruno@clisp.org>
53755
53756         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
53757         EXTRA_DIST.
53758         Reported by Sylvain Beucler <beuc@beuc.net>.
53759
53760 2008-06-26  Jim Meyering  <meyering@redhat.com>
53761
53762         make several modules depend on the "open" module
53763         This provides slightly increased consistency when opening-for-write
53764         the name of a non-directory spelled with a trailing slash.
53765         * modules/chdir-safer: Likewise.
53766         * modules/chown: Likewise.
53767         * modules/clean-temp: Likewise.
53768         * modules/copy-file: Likewise.
53769         * modules/fchdir: Likewise.
53770         * modules/fcntl-safer: Likewise.
53771         * modules/pipe: Likewise.
53772         * modules/utime: Likewise.
53773         Prompted by Eric Blake and Bruno Haible.
53774
53775 2008-06-24  Andreas Schwab  <schwab@suse.de>
53776
53777         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
53778         literals can be used as initializers for global variables.
53779
53780 2008-06-23  Eric Blake  <ebb9@byu.net>
53781
53782         Make gnulib-cache.m4 easier to diff.
53783         * gnulib-tool (func_import): Allow newlines when reading cached
53784         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
53785
53786 2008-06-23  Bruno Haible  <bruno@clisp.org>
53787
53788         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
53789         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
53790         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
53791         m4/signalblocking.m4.
53792         (gl_PREREQ_SIGACTION): Don't invoke it.
53793         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
53794         gl_PREREQ_SIG_HANDLER_H.
53795         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
53796         Don't check for sigaction here.
53797
53798 2008-06-23  Bruno Haible  <bruno@clisp.org>
53799
53800         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
53801         (install_handlers): Don't set the SA_RESETHAND flag.
53802
53803 2008-06-23  Bruno Haible  <bruno@clisp.org>
53804
53805         * m4/sigaction.m4: Comment fixes.
53806         * lib/signal.in.h: Likewise.
53807
53808 2008-06-23  Eric Blake  <ebb9@byu.net>
53809
53810         Fix typo.
53811         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
53812
53813         Avoid SA_ namespace.
53814         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
53815         Reported by Ralf Wildenhues.
53816
53817         Avoid test failure due to SA_RESTORER.
53818         * tests/test-sigaction.c (SA_MASK): New macro.
53819         (main): Avoid failing due to extension flags being set.
53820         Reported by Jim Meyering.
53821
53822         Revert use of sig-handler.h in sigprocmask.c.
53823         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
53824         it requires the existence of struct sigaction.
53825         * lib/sigprocmask.c (handler_t): Restore typedef.
53826         (rpl_signal, old_handlers): Use local type.
53827
53828 2008-06-22  Bruno Haible  <bruno@clisp.org>
53829
53830         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
53831         conditionally.
53832         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53833
53834 2008-06-22  Bruno Haible  <bruno@clisp.org>
53835
53836         * doc/posix-functions/siginterrupt.texi: Move note.
53837
53838         * lib/signal.in.h (SA_RESTART): New macro.
53839         * lib/sigaction.c: Update comment.
53840
53841         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
53842
53843         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
53844         (gl_PREREQ_SIGPROCMASK): Invoke it.
53845         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
53846
53847         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
53848
53849         * lib/sigprocmask.c: Update a comment.
53850
53851 2008-06-21  Eric Blake  <ebb9@byu.net>
53852
53853         Use sigaction module rather than signal().
53854         * modules/c-stack (Depends-on): Add sigaction.
53855         * modules/fatal-signal (Depends-on): Likewise.
53856         * modules/nanosleep (Depends-on): Likewise.
53857         * modules/sigprocmask (Files): Add sig-handler.h.
53858         * modules/sigaction (Files): Likewise.
53859         * lib/sig-handler.h (get_handler): New file, suggested by Paul
53860         Eggert.
53861         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
53862         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
53863         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
53864         (init_fatal_signals): Likewise.
53865         * lib/nanosleep.c (rpl_nanosleep): Likewise.
53866         (siginterrupt): Delete fallback.
53867         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
53868         instead.
53869         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
53870         siginterrupt.
53871
53872         New module sigaction, for mingw.
53873         * modules/sigaction: New module...
53874         * modules/sigaction-tests: ...and its test.
53875         * m4/sigaction.m4: New file.
53876         * lib/sigaction.c: Likewise.
53877         * tests/test-sigaction.c: Likewise.
53878         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
53879         * modules/signal (Makefile.am): Likewise.
53880         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
53881         needed.
53882         * doc/posix-headers/signal.texi (signal.h): Mention provided
53883         types.
53884         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
53885         that sigaction is preferable.
53886         * doc/posix-functions/sigaction.texi (sigaction): Mention new
53887         module.
53888         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53889         sigaction.
53890
53891         Improve robustness of sigprocmask by overriding signal.
53892         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
53893         is in use.
53894         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
53895         (SIGKILL, SIGSTOP): Provide fallbacks.
53896         (rpl_signal): Implement.
53897         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
53898         signal can be called inside handlers.
53899
53900         Fix nanosleep module on mingw.
53901         * modules/nanosleep (Depends-on): Add sys_select.
53902         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
53903
53904         Fix licensing of sigprocmask.
53905         * modules/raise (License): Relicense as LGPL.
53906
53907 2008-06-21  Bruno Haible  <bruno@clisp.org>
53908
53909         * lib/propername.c (proper_name_utf8): Don't use the transliterated
53910         result if it contains question marks.
53911         Reported by Michael Geng <linux@michaelgeng.de>.
53912
53913 2008-06-19  Bruno Haible  <bruno@clisp.org>
53914
53915         Fix CVS-ism.
53916         * doc/gnulib.texi: Include updated-stamp.texi.
53917         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
53918         (updated-stamp.texi): New rule.
53919         (gnulib.info): Depend on it.
53920         * doc/.gitignore: Add updated-stamp.texi.
53921         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
53922
53923 2008-06-19  Bruno Haible  <bruno@clisp.org>
53924
53925         * doc/Makefile (gnulib.info): Update and simplify dependencies.
53926         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
53927
53928 2008-06-19  Eric Blake  <ebb9@byu.net>
53929
53930         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
53931         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
53932         Reported by Stepan Kasal.
53933
53934 2008-06-18  Bruno Haible  <bruno@clisp.org>
53935
53936         * lib/fatal-signal.c (init_fatal_signals): Add comment.
53937         Reported by Eric Blake.
53938
53939 2008-06-18  Eric Blake  <ebb9@byu.net>
53940
53941         Work around cygwin 1.5.25 strsignal bug.
53942         * tests/test-strsignal.c: Allow for const char *.
53943         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
53944
53945 2008-06-18  Simon Josefsson  <simon@josefsson.org>
53946
53947         * users.txt: Update URL to article and add author/date
53948         information.
53949
53950 2008-06-17  Bruno Haible  <bruno@clisp.org>
53951
53952         New macro gl_DISABLE_THREADS.
53953         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
53954         if the user did not pass --enable-threads or --disable-threads option.
53955         (gl_DISABLE_THREADS): New macro.
53956         Reported by Eric Blake <ebb9@byu.net>.
53957
53958 2008-06-17  Bruno Haible  <bruno@clisp.org>
53959
53960         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
53961         when the macro ignores it.
53962         Based on a patch by Eric Blake <ebb9@byu.net>.
53963
53964 2008-06-17  Bruno Haible  <bruno@clisp.org>
53965
53966         * modules/tls (License): Change to LGPLv2+.
53967         Reported by Eric Blake.
53968
53969 2008-06-17  Eric Blake  <ebb9@byu.net>
53970
53971         Simplify c-stack prerequisites.
53972         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
53973         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
53974         no longer requires <ucontext.h> to exist.  Optimize setrlimit
53975         check.
53976         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
53977         <sys/resource.h>.
53978
53979         Move c-stack test into testsuite.
53980         * modules/c-stack-tests: New file.
53981         * lib/c-stack.c [DEBUG]: Move test program...
53982         * tests/test-c-stack.c: ...into this new file.  Skip rather than
53983         fail test if sigaltstack is lacking.
53984         * tests/test-c-stack.sh: New driver file.
53985
53986 2008-06-16  Eric Blake  <ebb9@byu.net>
53987
53988         Use raise module consistently.
53989         * modules/fatal-signal (Depends-on): Add raise.
53990         * modules/sigprocmask (Depends-on): Likewise.
53991         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
53992         * lib/sigprocmask.c (sigprocmask): Likewise.
53993         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
53994         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
53995
53996         Fix compliance bug in sigpending.
53997         * lib/sigprocmask.c (sigpending): Return pending array via
53998         parameter, not return value.
53999
54000 2008-06-14  Eric Blake  <ebb9@byu.net>
54001
54002         Improve obstack-printf test code.
54003         * tests/test-obstack-printf.c (test_function): Fix comment, and
54004         simplify usage of obstack_* in macros.  Add a test for coverage.
54005         Reported by Bruno Haible.
54006
54007 2008-06-14  Bruno Haible  <bruno@clisp.org>
54008
54009         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
54010         array size as a constant, not as a const variable.
54011         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
54012         AC_USE_SYSTEM_EXTENSIONS.
54013         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
54014         Test whether the obstack_printf function actually exists.
54015         * modules/obstack-printf (Depends-on): Add extensions.
54016         (Include): Remove obstack.h.
54017         * modules/obstack-printf-posix (Depends-on): Add extensions.
54018         (Include): Remove obstack.h.
54019
54020 2008-06-13  Eric Blake  <ebb9@byu.net>
54021
54022         Add obstack-printf and obstack-printf-posix modules.
54023         * modules/obstack-printf: New file.
54024         * modules/obstack-printf-posix: Likewise.
54025         * MODULES.html.sh (Misc): Mention them.
54026         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
54027         Likewise.
54028         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
54029         Likewise.
54030         * modules/stdio (Makefile.am): Accomodate new modules.
54031         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
54032         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
54033         Declare.
54034         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
54035         functions.
54036         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
54037         (gl_REPLACE_OBSTACK_PRINTF): New macros
54038         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
54039         * tests/test-obstack-printf.c: New file.
54040         * modules/obstack-printf-tests: Likewise.
54041         * modules/obstack-printf-posix-tests: Likewise.
54042
54043 2008-06-11  Bruno Haible  <bruno@clisp.org>
54044
54045         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
54046         * lib/open.c: Include errno.h.
54047         (open): Fail when attempting to write to a file that has a trailing
54048         slash.
54049         * tests/test-open.c (main): Test against trailing slash bug.
54050         * doc/posix-functions/open.texi: Mention the trailing slash bug.
54051
54052 2008-06-10  Bruno Haible  <bruno@clisp.org>
54053
54054         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
54055         for $? to work inside the trap command, with various /bin/sh-s.
54056         * tests/test-vc-list-files-cvs.sh: Likewise.
54057
54058 2008-06-10  Bruno Haible  <bruno@clisp.org>
54059
54060         * lib/acl-internal.h: Don't include gettext.h here.
54061         * lib/set-mode-acl.c: Include gettext.h here.
54062         * lib/copy-acl.c: Likewise.
54063
54064 2008-06-10  Bruno Haible  <bruno@clisp.org>
54065
54066         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
54067         * lib/wait-process.c (wait_subprocess): Likewise.
54068         * lib/execute.h (execute): Add termsigp argument.
54069         * lib/execute.c (execute): Likewise.
54070         * lib/csharpcomp.c (compile_csharp_using_pnet,
54071         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
54072         * lib/csharpexec.c (execute_csharp_using_pnet,
54073         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
54074         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
54075         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
54076         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
54077         is_jikes_present): Update.
54078         * lib/javaexec.c (execute_java_class): Update.
54079         * lib/javaversion.c (execute_and_read_line): Update.
54080         * NEWS: Document the changes.
54081         Reported by Eric Blake.
54082
54083 2008-06-10  Eric Blake  <ebb9@byu.net>
54084
54085         Add missing include.
54086         * tests/test-strstr.c (includes): Add <signal.h>.
54087         * tests/test-strcasestr.c (includes): Likewise.
54088         * tests/test-memmem.c (includes): Likewise.
54089
54090 2008-06-10  Bruno Haible  <bruno@clisp.org>
54091
54092         * lib/wait-process.c (wait_subprocess): Add an assertion.
54093
54094 2008-06-10  Bruno Haible  <bruno@clisp.org>
54095
54096         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
54097
54098 2008-06-10  Bruno Haible  <bruno@clisp.org>
54099
54100         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
54101         using alarm().
54102         * tests/test-strcasestr.c (main): Likewise.
54103         * tests/test-strstr.c (main): Likewise.
54104
54105 2008-06-09  Bruno Haible  <bruno@clisp.org>
54106
54107         Work around the Solaris 10 ACE ACLs ABI change.
54108         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
54109         declare if ACL_NO_TRIVIAL is present.
54110         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
54111         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
54112         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
54113         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
54114         define if ACL_NO_TRIVIAL is present.
54115         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
54116         and use the current ABI.
54117         (file_has_acl): Use same #if condition as elsewhere.
54118         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
54119         in use, and use the current ABI.
54120         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
54121         Reported by Jim Meyering.
54122
54123 2008-06-09  Eric Blake  <ebb9@byu.net>
54124
54125         Work around environments that (stupidly) ignore SIGALRM.
54126         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
54127         before using alarm().
54128         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54129         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
54130         Reported by Ian Beckwith <ianb@erislabs.net>.
54131
54132         Produce autobuild blurb earlier in log.
54133         * modules/autobuild (configure.ac-early): Move AB_INIT here.
54134
54135 2008-06-09  Jim Meyering  <meyering@redhat.com>
54136         and OndÅ™ej Vašík  <ovasik@redhat.com>
54137
54138         utimens.c: correct kernel bug work-around
54139         OndÅ™ej Vašík found that the invalid return value of 280 indicates
54140         failure, not success, and the kernel bug we're trying to work
54141         around affects not just the utimensat call, but also the fallback
54142         futimens call.
54143         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
54144         not success.
54145         [HAVE_FUTIMENS]: Use the same work-around, here.
54146
54147 2008-06-09  Jim Meyering  <meyering@redhat.com>
54148
54149         add more guards around definition of ACE_-related code
54150         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
54151         ALLOW and ACE_OWNER are also defined.
54152
54153 2008-06-08  Bruno Haible  <bruno@clisp.org>
54154
54155         * lib/acl-internal.h: Add me as co-author.
54156         * lib/file-has-acl.c: Likewise.
54157         * lib/set-mode-acl.c: Likewise.
54158         * lib/copy-acl.c: Likewise.
54159
54160 2008-06-08  Bruno Haible  <bruno@clisp.org>
54161
54162         Add support for AIX ACLs.
54163         * lib/acl-internal.h (acl_nontrivial): New declaration.
54164         * lib/file-has-acl.c (acl_nontrivial): New function.
54165         (file_has_acl): Add implementation using AIX 4 ACL API.
54166         * lib/set-mode-acl.c (qset_acl): Likewise.
54167         * lib/copy-acl.c (qcopy_acl): Likewise.
54168
54169 2008-06-08  Bruno Haible  <bruno@clisp.org>
54170
54171         Add support for HP-UX ACLs.
54172         * lib/acl-internal.h (acl_nontrivial): New declaration.
54173         * lib/file-has-acl.c (acl_nontrivial): New function.
54174         (file_has_acl): Add implementation using HP-UX 11 ACL API.
54175         * lib/set-mode-acl.c (qset_acl): Likewise.
54176         * lib/copy-acl.c (qcopy_acl): Likewise.
54177
54178 2008-06-08  Bruno Haible  <bruno@clisp.org>
54179
54180         Add support for Cygwin ACLs.
54181         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
54182         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
54183         the chmod_or_fchmod call.
54184         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
54185
54186 2008-06-08  Bruno Haible  <bruno@clisp.org>
54187
54188         Fix bug with setuid modes in Solaris 10+ code.
54189         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
54190         succeeded, when the mode contains some special bits.
54191
54192 2008-06-08  Bruno Haible  <bruno@clisp.org>
54193
54194         Add support for Solaris 7..10 ACLs.
54195         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
54196         declarations.
54197         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
54198         functions.
54199         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
54200         * lib/set-mode-acl.c (qset_acl): Likewise.
54201         * lib/copy-acl.c (qcopy_acl): Likewise.
54202
54203 2008-06-08  Bruno Haible  <bruno@clisp.org>
54204
54205         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
54206         declaration.
54207         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
54208         (acl_access_nontrivial): Remove MacOS X case.
54209         (file_has_acl): Use acl_extended_nontrivial.
54210         * lib/copy-acl.c (qcopy_acl): Likewise.
54211
54212 2008-06-08  Bruno Haible  <bruno@clisp.org>
54213
54214         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
54215
54216 2008-06-08  Jim Meyering  <meyering@redhat.com>
54217
54218         * modules/acl (Maintainer): Add Bruno Haible.
54219
54220 2008-06-07  Bruno Haible  <bruno@clisp.org>
54221
54222         Improve support for Tru64 ACLs.
54223         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
54224         ACL on OSF/1.
54225
54226 2008-06-07  Bruno Haible  <bruno@clisp.org>
54227
54228         Add support for MacOS X ACLs.
54229         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
54230         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
54231         * lib/set-mode-acl.c (qset_acl): Likewise.
54232         * lib/copy-acl.c (qcopy_acl): Likewise.
54233
54234 2008-06-07  Bruno Haible  <bruno@clisp.org>
54235
54236         Fix memory leak introduced on 2008-05-22.
54237         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
54238         use.
54239
54240 2008-06-07  Bruno Haible  <bruno@clisp.org>
54241
54242         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
54243         to construct an empty ACL.
54244
54245 2008-06-07  Bruno Haible  <bruno@clisp.org>
54246
54247         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
54248         precisely.
54249         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
54250
54251 2008-06-07  Bruno Haible  <bruno@clisp.org>
54252
54253         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
54254         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
54255
54256 2008-06-07  Bruno Haible  <bruno@clisp.org>
54257
54258         * doc/posix-functions/_setjmp.texi: Explain the use of this function
54259         regardless of POSIX.
54260         * doc/posix-functions/_longjmp.texi: Likewise.
54261         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
54262         SystemV platform in this case.
54263
54264 2008-06-06  Eric Blake  <ebb9@byu.net>
54265
54266         Document abort() bugs.
54267         * doc/posix-functions/abort.texi (abort): Mention anomalies.
54268
54269         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
54270         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
54271         sigsetjmp.
54272         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
54273         siglongjmp, but only as a macro.
54274         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
54275         is obsolete.
54276         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
54277
54278         Tweak documentation to cover cygwin argz bugs.
54279         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
54280         argz bug fix; no code change needed since no cygwin releases
54281         occurred between the last fix and the bug being tested.
54282         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
54283         module and recently fixed cygwin bugs.
54284         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
54285         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
54286         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
54287         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
54288         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
54289         Likewise.
54290         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
54291         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
54292         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
54293         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
54294         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
54295         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
54296         Likewise.
54297
54298         Avoid gcc warning on cygwin.
54299         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
54300         !ACL_NO_TRIVIAL]: Avoid unused variable.
54301
54302 2008-06-05  Eric Blake  <ebb9@byu.net>
54303
54304         Be tolerant of UNKNOWN version in gnulib-tool test dir.
54305         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
54306         git-version-gen fails to come up with a version.
54307         Reported by Simon Josefsson.
54308
54309 2008-06-05  Jim Meyering  <meyering@redhat.com>
54310             Paul Eggert  <eggert@cs.ucla.edu>
54311
54312         utimens.c: work around a probable Linux kernel bug
54313         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
54314         appears to be a kernel bug that causes utimensat to return 280
54315         instead of 0, indicating success.
54316
54317 2008-06-04  Bruno Haible  <bruno@clisp.org>
54318
54319         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
54320         2008-06-01 commit.
54321
54322 2008-06-04  Bruno Haible  <bruno@clisp.org>
54323
54324         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
54325         * lib/file-has-acl.c (acl_access_nontrivial): New function.
54326         (file_has_acl): Use it. Save errno afterwards.
54327         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
54328
54329 2008-06-03  Bruno Haible  <bruno@clisp.org>
54330
54331         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
54332         draft code. Simplify #ifs.
54333         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
54334         Put Solaris code after POSIX-draft code. Fix comments regarding
54335         Solaris 10, HP-UX. Mention Cygwin.
54336         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
54337
54338 2008-06-03  Eric Blake  <ebb9@byu.net>
54339
54340         Provide fallback for older kernels.
54341         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
54342         Provide runtime fallback if kernel lacks support.
54343         Reported by Mike Frysinger.
54344
54345 2008-06-02  Bruno Haible  <bruno@clisp.org>
54346
54347         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
54348         it exists.
54349
54350 2008-06-02  Bruno Haible  <bruno@clisp.org>
54351
54352         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
54353         * lib/copy-acl.c (qcopy_acl): Update comment.
54354
54355 2008-06-02  Bruno Haible  <bruno@clisp.org>
54356
54357         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
54358         like ACL APIs.
54359
54360 2008-06-02  Bruno Haible  <bruno@clisp.org>
54361
54362         * tests/test-file-has-acl.sh: Use different code for Cygwin.
54363         * tests/test-set-mode-acl.sh: Likewise.
54364         * tests/test-copy-acl.sh: Likewise.
54365         * tests/test-copy-file.sh: Likewise.
54366
54367 2008-06-02  Bruno Haible  <bruno@clisp.org>
54368
54369         * tests/test-file-has-acl.sh: Remove unused code.
54370
54371 2008-06-01  Bruno Haible  <bruno@clisp.org>
54372
54373         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
54374         (copy_acl): Just a wrapper around qcopy_acl that emits the error
54375         messages.
54376         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
54377
54378 2008-06-01  Bruno Haible  <bruno@clisp.org>
54379
54380         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
54381         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
54382         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
54383         APIs.
54384         * modules/acl-tests (configure.ac): Remove tests now contained in
54385         m4/acl.m4.
54386
54387 2008-06-02  Jim Meyering  <meyering@redhat.com>
54388
54389         announce-gen: use a better key-server host name
54390         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
54391         it may be more consistently reliable.  Suggested by Werner Koch
54392         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
54393
54394 2008-06-01  Bruno Haible  <bruno@clisp.org>
54395
54396         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
54397         Reported by Voroskoi Andras <voroskoi@gmail.com>.
54398
54399 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
54400
54401         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
54402
54403 2008-06-01  Bruno Haible  <bruno@clisp.org>
54404
54405         New ACL tests.
54406         * tests/test-file-has-acl.sh: New file.
54407         * tests/test-file-has-acl.c: New file.
54408         * tests/test-set-mode-acl.sh: New file.
54409         * tests/test-set-mode-acl.c: New file.
54410         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
54411         * tests/test-copy-acl.c: New file.
54412         * modules/acl-tests: New file, based on modules/copy-file-tests.
54413         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
54414         (Depends-on): Add acl-tests.
54415         (configure.ac): Remove checks.
54416         (Makefile.am): Don't create test-sameacls program here any more.
54417
54418 2008-06-01  Bruno Haible  <bruno@clisp.org>
54419
54420         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
54421         * tests/test-sameacls.c: Include progname.h.
54422         (main): Invoke set_program_name. Portability fixes for MacOS X,
54423         Solaris, HP-UX.
54424
54425 2008-06-01  Bruno Haible  <bruno@clisp.org>
54426
54427         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
54428         function.
54429         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
54430
54431 2008-06-01  Bruno Haible  <bruno@clisp.org>
54432
54433         * modules/rpmatch (Depends-on): Add strdup.
54434
54435 2008-06-01  Bruno Haible  <bruno@clisp.org>
54436
54437         * lib/pipe.c: Include unistd-safer.h.
54438         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
54439         * modules/pipe (Depends-on): Add unistd-safer.
54440
54441 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54442
54443         * modules/autobuild (configure.ac): Call AB_INIT.
54444
54445 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54446
54447         * tests/test-getaddrinfo.c: Don't print debug messages by default.
54448         Suggested by Bruno Haible <bruno@clisp.org>.
54449
54450 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54451
54452         * tests/test-base64.c: Cast size_t to unsigned long when invoking
54453         printf.  Use %lu instead of %d.  Reported by Bruno Haible
54454         <bruno@clisp.org>.
54455
54456 2008-05-29  Eric Blake  <ebb9@byu.net>
54457
54458         Prefer new POSIX 200x interfaces over futimesat.
54459         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
54460         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
54461         when available.
54462         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
54463
54464 2008-05-28  Bruno Haible  <bruno@clisp.org>
54465
54466         * modules/stpcpy (License): Change to LGPLv2+.
54467         Requested by David Lutterkort <dlutter@redhat.com>.
54468
54469 2008-05-27  Bruno Haible  <bruno@clisp.org>
54470
54471         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
54472         current mingw.
54473         Reported by Jose E. Marchesi <jemarch@gnu.org>.
54474
54475 2008-05-27  Bruno Haible  <bruno@clisp.org>
54476
54477         * modules/iconv_open (Link): New section, from module 'iconv'.
54478         * modules/striconv (Link): Likewise.
54479         * modules/striconveh (Link): Likewise.
54480         * modules/xstriconv (Link): Likewise.
54481         * modules/unicodeio (Link): Likewise.
54482         * modules/propername (Link): Likewise.
54483         Reported by Jim Meyering.
54484
54485 2008-05-26  Jim Meyering  <meyering@redhat.com>
54486
54487         sha256: do not artificially restrict buffer length to be < 2^32
54488         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
54489         uint32_t to size_t.
54490         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
54491         to match.
54492
54493         avoid unaligned access errors, e.g., on sparc
54494         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
54495         direct access through a possibly-unaligned uint64* pointer.
54496         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
54497         direct access through a possibly-unaligned uint32* pointer.
54498         Prompted by this patch from Tom "spot" Callaway:
54499         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
54500
54501         sha512.c: fix typo in comment
54502         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
54503
54504 2008-05-25  Bruno Haible  <bruno@clisp.org>
54505
54506         * lib/set-mode-acl.c: Renamed from lib/acl.c.
54507         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
54508         (Makefile.am): Update lib_SOURCES.
54509
54510 2008-05-25  Bruno Haible  <bruno@clisp.org>
54511
54512         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
54513
54514 2008-05-25  Jim Meyering  <meyering@redhat.com>
54515
54516         useless-if-before-free: freed expr may have white-space differences
54517         * build-aux/useless-if-before-free: Recognize cases in which the
54518         freed expression differs from the tested one in embedded white
54519         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
54520         $1 was used, so we can't make any regexp shy.  Improved tests now
54521         detect this.
54522
54523         useless-if-before-free: accept white space in the expression.
54524         * build-aux/useless-if-before-free: For now, any white space
54525         in the expression must be identical in the free argument.
54526
54527         useless-if-before-free: efficiency tweak
54528         * build-aux/useless-if-before-free: Make the expression-matching
54529         regexp "shy".
54530         Make the *outer* regexp shy, not the expr-matching one.
54531
54532         update code-in-comment to accept cast of free arg
54533         * build-aux/useless-if-before-free: Update regexp.
54534
54535 2008-05-25  Bruno Haible  <bruno@clisp.org>
54536
54537         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
54538         * modules/copy-file-tests (Files, Makefile.am): Update.
54539         * tests/test-copy-file.c (func_test_copy): Update.
54540
54541 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
54542
54543         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
54544
54545 2008-05-23  Bruno Haible  <bruno@clisp.org>
54546
54547         Improve support for ACLs on OSF/1.
54548         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
54549         Remove fallback for unknown flavors of ACLs.
54550
54551 2008-05-22  Bruno Haible  <bruno@clisp.org>
54552
54553         Add support for ACLs on OSF/1.
54554         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
54555         replacements.
54556         (acl_free_text): New macro fallback.
54557         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
54558         acl_free.
54559         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
54560         acl_free_text function. Require AC_C_INLINE.
54561
54562 2008-05-22  Bruno Haible  <bruno@clisp.org>
54563
54564         Make copy_acl work on MacOS X 10.5.
54565         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
54566         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
54567         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
54568         If MODE_INSIDE_ACL, don't assume that every system has the same text
54569         representation for ACLs as FreeBSD.
54570         * lib/copy-acl.c (copy_acl): Add support for platforms with
54571         !MODE_INSIDE_ACL.
54572         * lib/file-has-acl.c (file_has_acl): Likewise.
54573         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
54574         FreeBSD, MacOS X, or IRIX, respectively.
54575
54576 2008-05-22  Bruno Haible  <bruno@clisp.org>
54577
54578         * lib/acl.h: Don't include <sys/acl.h>.
54579         (GETACLCNT): Move fallback to lib/acl-internal.h.
54580         * lib/acl-internal.h: Include <sys/acl.h> here.
54581         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
54582
54583 2008-05-22  Bruno Haible  <bruno@clisp.org>
54584
54585         Split off copy_acl function to separate file.
54586         * lib/copy-acl.c: New file, extracted from lib/acl.c.
54587         * lib/acl.c (copy_acl): Moved function to separate file.
54588         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
54589         * modules/acl (Files): Add lib/copy-acl.c.
54590         (Makefiles.am): Augment lib_SOURCES.
54591
54592 2008-05-22  Bruno Haible  <bruno@clisp.org>
54593
54594         * modules/copy-file-tests: New file.
54595         * tests/test-copy-file.sh: New file.
54596         * tests/test-copy-file.c: New file.
54597         * tests/test-copy-file-sameacls.c: New file.
54598
54599 2008-05-22  Eric Blake  <ebb9@byu.net>
54600
54601         Avoid gcc warning.
54602         * tests/test-memcmp.c (main): Pass NULL indirectly.
54603
54604 2008-05-21  Bruno Haible  <bruno@clisp.org>
54605
54606         Add reference doc about ACLs.
54607         * doc/acl-resources.txt: New file.
54608         * doc/acl-cygwin.txt: New file.
54609
54610 2008-05-21  Bruno Haible  <bruno@clisp.org>
54611
54612         Avoid one more warning from gcc.
54613         * lib/vasnprintf.c (IF_LINT): Update comments.
54614         (VASNPRINTF): Use it also for the 'prefix' array initializer.
54615
54616 2008-05-21  Jim Meyering  <meyering@redhat.com>
54617
54618         avoid a warning from gcc
54619         * lib/vasnprintf.c (IF_LINT): Define.
54620         (scale10_round_decimal_long_double):
54621         Use it to avoid a "may be used uninitialized" warning.
54622         (scale10_round_decimal_double): Likewise.
54623
54624 2008-05-21  Simon Josefsson  <simon@josefsson.org>
54625
54626         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
54627         declared.
54628
54629 2008-05-20  Bruno Haible  <bruno@clisp.org>
54630
54631         * tests/test-memcmp.c (main): Test also the sign of the result. Test
54632         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
54633
54634 2008-05-20  Simon Josefsson  <simon@josefsson.org>
54635
54636         * modules/memcmp-tests: New file.
54637         * tests/test-memcmp.c: New file.
54638
54639 2008-05-19  Bruno Haible  <bruno@clisp.org>
54640
54641         * modules/propername (Notice, configure.ac): Put quoted "..." into
54642         --keyword option.
54643         * lib/propername.h: Update comments accordingly.
54644         Reported by Eric Blake.
54645
54646 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
54647
54648         * modules/getpass-gnu (Depends-on): Add fseeko.
54649
54650 2008-05-19  Simon Josefsson  <simon@josefsson.org>
54651
54652         * modules/base64-tests: New file.
54653
54654 2008-05-19  Bo Borgerson <gigabo@gmail.com>
54655
54656         * lib/base64.c (base64_decode_ctx): If a decode context structure
54657         was passed in use it to ignore newlines.  If a context structure
54658         was _not_ passed in, continue to treat newlines as garbage (this
54659         is the historical behavior).  Formerly base64_decode.
54660         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
54661         takes a decode context structure.
54662         * lib/base64.h (base64_decode): Macro for four-argument calls.
54663         (base64_decode_alloc): Likewise.
54664         * lib/base64.c (base64_decode_ctx): If a decode context structure
54665         was passed in use it to ignore newlines.  If a context structure
54666         was _not_ passed in, continue to treat newlines as garbage (this
54667         is the historical behavior).  Formerly base64_decode.
54668         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
54669         takes a decode context structure.
54670         * lib/base64.h (base64_decode): Macro for four-argument calls.
54671         (base64_decode_alloc): Likewise.
54672
54673 2008-05-19  Jim Meyering  <meyering@redhat.com>
54674
54675         avoid a warning from gcc
54676         * lib/trim.c (IF_LINT): Define.
54677         (trim2): Use it to avoid a "may be used uninitialized" warning.
54678
54679         Fix doc typo.
54680         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
54681
54682 2008-05-19  Bruno Haible  <bruno@clisp.org>
54683
54684         * doc/glibc-functions/getpass.texi: Document limits of other
54685         implementations.
54686
54687 2008-05-19  Simon Josefsson  <simon@josefsson.org>
54688             Bruno Haible <bruno@clisp.org>
54689
54690         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
54691
54692 2008-05-18  Bruno Haible  <bruno@clisp.org>
54693
54694         * modules/propername: New file, from GNU gettext.
54695         * lib/propername.h: New file, from GNU gettext.
54696         * lib/propername.c: New file, from GNU gettext.
54697         * MODULES.html.sh (Internationalization functions): Add propername.
54698
54699 2008-05-16  Jim Meyering  <meyering@redhat.com>
54700             Bruno Haible  <bruno@clisp.org>
54701
54702         Avoid some warnings from "gcc -Wshadow".
54703         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
54704
54705 2008-05-15  Eric Blake  <ebb9@byu.net>
54706
54707         Extend previous patch to cygwin 1.7.0.
54708         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
54709         fast implementation in cygwin >= 1.7.0.
54710         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
54711         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54712
54713 2008-05-15  Bruno Haible  <bruno@clisp.org>
54714
54715         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
54716         implementation in glibc >= 2.9.
54717         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
54718         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54719
54720 2008-05-15  Bruno Haible  <bruno@clisp.org>
54721
54722         * MODULES.html.sh (Internationalization functions): Remove linebreak.
54723         (Unicode string functions): Add unilbrk/*.
54724         Reported by Karl Berry.
54725
54726 2008-05-15  Eric Blake  <ebb9@byu.net>
54727
54728         Fix violation of <stdbool.h> replacement in regex.
54729         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
54730         * lib/regexec.c (re_search_internal): Likewise.
54731         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
54732
54733 2008-05-15  Jim Meyering  <meyering@redhat.com>
54734
54735         avoid distracting test output when git or cvs is not found
54736         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
54737         * tests/test-vc-list-files-git.sh: Likewise.
54738
54739 2008-05-15  Eric Blake  <ebb9@byu.net>
54740
54741         Glibc finally accepted the memmem speedup code, bugzilla #5514.
54742         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
54743         glibc version.
54744         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
54745         * doc/posix-functions/strstr.texi (strstr): Likewise.
54746         * lib/str-two-way.h (MAX): Sychronize with glibc.
54747
54748 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
54749
54750         * lib/regcomp.c (optimize_utf8): Add a note on why we test
54751         opr.ctx_type.
54752         (calc_first): Initialize constraint field.
54753         (duplicate_node_closure): Use it instead of special casing ANCHORS.
54754         Fix grammar.
54755         (duplicate_node): Merge constraint field for all node types.
54756         (calc_eclosure_iter): Look at constraint field for all node types.
54757         * lib/regex_internal.c (create_cd_newstate): Don't look at
54758         opr.ctx_type.
54759
54760 2008-05-14  Bruno Haible  <bruno@clisp.org>
54761
54762         Help GCC to do better code generation.
54763         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
54764         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
54765         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
54766         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
54767         Declare with attribute 'malloc' if supported.
54768
54769 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
54770
54771         use "echo STR|wc -c" rather than unportable "expr length STR"
54772         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
54773         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
54774
54775 2008-05-14  Jim Meyering  <meyering@redhat.com>
54776
54777         use dd ibs=$n count=1 ... rather than less-portable head -c$n
54778         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
54779         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
54780         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
54781         via Collin Lasse.
54782
54783 2008-05-14  Eric Blake  <ebb9@byu.net>
54784
54785         Avoid quadratic growth in gl_LIBSOURCES.
54786         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
54787         Suggested by Bruno Haible.
54788
54789         Test xmemdup0.
54790         * modules/xmemdup0-tests: New file.
54791         * tests/test-xmemdup0.c: Likewise.
54792
54793 2008-05-13  Eric Blake  <ebb9@byu.net>
54794
54795         Split xmemdup0 into its own module.
54796         * modules/xmemdup0: New file.
54797         * lib/xmemdup0.h: Likewise.
54798         * lib/xmemdup0.c: Likewise.
54799         * MODULES.html.sh (Memory management functions): Add xmemdup0.
54800         * lib/xalloc.h (xmemdup0): Remove.
54801         * lib/xmalloc.c (xmemdup0): Likewise.
54802
54803 2008-05-13  Eric Blake  <ebb9@byu.net>
54804             Bruno Haible  <bruno@clisp.org>
54805
54806         Reduce number of forks required during autoconf.
54807         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
54808         and gl_LIBSOURCES_DIR.
54809         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
54810         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
54811         m4_syscmd per file.
54812         <m4_foreach_w>: Move...
54813         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
54814
54815 2008-05-13  Eric Blake  <ebb9@byu.net>
54816
54817         * gnulib-tool: Fix various comment typos.
54818
54819 2008-05-12  Bruno Haible  <bruno@clisp.org>
54820
54821         Tailor the linebreaking algorithm.
54822         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
54823
54824 2008-05-12  Bruno Haible  <bruno@clisp.org>
54825
54826         Update to Unicode 5.0.0.
54827         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
54828         LBP_JV, LBP_JT. Redistribute values.
54829         (unilbrk_table): Change size.
54830         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
54831         Unicode TR#14 rev. 22.
54832         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
54833         LBP_JV, LBP_JT. Redistribute values.
54834         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
54835         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
54836         Update.
54837         * lib/unilbrk/lbrkprop1.h: Regenerated.
54838         * lib/unilbrk/lbrkprop2.h: Regenerated.
54839         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
54840         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
54841         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
54842         Likewise.
54843         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
54844         Likewise.
54845         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
54846         result.
54847         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
54848         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
54849         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
54850         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
54851         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
54852         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
54853
54854 2008-05-11  Bruno Haible  <bruno@clisp.org>
54855
54856         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
54857
54858 2008-05-11  Bruno Haible  <bruno@clisp.org>
54859
54860         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
54861         * modules/unilbrk/gen-lbrk: New file.
54862
54863 2008-05-11  Bruno Haible  <bruno@clisp.org>
54864
54865         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
54866         * m4/sha512.m4 (gl_SHA512): Likewise.
54867
54868 2008-05-11  Jim Meyering  <meyering@redhat.com>
54869
54870         New modules: crypto/sha256, crypto/sha512 (from coreutils)
54871         * modules/crypto/sha256: New file.
54872         * modules/crypto/sha512: Likewise.
54873         * lib/sha256.c: Likewise.
54874         * lib/sha256.h: Likewise.
54875         * lib/sha512.c: Likewise.
54876         * lib/sha512.h: Likewise.
54877         * lib/u64.h: Likewise.
54878         * m4/sha256.m4: Likewise.
54879         * m4/sha512.m4: Likewise.
54880         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
54881
54882 2008-05-10  Bruno Haible  <bruno@clisp.org>
54883
54884         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
54885         (Input/Output <stdio.h>): Add xprintf.
54886         (Signal handling <signal.h>): Add strsignal.
54887         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
54888         (Core language properties): Add func.
54889         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
54890         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
54891         strings.
54892         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
54893         (Input/output): New section.
54894         (File system functions): Add openat-die, stat-macros.
54895         (Networking functions): Add sockets.
54896         (Unicode string functions): Add unictype/*.
54897         (Support for building libraries and executables): Add gperf.
54898         (Support for building documentation): Add agpl-3.0.
54899         (Misc): Add nocrash.
54900
54901 2008-05-10  Bruno Haible  <bruno@clisp.org>
54902
54903         * modules/unictype/gen-ctype: New file.
54904
54905 2008-05-10  Jim Meyering  <meyering@redhat.com>
54906
54907         Make chdir-safer.c more efficient on a system with no symlinks.
54908         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
54909         also if ELOOP is zero.  Suggested by Bruno Haible.
54910
54911         Make chdir-safer.c slightly safer.
54912         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
54913         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
54914
54915         Avoid compile failure on systems without ELOOP (like mingw).
54916         * lib/chdir-safer.c (ELOOP): Define if not already defined.
54917         Reported by Bruno Haible.
54918
54919 2008-05-10  Bruno Haible  <bruno@clisp.org>
54920
54921         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
54922         (is_utf8_encoding): Use a case-insensitive comparison.
54923         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
54924         streq.
54925
54926 2008-05-10  Bruno Haible  <bruno@clisp.org>
54927
54928         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
54929         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
54930         * lib/unilbrk/ulc-common.h (iconv_string_length,
54931         iconv_string_keeping_offsets): Remove declarations.
54932         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
54933         Don't include <iconv.h>, streq.h, xsize.h.
54934         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
54935         conversion.
54936         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
54937         <iconv.h>, streq.h, xsize.h.
54938         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
54939         conversion.
54940         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
54941         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
54942         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
54943         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
54944
54945 2008-05-10  Bruno Haible  <bruno@clisp.org>
54946
54947         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
54948         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
54949
54950         * modules/unilbrk/u32-width-linebreaks-tests: New file.
54951         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
54952
54953         * modules/unilbrk/u16-width-linebreaks-tests: New file.
54954         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
54955
54956         * modules/unilbrk/u8-width-linebreaks-tests: New file.
54957         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
54958
54959         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
54960         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
54961
54962         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
54963         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
54964
54965         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
54966         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
54967
54968         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
54969         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
54970
54971 2008-05-10  Bruno Haible  <bruno@clisp.org>
54972
54973         Split up 'linebreak' module.
54974         * lib/unilbrk.h: New file, based on lib/linebreak.h.
54975         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
54976         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
54977         modifications.
54978         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
54979         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
54980         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
54981         lib/linebreak.c.
54982         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
54983         lib/linebreak.c.
54984         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
54985         lib/linebreak.c.
54986         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
54987         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
54988         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
54989         lib/linebreak.c.
54990         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
54991         lib/linebreak.c.
54992         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
54993         lib/linebreak.c.
54994         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
54995         lib/linebreak.c.
54996         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
54997         lib/linebreak.c.
54998         * modules/unilbrk/base: New file.
54999         * modules/unilbrk/tables: New file.
55000         * modules/unilbrk/u8-possible-linebreaks: New file.
55001         * modules/unilbrk/u16-possible-linebreaks: New file.
55002         * modules/unilbrk/u32-possible-linebreaks: New file.
55003         * modules/unilbrk/ulc-common: New file.
55004         * modules/unilbrk/ulc-possible-linebreaks: New file.
55005         * modules/unilbrk/u8-width-linebreaks: New file.
55006         * modules/unilbrk/u16-width-linebreaks: New file.
55007         * modules/unilbrk/u32-width-linebreaks: New file.
55008         * modules/unilbrk/ulc-width-linebreaks: New file.
55009         * lib/linebreak.h: Remove file.
55010         * lib/linebreak.c: Remove file.
55011         * m4/linebreak.m4: Remove file.
55012         * modules/linebreak: Remove file.
55013         * NEWS: Mention the changes.
55014
55015 2008-05-09  Eric Blake  <ebb9@byu.net>
55016
55017         Add xmemdup0.
55018         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
55019         implementation.
55020         * lib/xmalloc.c (xmemdup0): New C implementation.
55021
55022 2008-05-08  Bruno Haible  <bruno@clisp.org>
55023
55024         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
55025
55026 2008-05-07  Eric Blake  <ebb9@byu.net>
55027
55028         Support cross-compilation of <wctype.h>.
55029         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
55030         AC_CACHE_CHECK.
55031
55032 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
55033
55034         * build-aux/vc-list-files: Add support for bzr.
55035
55036 2008-05-03  Jim Meyering  <meyering@redhat.com>
55037
55038         avoid failed assertion with tight malloc
55039         * tests/test-getndelim2.c: Correct an off-by-one assertion.
55040
55041 2008-05-03  Simon Josefsson  <simon@josefsson.org>
55042
55043         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
55044         are needed from arpa/inet.h.
55045         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
55046         Reported by Bruno Haible.
55047
55048 2008-05-02  Jim Meyering  <meyering@redhat.com>
55049
55050         avoid compilation error on FreeBSD 6
55051         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
55052
55053 2008-05-01  Jim Meyering  <meyering@redhat.com>
55054
55055         useless-if-before-free: correct --help's exit status description
55056         * build-aux/useless-if-before-free (usage): Like grep, exit 0
55057         for one or more matches, etc.  Reported by Bruno Haible.
55058
55059         vc-list-files: make the stand-alone gnulib test work
55060         * modules/vc-list-files-tests (configure.ac):
55061         Define and AC_SUBST abs_aux_dir.
55062         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
55063         $(abs_top_srcdir) to each script and having each of them
55064         duplicate the work of setting PATH, set PATH here, using
55065         the new variable, abs_aux_dir instead.
55066         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
55067         * tests/test-vc-list-files-git.sh: Likewise.
55068         Reported by Bruno Haible.
55069
55070 2008-05-01  Bruno Haible  <bruno@clisp.org>
55071
55072         * lib/getndelim2.c (getndelim2): Fix newsize computation during
55073         reallocation. Rename 'done' to 'found_delimiter'.
55074
55075 2008-05-01  Jim Meyering  <meyering@redhat.com>
55076
55077         vc-list-files: accommodate /bin/sh like the one from Solaris 10
55078         * build-aux/vc-list-files: Use `...`, not $(...).
55079
55080 2008-04-30  Jim Meyering  <meyering@redhat.com>
55081
55082         add tests for vc-list-files
55083         * modules/vc-list-files-tests: New module.
55084         * tests/test-vc-list-files-cvs.sh: New file.
55085         * tests/test-vc-list-files-git.sh: New file.
55086
55087         avoid a warning from gcc
55088         * lib/getndelim2.c (IF_LINT): Define.
55089         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
55090
55091         vc-list-files: work properly with build-aux/cvsu, too
55092         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
55093         to all cvs-based clauses.
55094
55095         vc-list-files: work properly in the CVS+awk case, too
55096         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
55097
55098         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
55099         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
55100         take more than one file argument, so .  Add quotes, just in case $dir
55101         ever contains a shell meta-character.  Prompted by Soren Hansen in
55102         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
55103
55104 2008-04-29  Eric Blake  <ebb9@byu.net>
55105
55106         Optimize getndelim2 to use block operations when possible.
55107         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
55108         freadseek, and memchr2.
55109         * lib/getndelim2.c (getndelim2): Use them for block reads.
55110
55111 2008-04-29  Bruno Haible  <bruno@clisp.org>
55112
55113         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
55114         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55115         * modules/inet_ntop (Depends-on): Add extensions.
55116         * modules/inet_pton (Depends-on): Likewise.
55117         Reported by Simon Josefsson.
55118
55119 2008-04-29  Jim Meyering  <meyering@redhat.com>
55120
55121         When the is more than one match in a block, match all of them.
55122         * build-aux/useless-if-before-free: Iterate through each block
55123         until there are no more matches.
55124
55125         Fix broken useless-if-before-free script.
55126         * build-aux/useless-if-before-free: Fix typo: missing "?" after
55127         the expression to match cast of argument to free-like function.
55128
55129 2008-04-29  Eric Blake  <ebb9@byu.net>
55130
55131         Use new header.
55132         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
55133
55134 2008-04-29  Jim Meyering  <meyering@redhat.com>
55135
55136         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
55137         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
55138         by gnulib to exist and to declare e.g., inet_ntop.
55139         Don't include "inet_ntop.h", now removed.
55140
55141         * m4/arpa_inet_h.m4: Remove trailing blanks.
55142
55143 2008-04-29  Eric Blake  <ebb9@byu.net>
55144
55145         Silence valgrind on safe reads beyond potential array bounds.
55146         * lib/rawmemchr.valgrind: New file.
55147         * lib/strchrnul.valgrind: Likewise.
55148         * modules/rawmemchr (Files): Distribute new file.
55149         * modules/strchrnul (Files): Likewise.
55150         Suggested by Bruno Haible.
55151
55152 2008-04-29  Bruno Haible  <bruno@clisp.org>
55153
55154         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
55155         (inet_ntop, inet_pton): Change portability warning's wording.
55156         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
55157         Invoke gl_CHECK_NEXT_HEADERS.
55158         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
55159         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
55160         set ARPA_INET_H.
55161         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55162         * modules/arpa_inet (Description): No longer only for systems that
55163         lack it.
55164         (Depends-on): Add include_next.
55165         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
55166         HAVE_ARPA_INET_H.
55167
55168 2008-04-29  Jim Meyering  <meyering@redhat.com>
55169
55170         * modules/mkdir (License): Re-license as LGPLv2+.
55171
55172 2008-04-29  Bruno Haible  <bruno@clisp.org>
55173
55174         * modules/rawmemchr (Maintainer): Set to Eric.
55175         * modules/strchrnul (Maintainer): Likewise.
55176
55177 2008-04-29  Simon Josefsson  <simon@josefsson.org>
55178
55179         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
55180         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
55181
55182         * modules/arpa_inet (arpa/inet.h): Use them.
55183
55184 2008-04-28  Eric Blake  <ebb9@byu.net>
55185
55186         Test getndelim2.
55187         * modules/getndelim2-tests: New file.
55188         * tests/test-getndelim2.c: Likewise.
55189         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
55190         stream.
55191         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
55192
55193         * MODULES.html.sh: Document new module.
55194
55195 2008-04-20  Bruno Haible  <bruno@clisp.org>
55196
55197         * lib/c-stack.c (die): Use raise.
55198         * modules/c-stack (Depends-on): Add raise.
55199
55200 2008-04-28  Bruno Haible  <bruno@clisp.org>
55201
55202         Expect rpmatch to be declared.
55203         * lib/yesno.c (rpmatch): Remove declaration.
55204
55205         Declare rpmatch.
55206         * lib/stdlib.in.h (rpmatch): New declaration.
55207         * lib/rpmatch.c: Include <stdlib.h> first.
55208         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
55209         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
55210         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
55211         HAVE_RPMATCH.
55212         * modules/rpmatch (Depends-on): Add stdlib, extensions.
55213         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55214         (Include): Set to <stdlib.h>.
55215         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
55216         HAVE_RPMATCH.
55217         * NEWS: Document the change.
55218
55219 2008-04-28  Bruno Haible  <bruno@clisp.org>
55220
55221         Change rpmatch to use nl_langinfo when appropriate.
55222         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
55223         (N_): New macro.
55224         (localized_pattern): New function/macro.
55225         (try): Remove match, nomatch arguments. Copy the pattern into safe
55226         memory before caching it.
55227         (rpmatch): Use localized_pattern. Add translator comments.
55228         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
55229         Suggested by Eric Blake.
55230         * modules/rpmatch (Depends-on): Add stdbool.
55231
55232 2008-04-28  Eric Blake  <ebb9@byu.net>
55233
55234         Add rawmemchr module, matching glibc.
55235         * modules/string (Makefile.am): New indicator.
55236         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
55237         * lib/string.in.h (rawmemchr): Declare when appropriate.
55238         * modules/rawmemchr: New file.
55239         * m4/rawmemchr.m4: Likewise.
55240         * lib/rawmemchr.c: Likewise.
55241         * modules/rawmemchr-tests: Likewise.
55242         * tests/test-rawmemchr.c: Likewise.
55243         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
55244         module.
55245         * modules/strchrnul (Depends-on): Add rawmemchr.
55246         * lib/strchrnul.c (strchrnul): Optimize a corner case.
55247
55248         Whitespace cleanup.
55249         * tests/test-strchrnul.c: Reindent.
55250         * lib/strchrnul.c: Likewise.
55251
55252         Optimize and test strchrnul.
55253         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
55254         * modules/strchrnul-tests: New file.
55255         * tests/test-strchrnul.c: Likewise.
55256
55257         Remove intprops dependency.
55258         * modules/memchr (Depends-on): Remove intprops.
55259         * modules/memrchr (Depends-on): Likewise.
55260         * modules/memchr2 (Depends-on): Likewise.
55261         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
55262         * lib/memrchr.c (__memrchr): Likewise.
55263         * lib/memrchr2.c (memchr2): Likewise.
55264         Reported by Simon Josefsson.
55265
55266 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55267
55268         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
55269         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55270
55271 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55272
55273         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
55274
55275         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
55276
55277         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
55278
55279         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
55280         declarations.
55281         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
55282
55283         * m4/inet_pton.m4: Don't check for header files.
55284
55285         * m4/inet_ntop.m4: Don't check for header files.
55286
55287 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55288
55289         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
55290         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
55291         trigger for cygwin).
55292         Reported by Bruno Haible  <bruno@clisp.org>.
55293
55294 2008-04-28  Bruno Haible  <bruno@clisp.org>
55295
55296         * doc/posix-functions/strdup.texi: Mention mingw problem.
55297
55298 2008-04-27  Bruno Haible  <bruno@clisp.org>
55299
55300         * modules/stat-time-tests (Depends-on): Add sleep.
55301         * tests/test-stat-time.c (force_unlink): New function.
55302         (cleanup): Use it.
55303         (test_mtime): Remove the ctime related tests.
55304         (test_ctime): New function, containing the ctime related tests.
55305         (main): Call test_ctime, except on native Windows platforms.
55306
55307 2008-04-27  Bruno Haible  <bruno@clisp.org>
55308
55309         * lib/rpmatch.c (rpmatch): Add some comments.
55310         Reported by James Youngman <jay@gnu.org>.
55311
55312 2008-04-27  Bruno Haible  <bruno@clisp.org>
55313
55314         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
55315         quiet NaNs.
55316
55317 2008-04-27  Bruno Haible  <bruno@clisp.org>
55318
55319         Make test-yesno.sh work on mingw.
55320         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
55321         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
55322         (main): Set stdin to binary mode.
55323         * modules/yesno-tests (Depends-on): Add binary-io.
55324
55325 2008-04-27  Bruno Haible  <bruno@clisp.org>
55326
55327         Fix 'isfinite' on x86, x86_64, ia64 platforms.
55328         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
55329         argument that lie outside the IEEE 854 domain.
55330         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
55331         (gl_ISFINITE): Use it.
55332         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
55333
55334 2008-04-27  Bruno Haible  <bruno@clisp.org>
55335
55336         Allow local renaming in config.h.
55337         * lib/memrchr.c (memrchr): Don't undefine outside libc.
55338
55339 2008-04-27  Bruno Haible  <bruno@clisp.org>
55340
55341         * lib/memchr.c (__memchr): Change type of 'i'.
55342         * lib/memchr2.c (memchr2): Likewise.
55343
55344 2008-04-26  Eric Blake  <ebb9@byu.net>
55345         and Bruno Haible  <bruno@clisp.org>
55346
55347         Optimize and test memrchr.
55348         * modules/memrchr (Depends-on): Add intprops.
55349         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
55350         * modules/memrchr-tests: New file.
55351         * tests/test-memrchr.c: New file.
55352
55353 2008-04-26  Bruno Haible  <bruno@clisp.org>
55354
55355         Add tentative support for DragonFly BSD.
55356         * lib/stdio-impl.h: Add macros for DragonFly BSD.
55357         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
55358         fp.
55359         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
55360         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
55361         * lib/fpurge.c (fpurge): Likewise.
55362         * lib/freadable.c (freaadable): Likewise.
55363         * lib/freadahead.c (freadahead): Likewise.
55364         * lib/freading.c (freading): Likewise.
55365         * lib/freadptr.c (freadptr): Likewise.
55366         * lib/freadseek.c (freadptrinc): Likewise.
55367         * lib/fseeko.c (fseeko): Likewise.
55368         * lib/fseterr.c (fseterr): Likewise.
55369         * lib/fwritable.c (fwritable): Likewise.
55370         * lib/fwriting.c (fwriting): Likewise.
55371
55372 2008-04-26  Bruno Haible  <bruno@clisp.org>
55373
55374         * lib/stdio-impl.h: New file.
55375         * lib/fbufmode.c: Include stdio-impl.h.
55376         (fbufmode): Use fp_, remove redundant #defines.
55377         * lib/fflush.c: Include stdio-impl.h.
55378         (clear_ungetc_buffer): Remove redundant #defines.
55379         * lib/fpurge.c: Include stdio-impl.h.
55380         (fpurge): Remove redundant #defines.
55381         * lib/freadable.c: Include stdio-impl.h.
55382         (freadable): Remove redundant #defines.
55383         * lib/freadahead.c: Include stdio-impl.h.
55384         (freadahead): Remove redundant #defines.
55385         * lib/freading.c: Include stdio-impl.h.
55386         (freading): Remove redundant #defines.
55387         * lib/freadptr.c: Include stdio-impl.h.
55388         (freadptr): Remove redundant #defines.
55389         * lib/freadseek.c: Include stdio-impl.h.
55390         (freadptrinc): Remove redundant #defines.
55391         * lib/fseeko.c: Include stdio-impl.h.
55392         (rpl_fseeko): Remove redundant #defines.
55393         * lib/fseterr.c: Include stdio-impl.h.
55394         (fseterr): Remove redundant #defines.
55395         * lib/fwritable.c: Include stdio-impl.h.
55396         (fwritable: Remove redundant #defines.
55397         * lib/fwriting.c: Include stdio-impl.h.
55398         (fwriting): Remove redundant #defines.
55399         * modules/fbufmode (Files): Add lib/stdio-impl.h.
55400         * modules/fflush (Files): Likewise.
55401         * modules/fpurge (Files): Likewise.
55402         * modules/freadable (Files): Likewise.
55403         * modules/freadahead (Files): Likewise.
55404         * modules/freading (Files): Likewise.
55405         * modules/freadptr (Files): Likewise.
55406         * modules/freadseek (Files): Likewise.
55407         * modules/fseeko (Files): Likewise.
55408         * modules/fseterr (Files): Likewise.
55409         * modules/fwritable (Files): Likewise.
55410         * modules/fwriting (Files): Likewise.
55411
55412 2008-04-26  Bruno Haible  <bruno@clisp.org>
55413
55414         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
55415         restore_seek_optimization, update_fpos_cache): New functions, extracted
55416         from rpl_fflush.
55417         (rpl_fflush): Use them.
55418         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
55419         (gl_REPLACE_FFLUSH): Use it.
55420
55421 2008-04-26  Bruno Haible  <bruno@clisp.org>
55422
55423         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
55424         on Solaris.
55425         * tests/test-xstrtoimax.sh: Likewise.
55426         * tests/test-xstrtoumax.sh: Likewise.
55427         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55428
55429 2008-04-26  Bruno Haible  <bruno@clisp.org>
55430
55431         * modules/memchr-tests: New file.
55432         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
55433
55434 2008-04-26  Eric Blake  <ebb9@byu.net>
55435             Bruno Haible  <bruno@clisp.org>
55436
55437         * lib/memchr.c: Include intprops.h.
55438         (__memchr): Optimize parallel detection of matching bytes. Rename local
55439         variables. Add explanatory comments.
55440
55441 2008-04-26  Bruno Haible  <bruno@clisp.org>
55442
55443         Fix module 'memchr', broken since 2000-10-28.
55444         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
55445
55446 2008-04-26  Bruno Haible  <bruno@clisp.org>
55447
55448         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
55449         comments.
55450
55451 2008-04-25  Eric Blake  <ebb9@byu.net>
55452
55453         Use native fstatat on cygwin 1.7.0.
55454         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
55455         first.
55456
55457 2008-04-23  Eric Blake  <ebb9@byu.net>
55458
55459         Improve memchr2 performance.
55460         * lib/memchr2.c (memchr2): Further optimize parallel detection of
55461         NUL bytes.
55462         * modules/memchr2 (Depends-on): Use intprops.h.
55463
55464 2008-04-23  Simon Josefsson  <simon@josefsson.org>
55465
55466         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
55467         an inline function instead of a CPP macro.  Patch by Ben Pfaff
55468         <blp@cs.stanford.edu>.
55469
55470 2008-04-23  Simon Josefsson  <simon@josefsson.org>
55471
55472         * lib/arpa_inet.in.h: New file.
55473
55474         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
55475         (Makefile.am): Sed in substitute header file.
55476
55477         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
55478         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
55479
55480         * modules/inet_ntop (configure.ac): Use
55481         gl_ARPA_INET_MODULE_INDICATOR.
55482
55483         * modules/inet_pton (configure.ac): Use
55484         gl_ARPA_INET_MODULE_INDICATOR.
55485
55486 2008-04-22  Jim Meyering  <meyering@redhat.com>
55487
55488         * modules/verify (License): Re-license as LGPLv2+.
55489
55490 2008-04-22  Simon Josefsson  <simon@josefsson.org>
55491
55492         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
55493         parameter to void* as per POSIX standard (MinGW uses char*).
55494
55495 2008-04-21  Bruno Haible  <bruno@clisp.org>
55496
55497         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
55498         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
55499         Define to replacements if REPLACE_ISWCNTRL is 1.
55500         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
55501         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
55502         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
55503         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
55504         what it fixes.
55505         * doc/posix-functions/iswalpha.texi: Likewise.
55506         * doc/posix-functions/iswblank.texi: Likewise.
55507         * doc/posix-functions/iswcntrl.texi: Likewise.
55508         * doc/posix-functions/iswdigit.texi: Likewise.
55509         * doc/posix-functions/iswgraph.texi: Likewise.
55510         * doc/posix-functions/iswlower.texi: Likewise.
55511         * doc/posix-functions/iswprint.texi: Likewise.
55512         * doc/posix-functions/iswpunct.texi: Likewise.
55513         * doc/posix-functions/iswspace.texi: Likewise.
55514         * doc/posix-functions/iswupper.texi: Likewise.
55515         * doc/posix-functions/iswxdigit.texi: Likewise.
55516         Reported by Alain Guibert.
55517
55518 2008-04-21  Bruno Haible  <bruno@clisp.org>
55519
55520         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
55521         Patch by Alain Guibert.
55522
55523 2008-04-21  Bruno Haible  <bruno@clisp.org>
55524
55525         Fix test failures on mingw.
55526         * tests/test-xstrtol.c (print_no_progname): New function.
55527         (main): Install it in error_print_progname hook.
55528         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
55529         * tests/test-xstrtoimax.sh: Likewise.
55530         * tests/test-xstrtoumax.sh: Likewise.
55531
55532 2008-04-21  Bruno Haible  <bruno@clisp.org>
55533
55534         Fix test failure on mingw.
55535         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
55536
55537 2008-04-21  Bruno Haible  <bruno@clisp.org>
55538
55539         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
55540         Actually assign a value.
55541
55542 2008-04-20  Bruno Haible  <bruno@clisp.org>
55543
55544         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
55545         take 2.
55546         * lib/canonicalize.c (canonicalize_file_name): Elide if the
55547         'canonicalize-lgpl' module is also used.
55548         * lib/canonicalize-lgpl.c: Undo last change.
55549         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
55550
55551 2008-04-20  Bruno Haible  <bruno@clisp.org>
55552
55553         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
55554         config.h. Provide _mkdir based fallback for mingw.
55555         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
55556         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
55557         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
55558         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
55559         rather than defining mkdir in config.h.
55560         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
55561         (gl_SYS_STAT_H_DEFAULTS): New macro.
55562         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
55563         HAVE_IO_H any more.
55564         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
55565         HAVE_DECL_MKDIR and HAVE_IO_H.
55566
55567 2008-04-20  Bruno Haible  <bruno@clisp.org>
55568
55569         * lib/isapipe.c: Port to native Windows platforms.
55570
55571 2008-04-20  Bruno Haible  <bruno@clisp.org>
55572
55573         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
55574
55575 2008-04-21  Eric Blake  <ebb9@byu.net>
55576
55577         Work around preprocessors that don't handle UINTMAX_MAX.
55578         * lib/memchr2.c (memchr2): Avoid embedded #if.
55579         Reported by Alain Guibert, fix suggested by Bruno Haible.
55580
55581 2008-04-21  Simon Josefsson  <simon@josefsson.org>
55582
55583         * doc/posix-functions/strftime.texi (strftime): Explain better
55584         Windows incompatibility.  Suggested by Micah Cowan
55585         <micah@cowan.name>.
55586
55587 2008-04-20  Bruno Haible  <bruno@clisp.org>
55588
55589         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
55590         unistr/u8-mblen.
55591
55592 2008-04-20  Bruno Haible  <bruno@clisp.org>
55593
55594         Fix test failure on platforms with non-GNU iconv.
55595         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
55596         (U_TO_U8): Use it, rather than u16_to_u8.
55597         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
55598         units at the end of the input string.
55599         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
55600
55601 2008-04-20  Bruno Haible  <bruno@clisp.org>
55602
55603         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
55604         when the resulting length is 0.
55605         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
55606
55607 2008-04-20  Bruno Haible  <bruno@clisp.org>
55608
55609         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
55610         works.
55611         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
55612
55613 2008-04-20  Bruno Haible  <bruno@clisp.org>
55614
55615         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
55616         * modules/tsearch-tests (configure.ac): Test for initstate function.
55617
55618 2008-04-20  Bruno Haible  <bruno@clisp.org>
55619
55620         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
55621         for nlink_t if missing.
55622         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
55623
55624 2008-04-19  Bruno Haible  <bruno@clisp.org>
55625
55626         Work around snprintf bug on Linux libc5.
55627         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
55628         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55629         gl_SNPRINTF_SIZE1.
55630         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55631         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
55632         that test failed.
55633         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
55634         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
55635         * modules/snprintf (Files): Add m4/printf.m4.
55636         * modules/vsnprintf (Files): Likewise.
55637         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
55638         * doc/posix-functions/vsnprintf.texi: Likewise.
55639
55640 2008-04-19  Bruno Haible  <bruno@clisp.org>
55641
55642         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
55643         from 0.0058 to less than 10^-7.
55644
55645 2008-04-19  Bruno Haible  <bruno@clisp.org>
55646
55647         Fix rounding when a precision is given.
55648         * lib/vasnprintf.c (is_borderline): New function.
55649         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
55650         9...9x.
55651         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
55652         %e, %g.
55653         * tests/test-vasprintf-posix.c (test_function): Likewise.
55654         * tests/test-snprintf-posix.h (test_function): Likewise.
55655         * tests/test-sprintf-posix.h (test_function): Likewise.
55656         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
55657         * tests/test-printf-posix.h (test_function): Likewise.
55658         * tests/test-printf-posix.output: Update.
55659         Reported by John Darrington <john@darrington.wattle.id.au> via
55660         Ben Pfaff <blp@cs.stanford.edu>.
55661
55662 2008-04-18  Simon Josefsson  <simon@josefsson.org>
55663
55664         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
55665         Suggested by Bruno Haible <bruno@clisp.org>.
55666
55667 2008-04-17  Bruno Haible  <bruno@clisp.org>
55668
55669         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
55670         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
55671         implementation.
55672         Patch by Bruce Merry <bmerry@gmail.com>.
55673
55674 2008-04-17  Simon Josefsson  <simon@josefsson.org>
55675
55676         * doc/posix-functions/strftime.texi (strftime): Mention that %e
55677         doesn't work under Windows.
55678
55679 2008-04-16  Bruno Haible  <bruno@clisp.org>
55680
55681         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
55682         New macros.
55683         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
55684         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
55685         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
55686         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
55687         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
55688         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
55689         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
55690         macros.
55691         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
55692         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
55693         Northern Sotho, Uighur.
55694
55695 2008-04-16  Bruno Haible  <bruno@clisp.org>
55696
55697         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
55698         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
55699         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
55700         Reported by Daniel Bergström <daniel@octocode.com>.
55701
55702 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
55703             Bruno Haible  <bruno@clisp.org>
55704
55705         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
55706         function.
55707         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
55708         New functions, mostly extracted from gl_locale_name_default.
55709         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
55710
55711 2008-04-16  Eric Blake  <ebb9@byu.net>
55712
55713         Adjust strtod detection to catch glibc 2.7 bug.
55714         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
55715         Reported by John Gatewood Ham.
55716
55717 2008-04-16  Bruno Haible  <bruno@clisp.org>
55718
55719         Add tentative support for Linux libc5.
55720         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
55721         * lib/fpurge.c (fpurge): Likewise.
55722         * lib/freadable.c (freadable): Likewise.
55723         * lib/freadahead.c (freadahead): Likewise.
55724         * lib/freading.c (freading): Likewise.
55725         * lib/freadptr.c (freadptr): Likewise.
55726         * lib/freadseek.c (freadptrinc): Likewise.
55727         * lib/fseeko.c (rpl_fseeko): Likewise.
55728         * lib/fseterr.c (fseterr): Likewise.
55729         * lib/fwritable.c (fwritable): Likewise.
55730         * lib/fwriting.c (fwriting): Likewise.
55731         Reported by Alain Guibert <alguibert+bts@free.fr>.
55732
55733 2008-04-15  Bruno Haible  <bruno@clisp.org>
55734
55735         * modules/mathl (configure.ac): Define module indicator.
55736
55737 2008-04-15  Bruno Haible  <bruno@clisp.org>
55738
55739         * lib/logl.c (logl): Remove unused variables.
55740
55741 2008-04-15  Bruno Haible  <bruno@clisp.org>
55742
55743         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
55744         fails.
55745
55746 2008-04-15  Bruno Haible  <bruno@clisp.org>
55747
55748         * lib/trim.c (trim2): Fix argument of isspace() macro.
55749
55750 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
55751
55752         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
55753         to 0.
55754         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
55755
55756 2008-04-14  Bruno Haible  <bruno@clisp.org>
55757
55758         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
55759         AC_LANG_PROGRAM argument.
55760         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
55761         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
55762         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
55763         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
55764         * m4/math_h.m4 (gl_MATH_H): Likewise.
55765         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
55766         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
55767         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
55768         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
55769         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
55770         * m4/regex.m4 (gl_REGEX): Likewise.
55771         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
55772         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
55773         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55774         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
55775         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
55776         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55777         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
55778         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
55779
55780 2008-04-14  Jim Meyering  <meyering@redhat.com>
55781
55782         test-strtod: fix typos: s/abs/fabs/
55783         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
55784
55785 2008-04-13  Bruno Haible  <bruno@clisp.org>
55786
55787         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
55788         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
55789         module is also used and while not building the reloc-wrapper.
55790
55791 2008-04-13  Bruno Haible  <bruno@clisp.org>
55792
55793         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
55794
55795 2008-04-13  Bruno Haible  <bruno@clisp.org>
55796
55797         Fix AIX compilation failure introduced on 2008-04-02.
55798         * tests/test-frexp.c (exp): Undefine before redefining.
55799         * tests/test-frexpl.c (exp): Likewise.
55800
55801 2008-04-13  Bruno Haible  <bruno@clisp.org>
55802
55803         Work around a HP-UX stdio bug.
55804         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
55805         * tests/test-ftello.c (main): Likewise.
55806         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
55807         * doc/posix-functions/ftello.texi: Likewise.
55808
55809 2008-04-13  Bruno Haible  <bruno@clisp.org>
55810
55811         Make test-signbit pass on HP-UX/hppa.
55812         * tests/test-signbit.c (minus_zerol): New variable.
55813         (test_signbitl): Use it.
55814
55815 2008-04-13  Bruno Haible  <bruno@clisp.org>
55816
55817         Make truncl work on OSF/1 4.0.
55818         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
55819         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
55820         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
55821         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
55822         HAVE_DECL_TRUNCL.
55823         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
55824         HAVE_DECL_TRUNCL.
55825         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
55826
55827 2008-04-13  Bruno Haible  <bruno@clisp.org>
55828
55829         * lib/unictype.h: Remove trailing comma from enumeration definitions.
55830
55831 2008-04-13  Bruno Haible  <bruno@clisp.org>
55832
55833         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
55834         expression, so as to avoid HP-UX 11 cc compiler bug.
55835
55836 2008-04-13  Bruno Haible  <bruno@clisp.org>
55837
55838         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
55839
55840 2008-04-13  Bruno Haible  <bruno@clisp.org>
55841
55842         * lib/git-merge-changelog.c: Remove empty declaration outside of
55843         functions.
55844
55845 2008-04-13  Bruno Haible  <bruno@clisp.org>
55846
55847         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
55848
55849 2008-04-13  Bruno Haible  <bruno@clisp.org>
55850
55851         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
55852         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
55853         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
55854         also if it exists but lacks definitions of the SHUT_* macros.
55855         * modules/sys_socket (Description): Update.
55856         Reported by Elbert Pol <e.pol@chello.nl>.
55857
55858 2008-04-13  Bruno Haible  <bruno@clisp.org>
55859
55860         * lib/localcharset.c (OS2): Don't redefine if already defined.
55861         Reported by Elbert Pol <e.pol@chello.nl>.
55862
55863 2008-04-13  Bruno Haible  <bruno@clisp.org>
55864
55865         * lib/binary-io.h [__EMX__]: Include <io.h>.
55866         Reported by Elbert Pol <e.pol@chello.nl>.
55867
55868 2008-04-12  Bruno Haible  <bruno@clisp.org>
55869
55870         * lib/fpucw.h: Enable the definitions also for x86_64.
55871         Needed for NetBSD/x86_64.
55872         Reported by Thomas Klausner <tk@giga.or.at>.
55873
55874 2008-04-12  Bruno Haible  <bruno@clisp.org>
55875
55876         * tests/test-strtod.c: Include isnand.h.
55877         (main): Use isnand instead of isnan.
55878         Reported by Jim Meyering.
55879
55880 2008-04-12  Bruno Haible  <bruno@clisp.org>
55881
55882         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
55883         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
55884
55885 2008-04-12  Jim Meyering  <meyering@redhat.com>
55886
55887         * m4/math_h.m4 (gl_MATH_H): Fix typos.
55888
55889 2008-04-12  Bruno Haible  <bruno@clisp.org>
55890
55891         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
55892         Reported by Elbert Pol <e.pol@chello.nl>.
55893
55894 2008-04-12  Eric Blake  <ebb9@byu.net>
55895
55896         Work around Solaris 10 math.h bug.
55897         * m4/math_h.m4 (gl_MATH_H): Check for bug.
55898         (gl_MATH_H_DEFAULTS): Set up default.
55899         * modules/math (Makefile.am): Replace new indicators.
55900         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
55901         * tests/test-math.c (main): Test this.
55902         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
55903         * doc/posix-headers/math.texi (math.h): Mention bug.
55904         Reported by Nelson H. F. Beebe and Jim Meyering.
55905
55906 2008-04-11  Bruno Haible  <bruno@clisp.org>
55907
55908         Adapt to future versions of Apple GCC.
55909         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
55910         Reported by Peter O'Gorman <peter@pogma.com>.
55911
55912 2008-04-11  Bruno Haible  <bruno@clisp.org>
55913
55914         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
55915
55916 2008-04-11  Bruno Haible  <bruno@clisp.org>
55917
55918         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
55919
55920         * modules/getaddrinfo-tests (Makefile.am): Define
55921         test_getaddrinfo_LDADD.
55922
55923 2008-04-11  Bruno Haible  <bruno@clisp.org>
55924
55925         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
55926         (init): Fix syntax error.
55927         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
55928         is declared.
55929
55930 2008-04-11  Bruno Haible  <bruno@clisp.org>
55931
55932         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
55933         * modules/glob (Depends-on): Add stdbool.
55934
55935 2008-04-11  Bruno Haible  <bruno@clisp.org>
55936
55937         * lib/trim.c: Include <string.h>.
55938
55939 2008-04-11  Eric Blake  <ebb9@byu.net>
55940
55941         Avoid compile failure on OS/2.
55942         * lib/regex_internal.h (internal_function): Disable optimization
55943         on OS/2 (__EMX__), where it caused compiler error.
55944         Reported by Elbert Pol.
55945
55946 2008-04-11  Bruno Haible  <bruno@clisp.org>
55947
55948         Flush the standard error stream before aborting. Needed on mingw.
55949         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
55950         * tests/test-array_list.c (ASSERT): Likewise.
55951         * tests/test-array_oset.c (ASSERT): Likewise.
55952         * tests/test-avltree_list.c (ASSERT): Likewise.
55953         * tests/test-avltree_oset.c (ASSERT): Likewise.
55954         * tests/test-avltreehash_list.c (ASSERT): Likewise.
55955         * tests/test-binary-io.c (ASSERT): Likewise.
55956         * tests/test-byteswap.c (ASSERT): Likewise.
55957         * tests/test-c-ctype.c (ASSERT): Likewise.
55958         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
55959         * tests/test-c-strcasestr.c (ASSERT): Likewise.
55960         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
55961         * tests/test-c-strstr.c (ASSERT): Likewise.
55962         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
55963         * tests/test-canonicalize.c (ASSERT): Likewise.
55964         * tests/test-carray_list.c (ASSERT): Likewise.
55965         * tests/test-ceilf1.c (ASSERT): Likewise.
55966         * tests/test-ceilf2.c (ASSERT): Likewise.
55967         * tests/test-ceill.c (ASSERT): Likewise.
55968         * tests/test-count-one-bits.c (ASSERT): Likewise.
55969         * tests/test-fbufmode.c (ASSERT): Likewise.
55970         * tests/test-fflush2.c (ASSERT): Likewise.
55971         * tests/test-floorf1.c (ASSERT): Likewise.
55972         * tests/test-floorf2.c (ASSERT): Likewise.
55973         * tests/test-floorl.c (ASSERT): Likewise.
55974         * tests/test-fopen.c (ASSERT): Likewise.
55975         * tests/test-fpending.c (ASSERT): Likewise.
55976         * tests/test-fprintf-posix.c (ASSERT): Likewise.
55977         * tests/test-fpurge.c (ASSERT): Likewise.
55978         * tests/test-freadable.c (ASSERT): Likewise.
55979         * tests/test-freadahead.c (ASSERT): Likewise.
55980         * tests/test-freading.c (ASSERT): Likewise.
55981         * tests/test-freadptr.c (ASSERT): Likewise.
55982         * tests/test-freadptr2.c (ASSERT): Likewise.
55983         * tests/test-freadseek.c (ASSERT): Likewise.
55984         * tests/test-freopen.c (ASSERT): Likewise.
55985         * tests/test-frexp.c (ASSERT): Likewise.
55986         * tests/test-frexpl.c (ASSERT): Likewise.
55987         * tests/test-fseek.c (ASSERT): Likewise.
55988         * tests/test-fseeko.c (ASSERT): Likewise.
55989         * tests/test-fstrcmp.c (ASSERT): Likewise.
55990         * tests/test-ftell.c (ASSERT): Likewise.
55991         * tests/test-ftello.c (ASSERT): Likewise.
55992         * tests/test-func.c (ASSERT): Likewise.
55993         * tests/test-fwritable.c (ASSERT): Likewise.
55994         * tests/test-fwriting.c (ASSERT): Likewise.
55995         * tests/test-getdelim.c (ASSERT): Likewise.
55996         * tests/test-getline.c (ASSERT): Likewise.
55997         * tests/test-i-ring.c (ASSERT): Likewise.
55998         * tests/test-iconv-utf.c (ASSERT): Likewise.
55999         * tests/test-iconv.c (ASSERT): Likewise.
56000         * tests/test-isfinite.c (ASSERT): Likewise.
56001         * tests/test-isnand.c (ASSERT): Likewise.
56002         * tests/test-isnanf.c (ASSERT): Likewise.
56003         * tests/test-isnanl.h (ASSERT): Likewise.
56004         * tests/test-ldexpl.c (ASSERT): Likewise.
56005         * tests/test-linked_list.c (ASSERT): Likewise.
56006         * tests/test-linkedhash_list.c (ASSERT): Likewise.
56007         * tests/test-localename.c (ASSERT): Likewise.
56008         * tests/test-lseek.c (ASSERT): Likewise.
56009         * tests/test-mbscasecmp.c (ASSERT): Likewise.
56010         * tests/test-mbscasestr1.c (ASSERT): Likewise.
56011         * tests/test-mbscasestr2.c (ASSERT): Likewise.
56012         * tests/test-mbscasestr3.c (ASSERT): Likewise.
56013         * tests/test-mbscasestr4.c (ASSERT): Likewise.
56014         * tests/test-mbschr.c (ASSERT): Likewise.
56015         * tests/test-mbscspn.c (ASSERT): Likewise.
56016         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
56017         * tests/test-mbspbrk.c (ASSERT): Likewise.
56018         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
56019         * tests/test-mbsrchr.c (ASSERT): Likewise.
56020         * tests/test-mbsspn.c (ASSERT): Likewise.
56021         * tests/test-mbsstr1.c (ASSERT): Likewise.
56022         * tests/test-mbsstr2.c (ASSERT): Likewise.
56023         * tests/test-mbsstr3.c (ASSERT): Likewise.
56024         * tests/test-memchr2.c (ASSERT): Likewise.
56025         * tests/test-memmem.c (ASSERT): Likewise.
56026         * tests/test-open.c (ASSERT): Likewise.
56027         * tests/test-printf-frexp.c (ASSERT): Likewise.
56028         * tests/test-printf-frexpl.c (ASSERT): Likewise.
56029         * tests/test-printf-posix.c (ASSERT): Likewise.
56030         * tests/test-quotearg.c (ASSERT): Likewise.
56031         * tests/test-rbtree_list.c (ASSERT): Likewise.
56032         * tests/test-rbtree_oset.c (ASSERT): Likewise.
56033         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
56034         * tests/test-round1.c (ASSERT): Likewise.
56035         * tests/test-roundf1.c (ASSERT): Likewise.
56036         * tests/test-roundl.c (ASSERT): Likewise.
56037         * tests/test-signbit.c (ASSERT): Likewise.
56038         * tests/test-sleep.c (ASSERT): Likewise.
56039         * tests/test-snprintf-posix.c (ASSERT): Likewise.
56040         * tests/test-snprintf.c (ASSERT): Likewise.
56041         * tests/test-sprintf-posix.c (ASSERT): Likewise.
56042         * tests/test-stat-time.c (ASSERT): Likewise.
56043         * tests/test-strcasestr.c (ASSERT): Likewise.
56044         * tests/test-strerror.c (ASSERT): Likewise.
56045         * tests/test-striconv.c (ASSERT): Likewise.
56046         * tests/test-striconveh.c (ASSERT): Likewise.
56047         * tests/test-striconveha.c (ASSERT): Likewise.
56048         * tests/test-strsignal.c (ASSERT): Likewise.
56049         * tests/test-strstr.c (ASSERT): Likewise.
56050         * tests/test-strtod.c (ASSERT): Likewise.
56051         * tests/test-trunc1.c (ASSERT): Likewise.
56052         * tests/test-trunc2.c (ASSERT): Likewise.
56053         * tests/test-truncf1.c (ASSERT): Likewise.
56054         * tests/test-truncf2.c (ASSERT): Likewise.
56055         * tests/test-truncl.c (ASSERT): Likewise.
56056         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
56057         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
56058         * tests/test-vasnprintf.c (ASSERT): Likewise.
56059         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
56060         * tests/test-vasprintf.c (ASSERT): Likewise.
56061         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
56062         * tests/test-vprintf-posix.c (ASSERT): Likewise.
56063         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
56064         * tests/test-vsnprintf.c (ASSERT): Likewise.
56065         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
56066         * tests/test-wcwidth.c (ASSERT): Likewise.
56067         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
56068         * tests/test-xprintf-posix.c (ASSERT): Likewise.
56069         * tests/test-xvasprintf.c (ASSERT): Likewise.
56070         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
56071         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
56072         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
56073         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
56074         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
56075         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
56076         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
56077         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
56078         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
56079         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
56080         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
56081         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
56082         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
56083         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
56084         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
56085         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
56086         * tests/unictype/test-block_list.c (ASSERT): Likewise.
56087         * tests/unictype/test-block_of.c (ASSERT): Likewise.
56088         * tests/unictype/test-block_test.c (ASSERT): Likewise.
56089         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
56090         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
56091         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
56092         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
56093         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
56094         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
56095         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
56096         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
56097         * tests/unictype/test-combining.c (ASSERT): Likewise.
56098         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
56099         * tests/unictype/test-digit.c (ASSERT): Likewise.
56100         * tests/unictype/test-mirror.c (ASSERT): Likewise.
56101         * tests/unictype/test-numeric.c (ASSERT): Likewise.
56102         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
56103         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
56104         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
56105         * tests/unictype/test-scripts.c (ASSERT): Likewise.
56106         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
56107         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
56108         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
56109         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
56110         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
56111         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
56112         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
56113         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
56114         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
56115         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
56116         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
56117         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
56118         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
56119         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
56120         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
56121         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
56122         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
56123         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
56124         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
56125         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
56126         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
56127         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
56128         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
56129         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
56130         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
56131         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
56132         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
56133         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
56134         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
56135         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
56136         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
56137         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
56138         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
56139         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
56140         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
56141         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
56142         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
56143         Reported by Eric Blake.
56144
56145 2008-04-11  Bruno Haible  <bruno@clisp.org>
56146
56147         * lib/wchar.in.h: Tweak comment.
56148
56149 2008-04-11  Bruno Haible  <bruno@clisp.org>
56150
56151         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
56152         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
56153         gl_COMMON.
56154         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
56155
56156 2008-04-11  Bruno Haible  <bruno@clisp.org>
56157
56158         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
56159
56160 2008-04-11  Simon Josefsson  <simon@josefsson.org>
56161
56162         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
56163         of attempting to use non-existing /dev/*random.  Based on patch
56164         from Adam Strzelecki <ono@java.pl> in
56165         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
56166
56167 2008-04-08  Bruno Haible  <bruno@clisp.org>
56168
56169         Add tentative support for emx+gcc.
56170         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
56171         * lib/fpurge.c (fpurge): Likewise.
56172         * lib/freadable.c (freadable): Likewise.
56173         * lib/freadahead.c (freadahead): Likewise.
56174         * lib/freading.c (freading): Likewise.
56175         * lib/freadptr.c (freadptr): Likewise.
56176         * lib/freadseek.c (freadptrinc): Likewise.
56177         * lib/fseeko.c (rpl_fseeko): Likewise.
56178         * lib/fseterr.c (fseterr): Likewise.
56179         * lib/fwritable.c (fwritable): Likewise.
56180         * lib/fwriting.c (fwriting): Likewise.
56181         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
56182
56183 2008-04-09  Eric Blake  <ebb9@byu.net>
56184
56185         Avoid some autoconf warnings.
56186         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
56187         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
56188         * m4/afs.m4 (gl_AFS): Likewise.
56189         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
56190         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
56191         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
56192         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
56193         (gl_INTEGER_TYPE_SUFFIX): Likewise.
56194         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
56195         (AC_CHECK_DECLS_ONCE): Likewise.
56196         Rename file...
56197         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
56198         gnulib-tool requires autoconf 2.59 or better.
56199         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
56200
56201 2008-04-08  Eric Blake  <ebb9@byu.net>
56202
56203         Use 'git describe --match' if present (added in git 1.5.5).
56204         * build-aux/git-version-gen: Limit result to tags that match 'v*'
56205         if possible.
56206
56207 2008-04-08  Bruno Haible  <bruno@clisp.org>
56208
56209         Add tentative support for OpenServer.
56210         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
56211         _ptr, _cnt.
56212         * lib/fpurge.c (fpurge): Likewise.
56213         * lib/freadable.c (freadable): Likewise.
56214         * lib/freadahead.c (freadahead): Likewise.
56215         * lib/freading.c (freading): Likewise.
56216         * lib/freadptr.c (freadptr): Likewise.
56217         * lib/freadseek.c (freadptrinc): Likewise.
56218         * lib/fseeko.c (rpl_fseeko): Likewise.
56219         * lib/fseterr.c (fseterr): Likewise.
56220         * lib/fwritable.c (fwritable): Likewise.
56221         * lib/fwriting.c (fwriting): Likewise.
56222         Reported by Roger Cornelius <rac@tenzing.org> and
56223         Brian K. White <brian@aljex.com>.
56224
56225 2008-04-06  Jim Meyering  <meyering@redhat.com>
56226
56227         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
56228
56229 2008-04-06  Bruno Haible  <bruno@clisp.org>
56230
56231         Avoid possible error with non-ASCII bytes in UTF-8 locales.
56232         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
56233         * tests/test-printf-posix.sh: Likewise.
56234         * tests/test-vfprintf-posix.sh: Likewise.
56235         * tests/test-vprintf-posix.sh: Likewise.
56236         * tests/test-xprintf-posix.sh: Likewise.
56237
56238 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56239
56240         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
56241         hide error from 'ls', needed on OS/2.
56242         Report by Elbert Pol <elbert.pol@gmail.com>.
56243
56244 2008-04-04  Eric Blake  <ebb9@byu.net>
56245
56246         Make test-fseeko.c failures meaningful.
56247         * tests/test-fseeko.c: Print line number on failure.
56248         * tests/test-fseek.c: Likewise.
56249         Reported by Nelson H. F. Beebe.
56250
56251         Improve strtod bug detection check.
56252         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
56253         required for Solaris 10.
56254         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
56255
56256 2008-04-04  Bruno Haible  <bruno@clisp.org>
56257
56258         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
56259         by m4/setenv.m4.
56260
56261 2008-04-03  Eric Blake  <ebb9@byu.net>
56262
56263         Ensure sane .version contents.
56264         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
56265         version string.
56266         * build-aux/git-version-gen: Improve documentation.
56267
56268         Make GNU make output nicer.
56269         * top/GNUmakefile [!_have-Makefile]: Add dependency on
56270         MAKECMDGOALS to enforce message for all command line targets.  Set
56271         srcdir for use in maint.mk.
56272
56273         Another maintainer tweak.
56274         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
56275         a target that regenerates version.
56276
56277 2008-04-03  Jim Meyering  <meyering@redhat.com>
56278
56279         vc-list-files: don't cause coreutils "make po-check" failure
56280         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
56281
56282 2008-04-03  Eric Blake  <ebb9@byu.net>
56283
56284         Allow VPATH usage of vc-list-files.
56285         * build-aux/vc-list-files (scriptversion): Add timestamp.
56286         (options): Add --help, --version, -C.
56287         (CVS): Support installed cvsu.
56288
56289 2008-04-02  Bruno Haible  <bruno@clisp.org>
56290
56291         Avoid some "statement with no effect" warnings from gcc.
56292         * tests/test-wctype.c (main): Explicitly ignore unused values.
56293         Reported by Jim Meyering.
56294
56295 2008-04-02  Jim Meyering  <meyering@redhat.com>
56296
56297         Avoid some warnings from "gcc -Wshadow".
56298         * tests/test-frexp.c (exp): Define to a different identifier.
56299         * tests/test-frexpl.c (exp): Likewise.
56300
56301 2008-04-03  Jim Meyering  <meyering@redhat.com>
56302
56303         bootstrap: remove dangling *.[ch] symlinks from lib
56304         * build-aux/bootstrap [dangling symlink removal]: Move find's
56305         -depth option to precede all others, to avoid a warning.
56306         Remove *.[ch] files too, and from "$source_base" (usually lib/).
56307
56308 2008-04-02  Bruno Haible  <bruno@clisp.org>
56309
56310         Avoid some warnings from "gcc -Wshadow".
56311         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
56312         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
56313         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
56314         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
56315         Reported by Jim Meyering.
56316
56317 2008-04-01  Bruno Haible  <bruno@clisp.org>
56318
56319         Fix test to work on IRIX 6.5 with cc.
56320         * tests/test-math.c (numeric_equal): New function.
56321         (main): Use it.
56322
56323 2008-04-01  Bruno Haible  <bruno@clisp.org>
56324
56325         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
56326
56327 2008-04-01  Bruno Haible  <bruno@clisp.org>
56328
56329         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
56330         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56331         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
56332         (Depends-on): Remove math.
56333
56334         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
56335         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56336         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
56337         (Depends-on): Remove math.
56338
56339         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
56340         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56341         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
56342         (Depends-on): Remove math.
56343         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
56344         (Depends-on): Remove math.
56345
56346         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
56347         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56348         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
56349         (Depends-on): Remove math.
56350         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
56351         (Depends-on): Remove math.
56352
56353         * tests/test-round1.c: Include nan.h.
56354         (main): Use NaNd instead of NAN.
56355         * modules/round-tests (Files): Add tests/nan.h.
56356
56357         * tests/test-trunc1.c: Include nan.h.
56358         (main): Use NaNd instead of NAN.
56359         * modules/trunc-tests (Files): Add tests/nan.h.
56360
56361         * tests/test-roundf1.c: Include nan.h.
56362         (main): Use NaNf instead of NAN.
56363         * modules/roundf-tests (Files): Add tests/nan.h.
56364
56365         * tests/test-truncf1.c: Include nan.h.
56366         (main): Use NaNf instead of NAN.
56367         * modules/truncf-tests (Files): Add tests/nan.h.
56368
56369         * tests/test-ceilf1.c: Include nan.h.
56370         (main): Use NaNf instead of NAN.
56371         * modules/ceilf-tests (Files): Add tests/nan.h.
56372
56373         * tests/test-floorf1.c: Include nan.h.
56374         (main): Use NaNf instead of NAN.
56375         * modules/floorf-tests (Files): Add tests/nan.h.
56376
56377         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
56378         (main): Use NaNf instead of NAN.
56379         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
56380
56381         * tests/test-isnand.c: Include nan.h instead of <math.h>.
56382         (main): Use NaNd instead of NAN.
56383         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
56384
56385         * tests/test-frexp.c: Include nan.h.
56386         (main): Use NaNd instead of NAN.
56387         * modules/frexp-tests (Files): Add tests/nan.h.
56388
56389         * lib/isnan.c: Don't include <math.h>.
56390         (FUNC): Don't use NAN macro.
56391         * modules/isnand-nolibm (Depends-on): Remove math.
56392         * modules/isnanf-nolibm (Depends-on): Remove math.
56393         * modules/isnanl (Depends-on): Remove math.
56394         * modules/isnanl-nolibm (Depends-on): Remove math.
56395
56396         * tests/nan.h: New file.
56397
56398 2008-04-01  Eric Blake  <ebb9@byu.net>
56399
56400         Fix typos.
56401         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
56402         values to be the right type.
56403
56404         For now, cater to gnulib strtod inaccuracies.
56405         * tests/test-strtod.c (main): Allow 1-ulp error on expected
56406         fractional results.  While not as nice from a QoI perspective, it
56407         is a quicker patch than correctly implementing decimal to binary
56408         rounding.
56409
56410 2008-03-31  Eric Blake  <ebb9@byu.net>
56411
56412         Guarantee a definition of NAN.
56413         * lib/math.in.h (NAN): Define if missing.
56414         * tests/test-math.c (main): Test it.
56415         * doc/posix-headers/math.texi (math.h): Document this.
56416         * lib/isnan.c (rpl_isnand): Use it.
56417         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
56418         * tests/test-floorf1.c (NaN): Likewise.
56419         * tests/test-frexp.c (NaN): Likewise.
56420         * tests/test-isnand.c (NaN): Likewise.
56421         * tests/test-isnanf.c (NaN): Likewise.
56422         * tests/test-round1.c (NaN): Likewise.
56423         * tests/test-roundf1.c (NaN): Likewise.
56424         * tests/test-snprintf-posix.h (NaN): Likewise.
56425         * tests/test-sprintf-posix.h (NaN): Likewise.
56426         * tests/test-trunc1.c (NaN): Likewise.
56427         * tests/test-truncf1.c (NaN): Likewise.
56428         * tests/test-vasnprintf-posix.c (NaN): Likewise.
56429         * tests/test-vasprintf-posix.c (NaN): Likewise.
56430         * modules/isnand-nolibm (Depends-on): Add math.
56431         * modules/isnanf-nolibm (Depends-on): Likewise.
56432         * modules/isnanl (Depends-on): Likewise.
56433         * modules/isnanl-nolibm (Depends-on): Likewise.
56434         * modules/snprintf-posix-tests (Depends-on): Likewise.
56435         * modules/sprintf-posix-tests (Depends-on): Likewise.
56436         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
56437         * modules/vsprintf-posix-tests (Depends-on): Likewise.
56438         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
56439         * modules/vasprintf-posix-tests (Depends-on): Likewise.
56440
56441 2008-03-31  Bruno Haible  <bruno@clisp.org>
56442
56443         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
56444         * doc/posix-functions/strtod.texi: Likewise.
56445
56446 2008-03-31  Bruno Haible  <bruno@clisp.org>
56447
56448         * tests/test-strtod.c (main): Don't use C99 syntax.
56449
56450 2008-03-31  Bruno Haible  <bruno@clisp.org>
56451
56452         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
56453         Reported by Eric Blake.
56454
56455 2008-03-31  Jim Meyering  <meyering@redhat.com>
56456
56457         Don't compare actual signbit return values.
56458         * tests/test-strtod.c (main): Rather, compare only their
56459         zero/non-zero nature.
56460
56461 2008-03-31  Eric Blake  <ebb9@byu.net>
56462
56463         More strtod documentation.
56464         * doc/posix-functions/strtod.texi (strtod): Interpret more test
56465         failures as distinct bugs.
56466
56467 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
56468
56469         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
56470         Problem reported by Erik Benada in
56471         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
56472
56473 2008-03-30  Bruno Haible  <bruno@clisp.org>
56474
56475         * tests/test-strtod.c: Add comments about which assertion fails on which
56476         platform.
56477         * doc/posix-functions/strtod.texi: Add info about many more platforms.
56478
56479 2008-03-30  Eric Blake  <ebb9@byu.net>
56480
56481         Test signbit behavior on zeros.
56482         * tests/test-signbit.c (test_signbitf): Add tests for zero.
56483         (test_signbitd, test_signbitl): Likewise.
56484
56485         More strtod touchups.
56486         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
56487         sign of negative underflow, for now.  Use .5, not .1.
56488         * doc/posix-functions/strtod.texi (strtod): Mention these
56489         limitations.
56490         Reported by Jim Meyering.
56491
56492 2008-03-30  Bruno Haible  <bruno@clisp.org>
56493
56494         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
56495         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
56496
56497 2008-03-30  Bruno Haible  <bruno@clisp.org>
56498
56499         Avoid failure when attempting to return empty iconv results on some
56500         platforms.
56501         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
56502         allocation, don't report ENOMEM when the resulting string is empty.
56503
56504 2008-03-30  Bruno Haible  <bruno@clisp.org>
56505
56506         Fix buffer overrun.
56507         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
56508         Don't consider the width for tmp_length. Check count against tmp_length
56509         before doing the padding. Ensure enough allocation during padding.
56510
56511 2008-03-30  Eric Blake  <ebb9@byu.net>
56512
56513         strtod touchups.
56514         * lib/strtod.c (strtod): Avoid compiler warnings.
56515         Reported by Jim Meyering.
56516
56517 2008-03-30  Bruno Haible  <bruno@clisp.org>
56518
56519         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
56520         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
56521         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
56522         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
56523         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
56524         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
56525         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
56526         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
56527
56528         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
56529         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
56530         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
56531         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
56532         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
56533         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
56534         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
56535         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
56536
56537         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
56538         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
56539         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
56540         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
56541         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
56542         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
56543         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
56544         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
56545
56546         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
56547         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
56548
56549         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
56550         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
56551
56552         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
56553         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
56554
56555         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
56556         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
56557         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
56558
56559         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
56560         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
56561         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
56562
56563         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
56564         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
56565         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
56566
56567         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
56568         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
56569         * modules/vasprintf (Depends-on): Add EOVERFLOW.
56570
56571         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
56572         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
56573         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
56574         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
56575         (Depends-on): Add EOVERFLOW.
56576         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
56577         (Depends-on): Add EOVERFLOW.
56578         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
56579         (Depends-on): Add EOVERFLOW.
56580         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
56581         (Depends-on): Add EOVERFLOW.
56582         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
56583         (Depends-on): Add EOVERFLOW.
56584         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
56585         (Depends-on): Add EOVERFLOW.
56586         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
56587         (Depends-on): Add EOVERFLOW.
56588         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
56589         (Depends-on): Add EOVERFLOW.
56590
56591         * lib/sprintf.c (EOVERFLOW): Remove fallback.
56592         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
56593         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
56594
56595         * lib/snprintf.c (EOVERFLOW): Remove fallback.
56596         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
56597         * modules/snprintf (Depends-on): Add EOVERFLOW.
56598
56599         * lib/poll.c (EOVERFLOW): Remove fallback.
56600         * modules/poll (Depends-on): Add EOVERFLOW.
56601
56602         * lib/getugroups.c (EOVERFLOW): Remove fallback.
56603         * modules/getugroups (Depends-on): Add EOVERFLOW.
56604
56605         * lib/getdelim.c (EOVERFLOW): Remove fallback.
56606         * modules/getdelim (Depends-on): Add EOVERFLOW.
56607
56608         * lib/ftell.c (EOVERFLOW): Remove fallback.
56609         * modules/ftell (Depends-on): Add EOVERFLOW.
56610
56611         * lib/fprintf.c (EOVERFLOW): Remove fallback.
56612         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
56613         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
56614
56615         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
56616
56617         * modules/EOVERFLOW-tests: New file.
56618         * tests/test-EOVERFLOW.c: New file.
56619
56620         * modules/EOVERFLOW: New file.
56621         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
56622
56623 2008-03-30  Bruno Haible  <bruno@clisp.org>
56624
56625         Fix bug introduced on 2007-06-10.
56626         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
56627         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
56628
56629 2008-03-30  Bruno Haible  <bruno@clisp.org>
56630
56631         Improve freadseek's efficiency after ungetc.
56632         * lib/freadseek.c: Include freadahead.h.
56633         (freadptrinc): New function, extracted from freadseek.
56634         (freadseek): Use it in a loop. Use freadahead to determine the number
56635         of loop iterations.
56636         * modules/freadseek (Depends-on): Add freadahead.
56637         (configure.ac): Require AC_C_INLINE.
56638
56639 2008-03-30  Bruno Haible  <bruno@clisp.org>
56640
56641         * lib/freadseek.c (freadseek): Don't ignore the return value of
56642         freadptr.
56643
56644 2008-03-29  Eric Blake  <ebb9@byu.net>
56645
56646         Add hex float support.
56647         * modules/strtod (Depends-on): Add c-ctype.
56648         (Link): Mention POW_LIB.
56649         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
56650         whitespace between 'e' and exponent.
56651         * tests/test-strtod.c (main): Enable hex float tests.
56652         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
56653         now provides.
56654
56655         Document various strtod bugs, with some fixes.
56656         * doc/posix-functions/strtod.texi (strtod): Document bugs with
56657         "-0x", "inf", "nan", and hex constants.
56658         * doc/posix-functions/atof.texi (atof): Likewise.
56659         * modules/stdlib (Makefile.am): Support strtod.
56660         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
56661         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
56662         detect additional strtod bugs.
56663         * lib/stdlib.in.h (rpl_strtod): Add declarations.
56664         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
56665         bool where appropriate.  Parse 'inf' and 'nan'.
56666         * tests/test-strtod.c: New file.
56667         * modules/strtod (Depends-on): Add stdbool, stdlib.
56668         (configure.ac): Turn on module indicator.
56669         * modules/strtod-tests: New module.
56670
56671 2008-03-29  Eric Blake  <ebb9@byu.net>
56672
56673         Fix ftell on mingw.
56674         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
56675         * modules/ftell-tests (Depends-on): Add binary-io.
56676         * modules/ftello-tests (Depends-on): Likewise.
56677         * tests/test-ftell.c (main): Enhance test to cover behavior after
56678         ungetc.  Enforce binary mode.
56679         * tests/test-ftello.c (main): Likewise.
56680
56681         Pass test-freadseek on cygwin.
56682         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
56683         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
56684         ungetc buffer.
56685
56686         * tests/test-fflush2.c (main): Fix typo.
56687
56688 2008-03-29  Bruno Haible  <bruno@clisp.org>
56689
56690         * tests/test-fflush2.c (main): Temporarily disable the contents of
56691         this test.
56692         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
56693         Reported by Eric Blake.
56694
56695 2008-03-28  Simon Josefsson  <simon@josefsson.org>
56696
56697         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
56698         (GC_SHA224_DIGEST_SIZE): Add.
56699
56700         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
56701         (gc_hash_digest_length): Likewise.
56702         (gc_hash_buffer): Likewise.
56703
56704 2008-03-25  Bruno Haible  <bruno@clisp.org>
56705
56706         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
56707         detail which gettext release to use.
56708         Reported by Simon Josefsson.
56709
56710 2008-03-26  Jim Meyering  <meyering@redhat.com>
56711
56712         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
56713         * modules/gnumakefile (clean-GNUmakefile): Also, use
56714         test ... && ... || : syntax rather than if-then ... fi.
56715
56716         gnumakefile: Don't double-quote-expand $(VPATH) value.
56717         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
56718
56719 2008-03-24  Eric Blake  <ebb9@byu.net>
56720
56721         Alter GNUmakefile to install into top directory.
56722         * modules/maintainer-makefile: Split, and add dependency...
56723         * modules/gnumakefile: to this new module.
56724         * build-aux/GNUmakefile: Move...
56725         * top/GNUmakefile: ...here.
56726         * build-aux/maint.mk: Move...
56727         * top/maint.mk: ...here.
56728         * MODULES.html.sh (Support for maintaining...): Document new
56729         module.
56730
56731 2008-03-23  Bruno Haible  <bruno@clisp.org>
56732
56733         * gnulib-tool: New options --vc-files, --no-vc-files.
56734         (func_usage): Document them.
56735         (vc_files): New variable.
56736         (func_import): Consider vc_files.
56737         (func_create_testdir): Set vc_files to empty.
56738         Suggested by Jim Meyering and Karl Berry.
56739
56740 2008-03-23  Bruno Haible  <bruno@clisp.org>
56741
56742         Fix regex compilation error on HP-UX 11.
56743         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
56744         * modules/regex (Files): Add m4/mbstate_t.m4.
56745         Reported by Ton Voon <ton.voon@altinity.com>.
56746
56747 2008-03-23  Bruno Haible  <bruno@clisp.org>
56748
56749         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
56750
56751 2008-03-23  Eric Blake  <ebb9@byu.net>
56752             Bruno Haible  <bruno@clisp.org>
56753
56754         Install files from top/ in the destination directory.
56755         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
56756         augmentation also for the files from top/.
56757         (func_import, func_create_testdir): Rewrite file names:
56758         top/filename -> filename.
56759
56760 2008-03-23  Bruno Haible  <bruno@clisp.org>
56761
56762         Tweak "gnulib --version" output.
56763         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
56764
56765 2008-03-23  Bruno Haible  <bruno@clisp.org>
56766
56767         Tweak "gnulib --version" output.
56768         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
56769         rather than contents of ChangeLog, when possible.
56770
56771 2008-03-21  Eric Blake  <ebb9@byu.net>
56772
56773         More --version tweaks.
56774         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
56775         date of last ChangeLog entry.
56776
56777 2008-03-21  Jim Meyering  <meyering@redhat.com>
56778
56779         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
56780
56781 2008-03-20  Eric Blake  <ebb9@byu.net>
56782
56783         VPATH fix.
56784         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
56785
56786 2008-03-20  Simon Josefsson  <simon@josefsson.org>
56787
56788         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
56789         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
56790
56791 2008-03-20  Eric Blake  <ebb9@byu.net>
56792
56793         Sync GNUmakefile with coreutils.
56794         * build-aux/GNUmakefile (have-Makefile): Rename...
56795         (_have-Makefile): ...to this, for namespace consideration.
56796         (GNUmakefile.cfg): Include, if present.
56797         (_autoreconf): Define a default.
56798         (_is-dist-target): New rule for rebuilds to pick up intra-release
56799         version.
56800         (maint-cfg.mk): Rename...
56801         (cfg.mk): ...to this.
56802
56803 2008-03-18  Jim Meyering  <meyering@redhat.com>
56804
56805         New script and module: mktempd
56806         * MODULES.html.sh (maint+release support): Add mktempd.
56807         * build-aux/mktempd: New file.
56808         * modules/mktempd: New file.
56809
56810 2008-03-15  Jim Meyering  <meyering@redhat.com>
56811
56812         Undo last change.
56813         * lib/sha1.c, lib/md5.c: 63 != ~63.
56814         Reported by Andreas Schwab.
56815
56816         sha1.c, md5.c: Hoist a redundant expression.
56817         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
56818         "ctx->buflen" only once, before calling *_process_block.
56819         * lib/md5.c (md5_process_bytes): Likewise.
56820
56821 2008-03-14  Eric Blake  <ebb9@byu.net>
56822
56823         Bump copyright year in files generated by gnulib-tool.
56824         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
56825         gnulib-tool, rather than hard-coding it.
56826
56827         Fix 'gnulib-tool --version' output to work with git.
56828         * gnulib-tool (func_gnulib_dir): New function, extracted from...
56829         (startup): ...here.
56830         (func_version): Use it to invoke git-version-gen, rather than
56831         relying on CVS keyword expansion.  Modernize wording.
56832         (cvsdatestamp, last_checkin_date, version): Kill unused
56833         variables.
56834
56835 2008-03-12  Jim Meyering  <meyering@redhat.com>
56836
56837         Recognize optional cast of the argument to free.
56838         * build-aux/useless-if-before-free: Update regexps.
56839
56840         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
56841
56842 2008-03-11  Bruno Haible  <bruno@clisp.org>
56843
56844         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
56845         by a single package.
56846         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
56847         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
56848         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
56849         Reported by Sam Steingold <sds@gnu.org>.
56850
56851 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
56852
56853         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
56854         repositories.
56855
56856 2008-03-11  Bruno Haible  <bruno@clisp.org>
56857
56858         Avoid conflicts between local macro definitions.
56859         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
56860         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
56861
56862 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
56863             Bruno Haible  <bruno@clisp.org>
56864
56865         Make va_copy work with some version of xlc on AIX 5.1.
56866         * lib/stdarg.in.h: New file.
56867         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
56868         On AIX, use a <stdarg.h> file substitute.
56869         * modules/stdarg (Files): Add lib/stdarg.in.h.
56870         (Depends-on): Add include_next.
56871         (Makefile.am): Build a stdarg.h substitute if requested.
56872         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
56873
56874 2008-03-10  Bruno Haible  <bruno@clisp.org>
56875
56876         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
56877         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
56878         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
56879
56880 2008-03-10  Bruno Haible  <bruno@clisp.org>
56881
56882         * modules/stdlib (Depends-on): Add include_next, remove
56883         absolute-header.
56884
56885 2008-03-09  Bruno Haible  <bruno@clisp.org>
56886
56887         * lib/freadahead.h (freadahead): Document more precisely.
56888         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
56889         the sum of both buffer sizes.
56890         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
56891         * NEWS: Document the change.
56892
56893 2008-03-09  Bruno Haible  <bruno@clisp.org>
56894
56895         Extend freadptr to return also the buffer size.
56896         * lib/freadptr.h (freadptr): Add sizep argument.
56897         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
56898         (freadptr): Add sizep argument. Determine buffer size like freadahead
56899         does.
56900         * tests/test-freadptr.c: Don't include freadahead.h.
56901         (main): Adapt for new calling convention of freadptr.
56902         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
56903         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
56904         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
56905         tests/test-freadptr2.sh.
56906         (Depends): Remove freadahead.
56907         (TESTS): Add test-freadptr2.sh.
56908         (check_PROGRAMS): Add test-freadptr2.
56909
56910 2008-03-09  Bruno Haible  <bruno@clisp.org>
56911
56912         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
56913         Report and solution by Simon Josefsson.
56914
56915 2008-03-06  Bruno Haible  <bruno@clisp.org>
56916
56917         Make fflush after ungetc work on BSD platforms.
56918         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
56919         * tests/test-fflush2.c: New file.
56920         * tests/test-fflush2.sh: New file.
56921         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
56922         tests/test-fflush2.c.
56923         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
56924         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
56925
56926 2008-03-06  Eric Blake  <ebb9@byu.net>
56927
56928         Likewise for ftello.
56929         * modules/ftello (Dependencies): Add extensions.
56930         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
56931
56932 2008-03-06  Bruno Haible  <bruno@clisp.org>
56933
56934         * modules/fseeko (Dependencies): Add extensions.
56935         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
56936         Needed on glibc systems.
56937
56938 2008-03-06  Bruno Haible  <bruno@clisp.org>
56939
56940         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
56941         email address.
56942         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
56943
56944 2008-03-06  Bruno Haible  <bruno@clisp.org>
56945
56946         * users.txt: Add libgnupdf.
56947
56948 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
56949
56950         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
56951         (Header File Substitutes, Function Substitutes,
56952         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
56953         (Build robot for gnulib): Fix typo.
56954
56955 2008-03-06  Bruno Haible  <bruno@clisp.org>
56956
56957         * doc/gnulib-tool.texi (VCS Issues): Small updates.
56958         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
56959
56960 2008-03-06  Bruno Haible  <bruno@clisp.org>
56961
56962         * doc/func.texi: New file, extracted from doc/gnulib.texi.
56963         * doc/gnulib.texi: Include it.
56964
56965 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56966
56967         * modules/func (License): Change license to unlimited; there was
56968         no LGPL parts in the module anyway.
56969
56970 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56971
56972         * modules/__func__: Renamed to modules/func.
56973         * modules/__func__-tests: Renamed to modules/func-tests.
56974         * tests/test-__func__.c: Renamed to tests/test-func.c.
56975         * m4/__func__.m4: Renamed to m4/func.m4.
56976         * doc/gnulib.texi (__func__): Section renamed to func.
56977         Suggested by Eric Blake <ebb9@byu.net>.
56978
56979 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56980
56981         * doc/gnulib.texi (__func__): Use C99 terminology when talking
56982         about __func__.  Make example self-contained.  Suggested by Eric
56983         Blake <ebb9@byu.net>.
56984
56985         * tests/test-__func__.c (main): Avoid extraneous () around __func.
56986         Suggested by Eric Blake <ebb9@byu.net>.
56987
56988 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56989
56990         * modules/__func__: New file.
56991         * modules/__func__-tests: New file.
56992         * tests/test-__func__.c: New file.
56993         * m4/__func__.m4: New file.
56994         * doc/gnulib.texi (__func__): Document __func__ module.
56995
56996 2008-03-05  Simon Josefsson  <simon@josefsson.org>
56997
56998         * modules/byteswap (License): Re-license as LGPLv2+.
56999
57000 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57001
57002         * doc/Makefile: Add pdf target.
57003
57004 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57005
57006         * modules/inline (License): Use 'unlimited', since there are only
57007         *.m4 files in this module.
57008
57009 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
57010             Bruno Haible  <bruno@clisp.org>
57011
57012         Add support for HP C 7.1 on OpenVMS 8.3.
57013         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
57014
57015 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
57016
57017         Update VMS specifics.
57018         * lib/getopt.c [VMS]: Remove include of unixlib.h.
57019
57020 2008-03-02  Jim Meyering  <meyering@redhat.com>
57021
57022         Remove the last dependency on the "free" module.
57023         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
57024         Reported by Bob Proulx.
57025
57026         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
57027
57028         Remove useless "if" tests before free.  Deprecate "free" module.
57029         * doc/posix-functions/free.texi: Mention that this
57030         module is no longer useful.
57031         * modules/free (Notice): Say this module is obsolete.
57032         * modules/readutmp (Depends-on): Remove free.
57033         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
57034         * lib/putenv.c (putenv): Likewise.
57035         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
57036         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
57037         * tests/test-c-strcasestr.c (main): Likewise.
57038         * tests/test-c-strstr.c (main): Likewise.
57039         * tests/test-mbscasestr1.c (main): Likewise.
57040         * tests/test-mbscasestr2.c (main): Likewise.
57041         * tests/test-mbsstr1.c (main): Likewise.
57042         * tests/test-mbsstr2.c (main): Likewise.
57043         * tests/test-memmem.c (main): Likewise.
57044         * tests/test-strcasestr.c (main): Likewise.
57045         * tests/test-striconv.c (main): Likewise.
57046         * tests/test-striconveh.c (main): Likewise.
57047         * tests/test-striconveha.c (main): Likewise.
57048         * tests/test-strstr.c (main): Likewise.
57049
57050         * build-aux/git-version-gen: Adjust a comment and the Usage string.
57051
57052         bootstrap: sync from coreutils again
57053         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
57054
57055 2008-03-01  Jim Meyering  <meyering@redhat.com>
57056
57057         bootstrap: sync from coreutils
57058         * build-aux/bootstrap (update_po_files): Copy a .po file into place
57059         also when the target doesn't exist.
57060
57061 2008-03-01  Eric Blake  <ebb9@byu.net>
57062
57063         Fix bugs in last patch.
57064         * lib/memchr2.c (memchr2): Fix typo.
57065         * tests/test-memchr2.c: Test previous bug, and don't use GNU
57066         extension.
57067         Reported by Bruce Korb.
57068
57069         New module 'memchr2'.
57070         * modules/memchr2: New file.
57071         * modules/memchr2-tests: Likewise.
57072         * lib/memchr2.h: Likewise.
57073         * lib/memchr2.c: Likewise, based on memchr.c.
57074         * tests/test-memchr2.c: New test.
57075         * MODULES.html.sh (String handling): Add memchr2.
57076
57077 2008-02-29  Bruno Haible  <bruno@clisp.org>
57078
57079         * modules/freadseek-tests: New file.
57080         * tests/test-freadseek.sh: New file.
57081         * tests/test-freadseek.c: New file.
57082
57083         New module 'freadseek'.
57084         * modules/freadseek: New file.
57085         * lib/freadseek.h: New file.
57086         * lib/freadseek.c: New file.
57087         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
57088
57089 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
57090
57091         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
57092         wydawca.
57093
57094         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
57095         program_invocation_name and program_invocation_short_name are
57096         present.
57097
57098 2008-02-28  Bruno Haible  <bruno@clisp.org>
57099
57100         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
57101         * tests/test-freadptr.sh: Also test non-seekable stdin.
57102
57103 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
57104
57105         * build-aux/bootstrap (source_base, m4_base)
57106         (doc_base, tests_base): New variables.
57107         (gnulib_tool_options): Do not hardcode base directories, use
57108         the above variables instead.
57109
57110 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
57111
57112         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
57113
57114 2008-02-28  Bruno Haible  <bruno@clisp.org>
57115
57116         * modules/freadptr-tests: New file.
57117         * tests/test-freadptr.sh: New file.
57118         * tests/test-freadptr.c: New file.
57119
57120         New module 'freadptr'.
57121         * modules/freadptr: New file.
57122         * lib/freadptr.h: New file.
57123         * lib/freadptr.c: New file.
57124         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
57125
57126 2008-02-26  Karl Berry  <karl@freefriends.org>
57127
57128         Sync from Libtool:
57129         * libltdl/argz.c (argz_add, argz_count): New functions.
57130         * libltdl/argz.in.h: Declare them.
57131         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
57132
57133 2008-02-22  Bruno Haible  <bruno@clisp.org>
57134
57135         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
57136         is a pointer type.  Needed for HP-UX 10.
57137         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
57138         * doc/posix-functions/gmtime_r.texi: Likewise.
57139         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
57140
57141 2008-02-24  Bruno Haible  <bruno@clisp.org>
57142
57143         * modules/environ-tests: New file.
57144         * tests/test-environ.c: New file.
57145
57146         New module 'environ'.
57147         * modules/environ: New file.
57148         * lib/unistd.in.h (environ): New declaration.
57149         * m4/environ.m4: New file.
57150         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
57151         after use.
57152         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
57153         HAVE_DECL_ENVIRON.
57154         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
57155         HAVE_DECL_ENVIRON.
57156         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
57157         wrong claim that 'environ' is missing on some systems.
57158         * modules/execute (Depends-on): Add environ.
57159         * lib/execute.c (environ): Remove fallback declaration.
57160         * modules/pipe (Depends-on): Add environ.
57161         * lib/pipe.c (environ): Remove fallback declaration.
57162         * modules/setenv (Depends-on): Add environ.
57163         * lib/setenv.c (environ): Remove fallback declaration.
57164         * modules/unsetenv (Depends-on): Add environ.
57165         * lib/unsetenv.c (environ): Remove fallback declaration.
57166         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
57167         m4/environ.m4.
57168         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
57169         (gl_PREREQ_UNSETENV): Likewise.
57170
57171 2008-02-24  Bruno Haible  <bruno@clisp.org>
57172
57173         * doc/posix-functions/environ.texi: Document the MacOS X problem.
57174
57175 2008-02-20  Bob Proulx  <bob@proulx.com>
57176
57177         Enable use of older two part flavor 'git describe'.
57178         * build-aux/git-version-gen: If using the older two part flavor of
57179         git version then recreate the third part now present in the
57180         newer three part flavor of git describe.
57181
57182 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
57183
57184         * lib/fts.c (fts_build): Typo correction to comment.
57185
57186 2008-02-17  Bruno Haible  <bruno@clisp.org>
57187
57188         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
57189         generating no-op conflicts.
57190
57191 2008-02-17  Bruno Haible  <bruno@clisp.org>
57192
57193         Speed up by 10%.
57194         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
57195         result_entries, rather than an index-based loop.
57196
57197 2008-02-17  Bruno Haible  <bruno@clisp.org>
57198
57199         Speed up by 25%.
57200         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
57201         'hashcode_cached'.
57202         (entry_create): New function.
57203         (entry_hashcode): Use the cached hashcode if possible.
57204         (read_changelog_file, try_split_merged_entry): Use entry_create.
57205
57206 2008-02-17  Bruno Haible  <bruno@clisp.org>
57207
57208         Speed up from O(n^2) to O(n) for long ChangeLog files.
57209         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
57210         (read_changelog_file): Change implementation of entries_reversed list
57211         to rbtreehash.
57212         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
57213
57214 2008-02-17  Bruno Haible  <bruno@clisp.org>
57215
57216         New option --split-merged-entry.
57217         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
57218         (find_paragraph_end, try_split_merged_entry): New functions.
57219         (long_options): Add option --split-merged-entry.
57220         (usage): Document option --split-merged-entry.
57221         (main): Implement option --split-merged-entry.
57222         Reported by Eric Blake.
57223
57224 2008-02-17  Bruno Haible  <bruno@clisp.org>
57225
57226         * lib/git-merge-changelog.c: Include c-strstr.h.
57227         (main): Support the "git pull --rebase" situation.
57228         * modules/git-merge-changelog (Depends-on): Add c-strstr.
57229         Reported by Eric Blake.
57230
57231 2008-02-16  Eric Blake  <ebb9@byu.net>
57232
57233         Avoid doubling \ in common case of "c-maybe" quoting style.
57234         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
57235         eliding outer quotes.
57236         * lib/quotearg.h: Document this.
57237         * tests/test-quotearg.c (result_strings, inputs, results_g)
57238         (flag_results, locale_results): Test it by adding a new string to
57239         each test group.
57240         (compare_strings): Test new string.
57241
57242 2008-02-13  Eric Blake  <ebb9@byu.net>
57243
57244         Avoid trigraph quoting in default output.
57245         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
57246         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
57247         unless explicitly requested.
57248         * tests/test-quotearg.c (flag_results, main): Add additional tests.
57249
57250 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
57251
57252         Don't rely on signed integer overflowing to negative value.
57253         * lib/getugroups.c (getugroups): Include <limits.h>.
57254         Instead, compare against INT_MAX, and increment only if the test passes.
57255
57256 2008-02-13  Jim Meyering  <meyering@redhat.com>
57257         and Eric Blake  <ebb9@byu.net>
57258
57259         Avoid shadowing warning and compile errors on Linux.
57260         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
57261         forwarding macros on Linux.
57262         (dcgettext): Define a stub, for Linux.
57263         (results_g, main): Avoid warnings.
57264
57265 2008-02-12  Eric Blake  <ebb9@byu.net>
57266
57267         Silence warning in last patch.
57268         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
57269
57270         Quotearg part 4: add tests, fix c-maybe colon quoting.
57271         * lib/quotearg.h: Improve documentation.
57272         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
57273         escapes when adding outer quotes.  When quoting trigraphs, use
57274         valid C notation.  When quoting NUL, omit extra characters if next
57275         character is not digit.  Alter prototype.
57276         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
57277         callers.
57278         * modules/quotearg-tests: New module.
57279         * tests/test-quotearg.c: New test.
57280
57281 2008-02-07  Eric Blake  <ebb9@byu.net>
57282
57283         Quotearg part 3: add flag to control outer quote elision.
57284         * lib/quotearg.h (c_maybe_quoting_style): New style.
57285         (enum quoting_flags): Better documentation of flags.
57286         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
57287         c-maybe style.
57288         (quotearg_buffer_restyled): Handle new flag to elide outer
57289         quotes.
57290
57291         Quotearg part 2: add flag that can control NUL elision.
57292         * lib/quotearg.h (set_quoting_flags): New prototype.
57293         * lib/quotearg.c (struct quoting_options): Add flag field.
57294         (set_quoting_flags): New function.
57295         (quotearg_buffer_restyled): Add flags parameter.
57296         (quotearg_alloc_mem): Set the flag if length cannot be returned.
57297         (quotearg_n_options): Set the flag, since length cannot be
57298         returned.
57299         (quoting_options_from_style): Default flags correctly.
57300
57301         Quotearg part 1: more wrappers, restore quotearg_char state.
57302         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
57303         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
57304         (quotearg_colon_mem): New wrappers.
57305         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
57306         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
57307         functions.
57308         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
57309         (quotearg_colon_mem): New functions.
57310
57311 2008-02-11  Bruno Haible  <bruno@clisp.org>
57312
57313         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
57314         library in the current directory: it does not work with parallel make.
57315         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57316
57317 2008-02-11  Bruno Haible  <bruno@clisp.org>
57318
57319         * .gitattributes: New file.
57320
57321 2008-02-11  Jim Meyering  <meyering@redhat.com>
57322
57323         useless-if-before-free: Fix reversed exit values.
57324         * build-aux/useless-if-before-free: Use correct values
57325         for EXIT_MATCH and EXIT_NO_MATCH.
57326
57327         * build-aux/useless-if-before-free: Close stdout carefully.
57328
57329 2008-02-10  Bruno Haible  <bruno@clisp.org>
57330
57331         New module 'git-merge-changelog'.
57332         * modules/git-merge-changelog: New file.
57333         * lib/git-merge-changelog.c: New file.
57334
57335 2008-02-10  Jim Meyering  <meyering@redhat.com>
57336
57337         useless-if-before-free: New option: --list (-l).
57338
57339         useless-if-before-free: Don't exit immediately upon open failure.
57340         * build-aux/useless-if-before-free: Exit 2 for errors.
57341         Upon failure to open a file, don't exit immediately.
57342         Rather, just warn and continue with any remaining files.
57343
57344 2008-02-10  Bruno Haible  <bruno@clisp.org>
57345
57346         New abstract list operation 'node_set_value'.
57347         * lib/gl_list.h (gl_list_node_set_value): New function.
57348         (struct gl_list_implementation): New field node_set_value.
57349         * lib/gl_list.c (gl_list_node_set_value): New function.
57350         * lib/gl_array_list.c (gl_array_node_set_value): New function.
57351         (gl_array_list_implementation): Update.
57352         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
57353         (gl_carray_list_implementation): Update.
57354         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
57355         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
57356         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
57357         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
57358         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
57359         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
57360         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
57361         Update.
57362         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
57363         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
57364         (gl_sublist_list_implementation): Update.
57365
57366 2008-02-10  Bruno Haible  <bruno@clisp.org>
57367
57368         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
57369         Needed when ELEMENT is #defined to 'some_type *'.
57370
57371 2008-02-10  Jim Meyering  <meyering@redhat.com>
57372
57373         New script and module: useless-if-before-free
57374         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
57375         * build-aux/useless-if-before-free: New file.
57376         * modules/useless-if-before-free: New file.
57377
57378         * build-aux/gitlog-to-changelog: Use committer date, not author date.
57379
57380         xstrtol_error: Fix typo.
57381         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
57382         s/exit_failure/exit_status/.
57383
57384 2008-02-09  Jim Meyering  <meyering@redhat.com>
57385
57386         New script and module: gitlog-to-changelog
57387         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
57388         * modules/gitlog-to-changelog: New file.
57389         * build-aux/gitlog-to-changelog: New file.
57390
57391 2008-02-08  Jim Meyering  <meyering@redhat.com>
57392
57393         Avoid two "parameter unused" warnings.
57394         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
57395         Mark "st" as used.
57396
57397         Use "git COMMAND", not "git-COMMAND".
57398         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
57399         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
57400         * build-aux/git-version-gen: Use "git status", not "git-status".
57401
57402 2008-02-07  Bruno Haible  <bruno@clisp.org>
57403
57404         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
57405         Avoids a crash on Windows Vista.
57406         Reported by Adam Strzelecki <ono@java.pl> via
57407         Simon Josefsson <simon@josefsson.org>.
57408
57409 2008-02-06  Bruno Haible  <bruno@clisp.org>
57410
57411         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
57412         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
57413         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
57414         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
57415         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
57416         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57417         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
57418         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
57419         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57420         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57421         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57422         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57423         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57424         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57425         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57426         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
57427         left-adjust flag.
57428         * tests/test-snprintf-posix.h (test_function): Likewise.
57429         * tests/test-sprintf-posix.h (test_function): Likewise.
57430         * tests/test-vasprintf-posix.c (test_function): Likewise.
57431         * doc/posix-functions/fprintf.texi: Update.
57432         * doc/posix-functions/printf.texi: Update.
57433         * doc/posix-functions/snprintf.texi: Update.
57434         * doc/posix-functions/sprintf.texi: Update.
57435         * doc/posix-functions/vfprintf.texi: Update.
57436         * doc/posix-functions/vprintf.texi: Update.
57437         * doc/posix-functions/vsnprintf.texi: Update.
57438         * doc/posix-functions/vsprintf.texi: Update.
57439         Reported by Peter Fales <psfales@alcatel-lucent.com>.
57440
57441 2008-02-06  Bruno Haible  <bruno@clisp.org>
57442
57443         Fix bug introduced on 2008-01-26.
57444         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
57445
57446 2008-02-06  Bruno Haible  <bruno@clisp.org>
57447
57448         Fix bug introduced on 2007-06-10.
57449         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
57450         !NEED_PRINTF_FLAG_ZERO.
57451
57452 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
57453
57454         getloadavg: use libperfstat on AIX5
57455         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
57456
57457 2008-02-03  Bruno Haible  <bruno@clisp.org>
57458
57459         * lib/diffseq.h: Add comments about required #includes.
57460         Reported by Michael Biggs <gnulib@doubleplum.net>.
57461
57462 2008-02-01  Bruno Haible  <bruno@clisp.org>
57463
57464         * users.txt: Add gnuit.
57465
57466 2008-01-31  Bruno Haible  <bruno@clisp.org>
57467
57468         * lib/md4.c (set_uint32): Mark as inline.
57469         * lib/md5.c (set_uint32): Likewise.
57470         * lib/sha1.c (set_uint32): Likewise.
57471         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
57472         * m4/md5.m4 (gl_MD5): Likewise.
57473         * m4/sha1.m4 (gl_SHA1): Likewise.
57474
57475 2008-01-31  Jim Meyering  <meyering@redhat.com>
57476
57477         Use "sizeof VAR", rather than a literal "4".
57478         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
57479         * lib/md4.c (md4_read_ctx): Likewise.
57480         * lib/sha1.c (sha1_read_ctx): Likewise.
57481
57482 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57483
57484         * tests/test-sha1.c: New file, based on test-md5.c.
57485
57486         * modules/crypto/sha1-tests: New file.
57487
57488 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57489
57490         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
57491
57492 2008-01-31  Jim Meyering  <meyering@redhat.com>
57493
57494         Prefer "sizeof v" over the equivalent "4".
57495         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
57496         * lib/md5.c (set_uint32): Likewise.
57497         * lib/sha1.c (set_uint32): Likewise.
57498
57499 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57500
57501         * lib/sha1.c (set_uint32): Mark function as static.
57502
57503 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57504
57505         md2: clarify comments to say that alignment is not required.
57506         * lib/md2.h: Remove warning about alignment in comment.
57507         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
57508         never been required.
57509
57510 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57511
57512         md4: adapt alignment constraint fix from sha1.
57513         * lib/md4.c (set_uint32): New function, from sha1.c
57514         (md4_read_ctx): Use it.
57515         (md4_finish_ctx): Doc fix.
57516         * lib/md4.h: Doc fix.
57517
57518 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57519
57520         md5: adapt alignment constraint fix from sha1.
57521         * lib/md5.c (set_uint32): New function, from sha1.c
57522         (md5_read_ctx): Use it.
57523         (md5_finish_ctx): Doc fix.
57524         * lib/md5.h: Doc fix.
57525
57526 2008-01-30  Peter Palfrader  <weasel@debian.org>
57527
57528         sha1: remove the result buffer alignment constraint
57529         * lib/sha1.c (set_uint32): New function.
57530         (sha1_read_ctx): Rewrite to remove the result buffer alignment
57531         constraint.
57532         (sha1_finish_ctx): Remove comment warning about alignment constraint.
57533         * lib/sha1.h: Likewise.
57534
57535 2008-01-30  Andreas Schwab  <schwab@suse.de>
57536             Bruno Haible  <bruno@clisp.org>
57537
57538         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
57539         correct definition of LDBL_MIN_EXP.
57540
57541 2008-01-30  Karl Berry  <karl@gnu.org>
57542
57543         * config/srclist-update: try to preserve x bit on updates.
57544         * config/srclistvars.sh: update for karl.
57545
57546 2008-01-29  Jim Meyering  <meyering@redhat.com>
57547
57548         vasnprintf.c: Avoid warning about unused label
57549         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
57550         "overflow" label definition and associated code with the
57551         same cpp condition that guards the sole use of that label.
57552
57553 2008-01-26  Bruno Haible  <bruno@clisp.org>
57554
57555         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
57556         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
57557         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
57558         * lib/isnanl-nolibm.h (isnanl): Likewise.
57559         Reported by Paul Eggert <eggert@cs.ucla.edu>.
57560
57561 2008-01-26  Bruno Haible  <bruno@clisp.org>
57562
57563         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
57564         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
57565
57566 2008-01-26  Bruno Haible  <bruno@clisp.org>
57567
57568         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
57569         GCC >= 4.0 built-in.
57570         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
57571
57572 2008-01-26  Bruno Haible  <bruno@clisp.org>
57573
57574         Rename isnan, applicable to 'double' only, to isnand.
57575         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
57576         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
57577         (configure.ac): Update.
57578         (Include): Replace "isnan.h" with "isnand.h".
57579         * m4/isnand.m4: Renamed from m4/isnan.m4.
57580         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
57581         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
57582         instead of isnan.c.
57583         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
57584         instead of HAVE_ISNAN_IN_LIBC.
57585         (isnand): Renamed from isnan.
57586         * lib/isnand.c: New file.
57587         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
57588         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
57589         (Makefile.am): Update.
57590         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
57591         Include isnand.h instead of isnan.h.
57592         (main): Test isnand instead of isnan.
57593         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
57594         isnan-nolibm.
57595         * modules/frexp (Depends-on): Likewise.
57596         * modules/frexp-tests (Depends-on): Likewise.
57597         * modules/frexp-nolibm (Depends-on): Likewise.
57598         * modules/frexp-nolibm-tests (Depends-on): Likewise.
57599         * modules/isfinite (Depends-on): Likewise.
57600         * modules/round-tests (Depends-on): Likewise.
57601         * modules/signbit (Depends-on): Likewise.
57602         * modules/signbit-tests (Depends-on): Likewise.
57603         * modules/snprintf-posix (Depends-on): Likewise.
57604         * modules/sprintf-posix (Depends-on): Likewise.
57605         * modules/trunc-tests (Depends-on): Likewise.
57606         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
57607         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
57608         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
57609         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
57610         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
57611         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
57612         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
57613         * modules/vasnprintf-posix (Depends-on): Likewise.
57614         * modules/vasprintf-posix (Depends-on): Likewise.
57615         * modules/vfprintf-posix (Depends-on): Likewise.
57616         * modules/vsnprintf-posix (Depends-on): Likewise.
57617         * modules/vsprintf-posix (Depends-on): Likewise.
57618         * lib/frexp.c: Include isnand.h instead of isnan.h.
57619         (ISNAN): Set to isnand instead of isnan.
57620         * lib/isfinite.c: Include isnand.h instead of isnan.h.
57621         (gl_isfinited): Use isnand instead of isnan.
57622         * lib/signbitd.c: Include isnand.h instead of isnan.h.
57623         (gl_signbitd): Use isnand instead of isnan.
57624         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
57625         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
57626         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
57627         (main): Use isnand instead of isnan.
57628         * tests/test-round1.c: Include isnand.h.
57629         (main): Use isnand instead of isnan.
57630         * tests/test-round2.c: Include isnand.h instead of isnan.h.
57631         (ISNAN): Set to isnand instead of isnan.
57632         * tests/test-trunc1.c: Include isnand.h.
57633         (main): Use isnand instead of isnan.
57634         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
57635         (equal): Use isnand instead of isnan.
57636         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
57637         isnand-nolibm.
57638         * NEWS: Mention the change.
57639
57640 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
57641             Bruno Haible  <bruno@clisp.org>
57642
57643         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
57644         the GCC builtins for signbits are present and set
57645         REPLACE_SIGNBIT_USING_GCC if so.
57646         * lib/math.in.h (signbit): Define using GCC builtins if
57647         REPLACE_SIGNBIT_USING_GCC is set.
57648         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
57649         REPLACE_SIGNBIT_USING_GCC.
57650         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
57651
57652 2008-01-25  Jim Meyering  <meyering@redhat.com>
57653
57654         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
57655         * lib/poll.c: Include <config.h>, not "config.h".
57656         * tests/test-getaddrinfo.c: Likewise.
57657
57658 2008-01-25  Simon Josefsson  <simon@josefsson.org>
57659
57660         * modules/sockets-tests: New file.
57661
57662 2008-01-24  Simon Josefsson  <simon@josefsson.org>
57663
57664         * modules/sockets: New module, can be used to call WSA_Startup and
57665         WSA_Cleanup when needed.
57666
57667         * lib/sockets.h, lib/sockets.c: New files.
57668
57669         * m4/sockets.m4: New file.
57670
57671         * tests/test-sockets.c: New file.
57672
57673 2008-01-19  Bruno Haible  <bruno@clisp.org>
57674
57675         * doc/posix-headers: Renamed from doc/headers.
57676         * doc/posix-functions: Renamed from doc/functions.
57677         * doc/gnulib.texi: Update.
57678
57679 2008-01-19  Bruno Haible  <bruno@clisp.org>
57680
57681         * doc/glibc-functions/strcasestr.texi: Include contents of
57682         doc/functions/strcasestr.texi, fixing the list of platforms.
57683         * doc/functions/strcasestr.texi: Remove file.
57684
57685 2008-01-19  Bruno Haible  <bruno@clisp.org>
57686
57687         * doc/glibc-functions/memmem.texi: Include contents of
57688         doc/functions/memmem.texi.
57689         * doc/functions/memmem.texi: Remove file.
57690
57691 2008-01-18  Bruno Haible  <bruno@clisp.org>
57692
57693         * doc/glibc-functions/*.texi: New files.
57694         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
57695         to use the new files.
57696
57697 2008-01-17  Bruno Haible  <bruno@clisp.org>
57698
57699         * tests/test-gethostname.c (main): Fix printf statement.
57700
57701 2008-01-17  Simon Josefsson  <simon@josefsson.org>
57702
57703         * modules/gethostname-tests: New file.
57704
57705         * tests/test-gethostname.c: New file.
57706
57707 2008-01-17  Simon Josefsson  <simon@josefsson.org>
57708
57709         * lib/gethostname.c: Include string.h unconditionally, strncpy is
57710         used by the UNAME case.  Reported by Bruno Haible
57711         <bruno@clisp.org>.
57712
57713 2008-01-17  Eric Blake  <ebb9@byu.net>
57714
57715         Convert c-strcasestr to be more efficient.
57716         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
57717         (Depends-on): Add c-strcase, remove malloca, strnlen.
57718         * tests/test-c-strcasestr.c (main): Enhance test.
57719         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
57720
57721 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
57722
57723         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
57724         Use it in creating po/Makevars.
57725
57726 2008-01-15  Simon Josefsson  <simon@josefsson.org>
57727
57728         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
57729         Applications that requires it should initialize libgcrypt
57730         manually.
57731
57732 2008-01-16  Simon Josefsson  <simon@josefsson.org>
57733
57734         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
57735
57736 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
57737
57738         Fix problem with getdate on mingw32 reported by Simon Josefsson
57739         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
57740         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
57741         tzname", when deciding whether to declare tzname.
57742         * lib/strftime.c (tzname): Likewise.
57743
57744 2008-01-15  Bruno Haible  <bruno@clisp.org>
57745
57746         Work around a MacOS X 10.5 bug in frexpl().
57747         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
57748         * doc/functions/frexpl.texi: Document the bug.
57749         Reported by Elias Pipping <pipping@gentoo.org>.
57750
57751 2008-01-14  Eric Blake  <ebb9@byu.net>
57752
57753         Touch up previous patch.
57754         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
57755         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
57756
57757         Convert strcasestr module to use Two-Way algorithm.
57758         * modules/strcasestr-simple: New module, based on the old
57759         strcasestr, but with Two-Way rather than KMP.
57760         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
57761         * lib/string.in.h (rpl_strcasestr): Declare.
57762         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
57763         performance.
57764         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
57765         * modules/string (Makefile.am): Support strcasestr.
57766         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
57767         * modules/strcasestr-tests (Depends-on): Check for alarm.
57768         * tests/test-strcasestr.c: Augment test.
57769         * lib/str-two-way.h: Clean up stray macro.
57770         * NEWS: Document new module.
57771         * MODULES.html.sh (string handling): Likewise.
57772         * doc/functions/strcasestr.texi: New file.
57773         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
57774         here, since it is not a POSIX function.
57775
57776 2008-01-14  Colin Watson  <cjwatson@debian.org>
57777             Bruno Haible  <bruno@clisp.org>
57778
57779         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
57780         works fine; if not, set REPLACE_STRSIGNAL.
57781         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
57782         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57783         REPLACE_STRSIGNAL.
57784         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
57785         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
57786         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
57787
57788 2008-01-14  Bruno Haible  <bruno@clisp.org>
57789
57790         * modules/strsignal (Include): Change to <string.h>.
57791
57792 2008-01-14  Colin Watson  <cjwatson@debian.org>
57793
57794         * modules/argp (Notice): Add a notice recommending to change
57795         XGETTEXT_OPTIONS.
57796         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
57797
57798 2008-01-13  Colin Watson  <cjwatson@debian.org>
57799
57800         * modules/strsignal-tests: New file.
57801         * tests/test-strsignal.c: New file.
57802
57803         * lib/strsignal.c: New file, from glibc with modifications.
57804         * lib/siglist.h: New file, from glibc with modifications.
57805         * lib/string.in.h (strsignal): New declaration.
57806         * m4/strsignal.m4: New file.
57807         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57808         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
57809         * modules/strsignal: New file.
57810         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
57811         HAVE_DECL_STRSIGNAL.
57812
57813 2008-01-13  Bruno Haible  <bruno@clisp.org>
57814
57815         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
57816         locale encoding is not ASCII. Needed for OpenBSD 4.0.
57817         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
57818         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
57819
57820 2008-01-13  Bruno Haible  <bruno@clisp.org>
57821
57822         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
57823         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
57824         * lib/argp.h (__attribute__): Likewise.
57825         * lib/c-stack.c (__attribute__): Likewise.
57826         * lib/error.h (__attribute__): Likewise.
57827         * lib/fts.c (__attribute__): Likewise.
57828         * lib/openat.h (__attribute__): Likewise.
57829         * lib/stdio.in.h (__attribute__): Likewise.
57830         * lib/string.in.h (__attribute__): Likewise.
57831         * lib/utimens.c (__attribute__): Likewise.
57832         * lib/vasnprintf.h (__attribute__): Likewise.
57833         * lib/xalloc.h (__attribute__): Likewise.
57834         * lib/xprintf.h (__attribute__): Likewise.
57835         * lib/xstrtol.h (__attribute__): Likewise.
57836         * lib/xvasprintf.h (__attribute__): Likewise.
57837
57838 2008-01-12  Bruno Haible  <bruno@clisp.org>
57839
57840         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
57841         * doc/glibc-headers/a.out.texi: New file.
57842         * doc/glibc-headers/aliases.texi: New file.
57843         * doc/glibc-headers/alloca.texi: New file.
57844         * doc/glibc-headers/ar.texi: New file.
57845         * doc/glibc-headers/argp.texi: New file.
57846         * doc/glibc-headers/argz.texi: New file.
57847         * doc/glibc-headers/byteswap.texi: New file.
57848         * doc/glibc-headers/crypt.texi: New file.
57849         * doc/glibc-headers/endian.texi: New file.
57850         * doc/glibc-headers/envz.texi: New file.
57851         * doc/glibc-headers/err.texi: New file.
57852         * doc/glibc-headers/error.texi: New file.
57853         * doc/glibc-headers/execinfo.texi: New file.
57854         * doc/glibc-headers/fpu_control.texi: New file.
57855         * doc/glibc-headers/fstab.texi: New file.
57856         * doc/glibc-headers/fts.texi: New file.
57857         * doc/glibc-headers/getopt.texi: New file.
57858         * doc/glibc-headers/ieee754.texi: New file.
57859         * doc/glibc-headers/ifaddrs.texi: New file.
57860         * doc/glibc-headers/libintl.texi: New file.
57861         * doc/glibc-headers/mcheck.texi: New file.
57862         * doc/glibc-headers/mntent.texi: New file.
57863         * doc/glibc-headers/obstack.texi: New file.
57864         * doc/glibc-headers/paths.texi: New file.
57865         * doc/glibc-headers/printf.texi: New file.
57866         * doc/glibc-headers/pty.texi: New file.
57867         * doc/glibc-headers/resolv.texi: New file.
57868         * doc/glibc-headers/shadow.texi: New file.
57869         * doc/glibc-headers/sysexits.texi: New file.
57870         * doc/glibc-headers/ttyent.texi: New file.
57871
57872 2008-01-12  Jim Meyering  <meyering@redhat.com>
57873
57874         announce-gen: emit Gnulib's git-based version string.
57875         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
57876         New option --gnulib-version=V, where V is expected to be
57877         the output of running git describe in the gnulib directory.
57878         (get_tool_versions): Request feedback on xdelta.  I suspect it's
57879         not useful, and plan to stop publishing an xdelta file with each
57880         coreutils release.
57881
57882         * build-aux/announce-gen: Also check for lzma-compressed files.
57883
57884 2008-01-11  Bruno Haible  <bruno@clisp.org>
57885
57886         * tests/test-memmem.c (main): Increase maximum allowed time.
57887         * tests/test-strstr.c (main): Likewise.
57888
57889 2008-01-11  Bruno Haible  <bruno@clisp.org>
57890
57891         * doc/functions/memmem.texi: Add more precisions about platforms.
57892         * doc/functions/strstr.texi: Likewise.
57893
57894 2008-01-10  Eric Blake  <ebb9@byu.net>
57895
57896         * m4/strstr.m4: Delete cruft from copy-n-paste.
57897         Reported by Bruno Haible.
57898
57899 2008-01-10  Bruno Haible  <bruno@clisp.org>
57900
57901         Make c-strstr rely on strstr.
57902         * lib/c-strstr.c: Don't include str-kmp.h.
57903         (c_strstr): Define in terms of strstr.
57904         * modules/c-strstr (Files): Remove lib/str-kmp.h.
57905         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
57906
57907 2008-01-10  Bruno Haible  <bruno@clisp.org>
57908
57909         * doc/gnulib.texi (String Functions in C Locale): New section.
57910         * doc/c-ctype.texi: New file.
57911         * doc/c-strcase.texi: New file.
57912         * doc/c-strcaseeq.texi: New file.
57913         * doc/c-strcasestr.texi: New file.
57914         * doc/c-strstr.texi: New file.
57915         * doc/c-strtod.texi: New file.
57916         * doc/c-strtold.texi: New file.
57917
57918 2008-01-10  Eric Blake  <ebb9@byu.net>
57919
57920         * lib/relocatable.h: Fix a comment.
57921
57922 2008-01-10  Eric Blake  <ebb9@byu.net>
57923
57924         Share two-way algorithm.
57925         * lib/str-two-way.h: New file, merged from...
57926         * lib/memmem.c: ...here...
57927         * lib/strstr.c: ...and here.
57928         * modules/memmem (Files): Use it.
57929         * modules/strstr (Files): Likewise.
57930
57931         Avoid quadratic strstr implementations.
57932         * lib/strstr.c: New file.
57933         * m4/strstr.m4: Likewise.
57934         * modules/strstr: Likewise.
57935         * modules/strstr-tests: Likewise.
57936         * tests/test-strstr.c: Likewise.
57937         * lib/string.in.h (rpl_strstr): Declare.
57938         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
57939         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
57940         * modules/string (Makefile.am): Likewise.
57941         * MODULES.html.sh (string handling): Mention new module.
57942         * doc/functions/strstr.texi (strstr): Document the bug.
57943
57944 2008-01-10  Bruno Haible  <bruno@clisp.org>
57945
57946         * lib/relocatable.h (relocate): State whether result is freshly
57947         allocated or not.
57948         * lib/relocatable.c (relocate): Return a freshly allocated string
57949         instead of a pointer to a privately held string.
57950         Reported by Sylvain Beucler <beuc@gnu.org>.
57951
57952 2008-01-10  Colin Watson  <cjwatson@debian.org>
57953
57954         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
57955         s/S_ISNLK/S_ISLNK/.
57956
57957 2008-01-09  Bruno Haible  <bruno@clisp.org>
57958
57959         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
57960         and other files.
57961         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
57962         if it's only a guess.
57963         * modules/memmem: Simplify by depending on memmem-simple.
57964
57965 2008-01-09  Bruno Haible  <bruno@clisp.org>
57966
57967         Work around OpenBSD 4.0 tdelete() bug.
57968         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
57969         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
57970         macros and don't redefine the enum values.
57971         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
57972         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
57973         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
57974
57975 2008-01-09  Bruno Haible  <bruno@clisp.org>
57976
57977         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
57978         (main): Don't perform the tests if setlocale did not install a UTF-8
57979         locale. Needed on OpenBSD 4.0.
57980         * modules/wcwidth-tests (Depends-on): Add localcharset.
57981
57982 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
57983
57984         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
57985         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
57986         * NEWS: announce this.
57987         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
57988
57989 2008-01-09  Simon Josefsson  <simon@josefsson.org>
57990         and Eric Blake  <ebb9@byu.net>
57991
57992         Add memmem-simple module.
57993         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
57994         (gl_FUNC_MEMMEM): Separate performance from presence checks.
57995         * modules/memmem-simple: New file.
57996         * modules/memmem (Description): Tweak.
57997         * MODULES.html.sh (string handling): Mention new module.
57998         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
57999         addressed by memmem-simple.
58000         * NEWS: Document the difference.
58001
58002 2008-01-09  Eric Blake  <ebb9@byu.net>
58003
58004         Give gcc some memmem optimization hints.
58005         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
58006         (strcasestr): Declare as pure.
58007         * modules/memmem (Maintainer): Claim my implementation.
58008
58009 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58010
58011         Support AIX 6.1 and higher.
58012         * build-aux/config.libpath: Likewise.
58013         * build-aux/config.rpath: Likewise.
58014
58015 2008-01-08  Jim Meyering  <meyering@redhat.com>
58016             Bruno Haible  <bruno@clisp.org>
58017
58018         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
58019         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
58020         Reported by Peter Fales in
58021         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
58022
58023 2008-01-08  Bruno Haible  <bruno@clisp.org>
58024
58025         * modules/unictype/category-of (Depends-on): Add
58026         unictype/category-none.
58027         * modules/unictype/category-and-tests (Depends-on): Add
58028         unictype/category-{L,N,Lu,Nd}.
58029         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
58030         * modules/unictype/category-or-tests (Depends-on): Add
58031         unictype/category-{L,N}.
58032         * modules/unictype/category-name-tests (Depends-on): Add
58033         unictype/category-{Z,Nl}.
58034         Reported by Simon Josefsson.
58035
58036 2008-01-08  Bruno Haible  <bruno@clisp.org>
58037
58038         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
58039         convention better.
58040         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
58041         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
58042         Reported by Peter Miller <millerp@canb.auug.org.au>.
58043
58044 2008-01-08  Eric Blake  <ebb9@byu.net>
58045
58046         Rewrite memmem to guarantee linear complexity without malloc.
58047         * lib/memmem.c (memmem): Use Two-Way rather than
58048         Knuth-Morris-Pratt, to allow O(1) space usage.
58049         (critical_factorization, two_way_short_needle)
58050         (two_way_long_needle): New functions.
58051         (knuth_morris_pratt): Delete.
58052         * modules/memmem (Depends-on): No longer need malloca or stdbool.
58053         Add stdint.
58054         * tests/test-memmem.c (main): Add tests for periodic needle and
58055         sublinear performance.
58056         * doc/functions/memmem.texi (memmem): Document other deficiencies
58057         in cygwin and older glibc.
58058
58059 2008-01-08  Bruno Haible  <bruno@clisp.org>
58060
58061         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
58062         augmentation.
58063
58064 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
58065
58066         Add a configure time option: --disable-acl.
58067         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
58068         AC_ARG_ENABLE(acl).
58069
58070 2008-01-06  Simon Josefsson  <simon@josefsson.org>
58071
58072         * tests/test-localename.c: Don't include obsolete "setenv.h".
58073
58074         * modules/localename-tests (Depends-on): Need unsetenv.
58075
58076 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58077
58078         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
58079
58080 2008-01-06  Colin Watson  <cjwatson@debian.org>
58081
58082         * users.txt: Add man-db.
58083
58084 2008-01-07  Bruno Haible  <bruno@clisp.org>
58085
58086         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
58087         previous section name.
58088
58089 2008-01-07  Bruno Haible  <bruno@clisp.org>
58090
58091         * lib/progname.c (set_program_name): Don't strip off a leading
58092         "lt-" prefix outside a .libs directory.
58093         Suggested by Paul Eggert.
58094
58095 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
58096             Bruno Haible  <bruno@clisp.org>
58097
58098         Improve memory cleanup in 'relocatable' module.
58099         * lib/relocatable.h (compute_curr_prefix): Change return type to
58100         'char *'.
58101         * lib/relocatable.c (compute_curr_prefix): Change return type to
58102         'char *'. Free curr_installdir after use.
58103         (relocate): Free curr_prefix_better after use.
58104         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
58105
58106 2008-01-01  Bruno Haible  <bruno@clisp.org>
58107
58108         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
58109         failure on older glibc systems.
58110         Reported by Peter Fales <psfales@alcatel-lucent.com>.
58111
58112 2008-01-05  Eric Blake  <ebb9@byu.net>
58113
58114         Avoid quadratic system memmem.
58115         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
58116         Reported by Ralf Wildenhues.
58117
58118         Fix memmem test for mingw.
58119         * modules/memmem-tests (configure.ac): Check for alarm.
58120         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
58121         it.
58122         * doc/functions/memmem.texi: New file.
58123         * doc/gnulib.texi (Function Substitutes): Add memmem.
58124         Reported by Bruno Haible.
58125
58126 2008-01-04  Bruno Haible  <bruno@clisp.org>
58127
58128         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
58129         Require gl_HEADER_STRINGS_H_DEFAULTS, not
58130         gl_HEADER_STRING_H_DEFAULTS.
58131
58132 2008-01-04  Eric Blake  <ebb9@byu.net>
58133
58134         Shorten duration of memmem test.
58135         * tests/test-memmem.c (main): Use alarm to declare failure if test
58136         is taking too long.
58137         Reported by Ralf Wildenhues.
58138
58139 2007-12-21  Simon Josefsson  <simon@josefsson.org>
58140
58141         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
58142         string, needed by strerror.
58143
58144 2008-01-03  Colin Watson  <cjwatson@debian.org>
58145             Bruno Haible  <bruno@clisp.org>
58146
58147         * doc/gnulib-tool.texi (Localization): New section.
58148
58149 2008-01-02  Bruno Haible  <bruno@clisp.org>
58150
58151         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
58152         variables to 'unsigned char *' type.
58153         Reported by Paul Eggert.
58154
58155 2008-01-02  Jim Meyering  <jim@meyering.net>
58156
58157         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
58158
58159 2007-12-31  Jim Meyering  <jim@meyering.net>
58160
58161         Avoid use of private FTS type name.
58162         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
58163
58164 2007-12-30  Karl Berry  <karl@gnu.org>
58165
58166         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
58167         work around defect in Texinfo and/or the standalone Info browser.
58168
58169 2007-12-30  Bruno Haible  <bruno@clisp.org>
58170
58171         Unify 5 copies of the KMP code.
58172         * lib/str-kmp.h: New file.
58173         * lib/c-strcasestr.c: Include str-kmp.h.
58174         (knuth_morris_pratt): Remove function.
58175         (c_strcasestr): Update.
58176         * lib/c-strstr.c: Include str-kmp.h.
58177         (knuth_morris_pratt): Remove function.
58178         (c_strcasestr): Update.
58179         * lib/mbscasestr.c: Include str-kmp.h.
58180         (knuth_morris_pratt_unibyte): Remove function.
58181         * lib/mbsstr.c: Include str-kmp.h.
58182         (knuth_morris_pratt_unibyte): Remove function.
58183         * lib/strcasestr.c: Include str-kmp.h.
58184         (knuth_morris_pratt): Remove function.
58185         (strcasestr): Update.
58186         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
58187         * modules/c-strstr (Files): Likewise.
58188         * modules/mbscasestr (Files): Likewise.
58189         * modules/mbsstr (Files): Likewise.
58190         * modules/strcasestr (Files): Likewise.
58191         Suggested by Paul Eggert.
58192
58193 2007-12-30  Bruno Haible  <bruno@clisp.org>
58194
58195         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
58196         defined.
58197
58198 2007-12-30  Bruno Haible  <bruno@clisp.org>
58199
58200         * lib/xmalloca.h: Include xalloc.h.
58201         (xnmalloca): New macro.
58202
58203 2007-12-30  Bruno Haible  <bruno@clisp.org>
58204
58205         * lib/malloca.h (nmalloca): New macro.
58206         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
58207         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
58208         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
58209         knuth_morris_pratt_multibyte): Likewise.
58210         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
58211         knuth_morris_pratt_multibyte): Likewise.
58212         * lib/memmem.c (knuth_morris_pratt): Likewise.
58213         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
58214
58215 2007-12-25  Bruno Haible  <bruno@clisp.org>
58216
58217         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
58218         * lib/glob.c: Don't include openat.h.
58219         (link_exists2_p): Add back the code that deals with the
58220         !GLOB_ALTDIRFUNC case.
58221         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
58222         let it do the filename concatenation.
58223         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
58224         * modules/glob (Depends-on): Remove openat.
58225
58226 2007-12-31  Bruno Haible  <bruno@clisp.org>
58227
58228         * modules/dirfd (License): Change to LGPLv2+.
58229         Approved by Jim Meyering.
58230
58231 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
58232
58233         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
58234         when multiplying M by sizeof (size_t).
58235
58236 2007-12-10  Martin Lambers  <marlam@marlam.de>
58237
58238         Override getpagesize on mingw.
58239         * lib/getpagesize.c: New file.
58240         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
58241         * modules/getpagesize (Files): Add lib/getpagesize.c.
58242         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
58243         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
58244         REPLACE_GETPAGESIZE.
58245         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
58246
58247 2007-12-25  Bruno Haible  <bruno@clisp.org>
58248
58249         * modules/localcharset (Notice): New field.
58250         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
58251         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
58252
58253 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
58254             Bruno Haible  <bruno@clisp.org>
58255
58256         Avoid using the syntax symbol() in formatted documentation.
58257         * MODULES.html.sh (func_module): When replacing symbol() with a
58258         hyperlink, remove the parentheses. Show an error if some remain.
58259         Recognize and render the '...' syntax.
58260         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
58261         Rework. Add paragraph about GCC's inlining.
58262         * doc/alloca.texi: Likewise.
58263         * doc/error.texi: Remove parentheses from symbol reference.
58264         * doc/gnulib-intro.texi: Likewise.
58265         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
58266         * modules/fnmatch (Description): Reword to say "the ... function".
58267         * modules/full-read (Description): Likewise.
58268         * modules/full-write (Description): Likewise.
58269         * modules/safe-read (Description): Likewise.
58270         * modules/safe-write (Description): Likewise.
58271         * modules/strchrnul (Description): Likewise.
58272         * modules/trim (Description): Likewise.
58273         * modules/error (Description): Remove parentheses from symbol
58274         references.
58275         * modules/verror (Description): Likewise.
58276         Reported by Karl Berry.
58277
58278 2007-12-25  Bruno Haible  <bruno@clisp.org>
58279
58280         Fixup after 2007-10-16 commit.
58281         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
58282
58283 2007-12-24  Bruno Haible  <bruno@clisp.org>
58284
58285         Make --enable-relocatable work with DESTDIR.
58286         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
58287         to compute installdir from destprog.
58288         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
58289         also set the RELOC_DESTDIR variable.
58290         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58291
58292 2007-12-24  Bruno Haible  <bruno@clisp.org>
58293
58294         Fix link error due to xalloc_die().
58295         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
58296         of xreadlink.
58297         * lib/relocwrapper.c: Update comments.
58298         * build-aux/install-reloc: Remove xreadlink.c from file list.
58299         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
58300         xreadlink.c.
58301         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58302
58303 2007-12-24  Bruno Haible  <bruno@clisp.org>
58304
58305         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
58306         * lib/setenv.h: Remove file.
58307         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
58308         lib/setenv.h.
58309         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
58310         (Depends-on): Add stdlib.
58311         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
58312         gl_FUNC_UNSETENV.
58313         (Include): Replace setenv.h with <stdlib.h>.
58314         * modules/unsetenv: New file.
58315         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
58316         * lib/unsetenv.c: Include <stdlib.h> first.
58317         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
58318         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
58319         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
58320         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
58321         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
58322         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
58323         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
58324         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
58325         * doc/functions/unsetenv.texi: Update.
58326         * modules/xsetenv (Depends-on): Add unsetenv.
58327         * modules/getdate (Depends-on): Likewise.
58328         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
58329         * lib/xsetenv.c: Don't include setenv.h.
58330         * lib/getdate.y: Likewise.
58331         * lib/relocwrapper.c: Likewise.
58332         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
58333         (Depends-on): Add stdlib.
58334         * NEWS: Mention the changes.
58335         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58336
58337 2007-12-23  Bruno Haible  <bruno@clisp.org>
58338
58339         * lib/memmem.c (memmem): Use lowercase variable names. Tab
58340         indentation.
58341
58342 2007-12-23  Bruno Haible  <bruno@clisp.org>
58343
58344         * lib/c-strcasestr.c: Add more comments.
58345         * lib/c-strstr.c: Likewise.
58346         * lib/mbscasestr.c: Likewise.
58347         * lib/mbsstr.c: Likewise.
58348         * lib/strcasestr.c: Likewise.
58349         * lib/memmem.c: Likewise.
58350
58351 2007-12-23  Bruno Haible  <bruno@clisp.org>
58352
58353         * tests/test-memmem.c: Include <string.h> first.
58354
58355 2007-12-22  Bruno Haible  <bruno@clisp.org>
58356
58357         * gnulib-tool (func_create_testdir): Change $auxdir while generating
58358         the contents of $testsbase.
58359         Reported by Ralf Wildenhues.
58360
58361 2007-12-22  Bruno Haible  <bruno@clisp.org>
58362
58363         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
58364         two variables local_ldadd_before, local_ldadd_last.
58365
58366 2007-12-20  Eric Blake  <ebb9@byu.net>
58367
58368         Work around circular library issue when cross-compiling.
58369         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
58370         that progname.o does not need to pull in rpl_memcmp.
58371
58372 2007-12-19  Eric Blake  <ebb9@byu.net>
58373
58374         Fix memmem to avoid O(n^2) worst-case complexity.
58375         * lib/memmem.c (knuth_morris_pratt): New function.
58376         (memmem): Use it if first few naive iterations fail.
58377         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
58378         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
58379         * modules/memchr (License): Likewise.
58380         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
58381         malloca.
58382         * tests/test-memmem.c: Rewrite, borrowing ideas from
58383         test-mbsstr1.c; the old version wouldn't even compile!
58384         * modules/memmem-tests: New file.
58385         * lib/string.in.h (rpl_memmem): Add declaration.
58386         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
58387         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
58388         REPLACE_MEMMEM.
58389
58390 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
58391
58392         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
58393         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
58394         before any system include files, and undef after them all.  This
58395         should fix a problem on VMS reported by John E. Malmberg in
58396         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
58397
58398 2007-12-17  Eric Blake  <ebb9@byu.net>
58399
58400         Revert addition of verify, for BSD/OS.
58401         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
58402         can't handle large files, for the sake of obsolete platforms.
58403         * modules/fseeko (Depends-on): Remove verify.
58404         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
58405         * doc/functions/ftello.texi (ftello): Likewise.
58406         * doc/functions/fgetpos.texi (fgetpos): Likewise.
58407         Reported by Larry Jones.
58408
58409 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
58410
58411         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
58412         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
58413
58414 2007-12-17  Jim Meyering  <meyering@redhat.com>
58415
58416         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
58417         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
58418         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
58419         * modules/getcwd (Depends-on): Add openat.
58420         Reported by Petr Salinger.
58421
58422 2007-12-17  Bruno Haible  <bruno@clisp.org>
58423
58424         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
58425         avoid a segmentation fault of the configure test on x86_64 systems.
58426
58427 2007-12-15  Jim Meyering  <meyering@redhat.com>
58428
58429         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
58430
58431 2007-12-13  Eric Blake  <ebb9@byu.net>
58432
58433         Another fseek test.
58434         * tests/test-fseek.c (main): Also test ungetc handling.
58435         * tests/test-fseeko.c (main): Likewise.
58436         * modules/fseeko (Depends-on): Add verify.
58437         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
58438         large.
58439         Reported by Larry Jones.
58440
58441         Fix fseeko on mingw.
58442         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
58443         seek.
58444
58445         Beef up fseek tests.
58446         * tests/test-fseek.c (main): Also test eof handling.
58447         * tests/test-fseeko.c (main): Likewise.
58448         Reported by Larry Jones.
58449
58450 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
58451
58452         Fix fseeko on BSD-based platforms.
58453         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
58454         successful seek.
58455
58456 2007-12-12  Eric Blake  <ebb9@byu.net>
58457
58458         Allow circular dependency of separate libtests.a
58459         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
58460         when use_libtests.
58461
58462 2007-12-11  Eric Blake  <ebb9@byu.net>
58463
58464         Fix bug with -0.0L in previous patch.
58465         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
58466         * tests/test-isnan.c (main): Also test on zeroes.
58467         * tests/test-isnanf.c (main): Likewise.
58468         * tests/test-isnanl.h (main): Likewise.
58469
58470         Detect pseudo-denormals on x86 even when cross-compiling.
58471         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
58472         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
58473         invalid bit patterns that happen to satisfy ==.
58474
58475         Avoid link failures with separate libtests.a.
58476         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
58477         last, to satisfy circular dependencies.
58478
58479 2007-12-11  Eric Blake  <ebb9@byu.net>
58480         and Bruno Haible  <bruno@clisp.org>
58481
58482         Fix OpenBSD 4.0 <float.h> handling of long double.
58483         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
58484         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
58485         * doc/headers/float.texi (float.h): Document OpenBSD bug.
58486
58487 2007-12-11  Jim Meyering  <meyering@redhat.com>
58488
58489         * users.txt: Add libvirt.
58490
58491         Support versions of autoconf prior to 2.59c.
58492         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
58493         if it is not already defined.
58494
58495 2007-12-09  Bruno Haible  <bruno@clisp.org>
58496
58497         Let 'gnulib-tool --import' collect sources needed for the tests in
58498         tests/ rather than in lib/.
58499         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
58500         argument. If true, add rules to generate libtests.a, and put libtests.a
58501         into $(LDADD). Consider source files in subdirectories and set
58502         uses_subdirs.
58503         (func_emit_initmacro_start, func_emit_initmacro_end,
58504         func_emit_initmacro_done): Pass all arguments explicitly.
58505         (func_import): Determine two module lists main_modules,
58506         testsrelated_modules. Determine use_libtests. Determine two variables
58507         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
58508         instead of just sed_transform_lib_file. Determine two variables
58509         main_files and testsrelated_files. Compute 'files' as the union of
58510         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
58511         func_add_or_update. In the generated gnulib-comp.m4, collect the
58512         object files for tests/ in different variables than those for lib/.
58513         Substitute LIBTESTS_LIBDEPS.
58514         (func_create_testdir): Combine the uses_subdirs results from
58515         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
58516
58517 2007-12-09  Bruno Haible  <bruno@clisp.org>
58518
58519         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
58520         the build-aux directory.
58521
58522 2007-12-09  Bruno Haible  <bruno@clisp.org>
58523
58524         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
58525         introduced on 2006-09-09.
58526
58527 2007-12-07  Jim Meyering  <meyering@redhat.com>
58528
58529         Let these macros work also with autoconf-2.59.
58530         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
58531         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
58532         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
58533
58534 2007-12-06  Jim Meyering  <meyering@redhat.com>
58535
58536         Avoid a configure-time syntax error in gl_FUNC_ACL.
58537         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
58538         function in each branch, before testing the cache variable.
58539
58540 2007-12-04  Eric Blake  <ebb9@byu.net>
58541
58542         Make scripts executable.
58543         * build-aux/config.guess: Add execute permissions.
58544         * build-aux/config.sub: Likewise.
58545         * build-aux/gendocs.sh: Likewise.
58546
58547         Fix frexp on mingw.
58548         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
58549         cross-compiling.
58550         * doc/functions/frexp.texi (frexp): Document the bug.
58551
58552         Make cygwin fseeko check more reliable.
58553         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
58554         version numbers, rather than unrelated feature check.
58555         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
58556         * doc/functions/ftello.texi (ftello): Likewise.
58557         Reported by Bruno Haible.
58558
58559         * m4/strerror.m4: Bump version number.
58560
58561 2007-12-03  Bruno Haible  <bruno@clisp.org>
58562
58563         * doc/functions/mprotect.texi: Mention the mingw problem.
58564
58565 2007-12-03  Eric Blake  <ebb9@byu.net>
58566
58567         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
58568         REPLACE_STRERROR is initialized before this macro.
58569
58570 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
58571
58572         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
58573         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
58574         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
58575         put -lsec in even for programs other than 'ls'.  This fixes a problem
58576         for gettext reported by Bruno Haible in
58577         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
58578         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
58579         Add support for Solaris 10.  This isn't efficient, but should get the
58580         job done for now.
58581
58582 2007-12-03  James Youngman  <jay@gnu.org>
58583
58584         * doc/regexprops-generic.texi: change "an close-group" to "a
58585         close-group" and "illegal" to "not allowed".
58586
58587 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58588
58589         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
58590         pr_byname.h. Needed for the rare case when the maintainer has done
58591         "make maintainer-clean" in the source directory and then attempts a
58592         build outside the source directory.
58593         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
58594         scripts_byname.h.
58595
58596 2007-12-02  Martin Lambers <marlam@marlam.de>
58597             Bruno Haible  <bruno@clisp.org>
58598
58599         * lib/getpagesize.h: Remove file.
58600         * lib/unistd.in.h: Include declaration of getpagesize here.
58601         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
58602         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
58603         HAVE_SYS_PARAM_H.
58604         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
58605         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
58606         * modules/getpagesize (Files): Remove lib/getpagesize.h.
58607         (Depends-on): Add unistd.
58608         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58609         (Include): Use <unistd.h> instead of getpagesize.h.
58610         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
58611         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
58612         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
58613         gl_GETPAGESIZE invocation, already handled by module dependency.
58614         * lib/pagealign_alloc.c: Don't include getpagesize.h.
58615
58616 2007-12-02  Bruno Haible  <bruno@clisp.org>
58617
58618         * modules/strings-tests: New file.
58619         * tests/test-strings.c: New file.
58620
58621         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
58622         * lib/strings.in.h: New file.
58623         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
58624         * m4/strings_h.m4: New file.
58625         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
58626         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
58627         * modules/strings: New file.
58628         * modules/string (Makefile.am): Update.
58629         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
58630         Reported by Karl Berry.
58631
58632 2007-12-01  Eric Blake  <ebb9@byu.net>
58633
58634         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
58635         accomodate fix in cygwin 1.5.25.
58636
58637 2007-12-01  Jim Meyering  <meyering@redhat.com>
58638
58639         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
58640         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
58641         that would inhibit utf8-optimization of a regexp containing line-
58642         or buffer-anchors, e.g., `^', `$'.
58643
58644 2007-11-30  Bruno Haible  <bruno@clisp.org>
58645
58646         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
58647         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
58648         glthread_recursive_lock_init.
58649         * lib/lock.c (glthread_recursive_lock_init)
58650         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
58651         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
58652
58653 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
58654
58655         New function qset_acl, like set_acl but with syscall semantics.
58656         * lib/acl.h (qset_acl): New decl.
58657         * lib/acl.c (qset_acl): New function.
58658         (set_acl): Use new function.  Use more-consistent diagnostics.
58659
58660 2007-11-28  Jim Meyering  <meyering@redhat.com>
58661
58662         * modules/physmem (License): Change from GPL to LGPLv2+.
58663
58664 2007-11-26  Bruno Haible  <bruno@clisp.org>
58665
58666         * lib/vasnprintf.c (decode_long_double): Don't abort if the
58667         'long double' type has excess precision.
58668         Reported by Jim Meyering in
58669         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
58670
58671 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58672
58673         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
58674         Sync from <http://gnu.org/licenses>.
58675         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
58676         with license text from same location.
58677         * doc/maintain.texi, doc/standards.texi:  Sync from
58678         <http://savannah.gnu.org/projects/gnustandards>.
58679
58680 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
58681         and Jim Meyering  <meyering@redhat.com>
58682
58683         Adjust getdate' grammar to accept a slightly more regular language.
58684         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
58685         Before, the former was rejected.
58686         * lib/getdate.y (digits_to_date_time): New function, factored
58687         out of ...
58688         (number): ...here.  Just call digits_to_date_time.
58689         (hybrid): New non-terminal to handle an <unsigned number,
58690         signed relative offset> sequence consistently.
58691
58692 2007-11-18  Jim Meyering  <meyering@redhat.com>
58693
58694         Pull my changes from coreutils:
58695         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
58696         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
58697         use of $gnulib_tool_option_extras, so that it's separated from the
58698         preceding argument.
58699
58700         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
58701         * build-aux/bootstrap (cp_mark_as_generated): Create any required
58702         parent destination directories before copying a file into place.
58703
58704 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
58705
58706         bootstrap: work also with 4-argument variant of AC_INIT
58707         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
58708
58709 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58710
58711         Port test-getaddrinfo to Solaris.
58712         Problem reported by Bruno Haible in
58713         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
58714         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
58715         explanation of setting 'hints'.
58716         Don't reject an implementation merely because it returns EAI_SERVICE.
58717         (EAI_SERVICE): Define to 0 if not defined.
58718
58719 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
58720
58721         The license of gnu-make and posix-shell is now "GPLed build tool".
58722         * modules/gnu-make (License): Likewise.
58723         * modules/posix-shell (License): Likewise.
58724
58725         New module posix-shell, for determining a POSIX shell
58726         or perhaps something that is close enough to a POSIX shell.
58727         * m4/posix-shell.m4: New file.
58728         * modules/posix-shell: New file.
58729
58730         * MODULES.html.sh: Mention new module.
58731
58732         New module gnu-make, for determining whether we're using GNU Make.
58733         * m4/gnu-make.m4: New file.
58734         * modules/gnu-make: New file.
58735         * MODULES.html.sh: Mention new module.
58736
58737 2007-11-14  Jim Meyering  <meyering@redhat.com>
58738
58739         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
58740         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
58741         use this macro to create a function _definition_.
58742         Remove useless "#undef ARGMATCH_DIE".
58743
58744 2007-11-14  Bruno Haible  <bruno@clisp.org>
58745
58746         * lib/config.charset: Update for OpenBSD 4.1.
58747         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
58748
58749 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
58750
58751         Document 64-bit #if problems in stdint.texi.
58752         * doc/headers/stdint.texi (stdint.h): Mention problems with
58753         64-bit-#if, and how to work around them.
58754
58755         Don't insist on 'long long int' support in the preprocessor.  It
58756         breaks too many things.  For example, PRIdMAX still uses a 'long
58757         long int' format with the latest Sun compiler, even though
58758         HAVE_LONG_LONG_INT isn't defined due to that compiler's
58759         preprocessor problem.  This causes the latest coreutils to dump
58760         core on Solaris 10 sparc with the Sun C compiler.
58761         Instead, fix the 2007-10-16 problem in a different way, by evaluating
58762         the troublesome expressions at configure-time, not at #if-time.
58763         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
58764         preprocessor.
58765         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
58766         compile-time C checks, done at 'configure'-time.
58767         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
58768         * modules/inttypes (Makefile): Substitute the new symbols that
58769         gl_INTTYPES_H now generates.
58770         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
58771
58772 2007-11-12  Bruno Haible  <bruno@clisp.org>
58773
58774         Tests for Unicode character classification functions.
58775
58776         * modules/unictype/bidicategory-byname-tests: New file.
58777         * modules/unictype/bidicategory-name-tests: New file.
58778         * modules/unictype/bidicategory-of-tests: New file.
58779         * modules/unictype/bidicategory-test-tests: New file.
58780         * modules/unictype/block-list-tests: New file.
58781         * modules/unictype/block-of-tests: New file.
58782         * modules/unictype/block-test-tests: New file.
58783         * modules/unictype/category-C-tests: New file.
58784         * modules/unictype/category-Cc-tests: New file.
58785         * modules/unictype/category-Cf-tests: New file.
58786         * modules/unictype/category-Cn-tests: New file.
58787         * modules/unictype/category-Co-tests: New file.
58788         * modules/unictype/category-Cs-tests: New file.
58789         * modules/unictype/category-L-tests: New file.
58790         * modules/unictype/category-Ll-tests: New file.
58791         * modules/unictype/category-Lm-tests: New file.
58792         * modules/unictype/category-Lo-tests: New file.
58793         * modules/unictype/category-Lt-tests: New file.
58794         * modules/unictype/category-Lu-tests: New file.
58795         * modules/unictype/category-M-tests: New file.
58796         * modules/unictype/category-Mc-tests: New file.
58797         * modules/unictype/category-Me-tests: New file.
58798         * modules/unictype/category-Mn-tests: New file.
58799         * modules/unictype/category-N-tests: New file.
58800         * modules/unictype/category-Nd-tests: New file.
58801         * modules/unictype/category-Nl-tests: New file.
58802         * modules/unictype/category-No-tests: New file.
58803         * modules/unictype/category-P-tests: New file.
58804         * modules/unictype/category-Pc-tests: New file.
58805         * modules/unictype/category-Pd-tests: New file.
58806         * modules/unictype/category-Pe-tests: New file.
58807         * modules/unictype/category-Pf-tests: New file.
58808         * modules/unictype/category-Pi-tests: New file.
58809         * modules/unictype/category-Po-tests: New file.
58810         * modules/unictype/category-Ps-tests: New file.
58811         * modules/unictype/category-S-tests: New file.
58812         * modules/unictype/category-Sc-tests: New file.
58813         * modules/unictype/category-Sk-tests: New file.
58814         * modules/unictype/category-Sm-tests: New file.
58815         * modules/unictype/category-So-tests: New file.
58816         * modules/unictype/category-Z-tests: New file.
58817         * modules/unictype/category-Zl-tests: New file.
58818         * modules/unictype/category-Zp-tests: New file.
58819         * modules/unictype/category-Zs-tests: New file.
58820         * modules/unictype/category-and-not-tests: New file.
58821         * modules/unictype/category-and-tests: New file.
58822         * modules/unictype/category-byname-tests: New file.
58823         * modules/unictype/category-name-tests: New file.
58824         * modules/unictype/category-none-tests: New file.
58825         * modules/unictype/category-of-tests: New file.
58826         * modules/unictype/category-or-tests: New file.
58827         * modules/unictype/category-test-withtable-tests: New file.
58828         * modules/unictype/combining-class-tests: New file.
58829         * modules/unictype/ctype-alnum-tests: New file.
58830         * modules/unictype/ctype-alpha-tests: New file.
58831         * modules/unictype/ctype-blank-tests: New file.
58832         * modules/unictype/ctype-cntrl-tests: New file.
58833         * modules/unictype/ctype-digit-tests: New file.
58834         * modules/unictype/ctype-graph-tests: New file.
58835         * modules/unictype/ctype-lower-tests: New file.
58836         * modules/unictype/ctype-print-tests: New file.
58837         * modules/unictype/ctype-punct-tests: New file.
58838         * modules/unictype/ctype-space-tests: New file.
58839         * modules/unictype/ctype-upper-tests: New file.
58840         * modules/unictype/ctype-xdigit-tests: New file.
58841         * modules/unictype/decimal-digit-tests: New file.
58842         * modules/unictype/digit-tests: New file.
58843         * modules/unictype/mirror-tests: New file.
58844         * modules/unictype/numeric-tests: New file.
58845         * modules/unictype/property-alphabetic-tests: New file.
58846         * modules/unictype/property-ascii-hex-digit-tests: New file.
58847         * modules/unictype/property-bidi-arabic-digit-tests: New file.
58848         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
58849         * modules/unictype/property-bidi-block-separator-tests: New file.
58850         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
58851         * modules/unictype/property-bidi-common-separator-tests: New file.
58852         * modules/unictype/property-bidi-control-tests: New file.
58853         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
58854         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
58855         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
58856         * modules/unictype/property-bidi-european-digit-tests: New file.
58857         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
58858         * modules/unictype/property-bidi-left-to-right-tests: New file.
58859         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
58860         * modules/unictype/property-bidi-other-neutral-tests: New file.
58861         * modules/unictype/property-bidi-pdf-tests: New file.
58862         * modules/unictype/property-bidi-segment-separator-tests: New file.
58863         * modules/unictype/property-bidi-whitespace-tests: New file.
58864         * modules/unictype/property-byname-tests: New file.
58865         * modules/unictype/property-combining-tests: New file.
58866         * modules/unictype/property-composite-tests: New file.
58867         * modules/unictype/property-currency-symbol-tests: New file.
58868         * modules/unictype/property-dash-tests: New file.
58869         * modules/unictype/property-decimal-digit-tests: New file.
58870         * modules/unictype/property-default-ignorable-code-point-tests: New file.
58871         * modules/unictype/property-deprecated-tests: New file.
58872         * modules/unictype/property-diacritic-tests: New file.
58873         * modules/unictype/property-extender-tests: New file.
58874         * modules/unictype/property-format-control-tests: New file.
58875         * modules/unictype/property-grapheme-base-tests: New file.
58876         * modules/unictype/property-grapheme-extend-tests: New file.
58877         * modules/unictype/property-grapheme-link-tests: New file.
58878         * modules/unictype/property-hex-digit-tests: New file.
58879         * modules/unictype/property-hyphen-tests: New file.
58880         * modules/unictype/property-id-continue-tests: New file.
58881         * modules/unictype/property-id-start-tests: New file.
58882         * modules/unictype/property-ideographic-tests: New file.
58883         * modules/unictype/property-ids-binary-operator-tests: New file.
58884         * modules/unictype/property-ids-trinary-operator-tests: New file.
58885         * modules/unictype/property-ignorable-control-tests: New file.
58886         * modules/unictype/property-iso-control-tests: New file.
58887         * modules/unictype/property-join-control-tests: New file.
58888         * modules/unictype/property-left-of-pair-tests: New file.
58889         * modules/unictype/property-line-separator-tests: New file.
58890         * modules/unictype/property-logical-order-exception-tests: New file.
58891         * modules/unictype/property-lowercase-tests: New file.
58892         * modules/unictype/property-math-tests: New file.
58893         * modules/unictype/property-non-break-tests: New file.
58894         * modules/unictype/property-not-a-character-tests: New file.
58895         * modules/unictype/property-numeric-tests: New file.
58896         * modules/unictype/property-other-alphabetic-tests: New file.
58897         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
58898         * modules/unictype/property-other-grapheme-extend-tests: New file.
58899         * modules/unictype/property-other-id-continue-tests: New file.
58900         * modules/unictype/property-other-id-start-tests: New file.
58901         * modules/unictype/property-other-lowercase-tests: New file.
58902         * modules/unictype/property-other-math-tests: New file.
58903         * modules/unictype/property-other-uppercase-tests: New file.
58904         * modules/unictype/property-paired-punctuation-tests: New file.
58905         * modules/unictype/property-paragraph-separator-tests: New file.
58906         * modules/unictype/property-pattern-syntax-tests: New file.
58907         * modules/unictype/property-pattern-white-space-tests: New file.
58908         * modules/unictype/property-private-use-tests: New file.
58909         * modules/unictype/property-punctuation-tests: New file.
58910         * modules/unictype/property-quotation-mark-tests: New file.
58911         * modules/unictype/property-radical-tests: New file.
58912         * modules/unictype/property-sentence-terminal-tests: New file.
58913         * modules/unictype/property-soft-dotted-tests: New file.
58914         * modules/unictype/property-space-tests: New file.
58915         * modules/unictype/property-terminal-punctuation-tests: New file.
58916         * modules/unictype/property-test-tests: New file.
58917         * modules/unictype/property-titlecase-tests: New file.
58918         * modules/unictype/property-unassigned-code-value-tests: New file.
58919         * modules/unictype/property-unified-ideograph-tests: New file.
58920         * modules/unictype/property-uppercase-tests: New file.
58921         * modules/unictype/property-variation-selector-tests: New file.
58922         * modules/unictype/property-white-space-tests: New file.
58923         * modules/unictype/property-xid-continue-tests: New file.
58924         * modules/unictype/property-xid-start-tests: New file.
58925         * modules/unictype/property-zero-width-tests: New file.
58926         * modules/unictype/scripts-tests: New file.
58927         * modules/unictype/syntax-c-ident-tests: New file.
58928         * modules/unictype/syntax-c-whitespace-tests: New file.
58929         * modules/unictype/syntax-java-ident-tests: New file.
58930         * modules/unictype/syntax-java-whitespace-tests: New file.
58931         * tests/unictype/test-bidi_byname.c: New file.
58932         * tests/unictype/test-bidi_name.c: New file.
58933         * tests/unictype/test-bidi_of.c: New file.
58934         * tests/unictype/test-bidi_test.c: New file.
58935         * tests/unictype/test-block_list.c: New file.
58936         * tests/unictype/test-block_of.c: New file.
58937         * tests/unictype/test-block_test.c: New file.
58938         * tests/unictype/test-categ_and.c: New file.
58939         * tests/unictype/test-categ_and_not.c: New file.
58940         * tests/unictype/test-categ_byname.c: New file.
58941         * tests/unictype/test-categ_name.c: New file.
58942         * tests/unictype/test-categ_none.c: New file.
58943         * tests/unictype/test-categ_of.c: New file.
58944         * tests/unictype/test-categ_or.c: New file.
58945         * tests/unictype/test-categ_test_withtable.c: New file.
58946         * tests/unictype/test-combining.c: New file.
58947         * tests/unictype/test-decdigit.c: New file.
58948         * tests/unictype/test-digit.c: New file.
58949         * tests/unictype/test-mirror.c: New file.
58950         * tests/unictype/test-numeric.c: New file.
58951         * tests/unictype/test-pr_byname.c: New file.
58952         * tests/unictype/test-pr_test.c: New file.
58953         * tests/unictype/test-predicate-part1.h: New file.
58954         * tests/unictype/test-predicate-part2.h: New file.
58955         * tests/unictype/test-scripts.c: New file.
58956         * tests/unictype/test-sy_c_ident.c: New file.
58957         * tests/unictype/test-sy_java_ident.c: New file.
58958
58959         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
58960         for Unicode 5.0.0.
58961         * tests/unictype/test-categ_Cc.c: Likewise.
58962         * tests/unictype/test-categ_Cf.c: Likewise.
58963         * tests/unictype/test-categ_Cn.c: Likewise.
58964         * tests/unictype/test-categ_Co.c: Likewise.
58965         * tests/unictype/test-categ_Cs.c: Likewise.
58966         * tests/unictype/test-categ_L.c: Likewise.
58967         * tests/unictype/test-categ_Ll.c: Likewise.
58968         * tests/unictype/test-categ_Lm.c: Likewise.
58969         * tests/unictype/test-categ_Lo.c: Likewise.
58970         * tests/unictype/test-categ_Lt.c: Likewise.
58971         * tests/unictype/test-categ_Lu.c: Likewise.
58972         * tests/unictype/test-categ_M.c: Likewise.
58973         * tests/unictype/test-categ_Mc.c: Likewise.
58974         * tests/unictype/test-categ_Me.c: Likewise.
58975         * tests/unictype/test-categ_Mn.c: Likewise.
58976         * tests/unictype/test-categ_N.c: Likewise.
58977         * tests/unictype/test-categ_Nd.c: Likewise.
58978         * tests/unictype/test-categ_Nl.c: Likewise.
58979         * tests/unictype/test-categ_No.c: Likewise.
58980         * tests/unictype/test-categ_P.c: Likewise.
58981         * tests/unictype/test-categ_Pc.c: Likewise.
58982         * tests/unictype/test-categ_Pd.c: Likewise.
58983         * tests/unictype/test-categ_Pe.c: Likewise.
58984         * tests/unictype/test-categ_Pf.c: Likewise.
58985         * tests/unictype/test-categ_Pi.c: Likewise.
58986         * tests/unictype/test-categ_Po.c: Likewise.
58987         * tests/unictype/test-categ_Ps.c: Likewise.
58988         * tests/unictype/test-categ_S.c: Likewise.
58989         * tests/unictype/test-categ_Sc.c: Likewise.
58990         * tests/unictype/test-categ_Sk.c: Likewise.
58991         * tests/unictype/test-categ_Sm.c: Likewise.
58992         * tests/unictype/test-categ_So.c: Likewise.
58993         * tests/unictype/test-categ_Z.c: Likewise.
58994         * tests/unictype/test-categ_Zl.c: Likewise.
58995         * tests/unictype/test-categ_Zp.c: Likewise.
58996         * tests/unictype/test-categ_Zs.c: Likewise.
58997         * tests/unictype/test-ctype_alnum.c: Likewise.
58998         * tests/unictype/test-ctype_alpha.c: Likewise.
58999         * tests/unictype/test-ctype_blank.c: Likewise.
59000         * tests/unictype/test-ctype_cntrl.c: Likewise.
59001         * tests/unictype/test-ctype_digit.c: Likewise.
59002         * tests/unictype/test-ctype_graph.c: Likewise.
59003         * tests/unictype/test-ctype_lower.c: Likewise.
59004         * tests/unictype/test-ctype_print.c: Likewise.
59005         * tests/unictype/test-ctype_punct.c: Likewise.
59006         * tests/unictype/test-ctype_space.c: Likewise.
59007         * tests/unictype/test-ctype_upper.c: Likewise.
59008         * tests/unictype/test-ctype_xdigit.c: Likewise.
59009         * tests/unictype/test-decdigit.h: Likewise.
59010         * tests/unictype/test-digit.h: Likewise.
59011         * tests/unictype/test-numeric.h: Likewise.
59012         * tests/unictype/test-pr_alphabetic.c: Likewise.
59013         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
59014         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
59015         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
59016         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
59017         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
59018         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
59019         * tests/unictype/test-pr_bidi_control.c: Likewise.
59020         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
59021         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
59022         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
59023         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
59024         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
59025         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
59026         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
59027         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
59028         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
59029         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
59030         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
59031         * tests/unictype/test-pr_combining.c: Likewise.
59032         * tests/unictype/test-pr_composite.c: Likewise.
59033         * tests/unictype/test-pr_currency_symbol.c: Likewise.
59034         * tests/unictype/test-pr_dash.c: Likewise.
59035         * tests/unictype/test-pr_decimal_digit.c: Likewise.
59036         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
59037         * tests/unictype/test-pr_deprecated.c: Likewise.
59038         * tests/unictype/test-pr_diacritic.c: Likewise.
59039         * tests/unictype/test-pr_extender.c: Likewise.
59040         * tests/unictype/test-pr_format_control.c: Likewise.
59041         * tests/unictype/test-pr_grapheme_base.c: Likewise.
59042         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
59043         * tests/unictype/test-pr_grapheme_link.c: Likewise.
59044         * tests/unictype/test-pr_hex_digit.c: Likewise.
59045         * tests/unictype/test-pr_hyphen.c: Likewise.
59046         * tests/unictype/test-pr_id_continue.c: Likewise.
59047         * tests/unictype/test-pr_id_start.c: Likewise.
59048         * tests/unictype/test-pr_ideographic.c: Likewise.
59049         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
59050         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
59051         * tests/unictype/test-pr_ignorable_control.c: Likewise.
59052         * tests/unictype/test-pr_iso_control.c: Likewise.
59053         * tests/unictype/test-pr_join_control.c: Likewise.
59054         * tests/unictype/test-pr_left_of_pair.c: Likewise.
59055         * tests/unictype/test-pr_line_separator.c: Likewise.
59056         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
59057         * tests/unictype/test-pr_lowercase.c: Likewise.
59058         * tests/unictype/test-pr_math.c: Likewise.
59059         * tests/unictype/test-pr_non_break.c: Likewise.
59060         * tests/unictype/test-pr_not_a_character.c: Likewise.
59061         * tests/unictype/test-pr_numeric.c: Likewise.
59062         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
59063         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
59064         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
59065         * tests/unictype/test-pr_other_id_continue.c: Likewise.
59066         * tests/unictype/test-pr_other_id_start.c: Likewise.
59067         * tests/unictype/test-pr_other_lowercase.c: Likewise.
59068         * tests/unictype/test-pr_other_math.c: Likewise.
59069         * tests/unictype/test-pr_other_uppercase.c: Likewise.
59070         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
59071         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
59072         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
59073         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
59074         * tests/unictype/test-pr_private_use.c: Likewise.
59075         * tests/unictype/test-pr_punctuation.c: Likewise.
59076         * tests/unictype/test-pr_quotation_mark.c: Likewise.
59077         * tests/unictype/test-pr_radical.c: Likewise.
59078         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
59079         * tests/unictype/test-pr_soft_dotted.c: Likewise.
59080         * tests/unictype/test-pr_space.c: Likewise.
59081         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
59082         * tests/unictype/test-pr_titlecase.c: Likewise.
59083         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
59084         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
59085         * tests/unictype/test-pr_uppercase.c: Likewise.
59086         * tests/unictype/test-pr_variation_selector.c: Likewise.
59087         * tests/unictype/test-pr_white_space.c: Likewise.
59088         * tests/unictype/test-pr_xid_continue.c: Likewise.
59089         * tests/unictype/test-pr_xid_start.c: Likewise.
59090         * tests/unictype/test-pr_zero_width.c: Likewise.
59091         * tests/unictype/test-sy_c_whitespace.c: Likewise.
59092         * tests/unictype/test-sy_java_whitespace.c: Likewise.
59093
59094 2007-11-12  Bruno Haible  <bruno@clisp.org>
59095
59096         Unicode character classification functions.
59097         * lib/unictype.h: New file.
59098         * modules/unictype/base: New file.
59099         * modules/unictype/category-L: New file.
59100         * modules/unictype/category-Lu: New file.
59101         * modules/unictype/category-Ll: New file.
59102         * modules/unictype/category-Lt: New file.
59103         * modules/unictype/category-Lm: New file.
59104         * modules/unictype/category-Lo: New file.
59105         * modules/unictype/category-M: New file.
59106         * modules/unictype/category-Mn: New file.
59107         * modules/unictype/category-Mc: New file.
59108         * modules/unictype/category-Me: New file.
59109         * modules/unictype/category-N: New file.
59110         * modules/unictype/category-Nd: New file.
59111         * modules/unictype/category-Nl: New file.
59112         * modules/unictype/category-No: New file.
59113         * modules/unictype/category-P: New file.
59114         * modules/unictype/category-Pc: New file.
59115         * modules/unictype/category-Pd: New file.
59116         * modules/unictype/category-Ps: New file.
59117         * modules/unictype/category-Pe: New file.
59118         * modules/unictype/category-Pi: New file.
59119         * modules/unictype/category-Pf: New file.
59120         * modules/unictype/category-Po: New file.
59121         * modules/unictype/category-S: New file.
59122         * modules/unictype/category-Sm: New file.
59123         * modules/unictype/category-Sc: New file.
59124         * modules/unictype/category-Sk: New file.
59125         * modules/unictype/category-So: New file.
59126         * modules/unictype/category-Z: New file.
59127         * modules/unictype/category-Zs: New file.
59128         * modules/unictype/category-Zl: New file.
59129         * modules/unictype/category-Zp: New file.
59130         * modules/unictype/category-C: New file.
59131         * modules/unictype/category-Cc: New file.
59132         * modules/unictype/category-Cf: New file.
59133         * modules/unictype/category-Cs: New file.
59134         * modules/unictype/category-Co: New file.
59135         * modules/unictype/category-Cn: New file.
59136         * modules/unictype/category-or: New file.
59137         * modules/unictype/category-of: New file.
59138         * modules/unictype/category-test: New file.
59139         * modules/unictype/category-test-withtable: New file.
59140         * modules/unictype/category-byname: New file.
59141         * modules/unictype/category-none: New file.
59142         * modules/unictype/category-and: New file.
59143         * modules/unictype/category-and-not: New file.
59144         * modules/unictype/category-name: New file.
59145         * modules/unictype/combining-class: New file.
59146         * modules/unictype/category-all: New file.
59147         * modules/unictype/bidicategory-all: New file.
59148         * modules/unictype/bidicategory-byname: New file.
59149         * modules/unictype/bidicategory-name: New file.
59150         * modules/unictype/bidicategory-of: New file.
59151         * modules/unictype/bidicategory-test: New file.
59152         * modules/unictype/decimal-digit: New file.
59153         * modules/unictype/digit: New file.
59154         * modules/unictype/numeric: New file.
59155         * modules/unictype/mirror: New file.
59156         * modules/unictype/property-white-space: New file.
59157         * modules/unictype/property-alphabetic: New file.
59158         * modules/unictype/property-other-alphabetic: New file.
59159         * modules/unictype/property-not-a-character: New file.
59160         * modules/unictype/property-default-ignorable-code-point: New file.
59161         * modules/unictype/property-other-default-ignorable-code-point: New
59162         file.
59163         * modules/unictype/property-deprecated: New file.
59164         * modules/unictype/property-logical-order-exception: New file.
59165         * modules/unictype/property-variation-selector: New file.
59166         * modules/unictype/property-private-use: New file.
59167         * modules/unictype/property-unassigned-code-value: New file.
59168         * modules/unictype/property-uppercase: New file.
59169         * modules/unictype/property-other-uppercase: New file.
59170         * modules/unictype/property-lowercase: New file.
59171         * modules/unictype/property-other-lowercase: New file.
59172         * modules/unictype/property-titlecase: New file.
59173         * modules/unictype/property-soft-dotted: New file.
59174         * modules/unictype/property-id-start: New file.
59175         * modules/unictype/property-other-id-start: New file.
59176         * modules/unictype/property-id-continue: New file.
59177         * modules/unictype/property-other-id-continue: New file.
59178         * modules/unictype/property-xid-start: New file.
59179         * modules/unictype/property-xid-continue: New file.
59180         * modules/unictype/property-pattern-white-space: New file.
59181         * modules/unictype/property-pattern-syntax: New file.
59182         * modules/unictype/property-join-control: New file.
59183         * modules/unictype/property-grapheme-base: New file.
59184         * modules/unictype/property-grapheme-extend: New file.
59185         * modules/unictype/property-other-grapheme-extend: New file.
59186         * modules/unictype/property-grapheme-link: New file.
59187         * modules/unictype/property-bidi-control: New file.
59188         * modules/unictype/property-bidi-left-to-right: New file.
59189         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
59190         * modules/unictype/property-bidi-arabic-right-to-left: New file.
59191         * modules/unictype/property-bidi-european-digit: New file.
59192         * modules/unictype/property-bidi-eur-num-separator: New file.
59193         * modules/unictype/property-bidi-eur-num-terminator: New file.
59194         * modules/unictype/property-bidi-arabic-digit: New file.
59195         * modules/unictype/property-bidi-common-separator: New file.
59196         * modules/unictype/property-bidi-block-separator: New file.
59197         * modules/unictype/property-bidi-segment-separator: New file.
59198         * modules/unictype/property-bidi-whitespace: New file.
59199         * modules/unictype/property-bidi-non-spacing-mark: New file.
59200         * modules/unictype/property-bidi-boundary-neutral: New file.
59201         * modules/unictype/property-bidi-pdf: New file.
59202         * modules/unictype/property-bidi-embedding-or-override: New file.
59203         * modules/unictype/property-bidi-other-neutral: New file.
59204         * modules/unictype/property-hex-digit: New file.
59205         * modules/unictype/property-ascii-hex-digit: New file.
59206         * modules/unictype/property-ideographic: New file.
59207         * modules/unictype/property-unified-ideograph: New file.
59208         * modules/unictype/property-radical: New file.
59209         * modules/unictype/property-ids-binary-operator: New file.
59210         * modules/unictype/property-ids-trinary-operator: New file.
59211         * modules/unictype/property-zero-width: New file.
59212         * modules/unictype/property-space: New file.
59213         * modules/unictype/property-non-break: New file.
59214         * modules/unictype/property-iso-control: New file.
59215         * modules/unictype/property-format-control: New file.
59216         * modules/unictype/property-dash: New file.
59217         * modules/unictype/property-hyphen: New file.
59218         * modules/unictype/property-punctuation: New file.
59219         * modules/unictype/property-line-separator: New file.
59220         * modules/unictype/property-paragraph-separator: New file.
59221         * modules/unictype/property-quotation-mark: New file.
59222         * modules/unictype/property-sentence-terminal: New file.
59223         * modules/unictype/property-terminal-punctuation: New file.
59224         * modules/unictype/property-currency-symbol: New file.
59225         * modules/unictype/property-math: New file.
59226         * modules/unictype/property-other-math: New file.
59227         * modules/unictype/property-paired-punctuation: New file.
59228         * modules/unictype/property-left-of-pair: New file.
59229         * modules/unictype/property-combining: New file.
59230         * modules/unictype/property-composite: New file.
59231         * modules/unictype/property-decimal-digit: New file.
59232         * modules/unictype/property-numeric: New file.
59233         * modules/unictype/property-diacritic: New file.
59234         * modules/unictype/property-extender: New file.
59235         * modules/unictype/property-ignorable-control: New file.
59236         * modules/unictype/property-test: New file.
59237         * modules/unictype/property-byname: New file.
59238         * modules/unictype/property-all: New file.
59239         * modules/unictype/scripts: New file.
59240         * modules/unictype/scripts-all: New file.
59241         * modules/unictype/block-of: New file.
59242         * modules/unictype/block-test: New file.
59243         * modules/unictype/block-list: New file.
59244         * modules/unictype/block-all: New file.
59245         * modules/unictype/syntax-c-whitespace: New file.
59246         * modules/unictype/syntax-java-whitespace: New file.
59247         * modules/unictype/syntax-c-ident: New file.
59248         * modules/unictype/syntax-java-ident: New file.
59249         * modules/unictype/ctype-alnum: New file.
59250         * modules/unictype/ctype-alpha: New file.
59251         * modules/unictype/ctype-cntrl: New file.
59252         * modules/unictype/ctype-digit: New file.
59253         * modules/unictype/ctype-graph: New file.
59254         * modules/unictype/ctype-lower: New file.
59255         * modules/unictype/ctype-print: New file.
59256         * modules/unictype/ctype-punct: New file.
59257         * modules/unictype/ctype-space: New file.
59258         * modules/unictype/ctype-upper: New file.
59259         * modules/unictype/ctype-xdigit: New file.
59260         * modules/unictype/ctype-blank: New file.
59261         * lib/unictype/bidi_byname.c: New file.
59262         * lib/unictype/bidi_name.c: New file.
59263         * lib/unictype/bidi_of.c: New file.
59264         * lib/unictype/bidi_test.c: New file.
59265         * lib/unictype/bitmap.h: New file.
59266         * lib/unictype/block_test.c: New file.
59267         * lib/unictype/blocks.c: New file.
59268         * lib/unictype/categ_C.c: New file.
59269         * lib/unictype/categ_Cc.c: New file.
59270         * lib/unictype/categ_Cf.c: New file.
59271         * lib/unictype/categ_Cn.c: New file.
59272         * lib/unictype/categ_Co.c: New file.
59273         * lib/unictype/categ_Cs.c: New file.
59274         * lib/unictype/categ_L.c: New file.
59275         * lib/unictype/categ_Ll.c: New file.
59276         * lib/unictype/categ_Lm.c: New file.
59277         * lib/unictype/categ_Lo.c: New file.
59278         * lib/unictype/categ_Lt.c: New file.
59279         * lib/unictype/categ_Lu.c: New file.
59280         * lib/unictype/categ_M.c: New file.
59281         * lib/unictype/categ_Mc.c: New file.
59282         * lib/unictype/categ_Me.c: New file.
59283         * lib/unictype/categ_Mn.c: New file.
59284         * lib/unictype/categ_N.c: New file.
59285         * lib/unictype/categ_Nd.c: New file.
59286         * lib/unictype/categ_Nl.c: New file.
59287         * lib/unictype/categ_No.c: New file.
59288         * lib/unictype/categ_P.c: New file.
59289         * lib/unictype/categ_Pc.c: New file.
59290         * lib/unictype/categ_Pd.c: New file.
59291         * lib/unictype/categ_Pe.c: New file.
59292         * lib/unictype/categ_Pf.c: New file.
59293         * lib/unictype/categ_Pi.c: New file.
59294         * lib/unictype/categ_Po.c: New file.
59295         * lib/unictype/categ_Ps.c: New file.
59296         * lib/unictype/categ_S.c: New file.
59297         * lib/unictype/categ_Sc.c: New file.
59298         * lib/unictype/categ_Sk.c: New file.
59299         * lib/unictype/categ_Sm.c: New file.
59300         * lib/unictype/categ_So.c: New file.
59301         * lib/unictype/categ_Z.c: New file.
59302         * lib/unictype/categ_Zl.c: New file.
59303         * lib/unictype/categ_Zp.c: New file.
59304         * lib/unictype/categ_Zs.c: New file.
59305         * lib/unictype/categ_and.c: New file.
59306         * lib/unictype/categ_and_not.c: New file.
59307         * lib/unictype/categ_byname.c: New file.
59308         * lib/unictype/categ_name.c: New file.
59309         * lib/unictype/categ_none.c: New file.
59310         * lib/unictype/categ_of.c: New file.
59311         * lib/unictype/categ_or.c: New file.
59312         * lib/unictype/categ_test.c: New file.
59313         * lib/unictype/combining.c: New file.
59314         * lib/unictype/ctype_alnum.c: New file.
59315         * lib/unictype/ctype_alpha.c: New file.
59316         * lib/unictype/ctype_blank.c: New file.
59317         * lib/unictype/ctype_cntrl.c: New file.
59318         * lib/unictype/ctype_digit.c: New file.
59319         * lib/unictype/ctype_graph.c: New file.
59320         * lib/unictype/ctype_lower.c: New file.
59321         * lib/unictype/ctype_print.c: New file.
59322         * lib/unictype/ctype_punct.c: New file.
59323         * lib/unictype/ctype_space.c: New file.
59324         * lib/unictype/ctype_upper.c: New file.
59325         * lib/unictype/ctype_xdigit.c: New file.
59326         * lib/unictype/decdigit.c: New file.
59327         * lib/unictype/digit.c: New file.
59328         * lib/unictype/identsyntaxmap.h: New file.
59329         * lib/unictype/mirror.c: New file.
59330         * lib/unictype/numeric.c: New file.
59331         * lib/unictype/pr_alphabetic.c: New file.
59332         * lib/unictype/pr_ascii_hex_digit.c: New file.
59333         * lib/unictype/pr_bidi_arabic_digit.c: New file.
59334         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
59335         * lib/unictype/pr_bidi_block_separator.c: New file.
59336         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
59337         * lib/unictype/pr_bidi_common_separator.c: New file.
59338         * lib/unictype/pr_bidi_control.c: New file.
59339         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
59340         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
59341         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
59342         * lib/unictype/pr_bidi_european_digit.c: New file.
59343         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
59344         * lib/unictype/pr_bidi_left_to_right.c: New file.
59345         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
59346         * lib/unictype/pr_bidi_other_neutral.c: New file.
59347         * lib/unictype/pr_bidi_pdf.c: New file.
59348         * lib/unictype/pr_bidi_segment_separator.c: New file.
59349         * lib/unictype/pr_bidi_whitespace.c: New file.
59350         * lib/unictype/pr_byname.c: New file.
59351         * lib/unictype/pr_byname.gperf: New file.
59352         * lib/unictype/pr_combining.c: New file.
59353         * lib/unictype/pr_composite.c: New file.
59354         * lib/unictype/pr_currency_symbol.c: New file.
59355         * lib/unictype/pr_dash.c: New file.
59356         * lib/unictype/pr_decimal_digit.c: New file.
59357         * lib/unictype/pr_default_ignorable_code_point.c: New file.
59358         * lib/unictype/pr_deprecated.c: New file.
59359         * lib/unictype/pr_diacritic.c: New file.
59360         * lib/unictype/pr_extender.c: New file.
59361         * lib/unictype/pr_format_control.c: New file.
59362         * lib/unictype/pr_grapheme_base.c: New file.
59363         * lib/unictype/pr_grapheme_extend.c: New file.
59364         * lib/unictype/pr_grapheme_link.c: New file.
59365         * lib/unictype/pr_hex_digit.c: New file.
59366         * lib/unictype/pr_hyphen.c: New file.
59367         * lib/unictype/pr_id_continue.c: New file.
59368         * lib/unictype/pr_id_start.c: New file.
59369         * lib/unictype/pr_ideographic.c: New file.
59370         * lib/unictype/pr_ids_binary_operator.c: New file.
59371         * lib/unictype/pr_ids_trinary_operator.c: New file.
59372         * lib/unictype/pr_ignorable_control.c: New file.
59373         * lib/unictype/pr_iso_control.c: New file.
59374         * lib/unictype/pr_join_control.c: New file.
59375         * lib/unictype/pr_left_of_pair.c: New file.
59376         * lib/unictype/pr_line_separator.c: New file.
59377         * lib/unictype/pr_logical_order_exception.c: New file.
59378         * lib/unictype/pr_lowercase.c: New file.
59379         * lib/unictype/pr_math.c: New file.
59380         * lib/unictype/pr_non_break.c: New file.
59381         * lib/unictype/pr_not_a_character.c: New file.
59382         * lib/unictype/pr_numeric.c: New file.
59383         * lib/unictype/pr_other_alphabetic.c: New file.
59384         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
59385         * lib/unictype/pr_other_grapheme_extend.c: New file.
59386         * lib/unictype/pr_other_id_continue.c: New file.
59387         * lib/unictype/pr_other_id_start.c: New file.
59388         * lib/unictype/pr_other_lowercase.c: New file.
59389         * lib/unictype/pr_other_math.c: New file.
59390         * lib/unictype/pr_other_uppercase.c: New file.
59391         * lib/unictype/pr_paired_punctuation.c: New file.
59392         * lib/unictype/pr_paragraph_separator.c: New file.
59393         * lib/unictype/pr_pattern_syntax.c: New file.
59394         * lib/unictype/pr_pattern_white_space.c: New file.
59395         * lib/unictype/pr_private_use.c: New file.
59396         * lib/unictype/pr_punctuation.c: New file.
59397         * lib/unictype/pr_quotation_mark.c: New file.
59398         * lib/unictype/pr_radical.c: New file.
59399         * lib/unictype/pr_sentence_terminal.c: New file.
59400         * lib/unictype/pr_soft_dotted.c: New file.
59401         * lib/unictype/pr_space.c: New file.
59402         * lib/unictype/pr_terminal_punctuation.c: New file.
59403         * lib/unictype/pr_test.c: New file.
59404         * lib/unictype/pr_titlecase.c: New file.
59405         * lib/unictype/pr_unassigned_code_value.c: New file.
59406         * lib/unictype/pr_unified_ideograph.c: New file.
59407         * lib/unictype/pr_uppercase.c: New file.
59408         * lib/unictype/pr_variation_selector.c: New file.
59409         * lib/unictype/pr_white_space.c: New file.
59410         * lib/unictype/pr_xid_continue.c: New file.
59411         * lib/unictype/pr_xid_start.c: New file.
59412         * lib/unictype/pr_zero_width.c: New file.
59413         * lib/unictype/scripts.c: New file.
59414         * lib/unictype/sy_c_ident.c: New file.
59415         * lib/unictype/sy_c_whitespace.c: New file.
59416         * lib/unictype/sy_java_ident.c: New file.
59417         * lib/unictype/sy_java_whitespace.c: New file.
59418
59419         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
59420         Unicode 5.0.0.
59421         * lib/unictype/blocks.h: Likewise.
59422         * lib/unictype/categ_C.h: Likewise.
59423         * lib/unictype/categ_Cc.h: Likewise.
59424         * lib/unictype/categ_Cf.h: Likewise.
59425         * lib/unictype/categ_Cn.h: Likewise.
59426         * lib/unictype/categ_Co.h: Likewise.
59427         * lib/unictype/categ_Cs.h: Likewise.
59428         * lib/unictype/categ_L.h: Likewise.
59429         * lib/unictype/categ_Ll.h: Likewise.
59430         * lib/unictype/categ_Lm.h: Likewise.
59431         * lib/unictype/categ_Lo.h: Likewise.
59432         * lib/unictype/categ_Lt.h: Likewise.
59433         * lib/unictype/categ_Lu.h: Likewise.
59434         * lib/unictype/categ_M.h: Likewise.
59435         * lib/unictype/categ_Mc.h: Likewise.
59436         * lib/unictype/categ_Me.h: Likewise.
59437         * lib/unictype/categ_Mn.h: Likewise.
59438         * lib/unictype/categ_N.h: Likewise.
59439         * lib/unictype/categ_Nd.h: Likewise.
59440         * lib/unictype/categ_Nl.h: Likewise.
59441         * lib/unictype/categ_No.h: Likewise.
59442         * lib/unictype/categ_P.h: Likewise.
59443         * lib/unictype/categ_Pc.h: Likewise.
59444         * lib/unictype/categ_Pd.h: Likewise.
59445         * lib/unictype/categ_Pe.h: Likewise.
59446         * lib/unictype/categ_Pf.h: Likewise.
59447         * lib/unictype/categ_Pi.h: Likewise.
59448         * lib/unictype/categ_Po.h: Likewise.
59449         * lib/unictype/categ_Ps.h: Likewise.
59450         * lib/unictype/categ_S.h: Likewise.
59451         * lib/unictype/categ_Sc.h: Likewise.
59452         * lib/unictype/categ_Sk.h: Likewise.
59453         * lib/unictype/categ_Sm.h: Likewise.
59454         * lib/unictype/categ_So.h: Likewise.
59455         * lib/unictype/categ_Z.h: Likewise.
59456         * lib/unictype/categ_Zl.h: Likewise.
59457         * lib/unictype/categ_Zp.h: Likewise.
59458         * lib/unictype/categ_Zs.h: Likewise.
59459         * lib/unictype/categ_of.h: Likewise.
59460         * lib/unictype/combining.h: Likewise.
59461         * lib/unictype/ctype_alnum.h: Likewise.
59462         * lib/unictype/ctype_alpha.h: Likewise.
59463         * lib/unictype/ctype_blank.h: Likewise.
59464         * lib/unictype/ctype_cntrl.h: Likewise.
59465         * lib/unictype/ctype_digit.h: Likewise.
59466         * lib/unictype/ctype_graph.h: Likewise.
59467         * lib/unictype/ctype_lower.h: Likewise.
59468         * lib/unictype/ctype_print.h: Likewise.
59469         * lib/unictype/ctype_punct.h: Likewise.
59470         * lib/unictype/ctype_space.h: Likewise.
59471         * lib/unictype/ctype_upper.h: Likewise.
59472         * lib/unictype/ctype_xdigit.h: Likewise.
59473         * lib/unictype/decdigit.h: Likewise.
59474         * lib/unictype/digit.h: Likewise.
59475         * lib/unictype/mirror.h: Likewise.
59476         * lib/unictype/numeric.h: Likewise.
59477         * lib/unictype/pr_alphabetic.h: Likewise.
59478         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
59479         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
59480         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
59481         * lib/unictype/pr_bidi_block_separator.h: Likewise.
59482         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
59483         * lib/unictype/pr_bidi_common_separator.h: Likewise.
59484         * lib/unictype/pr_bidi_control.h: Likewise.
59485         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
59486         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
59487         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
59488         * lib/unictype/pr_bidi_european_digit.h: Likewise.
59489         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
59490         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
59491         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
59492         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
59493         * lib/unictype/pr_bidi_pdf.h: Likewise.
59494         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
59495         * lib/unictype/pr_bidi_whitespace.h: Likewise.
59496         * lib/unictype/pr_combining.h: Likewise.
59497         * lib/unictype/pr_composite.h: Likewise.
59498         * lib/unictype/pr_currency_symbol.h: Likewise.
59499         * lib/unictype/pr_dash.h: Likewise.
59500         * lib/unictype/pr_decimal_digit.h: Likewise.
59501         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
59502         * lib/unictype/pr_deprecated.h: Likewise.
59503         * lib/unictype/pr_diacritic.h: Likewise.
59504         * lib/unictype/pr_extender.h: Likewise.
59505         * lib/unictype/pr_format_control.h: Likewise.
59506         * lib/unictype/pr_grapheme_base.h: Likewise.
59507         * lib/unictype/pr_grapheme_extend.h: Likewise.
59508         * lib/unictype/pr_grapheme_link.h: Likewise.
59509         * lib/unictype/pr_hex_digit.h: Likewise.
59510         * lib/unictype/pr_hyphen.h: Likewise.
59511         * lib/unictype/pr_id_continue.h: Likewise.
59512         * lib/unictype/pr_id_start.h: Likewise.
59513         * lib/unictype/pr_ideographic.h: Likewise.
59514         * lib/unictype/pr_ids_binary_operator.h: Likewise.
59515         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
59516         * lib/unictype/pr_ignorable_control.h: Likewise.
59517         * lib/unictype/pr_iso_control.h: Likewise.
59518         * lib/unictype/pr_join_control.h: Likewise.
59519         * lib/unictype/pr_left_of_pair.h: Likewise.
59520         * lib/unictype/pr_line_separator.h: Likewise.
59521         * lib/unictype/pr_logical_order_exception.h: Likewise.
59522         * lib/unictype/pr_lowercase.h: Likewise.
59523         * lib/unictype/pr_math.h: Likewise.
59524         * lib/unictype/pr_non_break.h: Likewise.
59525         * lib/unictype/pr_not_a_character.h: Likewise.
59526         * lib/unictype/pr_numeric.h: Likewise.
59527         * lib/unictype/pr_other_alphabetic.h: Likewise.
59528         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
59529         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
59530         * lib/unictype/pr_other_id_continue.h: Likewise.
59531         * lib/unictype/pr_other_id_start.h: Likewise.
59532         * lib/unictype/pr_other_lowercase.h: Likewise.
59533         * lib/unictype/pr_other_math.h: Likewise.
59534         * lib/unictype/pr_other_uppercase.h: Likewise.
59535         * lib/unictype/pr_paired_punctuation.h: Likewise.
59536         * lib/unictype/pr_paragraph_separator.h: Likewise.
59537         * lib/unictype/pr_pattern_syntax.h: Likewise.
59538         * lib/unictype/pr_pattern_white_space.h: Likewise.
59539         * lib/unictype/pr_private_use.h: Likewise.
59540         * lib/unictype/pr_punctuation.h: Likewise.
59541         * lib/unictype/pr_quotation_mark.h: Likewise.
59542         * lib/unictype/pr_radical.h: Likewise.
59543         * lib/unictype/pr_sentence_terminal.h: Likewise.
59544         * lib/unictype/pr_soft_dotted.h: Likewise.
59545         * lib/unictype/pr_space.h: Likewise.
59546         * lib/unictype/pr_terminal_punctuation.h: Likewise.
59547         * lib/unictype/pr_titlecase.h: Likewise.
59548         * lib/unictype/pr_unassigned_code_value.h: Likewise.
59549         * lib/unictype/pr_unified_ideograph.h: Likewise.
59550         * lib/unictype/pr_uppercase.h: Likewise.
59551         * lib/unictype/pr_variation_selector.h: Likewise.
59552         * lib/unictype/pr_white_space.h: Likewise.
59553         * lib/unictype/pr_xid_continue.h: Likewise.
59554         * lib/unictype/pr_xid_start.h: Likewise.
59555         * lib/unictype/pr_zero_width.h: Likewise.
59556         * lib/unictype/scripts.h: Likewise.
59557         * lib/unictype/scripts_byname.gperf: Likewise.
59558         * lib/unictype/sy_c_ident.h: Likewise.
59559         * lib/unictype/sy_c_whitespace.h: Likewise.
59560         * lib/unictype/sy_java_ident.h: Likewise.
59561         * lib/unictype/sy_java_whitespace.h: Likewise.
59562
59563         * lib/unictype/Makefile: New file.
59564         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
59565         glibc.
59566         * lib/unictype/3level.h: New file, copied from glibc.
59567         * lib/unictype/3levelbit.h: New file.
59568
59569 2007-11-11  Bruno Haible  <bruno@clisp.org>
59570
59571         * modules/gperf: New file.
59572         * modules/iconv_open (Depends-on): Add it.
59573         (Makefile.am): Remove the GPERF definition.
59574
59575 2007-11-11  Bruno Haible  <bruno@clisp.org>
59576
59577         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
59578         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
59579
59580 2007-11-11  Bruno Haible  <bruno@clisp.org>
59581
59582         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
59583         (usage): Remove function.
59584
59585 2007-11-11  Bruno Haible  <bruno@clisp.org>
59586
59587         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
59588         gl_FUNC_CEILF_LIBS.
59589         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
59590         gl_FUNC_CEIL_LIBS.
59591         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
59592         gl_FUNC_CEILL_LIBS.
59593         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
59594         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
59595         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
59596
59597 2007-11-11  Bruno Haible  <bruno@clisp.org>
59598
59599         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
59600         roundf were declared but do not exist on functions.
59601         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
59602         roundl were declared but do not exist on functions.
59603         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
59604         HAVE_FLOORL_AND_CEILL, respectively.
59605         Needed for Sun C on Solaris 10.
59606
59607 2007-11-11  Bruno Haible  <bruno@clisp.org>
59608
59609         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
59610         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
59611         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
59612         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
59613         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
59614         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
59615         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
59616         HAVE_DECL_ROUNDF.
59617         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
59618         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
59619         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
59620         of HAVE_DECL_ROUND*.
59621         * modules/math (Makefile.am): Update.
59622
59623 2007-11-10  Bruno Haible  <bruno@clisp.org>
59624
59625         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
59626         ptrdiff_t as m4/intl.m4.
59627
59628 2007-11-10  Jim Meyering  <meyering@redhat.com>
59629
59630         Avoid link failure for the argmatch test.
59631         * tests/test-argmatch.c (usage): Define function to avoid a link
59632         failure: argmatch_die requires a usage function.
59633
59634 2007-11-09  Bruno Haible  <bruno@clisp.org>
59635
59636         * doc/functions/snprintf.texi: Mention BeOS deficiency.
59637         * doc/functions/vsnprintf.texi: Likewise.
59638         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
59639         with a size argument < 2.
59640
59641 2007-11-09  Bruno Haible  <bruno@clisp.org>
59642
59643         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
59644         buffer. Fixes an inefficiency introduced on 2007-11-03.
59645
59646 2007-11-09  Bruno Haible  <bruno@clisp.org>
59647
59648         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
59649         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
59650
59651 2007-11-08  Jim Meyering  <meyering@redhat.com>
59652
59653         Change cache variable name prefix "jm_" to "gl_" everywhere.
59654         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
59655         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
59656         * m4/uptime.m4: s/gl_/jm_/
59657
59658 2007-11-07  Bruno Haible  <bruno@clisp.org>
59659
59660         Update to GNU gettext 0.17.
59661         * m4/intl.m4: Update to GNU gettext 0.17.
59662         * m4/po.m4: Likewise.
59663         * modules/gettext (Files): Remove m4/ulonglong.m4.
59664         (configure.ac): Require gettext infrastructure from version 0.17.
59665
59666 2007-11-06  Bruno Haible  <bruno@clisp.org>
59667
59668         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
59669         symbolic values are not defined in a public header.
59670         * lib/freadable.c (freadable) [QNX]: Likewise.
59671         * lib/freadahead.c (freadahead) [QNX]: Likewise.
59672         * lib/freading.c (freading) [QNX]: Likewise.
59673         * lib/fseterr.c (fseterr) [QNX]: Likewise.
59674         * lib/fwritable.c (fwritable) [QNX]: Likewise.
59675         * lib/fwriting.c (fwriting) [QNX]: Likewise.
59676         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
59677         Reported by Alain Magloire.
59678
59679         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
59680
59681 2007-11-05  Bruno Haible  <bruno@clisp.org>
59682
59683         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
59684         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
59685         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
59686         Reported by Eric Blake.
59687
59688 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59689             Bruno Haible  <bruno@clisp.org>
59690
59691         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
59692         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
59693         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
59694         (malloc): Undefine also before including <stdlib.h>.
59695         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
59696         Needed on OSF/1 4.0.
59697
59698 2007-11-05  Jim Meyering  <meyering@redhat.com>
59699
59700         git-version-gen: sync from coreutils.
59701         * build-aux/git-version-gen: Add comments.
59702         Change the first '-' to '.' in the snapshot version string,
59703         e.g., 6.9-377-08144 -> 6.9.377-08144
59704         Remove first parameter.
59705         Don't declare a version "-dirty" merely because a time
59706         stamp has changed.
59707
59708 2007-11-04  Bruno Haible  <bruno@clisp.org>
59709
59710         * lib/lock.h: Protect all macro definitions containing an 'if'
59711         statement through a "do { ... } while (0)".
59712         * lib/tls.h: Likewise.
59713
59714 2007-11-04  Bruno Haible  <bruno@clisp.org>
59715
59716         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
59717
59718 2007-11-04  Bruno Haible  <bruno@clisp.org>
59719
59720         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
59721         * modules/fprintf-posix (Depends-on): Add nocrash.
59722         * modules/snprintf-posix (Depends-on): Likewise.
59723         * modules/sprintf-posix (Depends-on): Likewise.
59724         * modules/vasnprintf-posix (Depends-on): Likewise.
59725         * modules/vasprintf-posix (Depends-on): Likewise.
59726         * modules/vfprintf-posix (Depends-on): Likewise.
59727         * modules/vsnprintf-posix (Depends-on): Likewise.
59728         * modules/vsprintf-posix (Depends-on): Likewise.
59729         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
59730         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
59731         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
59732         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
59733         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
59734         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
59735         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
59736
59737 2007-11-04  Bruno Haible  <bruno@clisp.org>
59738
59739         * modules/nocrash: New file.
59740         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
59741         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
59742
59743 2007-11-04  Bruno Haible  <bruno@clisp.org>
59744
59745         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
59746         precision handling.
59747         * tests/test-vasprintf-posix.c (test_function): Likewise.
59748         * tests/test-snprintf-posix.h (test_function): Likewise.
59749         * tests/test-sprintf-posix.h (test_function): Likewise.
59750
59751         Fix *printf behaviour for large precisions on mingw and BeOS.
59752         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
59753         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
59754         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
59755         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
59756         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59757         gl_PRINTF_PRECISION and test its result. Invoke
59758         gl_PREREQ_VASNPRINTF_PRECISION.
59759         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59760         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59761         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59762         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59763         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59764         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59765         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59766         * doc/functions/fprintf.texi: Update.
59767         * doc/functions/printf.texi: Update.
59768         * doc/functions/snprintf.texi: Update.
59769         * doc/functions/sprintf.texi: Update.
59770         * doc/functions/vfprintf.texi: Update.
59771         * doc/functions/vprintf.texi: Update.
59772         * doc/functions/vsnprintf.texi: Update.
59773         * doc/functions/vsprintf.texi: Update.
59774
59775 2007-11-04  Bruno Haible  <bruno@clisp.org>
59776
59777         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
59778
59779 2007-11-04  Bruno Haible  <bruno@clisp.org>
59780
59781         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
59782         Reported by Sylvain Beucler <beuc@gnu.org>.
59783
59784 2007-11-03  Bruno Haible  <bruno@clisp.org>
59785
59786         * tests/test-fprintf-posix2.sh: New file.
59787         * tests/test-fprintf-posix2.c: New file.
59788         * modules/fprintf-posix-tests (Files): Add them.
59789         (TESTS): Add test-fprintf-posix2.sh.
59790         (configure.ac): Check for getrlimit and setrlimit.
59791         (check_PROGRAMS): Add test-fprintf-posix2.
59792
59793         * tests/test-printf-posix2.sh: New file.
59794         * tests/test-printf-posix2.c: New file.
59795         * modules/printf-posix-tests (Files): Add them.
59796         (TESTS): Add test-printf-posix2.sh.
59797         (configure.ac): Check for getrlimit and setrlimit.
59798         (check_PROGRAMS): Add test-printf-posix2.
59799
59800         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
59801         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
59802         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
59803         (decode_double): New function, copied from decode_long_double.
59804         (scale10_round_decimal_decoded): New function, extracted from
59805         scale10_round_decimal_long_double.
59806         (scale10_round_decimal_long_double): Use it.
59807         (scale10_round_decimal_double): New function.
59808         (floorlog10): New function.
59809         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
59810         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
59811         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
59812         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59813         gl_PRINTF_ENOMEM and test its result. Invoke
59814         gl_PREREQ_VASNPRINTF_ENOMEM.
59815         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59816         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59817         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59818         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59819         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59820         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59821         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59822         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
59823         * modules/snprintf-posix (Depends-on): Likewise.
59824         * modules/sprintf-posix (Depends-on): Likewise.
59825         * modules/vasnprintf-posix (Depends-on): Likewise.
59826         * modules/vasprintf-posix (Depends-on): Likewise.
59827         * modules/vfprintf-posix (Depends-on): Likewise.
59828         * modules/vsnprintf-posix (Depends-on): Likewise.
59829         * modules/vsprintf-posix (Depends-on): Likewise.
59830         * doc/functions/fprintf.texi: Update.
59831         * doc/functions/printf.texi: Update.
59832         * doc/functions/snprintf.texi: Update.
59833         * doc/functions/sprintf.texi: Update.
59834         * doc/functions/vfprintf.texi: Update.
59835         * doc/functions/vprintf.texi: Update.
59836         * doc/functions/vsnprintf.texi: Update.
59837         * doc/functions/vsprintf.texi: Update.
59838
59839 2007-11-03  Bruno Haible  <bruno@clisp.org>
59840
59841         * modules/frexp-nolibm-tests: New file.
59842
59843         * modules/frexp-nolibm: New file.
59844         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
59845
59846 2007-11-03  Bruno Haible  <bruno@clisp.org>
59847
59848         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
59849         value is C99 compliant.
59850         Needed for OSF/1 5.1.
59851
59852 2007-11-03  Bruno Haible  <bruno@clisp.org>
59853
59854         Fix out-of-memory handling of vasnprintf.
59855         * lib/printf-parse.c: Include <errno.h>.
59856         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
59857         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
59858         is already set.
59859
59860 2007-11-02  Eric Blake  <ebb9@byu.net>
59861
59862         Fix tests on cygwin.
59863         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
59864
59865 2007-11-01  Bruno Haible  <bruno@clisp.org>
59866
59867         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
59868         warning.
59869         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
59870         needed for POSIX compatibility.
59871
59872 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
59873
59874         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
59875         for compatibility with GNU.
59876
59877 2007-11-01  Bruno Haible  <bruno@clisp.org>
59878
59879         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
59880         (putenv): Renamed from rpl_putenv. Change argument type from
59881         'const char *' to 'char *'.
59882         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
59883         of defining putenv in config.h, just set REPLACE_PUTENV.
59884         * modules/putenv (Depends-on): Add stdlib.
59885         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59886         (Include): Use <stdlib.h>.
59887         * lib/stdlib.in.h (putenv): New declaration.
59888         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
59889         REPLACE_PUTENV.
59890         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
59891         REPLACE_PUTENV.
59892         Needed for MacOS X 10.5.0.
59893         Reported by Peter O'Gorman <peter@pogma.com>.
59894
59895 2007-11-01  Jim Meyering  <meyering@redhat.com>
59896
59897         Treat an empty date string exactly like "0".
59898         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
59899         if the remaining date string (to be parsed) is empty, use "0".
59900         Reported by Mischa Molhoek and discussed in this thread:
59901         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
59902
59903 2007-10-31  Bruno Haible  <bruno@clisp.org>
59904
59905         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
59906         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
59907         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
59908         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
59909         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
59910         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
59911
59912 2007-10-31  Bruno Haible  <bruno@clisp.org>
59913
59914         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
59915         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
59916         (AC_TYPE_LONG_LONG_INT): Use it.
59917         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
59918         it as well.
59919         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
59920         to m4/longlong.m4.
59921         * modules/stdint (Files): Remove m4/ulonglong.m4.
59922         * modules/strtoull (Files): Use m4/longlong.m4 instead of
59923         m4/ulonglong.m4.
59924         * modules/strtoumax (Files): Likewise.
59925
59926 2007-10-30  Bruno Haible  <bruno@clisp.org>
59927
59928         * modules/xvasprintf-posix: New file.
59929         Suggested by Eric Blake.
59930
59931 2007-10-30  Bruno Haible  <bruno@clisp.org>
59932
59933         * modules/xprintf-posix-tests: New file.
59934         * tests/test-xprintf-posix.sh: New file.
59935         * tests/test-xprintf-posix.c: New file.
59936         * tests/test-xfprintf-posix.c: New file.
59937
59938         * modules/xprintf-posix: New file.
59939
59940 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59941
59942         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
59943         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
59944         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
59945
59946 2007-10-29  Bruno Haible  <bruno@clisp.org>
59947
59948         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
59949         contain the special marker '_cv_'.
59950         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
59951         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
59952         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
59953         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
59954         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
59955         Reported by Ralf Wildenhues.
59956
59957 2007-10-29  Bruno Haible  <bruno@clisp.org>
59958
59959         * gnulib-tool (func_import): When --lgpl is not specified, set
59960         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
59961         GPLv3.
59962         Reported by Simon Josefsson.
59963
59964 2007-10-28  Bruno Haible  <bruno@clisp.org>
59965
59966         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
59967         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
59968         HAVE_DECL_ISFINITE.
59969         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
59970         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
59971         HAVE_DECL_ISFINITE.
59972
59973 2007-10-28  Bruno Haible  <bruno@clisp.org>
59974
59975         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
59976         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
59977
59978 2007-10-28  Bruno Haible  <bruno@clisp.org>
59979
59980         Fix link errors with Sun C 5.0 on Solaris 10.
59981         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
59982         function is declared but not present in the compiler's libm.
59983         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
59984         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
59985         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
59986         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
59987         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
59988         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
59989         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
59990         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
59991         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
59992         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
59993         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
59994         HAVE_DECL_FLOORL.
59995
59996 2007-10-28  Bruno Haible  <bruno@clisp.org>
59997
59998         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
59999         gl_FUNC_FLOORL. Cache the result.
60000         (gl_FUNC_FLOORL): Use it.
60001         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
60002         gl_FUNC_CEILL. Cache the result.
60003         (gl_FUNC_CEILL): Use it.
60004
60005         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
60006         gl_FUNC_FLOOR. Cache the result.
60007         (gl_FUNC_FLOOR): Use it.
60008         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
60009         gl_FUNC_CEIL. Cache the result.
60010         (gl_FUNC_CEIL): Use it.
60011
60012         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
60013         gl_FUNC_FLOORF. Cache the result.
60014         (gl_FUNC_FLOORF): Use it.
60015         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
60016         gl_FUNC_CEILF. Cache the result.
60017         (gl_FUNC_CEILF): Use it.
60018
60019 2007-10-28  Bruno Haible  <bruno@clisp.org>
60020
60021         * gnulib-tool: Allow specifying the LGPL version number through
60022         --lgpl=2 or --lgpl=3.
60023         (func_usage): Document --lgpl with argument.
60024         Handle --lgpl=... arguments.
60025         (func_import): Recognize also gl_LGPL calls with an argument. When
60026         --lgpl=2 is used and the module's license is just LGPL, report an
60027         error. Set sed_transform_lib_file according to the lgpl variable. In
60028         the generated files, use --lgpl or gl_LGPL invocations with argument,
60029         if necessary.
60030         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
60031         an LGPv2+ license.
60032         * doc/gnulib-tool.texi (Modified imports): Update explanation of
60033         gl_LGPL macro.
60034
60035 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60036             Bruno Haible  <bruno@clisp.org>
60037
60038         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
60039         (u16_uctomb_aux): Likewise.
60040         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
60041         !HAVE_INLINE.
60042         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
60043
60044 2007-10-28  Bruno Haible  <bruno@clisp.org>
60045
60046         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
60047         Invoke AM_GETTEXT_OPTION if it exists.
60048         * modules/vasprintf: Likewise.
60049         * modules/verror: Likewise.
60050         * modules/xprintf: Likewise.
60051         * modules/xvasprintf: Likewise.
60052
60053 2007-10-27  Ben Pfaff  <blp@gnu.org>
60054
60055         * lib/math.in.h: Define isfinite macro and prototypes for
60056         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
60057         implementations.
60058         * m4/math_h.m4: New substitutions for isfinite module.
60059         * lib/isfinite.c: New file.
60060         * m4/isfinite.m4: New file.
60061         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
60062         * modules/isfinite: New file.
60063         * modules/isfinite-tests: New file.
60064         * tests/tests-isfinite.c: New file.
60065         * doc/functions/isfinite.texi: Mention isfinite module.
60066         * MODULES.html.sh: Mention new module.
60067
60068 2007-10-27  Ben Pfaff  <blp@gnu.org>
60069
60070         Ralf Wildenhues reported that Tru64 4.0D declares the round
60071         functions but does not have definitions.
60072         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
60073         cannot be found in any library, set the output variable to
60074         "missing" instead of "".
60075         * m4/round.m4: Also use our substitute if we cannot find round in
60076         any library, even if it is declared.
60077         * m4/roundf.m4: Likewise for roundf.
60078         * m4/roundl.m4: Likewise for roundl.
60079         * lib/math.in.h: Undefine roundf, round, roundl before defining
60080         their replacements, to allow for hypothetical systems where these
60081         may be defined as macros but not available in libraries.
60082
60083 2007-10-27  Bruno Haible  <bruno@clisp.org>
60084
60085         * doc/gnulib.texi: Invoke @firstparagraphindent.
60086         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
60087         changes in gnulib.
60088         (Source changes): New section.
60089
60090 2007-10-26  Bruno Haible  <bruno@clisp.org>
60091
60092         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
60093         borrowed from autoconf.
60094
60095 2007-10-26  Bruno Haible  <bruno@clisp.org>
60096
60097         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
60098         strerror returned the empty string. Needed on HP-UX 11.00.
60099
60100 2007-10-24  Micah Cowan  <micah@cowan.name>
60101
60102         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
60103         * build-aux/bootstrap: Remove support for now-unnecessary option,
60104         --cvs-user, and envvars CVS_USER, CVS_RSH.
60105
60106 2007-10-24  Jim Meyering  <meyering@redhat.com>
60107
60108         Avoid diagnostics from sha1sum when there is no cached checksum.
60109         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
60110         if the po.s1 file hasn't been created yet.
60111
60112         * build-aux/bootstrap: Sync from coreutils:
60113         2007-10-24  Jim Meyering  <meyering@redhat.com>
60114         Get gnulib from the git repository, not from an obsolete cvs one.
60115         * build-aux/bootstrap: Suggestion from Micah Cowan.
60116         2007-10-04  Jim Meyering  <jim@meyering.net>
60117         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
60118         (update_po_files): Work also when there are no .po files in po/.
60119
60120 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60121
60122         * README: Append ".git" to git and cg examples.
60123         Problem reported by Benoit Sigoure.
60124
60125 2007-10-23  Micah Cowan  <micah@cowan.name>
60126
60127         * users.txt: Add wget.
60128
60129 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60130
60131         Fix linking of some unistdio tests on FreeBSD.
60132         * modules/unistdio/u16-vsnprintf-tests
60133         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
60134         * modules/unistdio/u16-vsprintf-tests
60135         (test_u16_vsnprintf1_LDADD): Likewise.
60136         * modules/unistdio/u32-vsnprintf-tests
60137         (test_u32_vsnprintf1_LDADD): Likewise.
60138         * modules/unistdio/u32-vsprintf-tests
60139         (test_u32_vsprintf1_LDADD): Likewise.
60140         * modules/unistdio/u8-vsnprintf-tests
60141         (test_u8_vsnprintf1_LDADD): Likewise.
60142         * modules/unistdio/u8-vsprintf-tests
60143         (test_u8_vsprintf1_LDADD): Likewise.
60144         * modules/unistdio/ulc-vsnprintf-tests
60145         (test_ulc_vsnprintf1_LDADD): Likewise.
60146         * modules/unistdio/ulc-vsprintf-tests
60147         (test_ulc_vsprintf1_LDADD): Likewise.
60148
60149         Fix linking of some uniconv tests on FreeBSD.
60150         * modules/uniconv/u16-conv-from-enc-tests
60151         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
60152         * modules/uniconv/u16-conv-to-enc-tests
60153         (test_u16_conv_to_enc_LDADD): Likewise.
60154         * modules/uniconv/u16-strconv-from-enc-tests
60155         (test_u16_strconv_from_enc_LDADD): Likewise.
60156         * modules/uniconv/u16-strconv-to-enc-tests
60157         (test_u16_strconv_to_enc_LDADD): Likewise.
60158         * modules/uniconv/u32-conv-from-enc-tests
60159         (test_u32_conv_from_enc_LDADD): Likewise.
60160         * modules/uniconv/u32-conv-to-enc-tests
60161         (test_u32_conv_to_enc_LDADD): Likewise.
60162         * modules/uniconv/u32-strconv-from-enc-tests
60163         (test_u32_strconv_from_enc_LDADD): Likewise.
60164         * modules/uniconv/u32-strconv-to-enc-tests
60165         (test_u32_strconv_to_enc_LDADD): Likewise.
60166         * modules/uniconv/u8-conv-from-enc-tests
60167         (test_u8_conv_from_enc_LDADD): Likewise.
60168         * modules/uniconv/u8-conv-to-enc-tests
60169         (test_u8_conv_to_enc_LDADD): Likewise.
60170         * modules/uniconv/u8-strconv-from-enc-tests
60171         (test_u8_strconv_from_enc_LDADD): Likewise.
60172         * modules/uniconv/u8-strconv-to-enc-tests
60173         (test_u8_strconv_to_enc_LDADD): Likewise.
60174
60175 2007-10-22  Bruno Haible  <bruno@clisp.org>
60176
60177         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
60178         size.
60179
60180 2007-10-22  Eric Blake  <ebb9@byu.net>
60181
60182         Tweak x*printf documentation.
60183         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
60184         variable name and comments.
60185         Suggested by Bruno Haible.
60186
60187 2007-10-22  Bruno Haible  <bruno@clisp.org>
60188
60189         * lib/acl.c (copy_acl): Fix file name in comment.
60190
60191 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60192
60193         Fix Tru64 problem with stdbool.h.
60194         * lib/stdbool.in.h (false, true):
60195         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
60196         Don't declare as an enum in this situation; it runs afoul of Tru64.
60197         Problem reported by Steven M. Schweda in
60198         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
60199
60200 2007-10-22  Eric Blake  <ebb9@byu.net>
60201
60202         Also wrap vf?printf.
60203         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
60204         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
60205         (xvprintf, xvfprintf): New functions.
60206
60207 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60208
60209         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
60210         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
60211
60212         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
60213         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
60214
60215 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60216
60217         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
60218         by Bruno Haible.
60219
60220 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60221
60222         * lib/getloadavg.c
60223         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
60224         Undef `sys' after including sys/table.h, for Tru64 4.0D.
60225
60226         * tests/test-i-ring.c: Work for C89.
60227
60228 2007-10-22  Bruno Haible  <bruno@clisp.org>
60229
60230         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
60231         -1u, in preprocessor expression, so that we don't test for the bug
60232         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
60233         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
60234
60235 2007-10-22  Eric Blake  <ebb9@byu.net>
60236
60237         * tests/test-yesno.sh: Silence stderr during test.
60238
60239 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60240
60241         * modules/crypto/gc-camellia: New file.
60242
60243         * m4/gc-camellia.m4: New file.
60244
60245         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
60246
60247         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
60248
60249 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60250
60251         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
60252         --help to stdout.  Reported by sms@antinode.org (Steven
60253         M. Schweda).
60254
60255 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60256
60257         * users.txt: Fix link to libksba.
60258
60259 2007-10-21  Ben Pfaff  <blp@gnu.org>
60260
60261         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
60262         round.c roundf implementation that depends on floorf and ceilf to
60263         be tested unconditionally.
60264
60265 2007-10-21  Ben Pfaff  <blp@gnu.org>
60266
60267         * m4/check-libm-func.m4: Removed.
60268         * m4/check-math-lib.m4: New file.
60269         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
60270         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
60271         definition and lack of AC_LIBOBJ([roundf]).
60272         * m4/roundl.m4: Ditto, and similarly for roundl.
60273         * modules/round: Reference new m4 file.
60274         * modules/roundf: Ditto.
60275         * modules/roundl: Ditto.
60276         * tests/test-round2.c (main): Use ROUND instead of round.
60277         Bug report from Bruno Haible.
60278
60279 2007-10-21  Bruno Haible  <bruno@clisp.org>
60280
60281         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
60282         context.
60283
60284 2007-10-21  Bruno Haible  <bruno@clisp.org>
60285
60286         * tests/test-wcwidth.c (main): Allow negative result for some control
60287         characters.
60288
60289         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
60290         Needed on OSF/1 5.1.
60291
60292 2007-10-21  Bruno Haible  <bruno@clisp.org>
60293
60294         * tests/test-floorf1.c: Include isnanf.h.
60295         (main): Use isnanf() instead of isnan().
60296         * tests/test-ceilf1.c: Include isnanf.h.
60297         (main): Use isnanf() instead of isnan().
60298         * tests/test-truncf1.c: Include isnanf.h.
60299         (main): Use isnanf() instead of isnan().
60300         * tests/test-roundf1.c: Include isnanf.h.
60301         (main): Use isnanf() instead of isnan().
60302
60303 2007-10-21  Eric Blake  <ebb9@byu.net>
60304
60305         * users.txt: Update URL for m4.
60306
60307 2007-10-21  Bruno Haible  <bruno@clisp.org>
60308
60309         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
60310
60311 2007-10-21  Bruno Haible  <bruno@clisp.org>
60312
60313         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
60314         Git's management files if the CVS files are not present.
60315
60316 2007-10-20  Bruno Haible  <bruno@clisp.org>
60317
60318         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
60319         gcc-3.4.x.
60320
60321 2007-10-20  Ben Pfaff  <blp@gnu.org>
60322
60323         * lib/math.in.h: Declare round, roundf, roundl if we are providing
60324         implementations.
60325         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
60326         * lib/round.c: New file.
60327         * lib/roundf.c: New file.
60328         * lib/roundl.c: New file.
60329         * m4/round.m4: New file.
60330         * m4/roundf.m4: New file.
60331         * m4/roundl.m4: New file.
60332         * m4/check-libm-func-m4: New file.
60333         * modules/math: Replace round, roundf, roundl related @VARS@ in
60334         math.in.h.
60335         * modules/round: New file.
60336         * modules/round-tests: New file.
60337         * modules/roundf: New file.
60338         * modules/roundf-tests: New file.
60339         * modules/roundl: New file.
60340         * modules/roundl-tests: New file.
60341         * tests/test-round1.c: New file.
60342         * tests/test-round2.c: New file.
60343         * tests/test-roundf1.c: New file.
60344         * tests/test-roundf2.c: New file.
60345         * tests/test-roundl.c: New file.
60346         * doc/functions/round.texi: Mention round module.
60347         * doc/functions/roundf.texi: Mention roundf module.
60348         * doc/functions/roundl.texi: Mention roundl module.
60349         * MODULES.html.sh: Mention new modules.
60350         Thanks to Bruno Haible for suggestions.
60351
60352 2007-10-20  Jim Meyering  <meyering@redhat.com>
60353
60354         * lib/xprintf.c: Include <config.h> unconditionally.
60355
60356         Change xprintf's license to GPL.
60357         * modules/xprintf (License): s/LGPL/GPL/, since this module
60358         depends on modules (exit and exitfail) which are GPL.
60359         Suggestion from Bruno Haible.
60360
60361         xprintf fixes.
60362         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
60363         Use a clearer diagnostic.
60364         Patch from Bruno Haible.
60365
60366 2007-10-20  Bruno Haible  <bruno@clisp.org>
60367
60368         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
60369         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
60370         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60371
60372 2007-10-20  Bruno Haible  <bruno@clisp.org>
60373
60374         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
60375         precision in the comparison result > x - 1 or similar.
60376         * tests/test-ceilf2.c (correct_result_p): Likewise.
60377         * tests/test-truncf2.c (correct_result_p): Likewise.
60378         * tests/test-trunc2.c (correct_result_p): Likewise.
60379         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60380
60381 2007-10-20  Bruno Haible  <bruno@clisp.org>
60382
60383         * modules/ceil: New file.
60384         * m4/ceil.m4: New file.
60385         * doc/functions/ceil.texi: Mention the 'ceil' module.
60386
60387 2007-10-20  Bruno Haible  <bruno@clisp.org>
60388
60389         * modules/floor: New file.
60390         * m4/floor.m4: New file.
60391         * doc/functions/floor.texi: Mention the 'floor' module.
60392
60393 2007-10-20  Bruno Haible  <bruno@clisp.org>
60394
60395         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
60396         of %a.
60397         * modules/floorf-tests (Depends-on): Likewise.
60398         * modules/truncf-tests (Depends-on): Likewise.
60399         * modules/trunc-tests (Depends-on): Likewise.
60400         Reported by Ben Pfaff.
60401
60402 2007-10-19  Jim Meyering  <meyering@redhat.com>
60403
60404         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
60405         Don't bother testing specific errno values.  Just test ferror.
60406
60407         New module: xprintf
60408         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
60409
60410 2007-10-19  Bruno Haible  <bruno@clisp.org>
60411
60412         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
60413         syntax.
60414         * modules/javaexec (Makefile.am): Likewise.
60415         * modules/relocatable-prog (Makefile.am): Likewise.
60416         Suggested by Jim Meyering.
60417
60418 2007-10-18  Bruno Haible  <bruno@clisp.org>
60419
60420         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
60421         Reported by Jim Meyering.
60422
60423 2007-10-18  Eric Blake  <ebb9@byu.net>
60424
60425         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
60426
60427 2007-10-18  Bruno Haible  <bruno@clisp.org>
60428
60429         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
60430         the format string into writable memory. Needed in Fortify conditions.
60431
60432 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
60433             Bruno Haible  <bruno@clisp.org>
60434
60435         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
60436         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
60437         * modules/trim (Depends-on): Add mbchar.
60438         (configure.ac): Add gl_FUNC_MBRTOWC.
60439         (Makefile.am): Augment lib_SOURCES.
60440
60441 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
60442
60443         Modify glob.c to use fstatat and dirfd, to simplify it.
60444         Suggested by Eric Blake.
60445         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
60446         Don't include <stdbool.h>; not used.
60447         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
60448         (link_exists_p): Simplify implementation, since we can now assume
60449         dirfd and fstatat.
60450         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
60451
60452 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60453
60454         * gnulib-tool (func_get_dependencies): Fix sed script to
60455         match only tests.
60456
60457 2007-10-17  Bruno Haible  <bruno@clisp.org>
60458
60459         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
60460         allow locale names without encoding suffix.
60461         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
60462         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
60463
60464 2007-10-16  Bruno Haible  <bruno@clisp.org>
60465
60466         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
60467         * lib/getgroups.c (getgroups): Likewise.
60468         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
60469
60470 2007-10-16  Bruno Haible  <bruno@clisp.org>
60471
60472         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
60473         * modules/malloc-posix (License): Likewise.
60474         * modules/realloc-posix (License): Likewise.
60475         * modules/calloc-posix (License): Likewise.
60476         * modules/intprops (License): Change from GPL to LGPL, with
60477         Paul Eggert's approval.
60478
60479 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
60480
60481         Merge glibc changes into lib/glob.c.
60482
60483         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
60484         2007-10-15 04:59:03 UTC.  Here are the changes:
60485
60486         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
60487
60488         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
60489
60490         * lib/glob.c: Add some branch prediction throughout.
60491
60492         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
60493
60494         [BZ #5103]
60495         * lib/glob.c (glob): Recognize patterns starting \/.
60496
60497         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
60498
60499         [BZ #3996]
60500         * lib/glob.c (attribute_hidden): Define if not defined.
60501         (glob): Unescape dirname, filename or username when needed and not
60502         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
60503         is NULL.  Handle unescaped [ in pattern without closing ].
60504         Don't pass GLOB_CHECK down to recursive glob for directories.
60505         (__glob_pattern_type): New function.
60506         (__glob_pattern_p): Implement using __glob_pattern_type.
60507         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
60508         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
60509         Remove unreachable code.
60510
60511         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
60512
60513         * lib/glob.c (glob_in_dir): Add some comments and asserts to
60514         explain why there are no leaks.
60515
60516         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
60517
60518         [BZ #3253]
60519         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
60520         time, rather allocate increasingly bigger arrays of pointers, if
60521         possible with alloca, if too large with malloc.
60522
60523 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
60524
60525         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
60526         Problem reported by H.Merijn Brand in
60527         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
60528         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
60529         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
60530
60531 2007-10-15  Bruno Haible  <bruno@clisp.org>
60532
60533         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
60534         with explicit rpl_ prefix.
60535         * lib/fopen.c (fopen): Likewise.
60536         * lib/freopen.c (freopen): Likewise.
60537         * lib/iconv.c (iconv): Likewise.
60538         * lib/iconv_close.c (iconv_close): Likewise.
60539
60540 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60541
60542         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
60543
60544 2007-10-15  Bruno Haible  <bruno@clisp.org>
60545
60546         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
60547         <stddef.h> instead of <stdlib.h> since we only need NULL.
60548         Reported by Ben Pfaff <blp@cs.stanford.edu>.
60549
60550 2007-10-15  Bruno Haible  <bruno@clisp.org>
60551
60552         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
60553         Replace paragraph talking about LIBOBJS.
60554         Reported by Colin Watson <cjwatson@debian.org>.
60555
60556 2007-10-15  Bruno Haible  <bruno@clisp.org>
60557
60558         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
60559         <stdlib.h> before using NULL.
60560
60561 2007-10-15  Simon Josefsson  <simon@josefsson.org>
60562
60563         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
60564         Reported by Albert Chin <china@thewrittenword.com>.
60565
60566 2007-10-14  Bruno Haible  <bruno@clisp.org>
60567
60568         * modules/iconv_open-utf-tests: New file.
60569         * tests/test-iconv-utf.c: New file.
60570
60571         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
60572         * modules/iconv_open-utf: New file.
60573         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
60574         (iconv, iconv_close): New declarations.
60575         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
60576         be defined.
60577         (iconv_open): Add special handling of conversion between UTF-8 and
60578         UTF-{16,32}{BE,LE}.
60579         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
60580         * lib/iconv_close.c: New file.
60581         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
60582         gl_FUNC_ICONV_OPEN.
60583         (gl_FUNC_ICONV_OPEN): Use it.
60584         (gl_FUNC_ICONV_OPEN_UTF): New macro.
60585         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
60586         and REPLACE_ICONV_UTF.
60587         * modules/iconv_open (Depends-on): Add c-strcase.
60588         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
60589         ICONV_CONST.
60590         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
60591
60592 2007-10-13  Albert Chin  <china@thewrittenword.com>
60593             Bruno Haible  <bruno@clisp.org>
60594
60595         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
60596         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
60597
60598 2007-10-13  Bruno Haible  <bruno@clisp.org>
60599
60600         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
60601         defined, use the ISO C99 inline semantics.
60602         * lib/argp.h (ARGP_EI): Likewise.
60603
60604 2007-10-13  Bruno Haible  <bruno@clisp.org>
60605
60606         Handle 'inline' change in gcc 4.3.0.
60607         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
60608         argp_fmtstream_write, argp_fmtstream_set_lmargin,
60609         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
60610         argp_fmtstream_point): Disable 'extern' declaration if the function
60611         definition is going to be provided inline.
60612         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
60613         semantics, not the ISO C99 inline semantics.
60614         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
60615         'extern' declaration if the function definition is going to be provided
60616         inline.
60617         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
60618         the GNU C inline semantics, not the ISO C99 inline semantics. With
60619         GCC 4.2, avoid a warning.
60620
60621 2007-10-13  Bruno Haible  <bruno@clisp.org>
60622
60623         * lib/freading.h (freading): Enable the use of __freading for
60624         glibc >= 2.7.
60625         * lib/freading.c (freading): Likewise.
60626
60627 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
60628
60629         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
60630         "warning: C99 inline functions are not supported; using GNU89".
60631
60632 2007-10-12  Bruno Haible  <bruno@clisp.org>
60633
60634         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
60635         of 2.
60636         * tests/test-ceilf2.c: New file.
60637         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
60638
60639         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
60640         * modules/ceilf-tests: Update.
60641
60642 2007-10-12  Bruno Haible  <bruno@clisp.org>
60643
60644         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
60645         of 2.
60646         * tests/test-floorf2.c: New file.
60647         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
60648
60649         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
60650         * modules/floorf-tests: Update.
60651
60652 2007-10-12  Bruno Haible  <bruno@clisp.org>
60653
60654         * tests/test-trunc2.c: New file.
60655         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
60656
60657         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
60658         * modules/trunc-tests: Update.
60659
60660 2007-10-12  Bruno Haible  <bruno@clisp.org>
60661
60662         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
60663         of 2.
60664         * tests/test-truncf2.c: New file.
60665         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
60666
60667         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
60668         * modules/truncf-tests: Update.
60669
60670 2007-10-11  Eric Blake  <ebb9@byu.net>
60671
60672         Don't claim strerror is broken on Interix.
60673         * doc/functions/strerror.texi (strerror): Known broken systems are
60674         now Solaris 8, and not Interix.
60675         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
60676         Interix on cross-compile.
60677         Reported by Martin Koeppe in
60678         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
60679
60680 2007-10-11  Bruno Haible  <bruno@clisp.org>
60681
60682         * modules/i-ring-tests: New file.
60683         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
60684         instead of assert.
60685
60686 2007-10-11  Bruno Haible  <bruno@clisp.org>
60687
60688         * modules/filenamecat-tests: New file.
60689         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
60690         * lib/filenamecat.c: Remove test code.
60691
60692 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
60693
60694         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
60695
60696         * lib/strerror.c: Include <string.h> always, to test interface,
60697         and to remove the need for the dummy.
60698         Include intprops.h to compute width instead of doing it ourselves
60699         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
60700         (strerror): Define it to return NULL if there's no system strerror.
60701         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
60702         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
60703         ancient pre-strerror Unix systems well any more.  Saying "unknown
60704         system error" is enough.
60705         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
60706         simpler strerror.c implementation.
60707         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
60708         Simplify the tests to reflect the simpler strerror implementation.
60709         * modules/strerror (Depends-on): Add intprops.
60710
60711 2007-10-09  Eric Blake  <ebb9@byu.net>
60712
60713         Silence test-fpending.
60714         * modules/fpending-tests (Files): Add wrapper script.
60715         * tests/test-fpending.sh: New file.
60716
60717 2007-10-09  Bruno Haible  <bruno@clisp.org>
60718
60719         * MODULES.html.sh (func_module): Don't create a hyperlink for
60720         function names like 'printf_frexp'.
60721         (Misc): Add crc, memxor.
60722         (Characteristics of floating types): New section.
60723         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
60724         isnanf-nolibm, signbit, trunc, truncf, truncl.
60725         (Enhancements for ISO C 99 functions): New subsection Input/output.
60726         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
60727         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
60728         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
60729         (Compatibility checks for POSIX:2001 functions): Add clock-time.
60730         (Enhancements for POSIX:2001 functions): Add chdir-long.
60731         (File system functions): Add areadlink, chdir-safer, read-file.
60732         Remove cycle-check.
60733         (File system as inode set): New section.
60734         (Date and time): Add gethrxtime.
60735         (Multithreading): Add openmp.
60736         (Internationalization functions): Add localename.
60737         (Unicode string functions): Add unistr/u*-mbsnlen.
60738         (Support for maintaining and releasing projects): Add git-version-gen.
60739         (Lone files): Remove directories.
60740
60741 2007-10-08  Ben Pfaff  <blp@gnu.org>
60742
60743         * lib/xmalloca.h: Fix typo in comment.
60744
60745 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
60746
60747         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
60748         when avoiding problems with integer overflow.  Use a portable test
60749         instead.
60750
60751 2007-10-08  Simon Josefsson  <simon@josefsson.org>
60752
60753         * modules/dummy (License): Change to LGPLv2+.
60754         * modules/float (License): Likewise
60755         * modules/realloc (License): Likewise
60756         * modules/stdlib (License): Likewise
60757
60758 2007-10-07  Bruno Haible  <bruno@clisp.org>
60759
60760         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
60761         * floor.c (TWO_MANT_DIG): Likewise.
60762         * ceil.c (TWO_MANT_DIG): Likewise.
60763         Reported by Ben Pfaff.
60764
60765 2007-10-07  Bruno Haible  <bruno@clisp.org>
60766
60767         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
60768         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
60769         * lib/frexp.c (FUNC): Likewise.
60770         * lib/printf-frexp.h (printf_frexp): Likewise.
60771         * lib/printf-frexpl.h (printf_frexpl): Likewise.
60772         * lib/printf-frexp.c (FUNC): Likewise.
60773         Suggested by Jim Meyering.
60774
60775 2007-10-07  Jim Meyering  <meyering@redhat.com>
60776
60777         Make xnanosleep's integer overflow test more robust.
60778         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
60779         so that gcc-4.3.0 doesn't optimize away this test for overflow.
60780
60781 2007-10-07  Bruno Haible  <bruno@clisp.org>
60782
60783         * NEWS: Mention the license change.
60784
60785         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
60786         abbreviations in the modules files.
60787
60788         Change copyright notice from GPLv2+ to GPLv3+.
60789         * README: Change copyright notice.
60790         * MODULES.html.sh: Likewise.
60791         * build-aux/bootstrap.conf: Likewise.
60792         * build-aux/config.libpath: Likewise.
60793         * build-aux/csharpcomp.sh.in: Likewise.
60794         * build-aux/csharpexec.sh.in: Likewise.
60795         * build-aux/install-reloc: Likewise.
60796         * build-aux/javacomp.sh.in: Likewise.
60797         * build-aux/javaexec.sh.in: Likewise.
60798         * build-aux/ldd.sh.in: Likewise.
60799         * build-aux/reloc-ldflags: Likewise.
60800         * build-aux/relocatable.sh.in: Likewise.
60801         * build-aux/x-to-1.in: Likewise.
60802         * check-module: Likewise.
60803         * config/srclistvars.sh: Likewise.
60804         * gnulib-tool: Likewise.
60805         * lib/acl-internal.h: Likewise.
60806         * lib/acl.c: Likewise.
60807         * lib/acl.h: Likewise.
60808         * lib/acl_entries.c: Likewise.
60809         * lib/areadlink-with-size.c: Likewise.
60810         * lib/areadlink.c: Likewise.
60811         * lib/areadlink.h: Likewise.
60812         * lib/argmatch.c: Likewise.
60813         * lib/argmatch.h: Likewise.
60814         * lib/argp-ba.c: Likewise.
60815         * lib/argp-eexst.c: Likewise.
60816         * lib/argp-fmtstream.c: Likewise.
60817         * lib/argp-fmtstream.h: Likewise.
60818         * lib/argp-fs-xinl.c: Likewise.
60819         * lib/argp-help.c: Likewise.
60820         * lib/argp-namefrob.h: Likewise.
60821         * lib/argp-parse.c: Likewise.
60822         * lib/argp-pin.c: Likewise.
60823         * lib/argp-pv.c: Likewise.
60824         * lib/argp-pvh.c: Likewise.
60825         * lib/argp-xinl.c: Likewise.
60826         * lib/argp.h: Likewise.
60827         * lib/at-func.c: Likewise.
60828         * lib/atanl.c: Likewise.
60829         * lib/backupfile.c: Likewise.
60830         * lib/backupfile.h: Likewise.
60831         * lib/basename.c: Likewise.
60832         * lib/binary-io.h: Likewise.
60833         * lib/byteswap.in.h: Likewise.
60834         * lib/c-stack.c: Likewise.
60835         * lib/c-stack.h: Likewise.
60836         * lib/c-strcasestr.c: Likewise.
60837         * lib/c-strcasestr.h: Likewise.
60838         * lib/c-strstr.c: Likewise.
60839         * lib/c-strstr.h: Likewise.
60840         * lib/c-strtod.c: Likewise.
60841         * lib/calloc.c: Likewise.
60842         * lib/canon-host.c: Likewise.
60843         * lib/canon-host.h: Likewise.
60844         * lib/canonicalize-lgpl.c: Likewise.
60845         * lib/canonicalize.c: Likewise.
60846         * lib/canonicalize.h: Likewise.
60847         * lib/ceil.c: Likewise.
60848         * lib/ceilf.c: Likewise.
60849         * lib/ceill.c: Likewise.
60850         * lib/chdir-long.c: Likewise.
60851         * lib/chdir-long.h: Likewise.
60852         * lib/chdir-safer.c: Likewise.
60853         * lib/chdir-safer.h: Likewise.
60854         * lib/chown.c: Likewise.
60855         * lib/classpath.c: Likewise.
60856         * lib/classpath.h: Likewise.
60857         * lib/clean-temp.c: Likewise.
60858         * lib/clean-temp.h: Likewise.
60859         * lib/cloexec.c: Likewise.
60860         * lib/close-stream.c: Likewise.
60861         * lib/closein.c: Likewise.
60862         * lib/closein.h: Likewise.
60863         * lib/closeout.c: Likewise.
60864         * lib/closeout.h: Likewise.
60865         * lib/concat-filename.c: Likewise.
60866         * lib/copy-file.c: Likewise.
60867         * lib/copy-file.h: Likewise.
60868         * lib/count-one-bits.h: Likewise.
60869         * lib/crc.c: Likewise.
60870         * lib/crc.h: Likewise.
60871         * lib/creat-safer.c: Likewise.
60872         * lib/csharpcomp.c: Likewise.
60873         * lib/csharpcomp.h: Likewise.
60874         * lib/csharpexec.c: Likewise.
60875         * lib/csharpexec.h: Likewise.
60876         * lib/cycle-check.c: Likewise.
60877         * lib/cycle-check.h: Likewise.
60878         * lib/diacrit.c: Likewise.
60879         * lib/diacrit.h: Likewise.
60880         * lib/diffseq.h: Likewise.
60881         * lib/dirchownmod.c: Likewise.
60882         * lib/dirent.in.h: Likewise.
60883         * lib/dirfd.c: Likewise.
60884         * lib/dirfd.h: Likewise.
60885         * lib/dirname.c: Likewise.
60886         * lib/dirname.h: Likewise.
60887         * lib/dummy.c: Likewise.
60888         * lib/dup-safer.c: Likewise.
60889         * lib/dup2.c: Likewise.
60890         * lib/eealloc.h: Likewise.
60891         * lib/error.c: Likewise.
60892         * lib/error.h: Likewise.
60893         * lib/euidaccess.c: Likewise.
60894         * lib/exclude.c: Likewise.
60895         * lib/exclude.h: Likewise.
60896         * lib/execute.c: Likewise.
60897         * lib/execute.h: Likewise.
60898         * lib/exitfail.c: Likewise.
60899         * lib/exitfail.h: Likewise.
60900         * lib/expl.c: Likewise.
60901         * lib/fatal-signal.c: Likewise.
60902         * lib/fatal-signal.h: Likewise.
60903         * lib/fbufmode.c: Likewise.
60904         * lib/fbufmode.h: Likewise.
60905         * lib/fchdir.c: Likewise.
60906         * lib/fchmodat.c: Likewise.
60907         * lib/fchownat.c: Likewise.
60908         * lib/fcntl--.h: Likewise.
60909         * lib/fcntl-safer.h: Likewise.
60910         * lib/fcntl.in.h: Likewise.
60911         * lib/fd-safer.c: Likewise.
60912         * lib/fflush.c: Likewise.
60913         * lib/file-has-acl.c: Likewise.
60914         * lib/file-set.c: Likewise.
60915         * lib/file-type.c: Likewise.
60916         * lib/file-type.h: Likewise.
60917         * lib/fileblocks.c: Likewise.
60918         * lib/filemode.c: Likewise.
60919         * lib/filemode.h: Likewise.
60920         * lib/filename.h: Likewise.
60921         * lib/filenamecat.c: Likewise.
60922         * lib/filenamecat.h: Likewise.
60923         * lib/findprog.c: Likewise.
60924         * lib/findprog.h: Likewise.
60925         * lib/float.in.h: Likewise.
60926         * lib/floor.c: Likewise.
60927         * lib/floorf.c: Likewise.
60928         * lib/floorl.c: Likewise.
60929         * lib/fopen-safer.c: Likewise.
60930         * lib/fopen.c: Likewise.
60931         * lib/fpending.c: Likewise.
60932         * lib/fpending.h: Likewise.
60933         * lib/fprintf.c: Likewise.
60934         * lib/fprintftime.h: Likewise.
60935         * lib/fpucw.h: Likewise.
60936         * lib/fpurge.c: Likewise.
60937         * lib/fpurge.h: Likewise.
60938         * lib/freadable.c: Likewise.
60939         * lib/freadable.h: Likewise.
60940         * lib/freadahead.c: Likewise.
60941         * lib/freadahead.h: Likewise.
60942         * lib/freading.c: Likewise.
60943         * lib/freading.h: Likewise.
60944         * lib/free.c: Likewise.
60945         * lib/freopen.c: Likewise.
60946         * lib/frexp.c: Likewise.
60947         * lib/frexpl.c: Likewise.
60948         * lib/fseek.c: Likewise.
60949         * lib/fseterr.c: Likewise.
60950         * lib/fseterr.h: Likewise.
60951         * lib/fstatat.c: Likewise.
60952         * lib/fstrcmp.c: Likewise.
60953         * lib/fstrcmp.h: Likewise.
60954         * lib/fsusage.c: Likewise.
60955         * lib/fsusage.h: Likewise.
60956         * lib/ftell.c: Likewise.
60957         * lib/ftello.c: Likewise.
60958         * lib/fts-cycle.c: Likewise.
60959         * lib/fts.c: Likewise.
60960         * lib/fts_.h: Likewise.
60961         * lib/full-read.c: Likewise.
60962         * lib/full-read.h: Likewise.
60963         * lib/full-write.c: Likewise.
60964         * lib/full-write.h: Likewise.
60965         * lib/fwritable.c: Likewise.
60966         * lib/fwritable.h: Likewise.
60967         * lib/fwriteerror.c: Likewise.
60968         * lib/fwriteerror.h: Likewise.
60969         * lib/fwriting.c: Likewise.
60970         * lib/fwriting.h: Likewise.
60971         * lib/gcd.c: Likewise.
60972         * lib/gcd.h: Likewise.
60973         * lib/getcwd.c: Likewise.
60974         * lib/getdate.h: Likewise.
60975         * lib/getdate.y: Likewise.
60976         * lib/getdomainname.c: Likewise.
60977         * lib/getdomainname.h: Likewise.
60978         * lib/getgroups.c: Likewise.
60979         * lib/gethostname.c: Likewise.
60980         * lib/gethrxtime.c: Likewise.
60981         * lib/gethrxtime.h: Likewise.
60982         * lib/getloadavg.c: Likewise.
60983         * lib/getndelim2.c: Likewise.
60984         * lib/getndelim2.h: Likewise.
60985         * lib/getnline.c: Likewise.
60986         * lib/getnline.h: Likewise.
60987         * lib/getopt.c: Likewise.
60988         * lib/getopt.in.h: Likewise.
60989         * lib/getopt1.c: Likewise.
60990         * lib/getopt_int.h: Likewise.
60991         * lib/getpagesize.h: Likewise.
60992         * lib/getsubopt.c: Likewise.
60993         * lib/gettime.c: Likewise.
60994         * lib/getugroups.c: Likewise.
60995         * lib/getugroups.h: Likewise.
60996         * lib/getusershell.c: Likewise.
60997         * lib/gl_anyavltree_list1.h: Likewise.
60998         * lib/gl_anyavltree_list2.h: Likewise.
60999         * lib/gl_anyhash_list1.h: Likewise.
61000         * lib/gl_anyhash_list2.h: Likewise.
61001         * lib/gl_anylinked_list1.h: Likewise.
61002         * lib/gl_anylinked_list2.h: Likewise.
61003         * lib/gl_anyrbtree_list1.h: Likewise.
61004         * lib/gl_anyrbtree_list2.h: Likewise.
61005         * lib/gl_anytree_list1.h: Likewise.
61006         * lib/gl_anytree_list2.h: Likewise.
61007         * lib/gl_anytree_oset.h: Likewise.
61008         * lib/gl_anytreehash_list1.h: Likewise.
61009         * lib/gl_anytreehash_list2.h: Likewise.
61010         * lib/gl_array_list.c: Likewise.
61011         * lib/gl_array_list.h: Likewise.
61012         * lib/gl_array_oset.c: Likewise.
61013         * lib/gl_array_oset.h: Likewise.
61014         * lib/gl_avltree_list.c: Likewise.
61015         * lib/gl_avltree_list.h: Likewise.
61016         * lib/gl_avltree_oset.c: Likewise.
61017         * lib/gl_avltree_oset.h: Likewise.
61018         * lib/gl_avltreehash_list.c: Likewise.
61019         * lib/gl_avltreehash_list.h: Likewise.
61020         * lib/gl_carray_list.c: Likewise.
61021         * lib/gl_carray_list.h: Likewise.
61022         * lib/gl_linked_list.c: Likewise.
61023         * lib/gl_linked_list.h: Likewise.
61024         * lib/gl_linkedhash_list.c: Likewise.
61025         * lib/gl_linkedhash_list.h: Likewise.
61026         * lib/gl_list.c: Likewise.
61027         * lib/gl_list.h: Likewise.
61028         * lib/gl_oset.c: Likewise.
61029         * lib/gl_oset.h: Likewise.
61030         * lib/gl_rbtree_list.c: Likewise.
61031         * lib/gl_rbtree_list.h: Likewise.
61032         * lib/gl_rbtree_oset.c: Likewise.
61033         * lib/gl_rbtree_oset.h: Likewise.
61034         * lib/gl_rbtreehash_list.c: Likewise.
61035         * lib/gl_rbtreehash_list.h: Likewise.
61036         * lib/gl_sublist.c: Likewise.
61037         * lib/gl_sublist.h: Likewise.
61038         * lib/group-member.c: Likewise.
61039         * lib/group-member.h: Likewise.
61040         * lib/hard-locale.c: Likewise.
61041         * lib/hard-locale.h: Likewise.
61042         * lib/hash-pjw.c: Likewise.
61043         * lib/hash-pjw.h: Likewise.
61044         * lib/hash-triple.c: Likewise.
61045         * lib/hash.c: Likewise.
61046         * lib/hash.h: Likewise.
61047         * lib/human.c: Likewise.
61048         * lib/human.h: Likewise.
61049         * lib/i-ring.c: Likewise.
61050         * lib/i-ring.h: Likewise.
61051         * lib/idcache.c: Likewise.
61052         * lib/imaxabs.c: Likewise.
61053         * lib/imaxdiv.c: Likewise.
61054         * lib/inet_pton.c: Likewise.
61055         * lib/inet_pton.h: Likewise.
61056         * lib/intprops.h: Likewise.
61057         * lib/inttostr.c: Likewise.
61058         * lib/inttostr.h: Likewise.
61059         * lib/inttypes.in.h: Likewise.
61060         * lib/isapipe.c: Likewise.
61061         * lib/isdir.c: Likewise.
61062         * lib/isnan.c: Likewise.
61063         * lib/isnan.h: Likewise.
61064         * lib/isnanf.c: Likewise.
61065         * lib/isnanf.h: Likewise.
61066         * lib/isnanl-nolibm.h: Likewise.
61067         * lib/isnanl.c: Likewise.
61068         * lib/isnanl.h: Likewise.
61069         * lib/javacomp.c: Likewise.
61070         * lib/javacomp.h: Likewise.
61071         * lib/javaexec.c: Likewise.
61072         * lib/javaexec.h: Likewise.
61073         * lib/javaversion.c: Likewise.
61074         * lib/javaversion.h: Likewise.
61075         * lib/javaversion.java: Likewise.
61076         * lib/lbrkprop.h: Likewise.
61077         * lib/lchmod.h: Likewise.
61078         * lib/lchown.c: Likewise.
61079         * lib/ldexpl.c: Likewise.
61080         * lib/linebreak.c: Likewise.
61081         * lib/linebreak.h: Likewise.
61082         * lib/linebuffer.c: Likewise.
61083         * lib/linebuffer.h: Likewise.
61084         * lib/locale.in.h: Likewise.
61085         * lib/logl.c: Likewise.
61086         * lib/long-options.c: Likewise.
61087         * lib/long-options.h: Likewise.
61088         * lib/lstat.c: Likewise.
61089         * lib/lstat.h: Likewise.
61090         * lib/math.in.h: Likewise.
61091         * lib/mbchar.c: Likewise.
61092         * lib/mbchar.h: Likewise.
61093         * lib/mbfile.h: Likewise.
61094         * lib/mbiter.h: Likewise.
61095         * lib/mbscasecmp.c: Likewise.
61096         * lib/mbscasestr.c: Likewise.
61097         * lib/mbschr.c: Likewise.
61098         * lib/mbscspn.c: Likewise.
61099         * lib/mbslen.c: Likewise.
61100         * lib/mbsncasecmp.c: Likewise.
61101         * lib/mbsnlen.c: Likewise.
61102         * lib/mbspbrk.c: Likewise.
61103         * lib/mbspcasecmp.c: Likewise.
61104         * lib/mbsrchr.c: Likewise.
61105         * lib/mbssep.c: Likewise.
61106         * lib/mbsspn.c: Likewise.
61107         * lib/mbsstr.c: Likewise.
61108         * lib/mbstok_r.c: Likewise.
61109         * lib/mbswidth.c: Likewise.
61110         * lib/mbswidth.h: Likewise.
61111         * lib/mbuiter.h: Likewise.
61112         * lib/memcasecmp.c: Likewise.
61113         * lib/memcasecmp.h: Likewise.
61114         * lib/memchr.c: Likewise.
61115         * lib/memcmp.c: Likewise.
61116         * lib/memcoll.c: Likewise.
61117         * lib/memcoll.h: Likewise.
61118         * lib/memcpy.c: Likewise.
61119         * lib/memrchr.c: Likewise.
61120         * lib/mkancesdirs.c: Likewise.
61121         * lib/mkdir-p.c: Likewise.
61122         * lib/mkdir-p.h: Likewise.
61123         * lib/mkdir.c: Likewise.
61124         * lib/mkdirat.c: Likewise.
61125         * lib/mkdtemp.c: Likewise.
61126         * lib/mkstemp-safer.c: Likewise.
61127         * lib/mkstemp.c: Likewise.
61128         * lib/modechange.c: Likewise.
61129         * lib/modechange.h: Likewise.
61130         * lib/mountlist.c: Likewise.
61131         * lib/mountlist.h: Likewise.
61132         * lib/mpsort.c: Likewise.
61133         * lib/nanosleep.c: Likewise.
61134         * lib/obstack.c: Likewise.
61135         * lib/obstack.h: Likewise.
61136         * lib/open-safer.c: Likewise.
61137         * lib/open.c: Likewise.
61138         * lib/openat-die.c: Likewise.
61139         * lib/openat-priv.h: Likewise.
61140         * lib/openat-proc.c: Likewise.
61141         * lib/openat.c: Likewise.
61142         * lib/openat.h: Likewise.
61143         * lib/pagealign_alloc.c: Likewise.
61144         * lib/pagealign_alloc.h: Likewise.
61145         * lib/physmem.c: Likewise.
61146         * lib/physmem.h: Likewise.
61147         * lib/pipe-safer.c: Likewise.
61148         * lib/pipe.c: Likewise.
61149         * lib/pipe.h: Likewise.
61150         * lib/posixtm.c: Likewise.
61151         * lib/posixtm.h: Likewise.
61152         * lib/posixver.c: Likewise.
61153         * lib/printf-frexp.c: Likewise.
61154         * lib/printf-frexp.h: Likewise.
61155         * lib/printf-frexpl.c: Likewise.
61156         * lib/printf-frexpl.h: Likewise.
61157         * lib/printf.c: Likewise.
61158         * lib/progname.c: Likewise.
61159         * lib/progname.h: Likewise.
61160         * lib/progreloc.c: Likewise.
61161         * lib/putenv.c: Likewise.
61162         * lib/quote.c: Likewise.
61163         * lib/quote.h: Likewise.
61164         * lib/quotearg.c: Likewise.
61165         * lib/quotearg.h: Likewise.
61166         * lib/raise.c: Likewise.
61167         * lib/readline.c: Likewise.
61168         * lib/readline.h: Likewise.
61169         * lib/readlink.c: Likewise.
61170         * lib/readtokens.c: Likewise.
61171         * lib/readtokens.h: Likewise.
61172         * lib/readtokens0.c: Likewise.
61173         * lib/readtokens0.h: Likewise.
61174         * lib/readutmp.c: Likewise.
61175         * lib/readutmp.h: Likewise.
61176         * lib/realloc.c: Likewise.
61177         * lib/relocwrapper.c: Likewise.
61178         * lib/rename-dest-slash.c: Likewise.
61179         * lib/rename.c: Likewise.
61180         * lib/rmdir.c: Likewise.
61181         * lib/rpmatch.c: Likewise.
61182         * lib/safe-read.c: Likewise.
61183         * lib/safe-read.h: Likewise.
61184         * lib/safe-write.c: Likewise.
61185         * lib/safe-write.h: Likewise.
61186         * lib/same-inode.h: Likewise.
61187         * lib/same.c: Likewise.
61188         * lib/same.h: Likewise.
61189         * lib/save-cwd.c: Likewise.
61190         * lib/save-cwd.h: Likewise.
61191         * lib/savedir.c: Likewise.
61192         * lib/savedir.h: Likewise.
61193         * lib/savewd.c: Likewise.
61194         * lib/savewd.h: Likewise.
61195         * lib/search.in.h: Likewise.
61196         * lib/setenv.c: Likewise.
61197         * lib/setenv.h: Likewise.
61198         * lib/settime.c: Likewise.
61199         * lib/sh-quote.c: Likewise.
61200         * lib/sh-quote.h: Likewise.
61201         * lib/sig2str.c: Likewise.
61202         * lib/sig2str.h: Likewise.
61203         * lib/signal.in.h: Likewise.
61204         * lib/signbitd.c: Likewise.
61205         * lib/signbitf.c: Likewise.
61206         * lib/signbitl.c: Likewise.
61207         * lib/sigprocmask.c: Likewise.
61208         * lib/sincosl.c: Likewise.
61209         * lib/sleep.c: Likewise.
61210         * lib/sprintf.c: Likewise.
61211         * lib/sqrtl.c: Likewise.
61212         * lib/stat-time.h: Likewise.
61213         * lib/stdio--.h: Likewise.
61214         * lib/stdio-safer.h: Likewise.
61215         * lib/stdlib--.h: Likewise.
61216         * lib/stdlib-safer.h: Likewise.
61217         * lib/stdlib.in.h: Likewise.
61218         * lib/stpcpy.c: Likewise.
61219         * lib/stpncpy.c: Likewise.
61220         * lib/strchrnul.c: Likewise.
61221         * lib/strcspn.c: Likewise.
61222         * lib/strerror.c: Likewise.
61223         * lib/strftime.c: Likewise.
61224         * lib/strftime.h: Likewise.
61225         * lib/striconveh.c: Likewise.
61226         * lib/striconveh.h: Likewise.
61227         * lib/striconveha.c: Likewise.
61228         * lib/striconveha.h: Likewise.
61229         * lib/stripslash.c: Likewise.
61230         * lib/strnlen1.c: Likewise.
61231         * lib/strnlen1.h: Likewise.
61232         * lib/strtod.c: Likewise.
61233         * lib/strtoimax.c: Likewise.
61234         * lib/strtok_r.c: Likewise.
61235         * lib/strtol.c: Likewise.
61236         * lib/strtoll.c: Likewise.
61237         * lib/strtoul.c: Likewise.
61238         * lib/strtoull.c: Likewise.
61239         * lib/sysexits.in.h: Likewise.
61240         * lib/tempname.c: Likewise.
61241         * lib/tempname.h: Likewise.
61242         * lib/timespec.h: Likewise.
61243         * lib/tls.c: Likewise.
61244         * lib/tls.h: Likewise.
61245         * lib/tmpdir.c: Likewise.
61246         * lib/tmpdir.h: Likewise.
61247         * lib/tmpfile-safer.c: Likewise.
61248         * lib/tmpfile.c: Likewise.
61249         * lib/trigl.c: Likewise.
61250         * lib/trigl.h: Likewise.
61251         * lib/trim.c: Likewise.
61252         * lib/trim.h: Likewise.
61253         * lib/trunc.c: Likewise.
61254         * lib/truncf.c: Likewise.
61255         * lib/truncl.c: Likewise.
61256         * lib/tsearch.c: Likewise.
61257         * lib/unicodeio.c: Likewise.
61258         * lib/unicodeio.h: Likewise.
61259         * lib/unistd--.h: Likewise.
61260         * lib/unistd-safer.h: Likewise.
61261         * lib/unistdio/ulc-fprintf.c: Likewise.
61262         * lib/unistdio/ulc-vfprintf.c: Likewise.
61263         * lib/unlinkdir.c: Likewise.
61264         * lib/unlinkdir.h: Likewise.
61265         * lib/unlocked-io.h: Likewise.
61266         * lib/unsetenv.c: Likewise.
61267         * lib/userspec.c: Likewise.
61268         * lib/utime.c: Likewise.
61269         * lib/utimecmp.c: Likewise.
61270         * lib/utimecmp.h: Likewise.
61271         * lib/utimens.c: Likewise.
61272         * lib/verify.h: Likewise.
61273         * lib/verror.c: Likewise.
61274         * lib/verror.h: Likewise.
61275         * lib/version-etc-fsf.c: Likewise.
61276         * lib/version-etc.c: Likewise.
61277         * lib/version-etc.h: Likewise.
61278         * lib/vfprintf.c: Likewise.
61279         * lib/vprintf.c: Likewise.
61280         * lib/vsprintf.c: Likewise.
61281         * lib/w32spawn.h: Likewise.
61282         * lib/wait-process.c: Likewise.
61283         * lib/wait-process.h: Likewise.
61284         * lib/wcwidth.c: Likewise.
61285         * lib/write-any-file.c: Likewise.
61286         * lib/xalloc-die.c: Likewise.
61287         * lib/xalloc.h: Likewise.
61288         * lib/xasprintf.c: Likewise.
61289         * lib/xgetcwd.c: Likewise.
61290         * lib/xgetcwd.h: Likewise.
61291         * lib/xgetdomainname.c: Likewise.
61292         * lib/xgetdomainname.h: Likewise.
61293         * lib/xgethostname.c: Likewise.
61294         * lib/xmalloc.c: Likewise.
61295         * lib/xmalloca.c: Likewise.
61296         * lib/xmalloca.h: Likewise.
61297         * lib/xmemcoll.c: Likewise.
61298         * lib/xnanosleep.c: Likewise.
61299         * lib/xreadlink.c: Likewise.
61300         * lib/xreadlink.h: Likewise.
61301         * lib/xsetenv.c: Likewise.
61302         * lib/xsetenv.h: Likewise.
61303         * lib/xstriconv.c: Likewise.
61304         * lib/xstriconv.h: Likewise.
61305         * lib/xstrndup.c: Likewise.
61306         * lib/xstrndup.h: Likewise.
61307         * lib/xstrtod.c: Likewise.
61308         * lib/xstrtod.h: Likewise.
61309         * lib/xstrtol-error.c: Likewise.
61310         * lib/xstrtol.c: Likewise.
61311         * lib/xstrtol.h: Likewise.
61312         * lib/xtime.h: Likewise.
61313         * lib/xvasprintf.c: Likewise.
61314         * lib/xvasprintf.h: Likewise.
61315         * lib/yesno.c: Likewise.
61316         * lib/yesno.h: Likewise.
61317         * posix-modules: Likewise.
61318         * tests/test-alloca-opt.c: Likewise.
61319         * tests/test-arcfour.c: Likewise.
61320         * tests/test-arctwo.c: Likewise.
61321         * tests/test-argmatch.c: Likewise.
61322         * tests/test-argp-2.sh: Likewise.
61323         * tests/test-argp.c: Likewise.
61324         * tests/test-arpa_inet.c: Likewise.
61325         * tests/test-array_list.c: Likewise.
61326         * tests/test-array_oset.c: Likewise.
61327         * tests/test-atexit.c: Likewise.
61328         * tests/test-avltree_list.c: Likewise.
61329         * tests/test-avltree_oset.c: Likewise.
61330         * tests/test-avltreehash_list.c: Likewise.
61331         * tests/test-base64.c: Likewise.
61332         * tests/test-binary-io.c: Likewise.
61333         * tests/test-byteswap.c: Likewise.
61334         * tests/test-c-ctype.c: Likewise.
61335         * tests/test-c-strcasecmp.c: Likewise.
61336         * tests/test-c-strcasestr.c: Likewise.
61337         * tests/test-c-strncasecmp.c: Likewise.
61338         * tests/test-c-strstr.c: Likewise.
61339         * tests/test-canonicalize-lgpl.c: Likewise.
61340         * tests/test-canonicalize.c: Likewise.
61341         * tests/test-carray_list.c: Likewise.
61342         * tests/test-ceilf.c: Likewise.
61343         * tests/test-ceill.c: Likewise.
61344         * tests/test-count-one-bits.c: Likewise.
61345         * tests/test-crc.c: Likewise.
61346         * tests/test-dirname.c: Likewise.
61347         * tests/test-fbufmode.c: Likewise.
61348         * tests/test-fcntl.c: Likewise.
61349         * tests/test-fflush.c: Likewise.
61350         * tests/test-floorf.c: Likewise.
61351         * tests/test-floorl.c: Likewise.
61352         * tests/test-fopen.c: Likewise.
61353         * tests/test-fprintf-posix.c: Likewise.
61354         * tests/test-fprintf-posix.h: Likewise.
61355         * tests/test-fpurge.c: Likewise.
61356         * tests/test-freadable.c: Likewise.
61357         * tests/test-freadahead.c: Likewise.
61358         * tests/test-freading.c: Likewise.
61359         * tests/test-freopen.c: Likewise.
61360         * tests/test-frexp.c: Likewise.
61361         * tests/test-frexpl.c: Likewise.
61362         * tests/test-fseek.c: Likewise.
61363         * tests/test-fseeko.c: Likewise.
61364         * tests/test-fseterr.c: Likewise.
61365         * tests/test-fstrcmp.c: Likewise.
61366         * tests/test-ftell.c: Likewise.
61367         * tests/test-ftello.c: Likewise.
61368         * tests/test-fwritable.c: Likewise.
61369         * tests/test-fwriting.c: Likewise.
61370         * tests/test-getaddrinfo.c: Likewise.
61371         * tests/test-getpass.c: Likewise.
61372         * tests/test-gettimeofday.c: Likewise.
61373         * tests/test-hmac-md5.c: Likewise.
61374         * tests/test-hmac-sha1.c: Likewise.
61375         * tests/test-iconv.c: Likewise.
61376         * tests/test-iconvme.c: Likewise.
61377         * tests/test-inttypes.c: Likewise.
61378         * tests/test-isnan.c: Likewise.
61379         * tests/test-isnanf.c: Likewise.
61380         * tests/test-isnanl-nolibm.c: Likewise.
61381         * tests/test-isnanl.c: Likewise.
61382         * tests/test-isnanl.h: Likewise.
61383         * tests/test-ldexpl.c: Likewise.
61384         * tests/test-linked_list.c: Likewise.
61385         * tests/test-linkedhash_list.c: Likewise.
61386         * tests/test-locale.c: Likewise.
61387         * tests/test-localename.c: Likewise.
61388         * tests/test-lock.c: Likewise.
61389         * tests/test-lseek.c: Likewise.
61390         * tests/test-malloca.c: Likewise.
61391         * tests/test-math.c: Likewise.
61392         * tests/test-mbscasecmp.c: Likewise.
61393         * tests/test-mbscasestr1.c: Likewise.
61394         * tests/test-mbscasestr2.c: Likewise.
61395         * tests/test-mbscasestr3.c: Likewise.
61396         * tests/test-mbscasestr4.c: Likewise.
61397         * tests/test-mbschr.c: Likewise.
61398         * tests/test-mbscspn.c: Likewise.
61399         * tests/test-mbsncasecmp.c: Likewise.
61400         * tests/test-mbspbrk.c: Likewise.
61401         * tests/test-mbspcasecmp.c: Likewise.
61402         * tests/test-mbsrchr.c: Likewise.
61403         * tests/test-mbsspn.c: Likewise.
61404         * tests/test-mbsstr1.c: Likewise.
61405         * tests/test-mbsstr2.c: Likewise.
61406         * tests/test-mbsstr3.c: Likewise.
61407         * tests/test-md5.c: Likewise.
61408         * tests/test-memmem.c: Likewise.
61409         * tests/test-netinet_in.c: Likewise.
61410         * tests/test-open.c: Likewise.
61411         * tests/test-printf-frexp.c: Likewise.
61412         * tests/test-printf-frexpl.c: Likewise.
61413         * tests/test-printf-posix.c: Likewise.
61414         * tests/test-printf-posix.h: Likewise.
61415         * tests/test-rbtree_list.c: Likewise.
61416         * tests/test-rbtree_oset.c: Likewise.
61417         * tests/test-rbtreehash_list.c: Likewise.
61418         * tests/test-read-file.c: Likewise.
61419         * tests/test-rijndael.c: Likewise.
61420         * tests/test-search.c: Likewise.
61421         * tests/test-signbit.c: Likewise.
61422         * tests/test-sleep.c: Likewise.
61423         * tests/test-snprintf-posix.c: Likewise.
61424         * tests/test-snprintf-posix.h: Likewise.
61425         * tests/test-snprintf.c: Likewise.
61426         * tests/test-sprintf-posix.c: Likewise.
61427         * tests/test-sprintf-posix.h: Likewise.
61428         * tests/test-stat-time.c: Likewise.
61429         * tests/test-stdbool.c: Likewise.
61430         * tests/test-stdint.c: Likewise.
61431         * tests/test-stdio.c: Likewise.
61432         * tests/test-stdlib.c: Likewise.
61433         * tests/test-stpncpy.c: Likewise.
61434         * tests/test-strcasestr.c: Likewise.
61435         * tests/test-striconv.c: Likewise.
61436         * tests/test-striconveh.c: Likewise.
61437         * tests/test-striconveha.c: Likewise.
61438         * tests/test-string.c: Likewise.
61439         * tests/test-sys_select.c: Likewise.
61440         * tests/test-sys_socket.c: Likewise.
61441         * tests/test-sys_stat.c: Likewise.
61442         * tests/test-sys_time.c: Likewise.
61443         * tests/test-sysexits.c: Likewise.
61444         * tests/test-time.c: Likewise.
61445         * tests/test-tls.c: Likewise.
61446         * tests/test-trunc.c: Likewise.
61447         * tests/test-truncf.c: Likewise.
61448         * tests/test-truncl.c: Likewise.
61449         * tests/test-unistd.c: Likewise.
61450         * tests/test-vasnprintf-posix.c: Likewise.
61451         * tests/test-vasnprintf-posix2.c: Likewise.
61452         * tests/test-vasnprintf.c: Likewise.
61453         * tests/test-vasprintf-posix.c: Likewise.
61454         * tests/test-vasprintf.c: Likewise.
61455         * tests/test-verify.c: Likewise.
61456         * tests/test-vfprintf-posix.c: Likewise.
61457         * tests/test-vprintf-posix.c: Likewise.
61458         * tests/test-vsnprintf-posix.c: Likewise.
61459         * tests/test-vsnprintf.c: Likewise.
61460         * tests/test-vsprintf-posix.c: Likewise.
61461         * tests/test-wchar.c: Likewise.
61462         * tests/test-wctype.c: Likewise.
61463         * tests/test-wcwidth.c: Likewise.
61464         * tests/test-xstrtol.c: Likewise.
61465         * tests/test-xvasprintf.c: Likewise.
61466         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
61467         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
61468         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
61469         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
61470         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
61471         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
61472         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
61473         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
61474         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
61475         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
61476         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
61477         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
61478         * tests/uniname/test-uninames.c: Likewise.
61479         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
61480         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
61481         * tests/unistdio/test-u16-printf1.h: Likewise.
61482         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
61483         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
61484         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
61485         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
61486         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
61487         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
61488         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
61489         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
61490         * tests/unistdio/test-u32-printf1.h: Likewise.
61491         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
61492         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
61493         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
61494         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
61495         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
61496         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
61497         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
61498         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
61499         * tests/unistdio/test-u8-printf1.h: Likewise.
61500         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
61501         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
61502         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
61503         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
61504         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
61505         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
61506         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
61507         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
61508         * tests/unistdio/test-ulc-printf1.h: Likewise.
61509         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
61510         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
61511         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
61512         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
61513         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
61514         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
61515         * tests/uniwidth/test-u16-strwidth.c: Likewise.
61516         * tests/uniwidth/test-u16-width.c: Likewise.
61517         * tests/uniwidth/test-u32-strwidth.c: Likewise.
61518         * tests/uniwidth/test-u32-width.c: Likewise.
61519         * tests/uniwidth/test-u8-strwidth.c: Likewise.
61520         * tests/uniwidth/test-u8-width.c: Likewise.
61521         * tests/uniwidth/test-uc_width.c: Likewise.
61522         * config/srclist-update: Likewise.
61523         (fixlicense): Update to GPLv3+.
61524
61525         Change copyright notice from LGPLv2.1+ to LGPLv3+.
61526         * tests/test-tsearch.c: Change copyright notice.
61527
61528         Change copyright notice from LGPLv2.0+ to LGPLv3+.
61529         * lib/c-strcaseeq.h: Change copyright notice.
61530         * lib/streq.h: Likewise.
61531         * lib/uniconv.h: Likewise.
61532         * lib/uniconv/u-conv-from-enc.h: Likewise.
61533         * lib/uniconv/u-conv-to-enc.h: Likewise.
61534         * lib/uniconv/u-strconv-from-enc.h: Likewise.
61535         * lib/uniconv/u-strconv-to-enc.h: Likewise.
61536         * lib/uniconv/u16-conv-from-enc.c: Likewise.
61537         * lib/uniconv/u16-conv-to-enc.c: Likewise.
61538         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
61539         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
61540         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
61541         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
61542         * lib/uniconv/u32-conv-from-enc.c: Likewise.
61543         * lib/uniconv/u32-conv-to-enc.c: Likewise.
61544         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
61545         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
61546         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
61547         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
61548         * lib/uniconv/u8-conv-from-enc.c: Likewise.
61549         * lib/uniconv/u8-conv-to-enc.c: Likewise.
61550         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
61551         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
61552         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
61553         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
61554         * lib/uniname.h: Likewise.
61555         * lib/uniname/uniname.c: Likewise.
61556         * lib/unistdio.h: Likewise.
61557         * lib/unistdio/u-asnprintf.h: Likewise.
61558         * lib/unistdio/u-asprintf.h: Likewise.
61559         * lib/unistdio/u-printf-args.c: Likewise.
61560         * lib/unistdio/u-printf-args.h: Likewise.
61561         * lib/unistdio/u-printf-parse.h: Likewise.
61562         * lib/unistdio/u-snprintf.h: Likewise.
61563         * lib/unistdio/u-sprintf.h: Likewise.
61564         * lib/unistdio/u-vasprintf.h: Likewise.
61565         * lib/unistdio/u-vsnprintf.h: Likewise.
61566         * lib/unistdio/u-vsprintf.h: Likewise.
61567         * lib/unistdio/u16-asnprintf.c: Likewise.
61568         * lib/unistdio/u16-asprintf.c: Likewise.
61569         * lib/unistdio/u16-printf-parse.c: Likewise.
61570         * lib/unistdio/u16-snprintf.c: Likewise.
61571         * lib/unistdio/u16-sprintf.c: Likewise.
61572         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
61573         * lib/unistdio/u16-u16-asprintf.c: Likewise.
61574         * lib/unistdio/u16-u16-snprintf.c: Likewise.
61575         * lib/unistdio/u16-u16-sprintf.c: Likewise.
61576         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
61577         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
61578         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
61579         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
61580         * lib/unistdio/u16-vasnprintf.c: Likewise.
61581         * lib/unistdio/u16-vasprintf.c: Likewise.
61582         * lib/unistdio/u16-vsnprintf.c: Likewise.
61583         * lib/unistdio/u16-vsprintf.c: Likewise.
61584         * lib/unistdio/u32-asnprintf.c: Likewise.
61585         * lib/unistdio/u32-asprintf.c: Likewise.
61586         * lib/unistdio/u32-printf-parse.c: Likewise.
61587         * lib/unistdio/u32-snprintf.c: Likewise.
61588         * lib/unistdio/u32-sprintf.c: Likewise.
61589         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
61590         * lib/unistdio/u32-u32-asprintf.c: Likewise.
61591         * lib/unistdio/u32-u32-snprintf.c: Likewise.
61592         * lib/unistdio/u32-u32-sprintf.c: Likewise.
61593         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
61594         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
61595         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
61596         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
61597         * lib/unistdio/u32-vasnprintf.c: Likewise.
61598         * lib/unistdio/u32-vasprintf.c: Likewise.
61599         * lib/unistdio/u32-vsnprintf.c: Likewise.
61600         * lib/unistdio/u32-vsprintf.c: Likewise.
61601         * lib/unistdio/u8-asnprintf.c: Likewise.
61602         * lib/unistdio/u8-asprintf.c: Likewise.
61603         * lib/unistdio/u8-printf-parse.c: Likewise.
61604         * lib/unistdio/u8-snprintf.c: Likewise.
61605         * lib/unistdio/u8-sprintf.c: Likewise.
61606         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
61607         * lib/unistdio/u8-u8-asprintf.c: Likewise.
61608         * lib/unistdio/u8-u8-snprintf.c: Likewise.
61609         * lib/unistdio/u8-u8-sprintf.c: Likewise.
61610         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
61611         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
61612         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
61613         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
61614         * lib/unistdio/u8-vasnprintf.c: Likewise.
61615         * lib/unistdio/u8-vasprintf.c: Likewise.
61616         * lib/unistdio/u8-vsnprintf.c: Likewise.
61617         * lib/unistdio/u8-vsprintf.c: Likewise.
61618         * lib/unistdio/ulc-asnprintf.c: Likewise.
61619         * lib/unistdio/ulc-asprintf.c: Likewise.
61620         * lib/unistdio/ulc-printf-parse.c: Likewise.
61621         * lib/unistdio/ulc-snprintf.c: Likewise.
61622         * lib/unistdio/ulc-sprintf.c: Likewise.
61623         * lib/unistdio/ulc-vasnprintf.c: Likewise.
61624         * lib/unistdio/ulc-vasprintf.c: Likewise.
61625         * lib/unistdio/ulc-vsnprintf.c: Likewise.
61626         * lib/unistdio/ulc-vsprintf.c: Likewise.
61627         * lib/unistr.h: Likewise.
61628         * lib/unistr/u-cpy-alloc.h: Likewise.
61629         * lib/unistr/u-cpy.h: Likewise.
61630         * lib/unistr/u-endswith.h: Likewise.
61631         * lib/unistr/u-move.h: Likewise.
61632         * lib/unistr/u-set.h: Likewise.
61633         * lib/unistr/u-startswith.h: Likewise.
61634         * lib/unistr/u-stpcpy.h: Likewise.
61635         * lib/unistr/u-stpncpy.h: Likewise.
61636         * lib/unistr/u-strcat.h: Likewise.
61637         * lib/unistr/u-strcpy.h: Likewise.
61638         * lib/unistr/u-strcspn.h: Likewise.
61639         * lib/unistr/u-strdup.h: Likewise.
61640         * lib/unistr/u-strlen.h: Likewise.
61641         * lib/unistr/u-strncat.h: Likewise.
61642         * lib/unistr/u-strncpy.h: Likewise.
61643         * lib/unistr/u-strnlen.h: Likewise.
61644         * lib/unistr/u-strpbrk.h: Likewise.
61645         * lib/unistr/u-strspn.h: Likewise.
61646         * lib/unistr/u-strstr.h: Likewise.
61647         * lib/unistr/u-strtok.h: Likewise.
61648         * lib/unistr/u16-check.c: Likewise.
61649         * lib/unistr/u16-chr.c: Likewise.
61650         * lib/unistr/u16-cmp.c: Likewise.
61651         * lib/unistr/u16-cpy-alloc.c: Likewise.
61652         * lib/unistr/u16-cpy.c: Likewise.
61653         * lib/unistr/u16-endswith.c: Likewise.
61654         * lib/unistr/u16-mblen.c: Likewise.
61655         * lib/unistr/u16-mbsnlen.c: Likewise.
61656         * lib/unistr/u16-mbtouc-aux.c: Likewise.
61657         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
61658         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
61659         * lib/unistr/u16-mbtouc.c: Likewise.
61660         * lib/unistr/u16-mbtoucr.c: Likewise.
61661         * lib/unistr/u16-move.c: Likewise.
61662         * lib/unistr/u16-next.c: Likewise.
61663         * lib/unistr/u16-prev.c: Likewise.
61664         * lib/unistr/u16-set.c: Likewise.
61665         * lib/unistr/u16-startswith.c: Likewise.
61666         * lib/unistr/u16-stpcpy.c: Likewise.
61667         * lib/unistr/u16-stpncpy.c: Likewise.
61668         * lib/unistr/u16-strcat.c: Likewise.
61669         * lib/unistr/u16-strchr.c: Likewise.
61670         * lib/unistr/u16-strcmp.c: Likewise.
61671         * lib/unistr/u16-strcpy.c: Likewise.
61672         * lib/unistr/u16-strcspn.c: Likewise.
61673         * lib/unistr/u16-strdup.c: Likewise.
61674         * lib/unistr/u16-strlen.c: Likewise.
61675         * lib/unistr/u16-strmblen.c: Likewise.
61676         * lib/unistr/u16-strmbtouc.c: Likewise.
61677         * lib/unistr/u16-strncat.c: Likewise.
61678         * lib/unistr/u16-strncmp.c: Likewise.
61679         * lib/unistr/u16-strncpy.c: Likewise.
61680         * lib/unistr/u16-strnlen.c: Likewise.
61681         * lib/unistr/u16-strpbrk.c: Likewise.
61682         * lib/unistr/u16-strrchr.c: Likewise.
61683         * lib/unistr/u16-strspn.c: Likewise.
61684         * lib/unistr/u16-strstr.c: Likewise.
61685         * lib/unistr/u16-strtok.c: Likewise.
61686         * lib/unistr/u16-to-u32.c: Likewise.
61687         * lib/unistr/u16-to-u8.c: Likewise.
61688         * lib/unistr/u16-uctomb-aux.c: Likewise.
61689         * lib/unistr/u16-uctomb.c: Likewise.
61690         * lib/unistr/u32-check.c: Likewise.
61691         * lib/unistr/u32-chr.c: Likewise.
61692         * lib/unistr/u32-cmp.c: Likewise.
61693         * lib/unistr/u32-cpy-alloc.c: Likewise.
61694         * lib/unistr/u32-cpy.c: Likewise.
61695         * lib/unistr/u32-endswith.c: Likewise.
61696         * lib/unistr/u32-mblen.c: Likewise.
61697         * lib/unistr/u32-mbsnlen.c: Likewise.
61698         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
61699         * lib/unistr/u32-mbtouc.c: Likewise.
61700         * lib/unistr/u32-mbtoucr.c: Likewise.
61701         * lib/unistr/u32-move.c: Likewise.
61702         * lib/unistr/u32-next.c: Likewise.
61703         * lib/unistr/u32-prev.c: Likewise.
61704         * lib/unistr/u32-set.c: Likewise.
61705         * lib/unistr/u32-startswith.c: Likewise.
61706         * lib/unistr/u32-stpcpy.c: Likewise.
61707         * lib/unistr/u32-stpncpy.c: Likewise.
61708         * lib/unistr/u32-strcat.c: Likewise.
61709         * lib/unistr/u32-strchr.c: Likewise.
61710         * lib/unistr/u32-strcmp.c: Likewise.
61711         * lib/unistr/u32-strcpy.c: Likewise.
61712         * lib/unistr/u32-strcspn.c: Likewise.
61713         * lib/unistr/u32-strdup.c: Likewise.
61714         * lib/unistr/u32-strlen.c: Likewise.
61715         * lib/unistr/u32-strmblen.c: Likewise.
61716         * lib/unistr/u32-strmbtouc.c: Likewise.
61717         * lib/unistr/u32-strncat.c: Likewise.
61718         * lib/unistr/u32-strncmp.c: Likewise.
61719         * lib/unistr/u32-strncpy.c: Likewise.
61720         * lib/unistr/u32-strnlen.c: Likewise.
61721         * lib/unistr/u32-strpbrk.c: Likewise.
61722         * lib/unistr/u32-strrchr.c: Likewise.
61723         * lib/unistr/u32-strspn.c: Likewise.
61724         * lib/unistr/u32-strstr.c: Likewise.
61725         * lib/unistr/u32-strtok.c: Likewise.
61726         * lib/unistr/u32-to-u16.c: Likewise.
61727         * lib/unistr/u32-to-u8.c: Likewise.
61728         * lib/unistr/u32-uctomb.c: Likewise.
61729         * lib/unistr/u8-check.c: Likewise.
61730         * lib/unistr/u8-chr.c: Likewise.
61731         * lib/unistr/u8-cmp.c: Likewise.
61732         * lib/unistr/u8-cpy-alloc.c: Likewise.
61733         * lib/unistr/u8-cpy.c: Likewise.
61734         * lib/unistr/u8-endswith.c: Likewise.
61735         * lib/unistr/u8-mblen.c: Likewise.
61736         * lib/unistr/u8-mbsnlen.c: Likewise.
61737         * lib/unistr/u8-mbtouc-aux.c: Likewise.
61738         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
61739         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
61740         * lib/unistr/u8-mbtouc.c: Likewise.
61741         * lib/unistr/u8-mbtoucr.c: Likewise.
61742         * lib/unistr/u8-move.c: Likewise.
61743         * lib/unistr/u8-next.c: Likewise.
61744         * lib/unistr/u8-prev.c: Likewise.
61745         * lib/unistr/u8-set.c: Likewise.
61746         * lib/unistr/u8-startswith.c: Likewise.
61747         * lib/unistr/u8-stpcpy.c: Likewise.
61748         * lib/unistr/u8-stpncpy.c: Likewise.
61749         * lib/unistr/u8-strcat.c: Likewise.
61750         * lib/unistr/u8-strchr.c: Likewise.
61751         * lib/unistr/u8-strcmp.c: Likewise.
61752         * lib/unistr/u8-strcpy.c: Likewise.
61753         * lib/unistr/u8-strcspn.c: Likewise.
61754         * lib/unistr/u8-strdup.c: Likewise.
61755         * lib/unistr/u8-strlen.c: Likewise.
61756         * lib/unistr/u8-strmblen.c: Likewise.
61757         * lib/unistr/u8-strmbtouc.c: Likewise.
61758         * lib/unistr/u8-strncat.c: Likewise.
61759         * lib/unistr/u8-strncmp.c: Likewise.
61760         * lib/unistr/u8-strncpy.c: Likewise.
61761         * lib/unistr/u8-strnlen.c: Likewise.
61762         * lib/unistr/u8-strpbrk.c: Likewise.
61763         * lib/unistr/u8-strrchr.c: Likewise.
61764         * lib/unistr/u8-strspn.c: Likewise.
61765         * lib/unistr/u8-strstr.c: Likewise.
61766         * lib/unistr/u8-strtok.c: Likewise.
61767         * lib/unistr/u8-to-u16.c: Likewise.
61768         * lib/unistr/u8-to-u32.c: Likewise.
61769         * lib/unistr/u8-uctomb-aux.c: Likewise.
61770         * lib/unistr/u8-uctomb.c: Likewise.
61771         * lib/unitypes.h: Likewise.
61772         * lib/uniwidth.h: Likewise.
61773         * lib/uniwidth/cjk.h: Likewise.
61774         * lib/uniwidth/u16-strwidth.c: Likewise.
61775         * lib/uniwidth/u16-width.c: Likewise.
61776         * lib/uniwidth/u32-strwidth.c: Likewise.
61777         * lib/uniwidth/u32-width.c: Likewise.
61778         * lib/uniwidth/u8-strwidth.c: Likewise.
61779         * lib/uniwidth/u8-width.c: Likewise.
61780         * lib/uniwidth/width.c: Likewise.
61781
61782 2007-10-07  Bruno Haible  <bruno@clisp.org>
61783
61784         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
61785         The file is still under LGPL (see modules/inttypes).
61786
61787 2007-10-06  Bruno Haible  <bruno@clisp.org>
61788
61789         * modules/trunc (Dependencies): Add 'extensions'.
61790         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
61791         Reported by Ben Pfaff <blp@gnu.org>.
61792
61793 2007-10-06  Bruno Haible  <bruno@clisp.org>
61794
61795         * modules/freopen-tests: New file.
61796         * tests/test-freopen.c: New file.
61797
61798         * modules/fopen-tests: New file.
61799         * tests/test-fopen.c: New file.
61800
61801         * modules/fopen: New file.
61802         * lib/fopen.c: New file.
61803         * m4/fopen.m4: New file.
61804         * modules/freopen: New file.
61805         * lib/freopen.c: New file.
61806         * m4/freopen.m4: New file.
61807         * lib/stdio.in.h (fopen, freopen): New declarations.
61808         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
61809         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
61810         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
61811         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
61812         * doc/functions/fopen.texi: Mention the 'fopen' module.
61813         * doc/functions/freopen.texi: Mention the 'freopen' module.
61814
61815 2007-10-06  Bruno Haible  <bruno@clisp.org>
61816
61817         * modules/open-tests: New file.
61818         * tests/test-open.c: New file.
61819
61820         * modules/open: New file.
61821         * lib/open.c: New file.
61822         * m4/open.m4: New file.
61823         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
61824         lib/open.c does.
61825         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
61826         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
61827         macros.
61828         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
61829         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
61830         REPLACE_OPEN.
61831         * doc/functions/open.texi: Mention the 'open' module.
61832
61833 2007-10-04  Bruno Haible  <bruno@clisp.org>
61834
61835         * modules/ceill-tests: New file.
61836         * tests/test-ceill.c: New file.
61837
61838         * modules/ceill: New file.
61839         * lib/ceill.c: Replace entire file.
61840         * m4/ceill.m4: New file.
61841         * lib/math.in.h (ceill): Replace declaration.
61842         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
61843         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
61844         * doc/functions/ceill.texi: Mention the 'ceill' module.
61845         * modules/mathl (Files): Remove lib/ceill.c.
61846         (Depends-on): Add ceill.
61847
61848 2007-10-04  Bruno Haible  <bruno@clisp.org>
61849
61850         * modules/ceilf-tests: New file.
61851         * tests/test-ceilf.c: New file.
61852
61853         * modules/ceilf: New file.
61854         * lib/ceil.c: New file.
61855         * lib/ceilf.c: New file.
61856         * m4/ceilf.m4: New file.
61857         * lib/math.in.h (ceilf): New declaration.
61858         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
61859         HAVE_DECL_CEILF.
61860         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
61861         HAVE_DECL_CEILF.
61862         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
61863
61864 2007-10-04  Bruno Haible  <bruno@clisp.org>
61865
61866         * modules/floorl-tests: New file.
61867         * tests/test-floorl.c: New file.
61868
61869         * modules/floorl: New file.
61870         * lib/floorl.c: Replace entire file.
61871         * m4/floorl.m4: New file.
61872         * lib/math.in.h (floorl): Replace declaration.
61873         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
61874         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
61875         * doc/functions/floorl.texi: Mention the 'floorl' module.
61876         * modules/mathl (Files): Remove lib/floorl.c.
61877         (Depends-on): Add floorl.
61878
61879 2007-10-04  Bruno Haible  <bruno@clisp.org>
61880
61881         * modules/floorf-tests: New file.
61882         * tests/test-floorf.c: New file.
61883
61884         * modules/floorf: New file.
61885         * lib/floor.c: New file.
61886         * lib/floorf.c: New file.
61887         * m4/floorf.m4: New file.
61888         * lib/math.in.h (floorf): New declaration.
61889         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
61890         HAVE_DECL_FLOORF.
61891         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
61892         HAVE_DECL_FLOORF.
61893         * doc/functions/floorf.texi: Mention the 'floorf' module.
61894
61895 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
61896             Bruno Haible  <bruno@clisp.org>
61897
61898         Advertise for the Git server instead of the CVS server.
61899         * doc/gnulib-intro.texi (Steady Development): Mention the Git
61900         repository instead of the CVS one.
61901         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
61902         about all VCS systems generically.
61903         * doc/gnulib.texi (Introduction): Capitalize `Git'.
61904
61905 2007-10-04  Bruno Haible  <bruno@clisp.org>
61906
61907         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
61908         means.
61909         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
61910
61911 2007-10-04  Bruno Haible  <bruno@clisp.org>
61912
61913         * modules/truncl-tests: New file.
61914         * tests/test-truncl.c: New file.
61915
61916         * modules/truncl: New file.
61917         * lib/truncl.c: New file.
61918         * m4/truncl.m4: New file.
61919         * lib/math.in.h (truncl): New declaration.
61920         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
61921         HAVE_DECL_TRUNCL.
61922         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
61923         HAVE_DECL_TRUNCL.
61924         * doc/functions/truncl.texi: Mention the 'truncl' module.
61925
61926 2007-10-04  Bruno Haible  <bruno@clisp.org>
61927
61928         * modules/truncf-tests: New file.
61929         * tests/test-truncf.c: New file.
61930
61931         * modules/truncf: New file.
61932         * lib/trunc.c: Make paramerizable through USE_* macros.
61933         * lib/truncf.c: New file.
61934         * m4/truncf.m4: New file.
61935         * lib/math.in.h (truncf): New declaration.
61936         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
61937         HAVE_DECL_TRUNCF.
61938         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
61939         HAVE_DECL_TRUNCF.
61940         * doc/functions/truncf.texi: Mention the 'truncf' module.
61941
61942 2007-10-03  Bruno Haible  <bruno@clisp.org>
61943
61944         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
61945         augmentation also for tests modules.
61946         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
61947         * modules/atexit-tests (Makefile.am): Likewise.
61948         * modules/binary-io-tests (Makefile.am): Likewise.
61949         * modules/c-strcase-tests (Makefile.am): Likewise.
61950         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
61951         * modules/canonicalize-tests (Makefile.am): Likewise.
61952         * modules/closein-tests (Makefile.am): Likewise.
61953         * modules/fprintf-posix-tests (Makefile.am): Likewise.
61954         * modules/freadahead-tests (Makefile.am): Likewise.
61955         * modules/fseek-tests (Makefile.am): Likewise.
61956         * modules/fseeko-tests (Makefile.am): Likewise.
61957         * modules/ftell-tests (Makefile.am): Likewise.
61958         * modules/ftello-tests (Makefile.am): Likewise.
61959         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
61960         * modules/isnanl-tests (Makefile.am): Likewise.
61961         * modules/lseek-tests (Makefile.am): Likewise.
61962         * modules/mbscasecmp-tests (Makefile.am): Likewise.
61963         * modules/mbscasestr-tests (Makefile.am): Likewise.
61964         * modules/mbschr-tests (Makefile.am): Likewise.
61965         * modules/mbscspn-tests (Makefile.am): Likewise.
61966         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
61967         * modules/mbspbrk-tests (Makefile.am): Likewise.
61968         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
61969         * modules/mbsrchr-tests (Makefile.am): Likewise.
61970         * modules/mbsspn-tests (Makefile.am): Likewise.
61971         * modules/mbsstr-tests (Makefile.am): Likewise.
61972         * modules/printf-posix-tests (Makefile.am): Likewise.
61973         * modules/snprintf-posix-tests (Makefile.am): Likewise.
61974         * modules/sprintf-posix-tests (Makefile.am): Likewise.
61975         * modules/tsearch-tests (Makefile.am): Likewise.
61976         * modules/uniname/uniname-tests (Makefile.am): Likewise.
61977         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
61978         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
61979         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
61980         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
61981         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
61982         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
61983         * modules/vprintf-posix-tests (Makefile.am): Likewise.
61984         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
61985         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
61986         * modules/xstrtoimax-tests (Makefile.am): Likewise.
61987         * modules/xstrtol-tests (Makefile.am): Likewise.
61988         * modules/xstrtoumax-tests (Makefile.am): Likewise.
61989         * modules/yesno-tests (Makefile.am): Likewise.
61990
61991 2007-10-03  Bruno Haible  <bruno@clisp.org>
61992
61993         * modules/trunc-tests: New file.
61994         * tests/test-trunc.c: New file.
61995
61996         * modules/trunc: New file.
61997         * lib/trunc.c: New file.
61998         * m4/trunc.m4: New file.
61999         * lib/math.in.h (trunc): New declaration.
62000         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
62001         HAVE_DECL_TRUNC.
62002         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
62003         HAVE_DECL_TRUNC.
62004         * doc/functions/trunc.texi: Mention the 'trunc' module.
62005
62006 2007-10-03  Bruno Haible  <bruno@clisp.org>
62007
62008         * tests/test-fpending.c: New file, mostly copied
62009         from coreutils/lib/t-fpending.c.
62010         * modules/fpending-tests: New file.
62011
62012 2007-10-03  Bruno Haible  <bruno@clisp.org>
62013
62014         Port the stdio extensions to QNX (untested).
62015         * lib/fseterr.c (fseterr): Add support for QNX.
62016         * lib/fbufmode.c (fbufmode): Likewise.
62017         * lib/freadable.c (freadable): Likewise.
62018         * lib/fwritable.c (fwritable): Likewise.
62019         * lib/freading.c (freading): Likewise.
62020         * lib/fwriting.c (fwriting): Likewise.
62021         * lib/freadahead.c (freadahed): Likewise.
62022         * lib/fpurge.c (fpurge): Likewise.
62023         * lib/fseeko.c (rpl_fseeko): Likewise.
62024
62025 2007-10-03  Bruno Haible  <bruno@clisp.org>
62026             Jim Meyering  <jim@meyering.net>
62027             Eric Blake  <ebb9@byu.net>
62028
62029         * doc/relocatable.texi: Use @command instead of @program.
62030
62031 2007-10-02  Jim Meyering  <jim@meyering.net>
62032
62033         Perform one more "_.h" -> ".in.h" substitution.
62034         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
62035         instead of unistd_.h here, too.
62036
62037 2007-10-01  Bruno Haible  <bruno@clisp.org>
62038
62039         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
62040         Needed for the alloca-opt module.
62041
62042 2007-09-30  Bruno Haible  <bruno@clisp.org>
62043
62044         * lib/alloca.in.h: Renamed from lib/alloca_.h.
62045         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
62046         alloca_.h.
62047         * lib/argz.in.h: Renamed from lib/argz_.h.
62048         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
62049         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
62050         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
62051         byteswap_.h.
62052         * lib/dirent.in.h: Renamed from lib/dirent_.h.
62053         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
62054         dirent_.h.
62055         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
62056         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
62057         fcntl_.h.
62058         * lib/float.in.h: Renamed from lib/float_.h.
62059         * modules/float (Files, Makefile.am): Use float.in.h instead of
62060         float_.h.
62061         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
62062         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
62063         fnmatch_.h.
62064         * lib/getopt.in.h: Renamed from lib/getopt_.h.
62065         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
62066         getopt_.h.
62067         * lib/glob.in.h: Renamed from lib/glob_.h.
62068         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
62069         * lib/iconv.in.h: Renamed from lib/iconv_.h.
62070         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
62071         iconv_.h.
62072         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
62073         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
62074         inttypes_.h.
62075         * lib/locale.in.h: Renamed from lib/locale_.h.
62076         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
62077         locale_.h.
62078         * lib/math.in.h: Renamed from lib/math_.h.
62079         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
62080         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
62081         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
62082         of netinet_in_.h. Add dependency.
62083         * lib/poll.in.h: Renamed from lib/poll_.h.
62084         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
62085         * lib/search.in.h: Renamed from lib/search_.h.
62086         * modules/search (Files, Makefile.am): Use search.in.h instead of
62087         search_.h.
62088         * lib/signal.in.h: Renamed from lib/signal_.h.
62089         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
62090         _signal.h.
62091         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
62092         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
62093         stdbool_.h.
62094         * lib/stdint.in.h: Renamed from lib/stdint_.h.
62095         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
62096         stdint_.h.
62097         * lib/stdio.in.h: Renamed from lib/stdio_.h.
62098         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
62099         stdio_.h.
62100         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
62101         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
62102         stdlib_.h.
62103         * lib/string.in.h: Renamed from lib/string_.h.
62104         * modules/string (Files, Makefile.am): Use string.in.h instead of
62105         string_.h.
62106         * doc/gnulib-tool.texi (Initial import): Update.
62107         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
62108         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
62109         of sys_select_.h. Add dependency.
62110         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
62111         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
62112         of sys_socket_.h.
62113         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
62114         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
62115         sys_stat_.h.
62116         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
62117         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
62118         sys_time_.h.
62119         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
62120         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
62121         sysexits_.h.
62122         * lib/time.in.h: Renamed from lib/time_.h.
62123         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
62124         * lib/unistd.in.h: Renamed from lib/unistd_.h.
62125         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
62126         unistd_.h.
62127         * lib/wchar.in.h: Renamed from lib/wchar_.h.
62128         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
62129         wchar_.h.
62130         * lib/wctype.in.h: Renamed from lib/wctype_.h.
62131         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
62132         wctype_.h.
62133         * build-aux/bootstrap (slurp): Update.
62134         * lib/.cppi-disable: Update.
62135
62136 2007-09-30  Bruno Haible  <bruno@clisp.org>
62137
62138         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
62139         Needed on BeOS.
62140
62141 2007-09-30  Bruno Haible  <bruno@clisp.org>
62142
62143         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
62144
62145 2007-09-29  Bruno Haible  <bruno@clisp.org>
62146
62147         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
62148
62149 2007-09-29  Bruno Haible  <bruno@clisp.org>
62150
62151         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
62152         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
62153         * build-aux/install-reloc: Compile also areadlink.c.
62154         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
62155
62156 2007-09-29  Bruno Haible  <bruno@clisp.org>
62157
62158         * gnulib-tool (func_emit_initmacro_done): Indentation.
62159
62160 2007-09-29  Bruno Haible  <bruno@clisp.org>
62161
62162         * README: Add CVS checkout update instructions.
62163         Info from Bob Proulx <bob@proulx.com>.
62164
62165 2007-09-28  Eric Blake  <ebb9@byu.net>
62166
62167         Provide move-if-change.
62168         * build-aux/move-if-change: New file, based on best practice
62169         rather than any canonical upstream location.
62170
62171 2007-09-28  Jim Meyering  <jim@meyering.net>
62172
62173         Fix canonicalize loop-detection corner case.
62174         Do not attempt to stat the symlink values stored via seen_triple.
62175         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
62176         on linux-2.6.18, (but not 2.6.22).
62177         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
62178         triple_compare.  The former compares dev,ino,filename, while the latter
62179         would actually stat dirname(filename) when dev and ino were equal.
62180         * lib/hash-triple.c: Install <string.h>.
62181         (STREQ): Define.
62182         (triple_compare_ino_str): New function.
62183         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
62184
62185 2007-09-28  Eric Blake  <ebb9@byu.net>
62186
62187         Enforce that AC_REPLACE_FUNCS files exist.
62188         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
62189         override check for typos.
62190
62191         Fix test-closein on Solaris 10.
62192         * tests/test-closein.c (main): Don't assume stdin can be inherited
62193         closed on all systems.
62194         * tests/test-closein.sh: Likewise.
62195         Reported by Piotr Tarnowski.
62196
62197 2007-09-28  Jim Meyering  <jim@meyering.net>
62198
62199         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
62200
62201 2007-09-27  Jim Meyering  <jim@meyering.net>
62202
62203         canonicalize: Avoid a false-positive cycle failure.
62204         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
62205         Sort.  Remove cycle-check.
62206         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
62207         not cycle-check.h.
62208         (seen_triple): New function.
62209         (canonicalize_filename_mode): Use it instead of cycle-check.
62210         * tests/test-canonicalize.c: Add a test for this bug.
62211         * tests/test-canonicalize.sh: Set up and run the test.
62212
62213         New module, file-set, from coreutils.
62214         * modules/file-set: Define it.
62215         * lib/file-set.c, lib/file-set.h: Implement.
62216
62217         New module, hash-triple, from coreutils.
62218         * modules/hash-triple: Define it.
62219         * lib/hash-triple.c, lib/hash-triple.h: Implement.
62220
62221 2007-09-25  Eric Blake  <ebb9@byu.net>
62222
62223         Fix strerror on Interix.
62224         * lib/string_.h (strerror): Declare replacement.
62225         * doc/functions/strerror.texi (strerror): Document the Interix
62226         shortcoming.
62227         * modules/string (Makefile.am): Support new hooks.
62228         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
62229         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
62230         gl_FUNC_STRERROR_SEPARATE.
62231         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
62232         * lib/strerror.c (rpl_strerror): Provide replacement.
62233         * modules/strerror (Depends-on): Add string.
62234         (configure.ac): Detect use of module.
62235         * tests/test-strerror.c: New file.
62236         * modules/strerror-tests: New test module.
62237         * modules/argp (Depends-on): Add strerror.
62238         * modules/error (Depends-on): Likewise.
62239         Reported by Martin Koeppe.
62240
62241 2007-09-24  Bruno Haible  <bruno@clisp.org>
62242
62243         * README: Update git instructions.
62244
62245 2007-09-24  Eric Blake  <ebb9@byu.net>
62246
62247         Revert fpending breakage from 2007-09-08.
62248         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
62249         __fpending.c.
62250
62251 2007-09-24  Jim Meyering  <jim@meyering.net>
62252
62253         filenamecat.c: Add a test.
62254         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
62255         showing how the function works when DIR is the empty string.
62256
62257 2007-09-21  Simon Josefsson  <simon@josefsson.org>
62258
62259         * tests/test-canonicalize.sh: Turn on executable bit.
62260
62261 2007-09-19  Eric Blake  <ebb9@byu.net>
62262
62263         * README: Update CVS instructions.
62264
62265 2007-09-18  Bruno Haible  <bruno@clisp.org>
62266
62267         * modules/areadlink: New file.
62268         * lib/areadlink.h (areadlink): New declaration.
62269         * lib/areadlink.c: New file, based on lib/xreadlink.c.
62270
62271 2007-09-17  Jim Meyering  <jim@meyering.net>
62272
62273         * lib/savewd.c (ESTALE) [!defined]: Define.
62274         Reported to be required on Interix by Martin Koeppe.
62275
62276 2007-09-17  Bruno Haible  <bruno@clisp.org>
62277
62278         * gnulib-tool (func_version): Use $version.
62279
62280 2007-09-16  Bruno Haible  <bruno@clisp.org>
62281
62282         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
62283         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
62284         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
62285         Reported by Greg Schafer <gschafer@zip.com.au>.
62286
62287 2007-09-15  Bruno Haible  <bruno@clisp.org>
62288
62289         * gnulib-tool (sed): Try a little harder to make bash understand the
62290         alias.
62291         Reported by Bruce Korb <bruce.korb@gmail.com>.
62292
62293 2007-09-13  Eric Blake  <ebb9@byu.net>
62294
62295         * ChangeLog: Remove conflict markers.
62296
62297 2007-09-13  Simon Josefsson  <simon@josefsson.org>
62298
62299         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
62300         Reported by Bruno Haible <bruno@clisp.org>.
62301
62302 2007-09-12  Bruno Haible  <bruno@clisp.org>
62303
62304         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
62305         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
62306         is not defined.
62307
62308 2007-09-12  Eric Blake  <ebb9@byu.net>
62309
62310         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
62311         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
62312         Autoconf definition.
62313         * modules/euidaccess (Depends-on): Add extensions, for
62314         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
62315         * modules/fnmatch (Depends-on): Likewise.
62316         * modules/getaddrinfo (Depends-on): Likewise.
62317         * modules/getdelim (Depends-on): Likewise.
62318         * modules/getline (Depends-on): Likewise.
62319         * modules/getsubopt (Depends-on): Likewise.
62320         * modules/gettext (Depends-on): Likewise.
62321         * modules/group-member (Depends-on): Likewise.
62322         * modules/mbchar (Depends-on): Likewise.
62323         * modules/memmem (Depends-on): Likewise.
62324         * modules/mempcpy (Depends-on): Likewise.
62325         * modules/memrchr (Depends-on): Likewise.
62326         * modules/pagealign_alloc (Depends-on): Likewise.
62327         * modules/readutmp (Depends-on): Likewise.
62328         * modules/stpcpy (Depends-on): Likewise.
62329         * modules/stpncpy (Depends-on): Likewise.
62330         * modules/strchrnul (Depends-on): Likewise.
62331         * modules/strndup (Depends-on): Likewise.
62332         * modules/strsep (Depends-on): Likewise.
62333         * modules/strverscmp (Depends-on): Likewise.
62334         * modules/vasprintf (Depends-on): Likewise.
62335         * modules/wcwidth (Depends-on): Likewise.
62336         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
62337         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
62338         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
62339         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
62340         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
62341         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62342         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
62343         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
62344         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
62345         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
62346         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
62347         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
62348         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
62349         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
62350         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
62351         * m4/readutmp.m4 (gl_READUTMP): Likewise.
62352         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
62353         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
62354         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
62355         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
62356         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
62357         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
62358         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
62359         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
62360         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
62361         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
62362         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
62363         so that lock.m4 can be used in gettext without extensions module.
62364
62365 2007-09-11  Bruno Haible  <bruno@clisp.org>
62366
62367         * m4/isc-posix.m4: Remove file.
62368         Suggested by Eric Blake.
62369
62370 2007-09-11  Eric Blake  <ebb9@byu.net>
62371
62372         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
62373
62374 2007-09-10  Bruno Haible  <bruno@clisp.org>
62375
62376         * posix-modules: Fix typo in error message.
62377         Reported by Matt <mkraai@beckman.com>.
62378
62379 2007-09-09  Bruno Haible  <bruno@clisp.org>
62380
62381         * doc/functions/getdelim.texi: Update list of platforms lacking the
62382         function.
62383         * doc/functions/getline.texi: Likewise.
62384
62385 2007-09-09  Jim Meyering  <jim@meyering.net>
62386
62387         * lib/hash.c (hash_initialize): Detect calloc failure.
62388         Reported by Bruno Haible.
62389
62390 2007-09-09  Bruno Haible  <bruno@clisp.org>
62391
62392         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
62393         malloc or realloc fails.
62394
62395 2007-09-09  Bruno Haible  <bruno@clisp.org>
62396
62397         * modules/getcwd (Depends-on): Add malloc-posix.
62398         * modules/glob (Depends-on): Likewise.
62399         * modules/putenv (Depends-on): Likewise.
62400         * modules/strdup (Depends-on): Likewise.
62401         * modules/getdelim (Depends-on): Add realloc-posix.
62402         * modules/read-file (Depends-on): Likewise.
62403
62404 2007-09-09  Bruno Haible  <bruno@clisp.org>
62405
62406         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
62407         (gl_FUNC_MALLOC_POSIX): Require it.
62408         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
62409         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
62410         * modules/realloc (Files): Add m4/malloc.m4.
62411         * modules/calloc (Files): Likewise.
62412
62413 2007-09-09  Bruno Haible  <bruno@clisp.org>
62414
62415         * modules/malloc-posix: New file.
62416         * modules/malloc (Depends-on): Add malloc-posix.
62417         * lib/malloc.c: Include errno.h.
62418         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
62419         and a POSIX-compatible malloc into a single function. Set ENOMEM
62420         when returning NULL.
62421         * m4/malloc.m4: New file.
62422         * doc/functions/malloc.texi: Mention the malloc-posix module.
62423         * lib/stdlib_.h (malloc): New declaration.
62424         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62425         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
62426         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
62427         and HAVE_MALLOC_POSIX.
62428
62429 2007-09-09  Bruno Haible  <bruno@clisp.org>
62430
62431         * modules/realloc-posix: New file.
62432         * modules/realloc (Depends-on): Add realloc-posix.
62433         * lib/realloc.c: Include errno.h.
62434         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
62435         and a POSIX-compatible realloc into a single function. Set ENOMEM
62436         when returning NULL.
62437         * m4/realloc.m4: New file.
62438         * doc/functions/realloc.texi: Mention the realloc-posix module.
62439         * lib/stdlib_.h (realloc): New declaration.
62440         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62441         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
62442         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
62443         and HAVE_REALLOC_POSIX.
62444
62445 2007-09-09  Bruno Haible  <bruno@clisp.org>
62446
62447         * modules/calloc-posix: New file.
62448         * modules/calloc (Depends-on): Add calloc-posix.
62449         * lib/calloc.c: Include errno.h.
62450         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
62451         and a POSIX-compatible calloc into a single function. Set ENOMEM
62452         when returning NULL.
62453         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
62454         * doc/functions/calloc.texi: Mention the calloc-posix module.
62455         * lib/stdlib_.h (calloc): New declaration.
62456         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62457         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
62458         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
62459         and HAVE_CALLOC_POSIX.
62460
62461 2007-09-09  Bruno Haible  <bruno@clisp.org>
62462
62463         Allow for modules to show an arbitrary notice.
62464         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
62465         * gnulib-tool: New option --extract-notice.
62466         (func_usage): Document it.
62467         (sed_extract_prog): Update.
62468         (func_get_notice): New function.
62469         (func_modules_notice): New function.
62470         (func_import, func_create_testdir): Invoke it.
62471         Suggested by Jim Meyering.
62472
62473 2007-09-09  Bruno Haible  <bruno@clisp.org>
62474
62475         * gnulib-tool: New options --verbose, --quiet.
62476         (func_usage): Document them.
62477         (verbose): New variable.
62478         (func_execute_command): New function.
62479         (func_import): Don't show the module list and the file list if
62480         $verbose < 0.
62481         (func_create_testdir): Likewise. Use func_execute_command.
62482         (func_create_megatestdir): Use func_execute_command.
62483
62484 2007-09-08  Bruno Haible  <bruno@clisp.org>
62485
62486         * gnulib-tool (func_import): Prefer rsync over wget when available,
62487         for fetching the PO files.
62488
62489 2007-09-08  Bruno Haible  <bruno@clisp.org>
62490
62491         * posix-modules: New file. Portions copied from gnulib-tool.
62492         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
62493
62494 2007-09-08  Jim Meyering  <jim@meyering.net>
62495
62496         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
62497         * lib/fpending.h: Rename from __fpending.h.
62498         * lib/fpending.c: Rename from __fpending.c.
62499         Include "fpending.h", not "__fpending.h".
62500         * lib/__fpending.h, lib/__fpending.c: Remove files.
62501         * modules/fpending (Files): Reflect new file names.
62502         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
62503
62504 2007-09-08  Bruno Haible  <bruno@clisp.org>
62505
62506         * m4/inttypes-h.m4: Remove stub file.
62507
62508 2007-09-07  Simon Josefsson  <simon@josefsson.org>
62509
62510         * doc/headers/stdint.texi: Discuss #include_next issue.
62511
62512 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
62513
62514         * build-aux/bootstrap: Remove obsolete comment about wget --help.
62515
62516 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62517
62518         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
62519         in variable name.
62520
62521 2007-09-03  Jim Meyering  <jim@meyering.net>
62522
62523         New module: git-version-gen.
62524         * modules/git-version-gen: New file.
62525
62526         Import changes from coreutils for bootstrap script.
62527
62528         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
62529
62530         bootstrap: uses rsync to download the .po files
62531         * build-aux/bootstrap (po_download_command_format): New global.
62532         (download_po_files): Use rsync.
62533         (update_po_files): Don't remove .po files after download,
62534         so future rsync runs can take advantage of the copies.
62535
62536         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
62537
62538         Solve the unnecessary-.po-file-regeneration problem once and for all.
62539         * build-aux/bootstrap (download_po_files): New function, renamed from
62540         get_translations.  Now, downloads, but doesn't update LINGUAS.
62541         (update_po_files): New function.
62542
62543         bootstrap: Ignore more.
62544         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
62545         uniwidth to e.g., lib/.gitignore.
62546         (slurp): Handle the sys_stat_.h -> sys mapping, too.
62547
62548         * build-aux/bootstrap: New setting: vc_ignore.
62549         (insert_sorted_if_absent): Create $file if absent.
62550         Adapt to new, possibly empty, list: $vc_ignore.
62551
62552         bootstrap: generate more ignorable names
62553         * build-aux/bootstrap (slurp): When generating ignorable names,
62554         also map .sin to .sed, .gperf to .c, and .y to .c.
62555
62556 2007-09-03  Jim Meyering  <jim@meyering.net>
62557
62558         * build-aux/git-version-gen: New file, from coreutils.  For details, see
62559         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
62560
62561 2007-09-02  Bruno Haible  <bruno@clisp.org>
62562
62563         Fix mis-recognition of 'mcs' on QNX 6.
62564         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
62565         output contains the string "Mono".
62566         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
62567         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
62568
62569 2007-09-01  Bruno Haible  <bruno@clisp.org>
62570
62571         Fix collision between uniwidth/* and linebreak modules.
62572         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
62573         u32_width): Remove declarations.
62574         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
62575         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
62576         streq3, streq2, streq1, streq0): Remove functions.
62577         (STREQ): Remove macro.
62578         (is_cjk_encoding): Remove function.
62579         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
62580         (uc_width, u8_width, u16_width, u32_width): Remove functions.
62581         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
62582         * NEWS: Document the change.
62583
62584 2007-09-01  Bruno Haible  <bruno@clisp.org>
62585
62586         * lib/streq.h: Add double-inclusion guard.
62587
62588 2007-09-01  Karl Berry  <karl@gnu.org>
62589
62590         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
62591
62592 2007-08-28  Jim Meyering  <jim@meyering.net>
62593
62594         Rename mreadlink_with_size to areadlink_with_size.
62595         * NEWS: Document the change.
62596         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
62597         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
62598         * lib/mreadlink.h: Rename this to...
62599         * lib/areadlink.h: ...this.
62600         * modules/mreadlink-with-size: Rename this to...
62601         * modules/areadlink-with-size: ...this.
62602         * lib/canonicalize.c: Reflect the renaming.
62603         * modules/canonicalize: Likewise.
62604
62605 2007-08-26  Bruno Haible  <bruno@clisp.org>
62606
62607         * gnulib-tool (func_import): When deciding which files to remove,
62608         consider also dangling symbolic links.
62609         Reported by Eric Blake.
62610
62611 2007-08-26  Bruno Haible  <bruno@clisp.org>
62612
62613         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
62614
62615 2007-08-23  Simon Josefsson  <simon@josefsson.org>
62616
62617         * lib/readline.c: Don't include getline.h, the prototype is now
62618         found in stdio.h.
62619
62620 2007-08-23  Jim Meyering  <jim@meyering.net>
62621
62622         Getdelim touchup.
62623         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
62624         around the funlockfile call, since funlockfile never sets errno.
62625         Don't set errno upon failed realloc.
62626
62627 2007-08-22  Eric Blake  <ebb9@byu.net>
62628
62629         Getline touchups.
62630         * lib/getdelim.c (getdelim): Revert regression that required *n to
62631         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
62632         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
62633         getdelim, rather than whether implementation is missing.
62634         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
62635         * lib/stdio_.h (getline): Also declare if replacement is
62636         required.
62637         * doc/functions/getdelim.texi: New file.
62638         * doc/functions/getline.texi: Likewise.
62639         * doc/gnulib.texi (Function Substitutes): Add new files.
62640         Reported by Bruno Haible.
62641
62642 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
62643
62644         * users.txt: Add Guile.
62645
62646 2007-08-22  Eric Blake  <ebb9@byu.net>
62647
62648         * tests/test-getdelim.c (main): Use remove, not unlink.
62649         * tests/test-getline.c (main): Likewise.
62650
62651         Move getline and getdelim into stdio.h, per POSIX 200x.
62652         * modules/getline (Files): Remove getline.h.
62653         (Depends-on): Add stdio.
62654         (configure.ac): Add module indicator.
62655         * modules/getdelim (Files): Remove getdelim.h.
62656         (Depends-on): Add stdio.
62657         (configure.ac): Add module indicator.
62658         * modules/stdio (Makefile.am): Work with new indicators.
62659         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
62660         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
62661         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62662         * lib/getdelim.h: Delete.
62663         * lib/getline.h: Delete.
62664         * lib/stdio_.h (getdelim, getline): Declare.
62665         * modules/getdelim-tests: New module.
62666         * modules/getline-tests: Likewise.
62667         * tests/test-getdelim.c: New file.
62668         * tests/test-getline.c: Likewise.
62669         * NEWS: Document the change.
62670         * lib/getline.c: Update choice of header.
62671         * lib/csharpcomp.c: Likewise.
62672         * lib/getpass.c: Likewise.
62673         * lib/javacomp.c: Likewise.
62674         * lib/javaversion.c: Likewise.
62675         * lib/yesno.c: Likewise.
62676         * lib/getdelim.c: Likewise.
62677         (getdelim): Set errno on failure, and avoid memory leak.
62678
62679 2007-08-19  Bruno Haible  <bruno@clisp.org>
62680
62681         * modules/closein (Depends-on): Add freadahead.
62682         * lib/closein.c: Include freadahead.h.
62683         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
62684         is zero.
62685
62686 2007-08-19  Bruno Haible  <bruno@clisp.org>
62687
62688         * modules/freadahead-tests: New file.
62689         * tests/test-freadahead.sh: New file.
62690         * tests/test-freadahead.c: New file.
62691
62692         * modules/freadahead: New file.
62693         * lib/freadahead.h: New file.
62694         * lib/freadahead.c: New file.
62695         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
62696         fbufmode, fpurge, freadable, fwritable.
62697
62698 2007-08-19  Eric Blake  <ebb9@byu.net>
62699
62700         Test yesno in combination with closein.
62701         * lib/yesno.c (yesno): Document use of stdin.
62702         * modules/yesno-tests (Files): New module.
62703         * tests/test-yesno.c (main): New file.
62704         * tests/test-yesno.sh: Likewise.
62705
62706 2007-08-19  Bruno Haible  <bruno@clisp.org>
62707
62708         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
62709         * lib/fseeko.c (rpl_fseeko): Likewise.
62710         * lib/fseterr.c (fseterr): Likewise.
62711
62712 2007-08-19  Bruno Haible  <bruno@clisp.org>
62713
62714         * tests/test-lseek.c (main): Disable a test for BeOS.
62715         * doc/functions/lseek.texi: Document the BeOS bug.
62716
62717 2007-08-19  Bruno Haible  <bruno@clisp.org>
62718             Eric Blake  <ebb9@byu.net>
62719
62720         * lib/lseek.c: Include <sys/stat.h>.
62721         (rpl_lseek): Add workaround code also for Unix platforms.
62722         Needed for BeOS.
62723         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
62724         * doc/functions/lseek.texi: Document BeOS definiency.
62725
62726 2007-08-18  Bruno Haible  <bruno@clisp.org>
62727
62728         * modules/fstrcmp-tests: New file.
62729         * tests/test-fstrcmp.c: New file.
62730
62731 2007-08-18  Bruno Haible  <bruno@clisp.org>
62732
62733         * modules/fstrcmp: New file, from GNU gettext with modifications.
62734         * lib/fstrcmp.h: New file, from GNU gettext.
62735         * lib/fstrcmp.c: New file, from GNU gettext.
62736         * MODULES.html.sh (String handling): Add fstrcmp.
62737
62738 2007-08-18  Bruno Haible  <bruno@clisp.org>
62739
62740         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
62741         'bool'.
62742         (diag, compareseq): Remove const from the ctxt argument.
62743         (USE_HEURISTIC): Undefine at the end.
62744
62745 2007-08-18  Jim Meyering  <jim@meyering.net>
62746
62747         New file: lib/idcache.h
62748         * NEWS: Mention the addition.
62749         * modules/idcache (Files): Add lib/idcache.h
62750         * lib/idcache.c: Include "idcache.h".
62751         Don't include <sys/types.h>.
62752         Add a FIXME comment.
62753         Move file-scoped "static" declarations to the top.
62754         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
62755
62756 2007-08-17  Bruno Haible  <bruno@clisp.org>
62757         and Paul Eggert  <eggert@cs.ucla.edu>
62758
62759         * MODULES.html.sh: Add diffseq.
62760         * modules/diffseq: New file.
62761         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
62762         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
62763
62764 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62765
62766         Import changes from coreutils for bootstrap script.
62767
62768         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
62769
62770         * build-aux/bootstrap (slurp): Work even in environments where
62771         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
62772         current code does not slurp files whose names start with ".", and
62773         this looks like it might be a troublesome area.
62774
62775         2007-07-11  Jim Meyering  <jim@meyering.net>
62776
62777         If there's a GPL vN copyright comment, require that N == 3.
62778
62779         2007-07-08  Jim Meyering  <jim@meyering.net>
62780
62781         Run the coreutils-specific code only if tests/Makefile.am.in exists.
62782         * build-aux/bootstrap (mam_template): Move definition out of loop.
62783
62784         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
62785
62786         * build-aux/bootstrap (symlink_to_dir): Rename function from
62787         symlink_to_gnulib.  Add a directory parameter.  Update all
62788         callers.
62789         (cp_mark_as_generated): Also check for -- and link to -- files in
62790         gl/.
62791
62792         2007-07-08  Jim Meyering  <jim@meyering.net>
62793
62794         Adapt to deeper hierarchy in gnulib.
62795         * build-aux/bootstrap (symlink_to_dir): If the destination
62796         directory doesn't exist, create it. This is required at least for
62797         "lib/uniwidth/cjk.h".
62798
62799         2007-05-15  Jim Meyering  <jim@meyering.net>
62800
62801         * build-aux/bootstrap: Now that generated Makefile.am files
62802         are no longer under version control, they must be created at
62803         bootstrap time.
62804
62805 2007-08-14  Ben Pfaff  <blp@gnu.org>
62806
62807         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
62808
62809 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62810
62811         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
62812         given the changes below.
62813         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
62814         even on hosts that have padding bits beyond the supported 64.
62815
62816 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
62817
62818         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
62819         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
62820         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
62821         depends on it.
62822         (xstrtol_error): Remove.
62823         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
62824         but with a different signature.
62825         (ATTRIBUTE_NORETURN, __attribute__): New macros.
62826         * lib/xstrtol-error.c: Include exitfail.h.
62827         (xstrtol_fatal): New function, with a different signature from the
62828         old xstrtol_error, so that the caller need not worry about passing
62829         in an exit status, or about storage management of the option argument.
62830         (xstrtol_error): Now a static function.  Redo signature to
62831         implement xstrtol_fatal.  Output the correct number of hyphens in
62832         front of the option so that the caller need not worry about
62833         storage management.
62834         (N_): New macro.
62835         (_): Remove; not used now.
62836         * modules/xstrtol: Depend on getopt.
62837         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
62838         of old STRTOL_FATAL_ERROR macro.
62839         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
62840         of test program.
62841         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
62842         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
62843
62844 2007-08-08  Eric Blake  <ebb9@byu.net>
62845
62846         * lib/xstrtol-error.c: Add missing include.
62847
62848         Move xstrtol messages into gnulib domain, when --pobase is used.
62849         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
62850         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
62851         * modules/xstrtol (Files): Distribute new file.
62852         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
62853         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
62854         * tests/test-xstrtol.c: ...into new file.
62855         * tests/test-xstrtoul.c: Also test xstrtoul.
62856         * tests/test-xstrtoimax.c: Also test xstrtoimax.
62857         * tests/test-xstrtoumax.c: Also test xstrtoumax.
62858         * tests/test-xstrtol.sh: Drive the tests.
62859         * tests/test-xstrtoimax.sh: Likewise.
62860         * tests/test-xstrtoumax.sh: Likewise.
62861         * modules/xstrtol-tests: New module.
62862         * modules/xstrtoimax-tests: Likewise.
62863         * modules/xstrtoumax-tests: Likewise.
62864
62865 2007-08-08  Jim Meyering  <jim@meyering.net>
62866
62867         New function: mfile_name_concat.
62868         * lib/filenamecat.c (mfile_name_concat): New function, just like
62869         file_name_concat, but return NULL upon failure rather than exiting
62870         with a diagnostic.
62871         * lib/filenamecat.h: Declare it.
62872
62873 2007-08-07  Bruno Haible  <bruno@clisp.org>
62874
62875         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
62876         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
62877         warning from gcc.
62878         Reported by Eric Blake.
62879
62880 2007-08-07  Simon Josefsson  <simon@josefsson.org>
62881
62882         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
62883         * modules/crypto/arcfour (License): Likewise.
62884         * modules/crypto/des-tests (License): Likewise.
62885         * modules/crypto/gc-arctwo-tests (License): Likewise.
62886         * modules/crypto/gc-des-tests (License): Likewise.
62887         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
62888         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
62889         * modules/crypto/gc-md2-tests (License): Likewise.
62890         * modules/crypto/gc-md4-tests (License): Likewise.
62891         * modules/crypto/gc-md5-tests (License): Likewise.
62892         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
62893         * modules/crypto/gc-rijndael-tests (License): Likewise.
62894         * modules/crypto/gc-sha1-tests (License): Likewise.
62895         * modules/crypto/gc-tests (License): Likewise.
62896         * modules/crypto/hmac-md5 (License): Likewise.
62897         * modules/crypto/hmac-sha1 (License): Likewise.
62898         * modules/crypto/md2-tests (License): Likewise.
62899         * modules/crypto/md4-tests (License): Likewise.
62900         * modules/crypto/md5 (License): Likewise.
62901         * modules/crypto/rijndael (License): Likewise.
62902         * modules/crypto/sha1 (License): Likewise.
62903         * modules/memxor (License): Likewise.
62904
62905 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
62906         and Bruno Haible  <bruno@clisp.org>
62907
62908         * NEWS: Describe interface changes to human, xstrtol.
62909         * lib/human.h: Include <xstrtol.h>.
62910         (human_options): Return enum strtol_error, not int.  Remove
62911         bool arg; take int * instead.
62912         * lib/human.c: Don't include "gettext.h".
62913         (_): Remove; no longer used.
62914         Don't include <xstrtol.h>, since human.h does it.
62915         (human_options): Adjust to abovementioned interface changes.
62916         Do not report error to stderr; that's now the caller's
62917         responsibility.
62918         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
62919         interface change.
62920         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
62921         Str, Argument_type_string.  All uses changed.  Put " argument"
62922         in diagnostics to make them clearer.  Change wording of suffix
62923         message for clarity.
62924         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
62925         Argument_type_string.
62926         (STRTOL_FATAL_WARN): Remove; no longer used.
62927         * modules/human (Depends-on): Remove gettext-h.
62928
62929 2007-08-06  Simon Josefsson  <simon@josefsson.org>
62930
62931         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
62932
62933 2007-07-31  Bruno Haible  <bruno@clisp.org>
62934
62935         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
62936         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
62937         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
62938
62939 2007-07-31  Bruno Haible  <bruno@clisp.org>
62940
62941         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
62942         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
62943
62944 2007-07-30  Bruno Haible  <bruno@clisp.org>
62945
62946         * modules/base64 (License): Use the synonymous term "LGPLv2+".
62947         * modules/c-ctype (License): Likewise.
62948         * modules/c-strcase (License): Likewise.
62949         * modules/check-version (License): Likewise.
62950         * modules/iconv (License): Likewise.
62951         * modules/iconv_open (License): Likewise.
62952         * modules/read-file (License): Likewise.
62953         * modules/striconv (License): Likewise.
62954         * modules/strverscmp (License): Likewise.
62955         * modules/vasprintf (License): Likewise.
62956         * modules/crypto/des (License): Likewise.
62957         * modules/crypto/gc (License): Likewise.
62958         * modules/crypto/gc-arcfour (License): Likewise.
62959         * modules/crypto/gc-arctwo (License): Likewise.
62960         * modules/crypto/gc-des (License): Likewise.
62961         * modules/crypto/gc-hmac-md5 (License): Likewise.
62962         * modules/crypto/gc-hmac-sha1 (License): Likewise.
62963         * modules/crypto/gc-md2 (License): Likewise.
62964         * modules/crypto/gc-md4 (License): Likewise.
62965         * modules/crypto/gc-md5 (License): Likewise.
62966         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
62967         * modules/crypto/gc-random (License): Likewise.
62968         * modules/crypto/gc-rijndael (License): Likewise.
62969         * modules/crypto/gc-sha1 (License): Likewise.
62970         * modules/crypto/md2 (License): Likewise.
62971         * modules/crypto/md4 (License): Likewise.
62972
62973 2007-07-30  Jim Meyering  <jim@meyering.net>
62974
62975         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
62976         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
62977         it has valid stat data.  This bug would cause du not to count the
62978         sizes of inaccessible directories.
62979         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
62980         in <http://bugzilla.redhat.com/250077>.
62981
62982 2007-07-25  Peter O'Gorman  <peter@pogma.com>
62983             Bruno Haible  <bruno@clisp.org>
62984
62985         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
62986         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
62987         #include_next, gives a diagnostic about it, but reports no error in
62988         the exit code.
62989         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
62990
62991 2007-07-24  Ben Pfaff  <blp@gnu.org>
62992
62993         Improve name: "count-one-bits" is better than "popcount".
62994         * MODULES.html.sh: Update name.
62995         * lib/popcount.h: Renamed lib/count-one-bits.h.
62996         (popcount): Renamed count_one_bits.
62997         (popcountl): Renamed count_one_bits_l.
62998         (popcountll): Renamed count_one_bits_ll.
62999         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
63000         * modules/popcount: Renamed module/count-one-bits.
63001         * modules/popcount-tests: Renamed module/count-one-bits-tests.
63002         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
63003
63004 2007-07-23  Ben Pfaff  <blp@gnu.org>
63005
63006         * lib/popcount.h (popcount32): Reduce size of constants, to allow
63007         better code generation, and add U to large constants to avoid
63008         warnings, in non-GCC case.
63009         Suggested by Bruno Haible.
63010
63011 2007-07-23  Ben Pfaff  <blp@gnu.org>
63012
63013         * lib/popcount.h: Use verify_true instead of if...abort.
63014         * modules/popcount: Depend on verify module.
63015         Suggested by Jim Meyering.
63016
63017 2007-07-23  Bruno Haible  <bruno@clisp.org>
63018
63019         * gnulib-tool (func_import): Create a .cvsignore file also when the
63020         directory is not yet in CVS but the toplevel directory is. When
63021         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
63022         Reported by Karl Berry.
63023
63024 2007-07-22  Ben Pfaff  <blp@gnu.org>
63025
63026         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
63027         case.
63028         Suggested by Eric Blake.
63029
63030 2007-07-22  Ben Pfaff  <blp@gnu.org>
63031
63032         New module: popcount.
63033         * MODULES.html.sh: Add popcount.
63034         * modules/popcount: New file.
63035         * modules/popcount-tests: New file.
63036         * tests/test-popcount.c: New file.
63037         * lib/popcount.h: New file.
63038         * m4/popcount.m4: New file.
63039
63040 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
63041
63042         * build-aux/announce-gen: Update to GPLv3.
63043
63044         * build-aux/config.guess: Update from config.
63045
63046 2007-07-21  Bruno Haible  <bruno@clisp.org>
63047
63048         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
63049         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
63050
63051 2007-07-20  Jim Meyering  <jim@meyering.net>
63052
63053         * check-module: Diagnose a self-dependency.
63054
63055 2007-07-19  Bruno Haible  <bruno@clisp.org>
63056
63057         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
63058         empty.
63059         Reported by Eric Blake.
63060
63061 2007-07-18  Bruno Haible  <bruno@clisp.org>
63062
63063         * gnulib-tool: New options --po-base, --po-domain.
63064         (func_usage): Document them.
63065         (pobase, po_domain): New variables.
63066         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
63067         DEFAULT_TEXT_DOMAIN.
63068         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
63069         (func_import): Consider pobase and po_domain. Create a po/ directory.
63070         (func_create_testdir): Set pobase and po_domain to empty.
63071         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
63072         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
63073
63074 2007-07-18  Bruno Haible  <bruno@clisp.org>
63075
63076         * gnulib-tool (func_get_automake_snippet): Synthesize also an
63077         EXTRA_DIST augmentation for files in build-aux/.
63078
63079 2007-07-16  Bruno Haible  <bruno@clisp.org>
63080
63081         * modules/lseek (License): Use the synonymous term "LGPLv2+".
63082         * modules/getdelim (License): Likewise.
63083
63084 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63085
63086         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
63087         * modules/d-type (License): Likewise.
63088         * modules/extensions (License): Likewise.
63089         * modules/fnmatch (License): Likewise.
63090         * modules/fseeko (License): Likewise.
63091         * modules/getaddrinfo (License): Likewise.
63092         * modules/getline (License): Likewise.
63093         * modules/getlogin_r (License): Likewise.
63094         * modules/getpass (License): Likewise.
63095         * modules/gettimeofday (License): Likewise.
63096         * modules/glob (License): Likewise.
63097         * modules/inet_ntop (License): Likewise.
63098         * modules/malloc (License): Likewise.
63099         * modules/malloca (License): Likewise.
63100         * modules/memmem (License): Likewise.
63101         * modules/mempcpy (License): Likewise.
63102         * modules/memset (License): Likewise.
63103         * modules/minmax (License): Likewise.
63104         * modules/mktime (License): Likewise.
63105         * modules/netinet_in (License): Likewise.
63106         * modules/pathmax (License): Likewise.
63107         * modules/poll (License): Likewise.
63108         * modules/regex (License): Likewise.
63109         * modules/snprintf (License): Likewise.
63110         * modules/stdbool (License): Likewise.
63111         * modules/stdint (License): Likewise.
63112         * modules/stdio (License): Likewise.
63113         * modules/strcase (License): Likewise.
63114         * modules/strcasestr (License): Likewise.
63115         * modules/strdup (License): Likewise.
63116         * modules/string (License): Likewise.
63117         * modules/strndup (License): Likewise.
63118         * modules/strnlen (License): Likewise.
63119         * modules/strpbrk (License): Likewise.
63120         * modules/strptime (License): Likewise.
63121         * modules/strsep (License): Likewise.
63122         * modules/sys_select (License): Likewise.
63123         * modules/sys_socket (License): Likewise.
63124         * modules/sys_stat (License): Likewise.
63125         * modules/sys_time (License): Likewise.
63126         * modules/time (License): Likewise.
63127         * modules/time_r (License): Likewise.
63128         * modules/timegm (License): Likewise.
63129         * modules/unistd (License): Likewise.
63130         * modules/vsnprintf (License): Likewise.
63131         * modules/wctype (License): Likewise.
63132
63133 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63134
63135         * modules/argz (License): LGPLv2+.
63136
63137 2007-07-15  Karl Berry  <karl@gnu.org>
63138
63139         * doc/gnulib.texi: revise node structure per new fdl.texi.
63140
63141 2007-07-14  Bruno Haible  <bruno@clisp.org>
63142
63143         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
63144         the output file.
63145         * lib/uniname/uninames.h: Regenerated.
63146
63147 2007-07-14  Karl Berry  <karl@gnu.org>
63148
63149         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
63150         omitting sectioning and index commands.
63151
63152 2007-07-13  Bruno Haible  <bruno@clisp.org>
63153
63154         New gnulib-tool option --more-symlinks.
63155         * gnulib-tool (func_usage): Document --more-symlinks.
63156         (do_copyrights): New variable.
63157         Recognize option --more-symlinks.
63158         (func_import): Don't add a copyright notice transform to
63159         sed_transform_lib_file if do_copyrights is empty.
63160
63161 2007-07-13  Bruno Haible  <bruno@clisp.org>
63162
63163         * lib/vasnprintf.c (decimal_point_char): Define also if
63164         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
63165         && !NEED_PRINTF_DIRECTIVE_A.
63166         Reported by Clemens Koller <clemens.koller@anagramm.de> via
63167         Gary V. Vaughan <gary@gnu.org>.
63168
63169 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
63170
63171         * lib/inttypes_.h: Undo previous change, since it was fixed
63172         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
63173
63174 2007-07-13  Bruno Haible  <bruno@clisp.org>
63175
63176         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
63177         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
63178
63179 2007-07-13  Jim Meyering  <jim@meyering.net>
63180
63181         df: Don't fail for Tru64's "file-on-file mount".
63182         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
63183         so we fall through and use statfs instead.  Details here:
63184         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
63185         Reported by Albert Chin.
63186
63187 2007-07-13  Bruno Haible  <bruno@clisp.org>
63188
63189         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
63190         * modules/configmake (License): Likewise.
63191         * modules/gettext (License): Likewise.
63192         * modules/gettext-h (License): Likewise.
63193         * modules/include_next (License): Likewise.
63194         * modules/link-warning (License): Likewise.
63195         * modules/localcharset (License): Likewise.
63196         * modules/localename (License): Likewise.
63197         * modules/lock (License): Likewise.
63198         * modules/relocatable-lib-lgpl (License): Likewise.
63199         * modules/size_max (License): Likewise.
63200         * modules/vasnprintf (License): Likewise.
63201         * modules/wchar (License): Likewise.
63202         * modules/xsize (License): Likewise.
63203
63204 2007-07-13  Bruno Haible  <bruno@clisp.org>
63205
63206         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
63207         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
63208
63209 2007-07-12  Bruno Haible  <bruno@clisp.org>
63210
63211         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
63212         in the modules files.
63213
63214 2007-07-11  Karl Berry  <karl@gnu.org>
63215
63216         * MODULES.html.sh (func_module): use
63217          sed -e '\|^'"${includefile}"'$|d'
63218          instead of /.../d, to avoid errors on $includefile's containing /.
63219
63220 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
63221
63222         * gnulib-tool (func_import): Avoid duplication of --avoid
63223         statements
63224         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
63225         names to `_' in variable names.
63226
63227 2007-07-10  Eric Blake  <ebb9@byu.net>
63228
63229         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
63230         * NEWS: Document this change.
63231
63232 2007-07-08  Bruno Haible  <bruno@clisp.org>
63233
63234         Update to Unicode 5.0.
63235         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
63236         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
63237         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
63238         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
63239         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
63240         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
63241         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
63242         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
63243         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
63244         U+10A3F, U+1D242..U+1D244.
63245         (nonspacing_table_ind): Update.
63246         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
63247         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
63248
63249 2007-07-08  Bruno Haible  <bruno@clisp.org>
63250
63251         Update to Unicode 5.0.
63252         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
63253         code transform. Extend the name index field of unicode_name_to_code and
63254         unicode_code_to_name from 16 to 24 bits.
63255         * lib/uniname/uniname.c (unicode_character_name,
63256         unicode_name_character): Add the range 0x12xxx to the code transform.
63257         * lib/uniname/uninames.h: Regenerated.
63258         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
63259
63260 2007-07-07  Bruno Haible  <bruno@clisp.org>
63261
63262         * modules/wcwidth-tests: New file.
63263         * tests/test-wcwidth.c: New file.
63264
63265         Work around MacOS X wcwidth() bug.
63266         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
63267         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
63268         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
63269         original wcwidth in non-UTF-8 locales.
63270         * modules/wcwidth (Depends-on): Add localcharset, streq,
63271         uniwidth/width.
63272         * doc/functions/wcwidth.texi: Update.
63273
63274 2007-07-07  Bruno Haible  <bruno@clisp.org>
63275
63276         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
63277         (wcwidth): New declaration.
63278         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
63279         macros.
63280         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
63281         here. Prepare for creating <wchar.h> unconditionally.
63282         * modules/wchar (Depends-on): Add link-warning.
63283         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
63284         REPLACE_WCWIDTH, and GL_LINK_WARNING.
63285         * lib/wcwidth.h: Remove file.
63286         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
63287         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
63288         * modules/wcwidth (Files): Remove lib/wcwidth.h.
63289         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
63290         (Include): Replace wcwidth.h with <wchar.h>.
63291         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
63292         * lib/mbchar.h: Don't include wcwidth.h.
63293         * lib/mbswidth.c: Likewise.
63294         * NEWS: Mention the change.
63295
63296 2007-07-07  Bruno Haible  <bruno@clisp.org>
63297
63298         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
63299         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
63300         definition with an external declaration.
63301         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
63302         defined as a function. Remove AC_C_INLINE requirement.
63303         * modules/wcwidth (Files): Add lib/wcwidth.c.
63304         (Makefile.am): Remove redundant statement.
63305
63306 2007-07-07  Bruno Haible  <bruno@clisp.org>
63307
63308         * MODULES.html.sh (Unicode string functions): Add the new modules.
63309
63310         * tests/uniwidth/test-u32-strwidth.c: New file.
63311         * modules/uniwidth/u32-strwidth-tests: New file.
63312
63313         * lib/uniwidth/u32-strwidth.c: New file.
63314         * modules/uniwidth/u32-strwidth: New file.
63315
63316         * tests/uniwidth/test-u16-strwidth.c: New file.
63317         * modules/uniwidth/u16-strwidth-tests: New file.
63318
63319         * lib/uniwidth/u16-strwidth.c: New file.
63320         * modules/uniwidth/u16-strwidth: New file.
63321
63322         * tests/uniwidth/test-u8-strwidth.c: New file.
63323         * modules/uniwidth/u8-strwidth-tests: New file.
63324
63325         * lib/uniwidth/u8-strwidth.c: New file.
63326         * modules/uniwidth/u8-strwidth: New file.
63327
63328         * tests/uniwidth/test-u32-width.c: New file.
63329         * modules/uniwidth/u32-width-tests: New file.
63330
63331         * lib/uniwidth/u32-width.c: New file.
63332         * modules/uniwidth/u32-width: New file.
63333
63334         * tests/uniwidth/test-u16-width.c: New file.
63335         * modules/uniwidth/u16-width-tests: New file.
63336
63337         * lib/uniwidth/u16-width.c: New file.
63338         * modules/uniwidth/u16-width: New file.
63339
63340         * tests/uniwidth/test-u8-width.c: New file.
63341         * modules/uniwidth/u8-width-tests: New file.
63342
63343         * lib/uniwidth/u8-width.c: New file.
63344         * modules/uniwidth/u8-width: New file.
63345
63346         * tests/uniwidth/test-uc_width.c: New file.
63347         * modules/uniwidth/width-tests: New file.
63348
63349         * lib/uniwidth/width.c: New file, from GNU libiconv.
63350         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
63351         * modules/uniwidth/width: New file.
63352
63353         * lib/uniwidth.h: New file, from GNU libiconv.
63354         * modules/uniwidth/base: New file.
63355
63356 2007-07-07  Bruno Haible  <bruno@clisp.org>
63357
63358         * lib/uniname.h: New file, from GNU gettext.
63359         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
63360         * lib/uniname/uninames.h: New file, from GNU gettext.
63361         * lib/uniname/uniname.c: New file, from GNU gettext.
63362         * tests/uniname/test-uninames.sh: New file.
63363         * tests/uniname/test-uninames.c: New file, from GNU gettext.
63364         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
63365         * modules/uniname/base: New file.
63366         * modules/uniname/uniname: New file.
63367         * modules/uniname/uniname-tests: New file.
63368         * MODULES.html.sh (Unicode string functions): Add the new modules.
63369
63370 2007-07-06  Bruno Haible  <bruno@clisp.org>
63371
63372         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
63373
63374 2007-07-06  Bruno Haible  <bruno@clisp.org>
63375
63376         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
63377         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
63378         includes <cygwin/sys_time.h> which includes <sys/select.h> which
63379         include <sys/time.h>.
63380         Reported by Eric Blake.
63381
63382 2007-07-06  Eric Blake  <ebb9@byu.net>
63383
63384         Fix testing canonicalize on cygwin.
63385         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
63386         Revert patch from 2007-06-19.
63387         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
63388         canonicalize module is also in use.
63389         * tests/test-canonicalize.c: New file.
63390         * tests/test-canonicalize.sh: Likewise.
63391         * modules/canonicalize-tests: Likewise.
63392
63393 2007-07-06  Jim Meyering  <jim@meyering.net>
63394
63395         * lib/getugroups.c (getugroups): Detect getgrent failure.
63396         Adjust comment to reflect reality: this function may return -1.
63397
63398 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
63399
63400         * build-aux/bootstrap (TP_URL,get_translations): Update to use
63401         the new TP address.
63402         (usage): Fix typo
63403         (gnulib_mk): New variable.
63404
63405 2007-07-05  Jim Meyering  <jim@meyering.net>
63406
63407         Don't let endgrent clobber errno, no matter how improbable.
63408         * lib/getugroups.c (getugroups): Save and restore errno around
63409         endgrent call.
63410
63411         Close the group DB even when failing with 2^31 or more members.
63412         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
63413
63414 2007-07-04  Jim Meyering  <jim@meyering.net>
63415
63416         * lib/getugroups.h: New file.
63417         * lib/getugroups.c: Include "getugroups.h".
63418         Remove uses of "register" keyword.
63419         Move local variable, "cp", down into scope where used.
63420         Give "username" parameter the "const" attribute.
63421         * modules/getugroups (Files): Add lib/getugroups.h
63422
63423 2007-07-04  Karl Berry  <karl@gnu.org>
63424
63425         * MODULES.html.sh (func_all_modules): Complete rename of
63426         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
63427
63428 2007-07-02  Bruno Haible  <bruno@clisp.org>
63429
63430         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
63431         mode, when inttypes.h comes from gnulib.
63432         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
63433
63434 2007-07-02  Simon Josefsson  <simon@josefsson.org>
63435
63436         * NEWS: Mention lgpl module name change.
63437
63438         * modules/lgpl-2.1: Renamed from lgpl.
63439
63440         * NEWS: Mention gpl module name change.
63441
63442         * modules/gpl-3.0: New file, based on gpl-2.0.
63443
63444         * modules/gpl-2.0: Renamed from gpl.
63445
63446         * modules/gpl: Fix filename, doc/gpl.texi is now found at
63447         doc/gpl-2.0.texi.
63448
63449 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
63450
63451         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
63452         #define __STDC_LIMIT_MACROS temporarily while including
63453         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
63454         Problem reported by Joel E. Denny in
63455         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
63456
63457 2007-07-01  Bruno Haible  <bruno@clisp.org>
63458
63459         * lib/unistdio.h: New file.
63460         * lib/unistdio/u-asnprintf.h: New file.
63461         * lib/unistdio/u-asprintf.h: New file.
63462         * lib/unistdio/u-printf-args.c: New file.
63463         * lib/unistdio/u-printf-args.h: New file.
63464         * lib/unistdio/u-printf-parse.h: New file.
63465         * lib/unistdio/u-snprintf.h: New file.
63466         * lib/unistdio/u-sprintf.h: New file.
63467         * lib/unistdio/u-vasprintf.h: New file.
63468         * lib/unistdio/u-vsnprintf.h: New file.
63469         * lib/unistdio/u-vsprintf.h: New file.
63470         * lib/unistdio/ulc-asnprintf.c: New file.
63471         * lib/unistdio/ulc-asprintf.c: New file.
63472         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
63473         * lib/unistdio/ulc-printf-parse.c: New file.
63474         * lib/unistdio/ulc-snprintf.c: New file.
63475         * lib/unistdio/ulc-sprintf.c: New file.
63476         * lib/unistdio/ulc-vasnprintf.c: New file.
63477         * lib/unistdio/ulc-vasprintf.c: New file.
63478         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
63479         * lib/unistdio/ulc-vsnprintf.c: New file.
63480         * lib/unistdio/ulc-vsprintf.c: New file.
63481         * lib/unistdio/u8-asnprintf.c: New file.
63482         * lib/unistdio/u8-asprintf.c: New file.
63483         * lib/unistdio/u8-printf-parse.c: New file.
63484         * lib/unistdio/u8-snprintf.c: New file.
63485         * lib/unistdio/u8-sprintf.c: New file.
63486         * lib/unistdio/u8-vasnprintf.c: New file.
63487         * lib/unistdio/u8-vasprintf.c: New file.
63488         * lib/unistdio/u8-vsnprintf.c: New file.
63489         * lib/unistdio/u8-vsprintf.c: New file.
63490         * lib/unistdio/u8-u8-asnprintf.c: New file.
63491         * lib/unistdio/u8-u8-asprintf.c: New file.
63492         * lib/unistdio/u8-u8-snprintf.c: New file.
63493         * lib/unistdio/u8-u8-sprintf.c: New file.
63494         * lib/unistdio/u8-u8-vasnprintf.c: New file.
63495         * lib/unistdio/u8-u8-vasprintf.c: New file.
63496         * lib/unistdio/u8-u8-vsnprintf.c: New file.
63497         * lib/unistdio/u8-u8-vsprintf.c: New file.
63498         * lib/unistdio/u16-asnprintf.c: New file.
63499         * lib/unistdio/u16-asprintf.c: New file.
63500         * lib/unistdio/u16-printf-parse.c: New file.
63501         * lib/unistdio/u16-snprintf.c: New file.
63502         * lib/unistdio/u16-sprintf.c: New file.
63503         * lib/unistdio/u16-vasnprintf.c: New file.
63504         * lib/unistdio/u16-vasprintf.c: New file.
63505         * lib/unistdio/u16-vsnprintf.c: New file.
63506         * lib/unistdio/u16-vsprintf.c: New file.
63507         * lib/unistdio/u16-u16-asnprintf.c: New file.
63508         * lib/unistdio/u16-u16-asprintf.c: New file.
63509         * lib/unistdio/u16-u16-snprintf.c: New file.
63510         * lib/unistdio/u16-u16-sprintf.c: New file.
63511         * lib/unistdio/u16-u16-vasnprintf.c: New file.
63512         * lib/unistdio/u16-u16-vasprintf.c: New file.
63513         * lib/unistdio/u16-u16-vsnprintf.c: New file.
63514         * lib/unistdio/u16-u16-vsprintf.c: New file.
63515         * lib/unistdio/u32-asnprintf.c: New file.
63516         * lib/unistdio/u32-asprintf.c: New file.
63517         * lib/unistdio/u32-printf-parse.c: New file.
63518         * lib/unistdio/u32-snprintf.c: New file.
63519         * lib/unistdio/u32-sprintf.c: New file.
63520         * lib/unistdio/u32-vasnprintf.c: New file.
63521         * lib/unistdio/u32-vasprintf.c: New file.
63522         * lib/unistdio/u32-vsnprintf.c: New file.
63523         * lib/unistdio/u32-vsprintf.c: New file.
63524         * lib/unistdio/u32-u32-asnprintf.c: New file.
63525         * lib/unistdio/u32-u32-asprintf.c: New file.
63526         * lib/unistdio/u32-u32-snprintf.c: New file.
63527         * lib/unistdio/u32-u32-sprintf.c: New file.
63528         * lib/unistdio/u32-u32-vasnprintf.c: New file.
63529         * lib/unistdio/u32-u32-vasprintf.c: New file.
63530         * lib/unistdio/u32-u32-vsnprintf.c: New file.
63531         * lib/unistdio/u32-u32-vsprintf.c: New file.
63532         * tests/unistdio/test-ulc-asnprintf1.c: New file.
63533         * tests/unistdio/test-ulc-asnprintf1.h: New file.
63534         * tests/unistdio/test-ulc-printf1.h: New file.
63535         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
63536         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
63537         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
63538         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
63539         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
63540         * tests/unistdio/test-ulc-vasprintf1.c: New file.
63541         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
63542         * tests/unistdio/test-ulc-vsprintf1.c: New file.
63543         * tests/unistdio/test-u8-asnprintf1.c: New file.
63544         * tests/unistdio/test-u8-asnprintf1.h: New file.
63545         * tests/unistdio/test-u8-printf1.h: New file.
63546         * tests/unistdio/test-u8-vasnprintf1.c: New file.
63547         * tests/unistdio/test-u8-vasnprintf2.c: New file.
63548         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
63549         * tests/unistdio/test-u8-vasnprintf3.c: New file.
63550         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
63551         * tests/unistdio/test-u8-vasprintf1.c: New file.
63552         * tests/unistdio/test-u8-vsnprintf1.c: New file.
63553         * tests/unistdio/test-u8-vsprintf1.c: New file.
63554         * tests/unistdio/test-u16-asnprintf1.c: New file.
63555         * tests/unistdio/test-u16-asnprintf1.h: New file.
63556         * tests/unistdio/test-u16-printf1.h: New file.
63557         * tests/unistdio/test-u16-vasnprintf1.c: New file.
63558         * tests/unistdio/test-u16-vasnprintf2.c: New file.
63559         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
63560         * tests/unistdio/test-u16-vasnprintf3.c: New file.
63561         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
63562         * tests/unistdio/test-u16-vasprintf1.c: New file.
63563         * tests/unistdio/test-u16-vsnprintf1.c: New file.
63564         * tests/unistdio/test-u16-vsprintf1.c: New file.
63565         * tests/unistdio/test-u32-asnprintf1.c: New file.
63566         * tests/unistdio/test-u32-asnprintf1.h: New file.
63567         * tests/unistdio/test-u32-printf1.h: New file.
63568         * tests/unistdio/test-u32-vasnprintf1.c: New file.
63569         * tests/unistdio/test-u32-vasnprintf2.c: New file.
63570         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
63571         * tests/unistdio/test-u32-vasnprintf3.c: New file.
63572         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
63573         * tests/unistdio/test-u32-vasprintf1.c: New file.
63574         * tests/unistdio/test-u32-vsnprintf1.c: New file.
63575         * tests/unistdio/test-u32-vsprintf1.c: New file.
63576         * modules/unistdio/base: New file.
63577         * modules/unistdio/u-printf-args: New file.
63578         * modules/unistdio/ulc-asnprintf: New file.
63579         * modules/unistdio/ulc-asprintf: New file.
63580         * modules/unistdio/ulc-fprintf: New file.
63581         * modules/unistdio/ulc-printf-parse: New file.
63582         * modules/unistdio/ulc-snprintf: New file.
63583         * modules/unistdio/ulc-sprintf: New file.
63584         * modules/unistdio/ulc-vasnprintf: New file.
63585         * modules/unistdio/ulc-vasprintf: New file.
63586         * modules/unistdio/ulc-vfprintf: New file.
63587         * modules/unistdio/ulc-vsnprintf: New file.
63588         * modules/unistdio/ulc-vsprintf: New file.
63589         * modules/unistdio/u8-asnprintf: New file.
63590         * modules/unistdio/u8-asprintf: New file.
63591         * modules/unistdio/u8-printf-parse: New file.
63592         * modules/unistdio/u8-snprintf: New file.
63593         * modules/unistdio/u8-sprintf: New file.
63594         * modules/unistdio/u8-vasnprintf: New file.
63595         * modules/unistdio/u8-vasprintf: New file.
63596         * modules/unistdio/u8-vsnprintf: New file.
63597         * modules/unistdio/u8-vsprintf: New file.
63598         * modules/unistdio/u8-u8-asnprintf: New file.
63599         * modules/unistdio/u8-u8-asprintf: New file.
63600         * modules/unistdio/u8-u8-snprintf: New file.
63601         * modules/unistdio/u8-u8-sprintf: New file.
63602         * modules/unistdio/u8-u8-vasnprintf: New file.
63603         * modules/unistdio/u8-u8-vasprintf: New file.
63604         * modules/unistdio/u8-u8-vsnprintf: New file.
63605         * modules/unistdio/u8-u8-vsprintf: New file.
63606         * modules/unistdio/u16-asnprintf: New file.
63607         * modules/unistdio/u16-asprintf: New file.
63608         * modules/unistdio/u16-printf-parse: New file.
63609         * modules/unistdio/u16-snprintf: New file.
63610         * modules/unistdio/u16-sprintf: New file.
63611         * modules/unistdio/u16-vasnprintf: New file.
63612         * modules/unistdio/u16-vasprintf: New file.
63613         * modules/unistdio/u16-vsnprintf: New file.
63614         * modules/unistdio/u16-vsprintf: New file.
63615         * modules/unistdio/u16-u16-asnprintf: New file.
63616         * modules/unistdio/u16-u16-asprintf: New file.
63617         * modules/unistdio/u16-u16-snprintf: New file.
63618         * modules/unistdio/u16-u16-sprintf: New file.
63619         * modules/unistdio/u16-u16-vasnprintf: New file.
63620         * modules/unistdio/u16-u16-vasprintf: New file.
63621         * modules/unistdio/u16-u16-vsnprintf: New file.
63622         * modules/unistdio/u16-u16-vsprintf: New file.
63623         * modules/unistdio/u32-asnprintf: New file.
63624         * modules/unistdio/u32-asprintf: New file.
63625         * modules/unistdio/u32-printf-parse: New file.
63626         * modules/unistdio/u32-snprintf: New file.
63627         * modules/unistdio/u32-sprintf: New file.
63628         * modules/unistdio/u32-vasnprintf: New file.
63629         * modules/unistdio/u32-vasprintf: New file.
63630         * modules/unistdio/u32-vsnprintf: New file.
63631         * modules/unistdio/u32-vsprintf: New file.
63632         * modules/unistdio/u32-u32-asnprintf: New file.
63633         * modules/unistdio/u32-u32-asprintf: New file.
63634         * modules/unistdio/u32-u32-snprintf: New file.
63635         * modules/unistdio/u32-u32-sprintf: New file.
63636         * modules/unistdio/u32-u32-vasnprintf: New file.
63637         * modules/unistdio/u32-u32-vasprintf: New file.
63638         * modules/unistdio/u32-u32-vsnprintf: New file.
63639         * modules/unistdio/u32-u32-vsprintf: New file.
63640         * modules/unistdio/ulc-asnprintf-tests: New file.
63641         * modules/unistdio/ulc-vasnprintf-tests: New file.
63642         * modules/unistdio/ulc-vasprintf-tests: New file.
63643         * modules/unistdio/ulc-vsnprintf-tests: New file.
63644         * modules/unistdio/ulc-vsprintf-tests: New file.
63645         * modules/unistdio/u8-asnprintf-tests: New file.
63646         * modules/unistdio/u8-vasnprintf-tests: New file.
63647         * modules/unistdio/u8-vasprintf-tests: New file.
63648         * modules/unistdio/u8-vsnprintf-tests: New file.
63649         * modules/unistdio/u8-vsprintf-tests: New file.
63650         * modules/unistdio/u16-asnprintf-tests: New file.
63651         * modules/unistdio/u16-vasnprintf-tests: New file.
63652         * modules/unistdio/u16-vasprintf-tests: New file.
63653         * modules/unistdio/u16-vsnprintf-tests: New file.
63654         * modules/unistdio/u16-vsprintf-tests: New file.
63655         * modules/unistdio/u32-asnprintf-tests: New file.
63656         * modules/unistdio/u32-vasnprintf-tests: New file.
63657         * modules/unistdio/u32-vasprintf-tests: New file.
63658         * modules/unistdio/u32-vsnprintf-tests: New file.
63659         * modules/unistdio/u32-vsprintf-tests: New file.
63660         * MODULES.html.sh (Unicode string functions): Add the new modules.
63661
63662 2007-07-01  Bruno Haible  <bruno@clisp.org>
63663
63664         * lib/sprintf.c (sprintf): Limit the available length estimation,
63665         to avoid address wraparound.
63666         * lib/vsprintf.c (vsprintf): Likewise.
63667         * modules/sprintf-posix (Dependencies): Add stdint.
63668         * modules/vsprintf-posix (Dependencies): Likewise.
63669
63670 2007-07-01  Bruno Haible  <bruno@clisp.org>
63671
63672         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
63673         Windows PATH as well. Conservative double-quoting. Comments.
63674
63675 2007-07-01  Bruno Haible  <bruno@clisp.org>
63676             Eric Blake  <ebb9@byu.net>
63677             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63678
63679         * gnulib-tool (self_abspathname): Fix algorithm to cope with
63680         empty components in $PATH, denoting '.'.
63681
63682 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63683
63684         * gnulib-tool: Fix indentation.
63685         (func_create_megatestdir): Likewise.
63686         Report by Bruno Haible.
63687
63688 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63689
63690         Sync from Automake.
63691         * build-aux/gnupload: Fix shell portability issues with for loops.
63692         Report by Karl Berry.
63693
63694 2007-06-29  Simon Josefsson  <simon@josefsson.org>
63695
63696         * build-aux/maint.mk (POURL): Use translationproject.org.
63697
63698 2007-06-27  Simon Josefsson  <simon@josefsson.org>
63699             Bruno Haible  <bruno@clisp.org>
63700
63701         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
63702         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
63703         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
63704         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
63705         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
63706
63707 2007-06-27  Bruno Haible  <bruno@clisp.org>
63708
63709         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
63710         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
63711
63712 2007-06-26  Karl Berry  <karl@gnu.org>
63713
63714         * MODULES.html.sh: remove xreadlink-with-size.
63715
63716 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
63717
63718         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
63719         method that I hope also handles the double-include problem noted
63720         by Bruno Haible in
63721         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
63722
63723 2007-06-23  Bruno Haible  <bruno@clisp.org>
63724
63725         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63726         Don't let the 'mostlyclean' target fail if the last subdirectory could
63727         not be removed.
63728         Reported by Karl Berry.
63729
63730 2007-06-23  Bruno Haible  <bruno@clisp.org>
63731
63732         * gnulib-tool (echo): Add a speedier workaround for ksh.
63733         * tests/test-echo.sh: Likewise.
63734
63735 2007-06-23  Bruno Haible  <bruno@clisp.org>
63736
63737         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
63738         * tests/test-echo.sh: Likewise.
63739
63740 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63741
63742         * gnulib-tool (IFS): Initialize early, so we don't set it to
63743         empty later.
63744         (self_abspathname): Rewrite algorithm to set it, reindent.
63745         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
63746         (func_create_megatestdir): Merge some sed scripts.
63747
63748 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
63749
63750         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
63751         exposed by Sun Studio 11 cc on Solaris 8.
63752
63753 2007-06-22  Bruno Haible  <bruno@clisp.org>
63754
63755         * gnulib-tool (echo): Ensure the echo primitive does not interpret
63756         backslashes.
63757         * tests/test-echo.sh: New file.
63758
63759 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63760
63761         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
63762         simplify `sed_replace_build_aux' scripts, they are portable but
63763         echoing them with `echo' is not.
63764         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
63765
63766 2007-06-21  Karl Berry  <karl@gnu.org>
63767
63768         * config/srclist.txt: guess we can't handle the licenses via
63769         srclist at the moment.
63770
63771 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
63772
63773         * MODULES.html.sh: Add include_next.
63774         * modules/include_next: New file.
63775
63776 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
63777
63778         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
63779         INCLUDE_NEXT.
63780         (gl_CHECK_NEXT_HEADERS): New macro.
63781         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
63782         the obsolescent gl_ABSOLUTE_HEADER.
63783         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
63784         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
63785         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
63786         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
63787         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
63788         * m4/math_h.m4 (gl_MATH_H): Likewise.
63789         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
63790         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
63791         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
63792         * m4/stdint.m4 (gl_STDINT_H): Likewise.
63793         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
63794         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
63795         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
63796         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
63797         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
63798         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
63799         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
63800         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
63801         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
63802         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
63803         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
63804         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
63805         * m4/inttypes.m4 (gl_INTTYPES_H): Define
63806         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
63807         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
63808         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
63809         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
63810         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
63811         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
63812         * lib/float_.h: Likewise.
63813         * lib/inttypes_.h: Likewise.
63814         * lib/math_.h: Likewise.
63815         * lib/search_.h: Likewise.
63816         * lib/signal_.h: Likewise.
63817         * lib/stdint_.h: Likewise.
63818         * lib/stdio_.h: Likewise.
63819         * lib/stdlib_.h: Likewise.
63820         * lib/string_.h: Likewise.
63821         * lib/sys_stat_.h: Likewise.
63822         * lib/sys_time_.h: Likewise.
63823         * lib/time_.h: Likewise.
63824         * lib/unistd_.h: Likewise.
63825         * lib/wchar_.h: Likewise.
63826         * lib/wctype_.h: Likewise.
63827         * lib/dirent_.h: Likewise.
63828         * lib/iconv_.h: Likewise.
63829         * lib/locale_.h: Likewise.
63830         * lib/netinet_in_.h: Likewise.
63831         * lib/sys_select_.h: Likewise.
63832         * lib/sys_socket_.h: Likewise.
63833         * lib/sysexits_.h: Likewise.
63834         * modules/fcntl (Depends-on): Depend on include_next, not
63835         absolute_header.
63836         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
63837         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
63838         * modules/fchdir: Likewise.
63839         * modules/float: Likewise.
63840         * modules/iconv_open: Likewise.
63841         * modules/inttypes: Likewise.
63842         * modules/locale: Likewise.
63843         * modules/math: Likewise.
63844         * modules/netinet_in: Likewise.
63845         * modules/search: Likewise.
63846         * modules/signal: Likewise.
63847         * modules/stdint: Likewise.
63848         * modules/stdio: Likewise.
63849         * modules/stdlib: Likewise.
63850         * modules/string: Likewise.
63851         * modules/sys_select: Likewise.
63852         * modules/sys_socket: Likewise.
63853         * modules/sys_stat: Likewise.
63854         * modules/sys_time: Likewise.
63855         * modules/sysexits: Likewise.
63856         * modules/time: Likewise.
63857         * modules/unistd: Likewise.
63858         * modules/wchar: Likewise.
63859         * modules/wctype: Likewise.
63860         * modules/sys_stat: Change maintainer to "all".
63861         * modules/unistd: Likewise.
63862
63863 2007-06-20  Karl Berry  <karl@gnu.org>
63864
63865         * config/srclist.txt: track www changes in license files.
63866
63867 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
63868
63869         * build-aux/bootstrap: Remove stray dot.
63870         Make sure build_aux settings are honored when linking
63871         gnulib_extra_files.
63872
63873 2007-06-19  Eric Blake  <ebb9@byu.net>
63874
63875         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
63876         Allow compilation on cygwin.
63877
63878 2007-06-19  Jim Meyering  <jim@meyering.net>
63879
63880         xreadlink-with-size: Remove module.  No longer used.
63881         Ex-callers now use xreadlink or mreadlink-with-size.
63882         * modules/xreadlink-with-size: Remove module.
63883         * lib/xreadlink-with-size.c: Remove file.
63884         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
63885         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
63886         just before the function definition *is* accurate.
63887
63888         Eliminate one way canonicalize_filename_mode could exit.
63889         * lib/canonicalize.c (canonicalize_filename_mode):
63890         Use mreadlink_with_size, not xreadlink_with_size.
63891
63892 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
63893
63894         Detect porting problems to FreeBSD/arm, which has time_t wider than
63895         long int.  Original problem reported for GNU diff by Xin Li in
63896         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
63897         * modules/getdate (Depends-on): Add intprops, verify.
63898         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
63899         is an integer type no wider than long int.
63900
63901 2007-06-18  Jim Meyering  <jim@meyering.net>
63902
63903         New module: mreadlink-with-size.
63904         * MODULES.html.sh: Add mreadlink-with-size.
63905         * modules/mreadlink-with-size: New module
63906         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
63907         not xreadlink-with-size.
63908         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
63909
63910 2007-06-16  Bruno Haible  <bruno@clisp.org>
63911
63912         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
63913         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
63914         Reported by Gary V. Vaughan <gary@gnu.org>.
63915
63916 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
63917
63918         Revamp lchown so that it lives in unistd.h where it belongs.
63919         * lib/lchown.h: Remove.
63920         * lib/dirchownmod.c: Don't include lib/lchown.h.
63921         * lib/fchownat.c: Likewise.
63922         * lib/openat.c: Likewise.
63923         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
63924         does not follow symlinks.
63925         (EOPNOTSUPP): Define if not defined.
63926         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
63927         is defined to 0.
63928         (lchown): New decl.
63929         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
63930         Do not check for lchown decl.
63931         Set REPLACE_LCHOWN.
63932         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
63933         REPLACE_LCHOWN.
63934         * modules/chown: Make it clear it follows symlinks.
63935         * modules/lchown: Make it clear it doesn't follow symlinks.
63936         (Files): Remove lib/lchown.h
63937         (Depends-on): Add unistd.
63938         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
63939         (Include): Include <unistd.h>, not "lchown.h".
63940         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
63941         REPLACE_LCHOWN.
63942
63943 2007-06-15  Jim Meyering  <jim@meyering.net>
63944
63945         Change license (GPL to LGPL) of fsusage and dependents.
63946         * modules/fsusage (License): Change to LGPL.
63947         * modules/full-read (License): Likewise.
63948         * modules/full-write (License): Likewise.
63949         * modules/safe-read (License): Likewise.
63950         * modules/safe-write (License): Likewise.
63951
63952 2007-06-14  Ben Pfaff  <blp@gnu.org>
63953
63954         Missing part of allocsa -> malloca transition.
63955         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
63956         gl_MALLOCA.
63957
63958 2007-06-12  Bruno Haible  <bruno@clisp.org>
63959
63960         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
63961         to ia64, x86_64, i386.
63962         Reported by Eric Blake.
63963
63964 2007-06-12  Bruno Haible  <bruno@clisp.org>
63965
63966         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
63967         cross-compiling to x86_64.
63968
63969 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
63970
63971         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
63972         glitch reported by Ralf Wildenhues in
63973         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
63974
63975         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
63976         Vin Shelton.
63977
63978 2007-06-11  Bruno Haible  <bruno@clisp.org>
63979
63980         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
63981         replacement string.
63982         Reported by Eric Blake.
63983
63984 2007-06-10  Bruno Haible  <bruno@clisp.org>
63985
63986         Prepare vasnprintf code for use with Unicode strings.
63987         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
63988         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
63989         TYPE_U32_STRING.
63990         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
63991         a_u32_string variants.
63992         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
63993         * lib/printf-args.c: Don't include config.h and the specification
63994         header if PRINTF_FETCHARGS is already defined.
63995         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
63996         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
63997         TYPE_U16_STRING, TYPE_U32_STRING.
63998         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
63999         u16_directive, u16_directives, u32_directive, u32_directives): New
64000         types.
64001         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
64002         New declarations.
64003         * lib/printf-parse.c: Don't include config.h and the specification
64004         header if PRINTF_PARSE is already defined. Eliminate the set of
64005         parameters for WIDE_CHAR_VERSION; the user of this file must provide
64006         them now. Include c-ctype.h.
64007         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
64008         directive and CHAR_T_ONLY_ASCII.
64009         * lib/vasnprintf.c: Don't include config.h and the specification header
64010         if VASNPRINTF is already defined.
64011         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
64012         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
64013         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
64014         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
64015         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
64016         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
64017         code accordingly.
64018         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
64019         pad_ourselves also in this case, with the 'c' and 's' directives, and
64020         with a different notion of "width".
64021         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
64022
64023 2007-06-10  Bruno Haible  <bruno@clisp.org>
64024
64025         * modules/unistr/u32-mbsnlen: New file.
64026         * lib/unistr/u32-mbsnlen.c: New file.
64027
64028         * modules/unistr/u16-mbsnlen: New file.
64029         * lib/unistr/u16-mbsnlen.c: New file.
64030
64031         * modules/unistr/u8-mbsnlen: New file.
64032         * lib/unistr/u8-mbsnlen.c: New file.
64033
64034         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
64035         declarations.
64036
64037 2007-06-10  Bruno Haible  <bruno@clisp.org>
64038
64039         * lib/string_.h (mbsnlen): New declaration.
64040         * lib/mbsnlen.c: New file.
64041         * m4/mbsnlen.m4: New file.
64042         * modules/mbsnlen: New file.
64043         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
64044         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
64045         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
64046
64047 2007-06-10  Bruno Haible  <bruno@clisp.org>
64048
64049         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
64050
64051 2007-06-10  Bruno Haible  <bruno@clisp.org>
64052
64053         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
64054         * lib/mbuiter.h: Likewise.
64055
64056 2007-06-10  Bruno Haible  <bruno@clisp.org>
64057
64058         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
64059         declaration.
64060
64061 2007-06-10  Karl Berry  <karl@gnu.org>
64062
64063         * config/srclist.txt: remove gettext entries, Bruno prefers
64064         to update individually.
64065
64066 2007-06-10  Bruno Haible  <bruno@clisp.org>
64067
64068         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
64069         'maxlen'. Ensure only length + width bytes are allocated, not
64070         length + 1 + width.
64071
64072 2007-06-09  Bruno Haible  <bruno@clisp.org>
64073
64074         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
64075         (CHAR_T): Remove macro.
64076         (VASNPRINTF): Update.
64077
64078 2007-06-09  Bruno Haible  <bruno@clisp.org>
64079
64080         * MODULES.html.sh (Unicode string functions): Add the new modules.
64081
64082         * modules/uniconv/u32-conv-to-enc: New file.
64083         * lib/uniconv/u32-conv-to-enc.c: New file.
64084         * modules/uniconv/u32-conv-to-enc-tests: New file.
64085         * tests/uniconv/test-u32-conv-to-enc.c: New file.
64086
64087         * modules/uniconv/u16-conv-to-enc: New file.
64088         * lib/uniconv/u16-conv-to-enc.c: New file.
64089         * lib/uniconv/u-conv-to-enc.h: New file.
64090         * modules/uniconv/u16-conv-to-enc-tests: New file.
64091         * tests/uniconv/test-u16-conv-to-enc.c: New file.
64092
64093         * modules/uniconv/u8-conv-to-enc: New file.
64094         * lib/uniconv/u8-conv-to-enc.c: New file.
64095         * modules/uniconv/u8-conv-to-enc-tests: New file.
64096         * tests/uniconv/test-u8-conv-to-enc.c: New file.
64097
64098         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
64099         u32_conv_to_encoding): New declarations.
64100
64101 2007-06-09  Bruno Haible  <bruno@clisp.org>
64102
64103         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
64104
64105 2007-06-09  Bruno Haible  <bruno@clisp.org>
64106
64107         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
64108         * modules/malloca: Renamed from modules/allocsa, updated.
64109         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
64110         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
64111         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
64112         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
64113         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
64114         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
64115         * modules/xmalloca: Renamed from modules/xallocsa, updated.
64116         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
64117         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
64118         * modules/c-strcasestr (Depends-on): Update.
64119         * lib/c-strcasestr.c: Update.
64120         * modules/c-strstr (Depends-on): Update.
64121         * lib/c-strstr.c: Update.
64122         * modules/canonicalize-lgpl (Depends-on): Update.
64123         * lib/canonicalize-lgpl.c: Update.
64124         * modules/clean-temp (Depends-on): Update.
64125         * lib/clean-temp.c: Update.
64126         * modules/csharpcomp (Depends-on): Update.
64127         * lib/csharpcomp.c: Update.
64128         * modules/csharpexec (Depends-on): Update.
64129         * lib/csharpexec.c: Update.
64130         * modules/javacomp (Depends-on): Update.
64131         * lib/javacomp.c: Update.
64132         * modules/javaexec (Depends-on): Update.
64133         * lib/javaexec.c: Update.
64134         * modules/mbscasestr (Depends-on): Update.
64135         * lib/mbscasestr.c: Update.
64136         * modules/mbsstr (Depends-on): Update.
64137         * lib/mbsstr.c: Update.
64138         * modules/setenv (Depends-on): Update.
64139         * lib/setenv.c: Update.
64140         * modules/strcasestr (Depends-on): Update.
64141         * lib/strcasestr.c: Update.
64142         * modules/striconveha (Depends-on): Update.
64143         * lib/striconveha.c: Update.
64144         * modules/relocatable-prog-wrapper (Files): Update.
64145         * lib/relocwrapper.c: Update.
64146         * build-aux/install-reloc: Update.
64147         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
64148
64149 2007-06-08  Bruno Haible  <bruno@clisp.org>
64150
64151         Port to uClibc.
64152         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
64153         * lib/fpurge.c (fpurge): Likewise.
64154         * lib/freading.c (freading): Likewise.
64155         * lib/fseeko.c (rpl_fseeko): Likewise.
64156         * lib/fseterr.c (fseterr): Likewise.
64157         * lib/fwriting.c (fwriting): Likewise.
64158         * tests/test-fflush.c (main): Avoid a failure on uClibc.
64159
64160 2007-06-08  Bruno Haible  <bruno@clisp.org>
64161
64162         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
64163         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
64164         * modules/gettext (Files): Add m4/intlmacosx.m4.
64165
64166 2007-06-07  Bruno Haible  <bruno@clisp.org>
64167
64168         * modules/localename-tests: New file.
64169         * tests/test-localename.c: New file.
64170
64171         New module 'localename'.
64172         * lib/localename.h: New file.
64173         * lib/localename.c: New file, from GNU gettext.
64174         * m4/localename.m4: New file.
64175         * modules/localename: New file.
64176
64177 2007-06-07  Bruno Haible  <bruno@clisp.org>
64178
64179         Work around the lack of <wchar.h> on some builds of uClibc.
64180         * doc/headers/wchar.texi: Update.
64181         * lib/wchar_.h: Include <wchar.h> only if it exists.
64182         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
64183         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
64184         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
64185         doesn't exist.
64186         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
64187         * modules/mbfile (Depends-on): Add wchar.
64188         * modules/mbiter (Depends-on): Likewise.
64189         * modules/mbuiter (Depends-on): Likewise.
64190         Reported by Simon Josefsson.
64191
64192 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
64193
64194         Work around problem reported by Steven M. Schweda in
64195         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
64196         Tru64 5.1B with the Compaq compiler environment installed declares
64197         an 'isblank' function but does not define it in the C library.
64198         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
64199         * lib/regex_internal.h (isblank): Likewise.
64200         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
64201         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
64202
64203 2007-06-05  Bruno Haible  <bruno@clisp.org>
64204
64205         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
64206         ia64.
64207         * modules/printf-safe: New file.
64208         * modules/fprintf-posix (Depends-on): Add printf-safe.
64209         * modules/printf-posix (Depends-on): Likewise.
64210         * modules/snprintf-posix (Depends-on): Likewise.
64211         * modules/sprintf-posix (Depends-on): Likewise.
64212         * modules/vasnprintf-posix (Depends-on): Likewise.
64213         * modules/vasprintf-posix (Depends-on): Likewise.
64214         * modules/vfprintf-posix (Depends-on): Likewise.
64215         * modules/vprintf-posix (Depends-on): Likewise.
64216         * modules/vsnprintf-posix (Depends-on): Likewise.
64217         * modules/vsprintf-posix (Depends-on): Likewise.
64218         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
64219         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
64220         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
64221         "no" on i386, x86_64, ia64.
64222         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
64223         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64224         on i386, x86_64, ia64.
64225         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
64226         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64227         on i386, x86_64, ia64.
64228         * tests/test-vasnprintf-posix.c: Include float.h.
64229         (LDBL80_WORDS): New macro.
64230         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64231         on i386, x86_64, ia64.
64232         * tests/test-vasprintf-posix.c: Include float.h.
64233         (LDBL80_WORDS): New macro.
64234         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64235         on i386, x86_64, ia64.
64236         * tests/test-snprintf-posix.c: Include float.h.
64237         * tests/test-sprintf-posix.c: Likewise.
64238         * tests/test-vsnprintf-posix.c: Likewise.
64239         * tests/test-vsprintf-posix.c: Likewise.
64240
64241 2007-06-05  Bruno Haible  <bruno@clisp.org>
64242
64243         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
64244         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
64245         non-IEEE numbers on i386, x86_64, ia64.
64246         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
64247         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
64248         * tests/test-isnanl.h: Include float.h.
64249         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
64250
64251 2007-06-05  Bruno Haible  <bruno@clisp.org>
64252
64253         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
64254         also the %a / %A. Handle the %a / %A code before this extra handling.
64255
64256 2007-06-05  Bruno Haible  <bruno@clisp.org>
64257
64258         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
64259         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
64260
64261 2007-06-05  Bruno Haible  <bruno@clisp.org>
64262
64263         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
64264         typo in variable name.
64265
64266 2007-06-05  Eric Blake  <ebb9@byu.net>
64267
64268         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
64269         Reported by Simon Josefsson.
64270
64271 2007-06-04  Bruno Haible  <bruno@clisp.org>
64272
64273         Avoid test failures on some PowerPC platforms.
64274         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
64275         Define differently for PowerPC.
64276         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
64277         Reported by Gary V. Vaughan <gary@gnu.org>.
64278
64279 2007-06-02  Bruno Haible  <bruno@clisp.org>
64280
64281         Fix test-stdint failure on FreeBSD/ia64.
64282         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
64283         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
64284         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
64285         * doc/headers/stdint.texi: Update.
64286
64287 2007-06-01  Bruno Haible  <bruno@clisp.org>
64288
64289         * tests/test-binary-io.c (main): Pass a third argument to open().
64290         Reported by Gary V. Vaughan <gary@gnu.org>.
64291
64292 2007-06-01  Bruno Haible  <bruno@clisp.org>
64293
64294         * doc/functions/frexpl.texi: Update for mingw.
64295
64296 2007-06-01  Bruno Haible  <bruno@clisp.org>
64297
64298         * tests/test-lseek.c (main): Disable test of errno for invalid third
64299         argument.
64300         * doc/functions/lseek.texi: Update.
64301         Reported by Gary V. Vaughan <gary@gnu.org>.
64302
64303 2007-05-28  Bruno Haible  <bruno@clisp.org>
64304
64305         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
64306
64307 2007-05-31  Eric Blake  <ebb9@byu.net>
64308
64309         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
64310         cross compiling.
64311
64312 2007-05-30  Eric Blake  <ebb9@byu.net>
64313         and Bruno Haible  <bruno@clisp.org>
64314
64315         Work around mingw test failures exposed by m4-1.4.9b.
64316         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
64317         * tests/test-unistd.c: Disable uid_t and git_t tests for the
64318         moment.
64319
64320 2007-05-30  Bruno Haible  <bruno@clisp.org>
64321
64322         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
64323         assuming that they are closed. Needed on HP-UX 11.
64324
64325 2007-05-29  Bruno Haible  <bruno@clisp.org>
64326
64327         Fix a problem with #include_next.
64328         * lib/dirent_.h: Split the double-inclusion guard.
64329         * lib/fcntl_.h: Likewise.
64330         * lib/float_.h: Likewise.
64331         * lib/iconv_.h: Likewise.
64332         * lib/inttypes_.h: Likewise.
64333         * lib/locale_.h: Likewise.
64334         * lib/math_.h: Likewise.
64335         * lib/netinet_in_.h: Likewise.
64336         * lib/search_.h: Likewise.
64337         * lib/signal_.h: Likewise.
64338         * lib/stdint_.h: Likewise.
64339         * lib/stdio_.h: Likewise.
64340         * lib/stdlib_.h: Likewise.
64341         * lib/string_.h: Likewise.
64342         * lib/sys_select_.h: Likewise.
64343         * lib/sys_socket_.h: Likewise.
64344         * lib/sys_stat_.h: Likewise.
64345         * lib/sys_time_.h: Likewise.
64346         * lib/sysexits_.h: Likewise.
64347         * lib/time_.h: Likewise.
64348         * lib/unistd_.h: Likewise.
64349         * lib/wchar_.h: Likewise.
64350         * lib/wctype_.h: Likewise.
64351
64352 2007-05-29  Bruno Haible  <bruno@clisp.org>
64353
64354         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
64355         for the moment.
64356
64357 2007-05-29  Bruno Haible  <bruno@clisp.org>
64358
64359         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
64360         invocation.
64361         Reported by Eric Blake.
64362
64363 2007-05-29  Bruno Haible  <bruno@clisp.org>
64364
64365         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
64366         compiling case.
64367
64368 2007-05-29  Eric Blake  <ebb9@byu.net>
64369             Bruno Haible  <bruno@clisp.org>
64370
64371         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
64372         cross compiles.
64373
64374 2007-05-28  Eric Blake  <ebb9@byu.net>
64375
64376         * modules/closein-tests (test_closein_LDADD): Support test on
64377         cygwin with libtool.
64378
64379 2007-05-28  Bruno Haible  <bruno@clisp.org>
64380
64381         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
64382         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
64383         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
64384         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
64385         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
64386         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
64387         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
64388         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
64389         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
64390
64391 2007-05-28  Eric Blake  <ebb9@byu.net>
64392
64393         Unconditionally include <config.h> in unit tests.
64394         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
64395         * tests/test-allocsa.c, tests/test-arcfour.c,
64396         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
64397         tests/test-array_list.c, tests/test-array_oset.c,
64398         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
64399         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
64400         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
64401         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
64402         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
64403         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
64404         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
64405         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
64406         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
64407         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
64408         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
64409         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
64410         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
64411         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
64412         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
64413         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
64414         test-md5.c, test-memmem.c, test-printf-posix.c,
64415         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
64416         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
64417         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
64418         test-strcasestr.c, test-striconv.c, test-striconveh.c,
64419         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
64420         test-vasnprintf-posix2.c, test-vasnprintf.c,
64421         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
64422         test-vfprintf-posix.c, test-vprintf-posix.c,
64423         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
64424         test-xvasprintf.c: Likewise.
64425
64426 2007-05-28  Bruno Haible  <bruno@clisp.org>
64427
64428         * gnulib-tool (func_import): Remember the --with-tests command-line
64429         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
64430         Reported by Eric Blake.
64431
64432 2007-05-28  Bruno Haible  <bruno@clisp.org>
64433
64434         * modules/ftell-tests: New file.
64435         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
64436         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
64437
64438         * lib/ftell.c: New file.
64439         * modules/ftell: New file.
64440         * m4/ftell.m4: New file.
64441         * doc/functions/ftell.texi: Update.
64442         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
64443         REPLACE_FTELL.
64444         * lib/stdio_.h (rpl_ftell): New declaration.
64445         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
64446         REPLACE_FTELL.
64447
64448 2007-05-28  Eric Blake  <ebb9@byu.net>
64449
64450         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
64451
64452 2007-05-28  Bruno Haible  <bruno@clisp.org>
64453
64454         * modules/fseek-tests: New file.
64455         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
64456         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
64457
64458         * lib/fseek.c: New file.
64459         * modules/fseek: New file.
64460         * m4/fseek.m4: New file.
64461         * doc/functions/fseek.texi: Update.
64462         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
64463         REPLACE_FSEEK.
64464         * lib/stdio_.h (rpl_fseek): New declaration.
64465         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
64466         REPLACE_FSEEK.
64467
64468 2007-05-28  Bruno Haible  <bruno@clisp.org>
64469
64470         * lib/stdio_.h (fflush): More comments.
64471
64472 2007-05-28  Bruno Haible  <bruno@clisp.org>
64473
64474         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
64475         runtime test.
64476
64477 2007-05-28  Eric Blake  <ebb9@byu.net>
64478
64479         Improve lseek module.
64480         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
64481         * lib/unistd_.h (lseek): Scale back link warning message.
64482         * tests/test-lseek.c: Beef up test.
64483         * tests/test-lseek.sh: Exercise more facets of lseek.
64484         Reported by Bruno Haible.
64485
64486 2007-05-28  Bruno Haible  <bruno@clisp.org>
64487
64488         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
64489         to define.
64490
64491 2007-05-27  Bruno Haible  <bruno@clisp.org>
64492
64493         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
64494
64495 2007-05-27  Bruno Haible  <bruno@clisp.org>
64496
64497         * modules/openmp: New file.
64498         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
64499         Noah Misch.
64500
64501 2007-05-26  Bruno Haible  <bruno@clisp.org>
64502
64503         * modules/chdir-long (Depends-on): Add fchdir.
64504         * modules/chdir-safer (Depends-on): Likewise.
64505         * modules/fts (Depends-on): Likewise.
64506         * modules/fts-lgpl (Depends-on): Likewise.
64507         * modules/openat (Depends-on): Likewise.
64508         * modules/savewd (Depends-on): Likewise.
64509
64510 2007-05-24  Eric Blake  <ebb9@byu.net>
64511
64512         Fix lseek on mingw.
64513         * modules/lseek: New module.
64514         * m4/lseek.m4: New file.
64515         * lib/lseek.c: New file.
64516         * modules/lseek-tests: New file.
64517         * tests/test-lseek.c: New file.
64518         * tests/test-lseek.sh: New file.
64519         * MODULES.html.sh: Document lseek module.
64520         * modules/fflush (Depends-on): Add lseek, fseeko.
64521         * modules/fseeko (Depends-on): Likewise.
64522         * modules/ftello (Depends-on): Likewise.
64523         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
64524         broken.
64525         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
64526         broken.
64527         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
64528         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
64529         * lib/ftello.c (rpl_ftello): Likewise.
64530         * tests/test-fseeko.c (main): Test this.
64531         * tests/test-fseeko.sh: Likewise.
64532         * tests/test-ftello.c (main): Likewise.
64533         * tests/test-ftello.sh: Likewise.
64534         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
64535         implies replacing fseek.
64536         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
64537         HAVE_FTELLO.
64538         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
64539         * modules/unistd (Makefile.am): Likewise.
64540         * lib/unistd_.h (lseek): Declare a replacement.
64541         * doc/functions/lseek.texi (lseek): Document this fix.
64542         * doc/functions/fseek.texi (fseek): Likewise.
64543         * doc/functions/ftell.texi (ftell): Likewise.
64544
64545 2007-05-24  Bruno Haible  <bruno@clisp.org>
64546
64547         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
64548         in the printed representation of a NaN.
64549         * tests/test-vasprintf-posix.c (test_function): Likewise.
64550         * tests/test-snprintf-posix.h (test_function): Likewise.
64551         * tests/test-sprintf-posix.h (test_function): Likewise.
64552         Reported by Eric Blake.
64553
64554 2007-05-23  Eric Blake  <ebb9@byu.net>
64555
64556         Fix fseeko/ftello on cygwin 1.5.24.
64557         * doc/functions/fseeko.texi (fseeko): Document the fix.
64558         * doc/functions/ftello.texi (ftello): Document the fix.
64559         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
64560         * doc/functions/stdout.text (stdout): New file.
64561         * doc/functions/stderr.text (stderr): New file.
64562         * doc/gnulib.texi (Function Substitutes): Use new files.
64563         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
64564         prior to 1.7.0.
64565         * tests/test-ftello.c (main): Likewise for ftello.
64566         * tests/test-fseeko.sh: New file.
64567         * tests/test-ftello.sh: New file.
64568         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
64569         with seekable stdin.
64570         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
64571         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
64572         (gl_REPLACE_FSEEKO): New macro.
64573         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
64574         * modules/fseeko (Files): Distribute fseeko.c.
64575         * modules/ftello (Files): Distribute ftello.c.
64576         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
64577         mode.
64578         * lib/ftello.c (rpl_ftello): New file.
64579         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
64580         fseeko, ftello.
64581         (gl_STDIN_LARGE_OFFSET): New macro.
64582         * modules/stdio (Makefile.am): Perform the replacement.
64583         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
64584
64585 2007-05-23  Bruno Haible  <bruno@clisp.org>
64586
64587         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
64588         GNULIB_POSIXCHECK is defined.
64589
64590 2007-05-21  Bruno Haible  <bruno@clisp.org>
64591
64592         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
64593         Check also the output for NaN arguments. When cross-compiling, guess
64594         no on IRIX.
64595         * lib/vasnprintf.c: Update comments.
64596         * tests/test-vasnprintf-posix.c (strisnan): New function.
64597         (test_function): Use it.
64598         * tests/test-vasprintf-posix.c (strisnan): New function.
64599         (test_function): Use it.
64600         * tests/test-snprintf-posix.h (strisnan): New function.
64601         (test_function): Use it.
64602         * tests/test-sprintf-posix.h (strisnan): New function.
64603         (test_function): Use it.
64604         Reported by Eric Blake.
64605
64606 2007-05-20  Bruno Haible  <bruno@clisp.org>
64607
64608         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
64609         numbers that fails on BeOS.
64610         * doc/functions/frexpl.texi: Update.
64611
64612 2007-05-20  Jim Meyering  <jim@meyering.net>
64613
64614         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
64615         forced upon us by glibc-2.6.
64616
64617 2007-05-20  Bruno Haible  <bruno@clisp.org>
64618
64619         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
64620         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
64621         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
64622         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
64623         NEED_PRINTF_INFINITE.
64624         (is_infinitel): New function.
64625         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
64626         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
64627         gl_PREREQ_VASNPRINTF_INFINITE.
64628         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
64629         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64630         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
64631         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
64632         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
64633         gl_PREREQ_VASNPRINTF_INFINITE.
64634         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64635         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64636         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64637         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64638         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64639         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64640         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64641         * doc/functions/fprintf.texi: Update.
64642         * doc/functions/printf.texi: Update.
64643         * doc/functions/snprintf.texi: Update.
64644         * doc/functions/sprintf.texi: Update.
64645         * doc/functions/vfprintf.texi: Update.
64646         * doc/functions/vprintf.texi: Update.
64647         * doc/functions/vsnprintf.texi: Update.
64648         * doc/functions/vsprintf.texi: Update.
64649
64650 2007-05-20  Bruno Haible  <bruno@clisp.org>
64651
64652         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
64653         was not found in libc.
64654         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
64655
64656 2007-05-20  Bruno Haible  <bruno@clisp.org>
64657
64658         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
64659         printed as "-nan" instead of "nan".
64660         * tests/test-vasprintf-posix.c (test_function): Likewise.
64661         * tests/test-snprintf-posix.h (test_function): Likewise.
64662         * tests/test-sprintf-posix.h (test_function): Likewise.
64663         Needed for HP-UX 11.
64664
64665 2007-05-20  Jim Meyering  <jim@meyering.net>
64666
64667         Fix buggy test for the fchownat-deref bug.
64668         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
64669         symlink required for the run-test.  Without it, this test would
64670         always declare that fchownat doesn't work, and client code would
64671         unnecessarily use the replacement function with fixed libc.
64672         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
64673         Reported by Greg Schafer.
64674
64675 2007-05-19  Bruno Haible  <bruno@clisp.org>
64676
64677         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
64678         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
64679         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
64680         Needed for IRIX 6.5 and Solaris 2.5.1.
64681
64682 2007-05-19  Bruno Haible  <bruno@clisp.org>
64683
64684         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
64685         (test_function): Skip tests involving -0.0 on platforms where
64686         -0.0 = 0.0.
64687         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
64688         (test_function): Skip tests involving -0.0 on platforms where
64689         -0.0 = 0.0.
64690         * tests/test-snprintf-posix.h (have_minus_zero): New function.
64691         (test_function): Skip tests involving -0.0 on platforms where
64692         -0.0 = 0.0.
64693         * tests/test-sprintf-posix.h (have_minus_zero): New function.
64694         (test_function): Skip tests involving -0.0 on platforms where
64695         -0.0 = 0.0.
64696         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
64697         tests.
64698         * tests/test-printf-posix.h (test_function): Likewise.
64699         * tests/test-printf-posix.output: Remove all -0.0 related results.
64700         Needed for IRIX 6.5.
64701
64702 2007-05-19  Bruno Haible  <bruno@clisp.org>
64703
64704         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
64705         printed as "nan0x7fffffff" instead of "nan".
64706         * tests/test-vasprintf-posix.c (test_function): Likewise.
64707         * tests/test-snprintf-posix.h (test_function): Likewise.
64708         * tests/test-sprintf-posix.h (test_function): Likewise.
64709         * tests/test-fprintf-posix.h (NaN): Remove macro.
64710         (test_function): Remove all NaN related tests.
64711         * tests/test-printf-posix.h (NaN): Remove macro.
64712         (test_function): Remove all NaN related tests.
64713         * tests/test-printf-posix.output: Remove all NaN related results.
64714         Needed for IRIX 6.5.
64715
64716 2007-05-19  Bruno Haible  <bruno@clisp.org>
64717
64718         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
64719         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
64720
64721 2007-05-19  Bruno Haible  <bruno@clisp.org>
64722
64723         * lib/float_.h: New file.
64724         * m4/float_h.m4: New file.
64725         * modules/float: New file.
64726         * modules/isnanl (Dependencies): Add float.
64727         * modules/isnanl-nolibm (Dependencies): Likewise.
64728         * modules/mathl (Dependencies): Likewise.
64729         * modules/printf-frexpl (Dependencies): Likewise.
64730         * modules/signbit (Dependencies): Likewise.
64731         * modules/vasnprintf (Dependencies): Likewise.
64732         * doc/headers/float.texi: Update.
64733
64734 2007-05-19  Jim Meyering  <jim@meyering.net>
64735
64736         * lib/utimens.c (gl_futimens): Rename from futimens,
64737         now that glibc-2.6 declares futimens.
64738         * lib/utimens.h: Likewise.
64739
64740 2007-05-19  Bruno Haible  <bruno@clisp.org>
64741
64742         Avoid test failures on mingw.
64743         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
64744         * tests/test-printf-posix.sh: Likewise.
64745         * tests/test-vfprintf-posix.sh: Likewise.
64746         * tests/test-vprintf-posix.sh: Likewise.
64747
64748 2007-05-19  Bruno Haible  <bruno@clisp.org>
64749
64750         Fix *printf result for NaN, Inf, -0.0 on mingw.
64751         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
64752         * lib/vasnprintf.c: Include math.h and isnan.h.
64753         (is_infinite_or_zero): New function.
64754         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
64755         values in the %f, %F, %e, %E, %g, %G directives.
64756         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
64757         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64758         gl_PRINTF_INFINITE and test its result. Invoke
64759         gl_PREREQ_VASNPRINTF_INFINITE.
64760         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64761         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64762         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64763         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64764         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64765         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64766         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64767         * doc/functions/fprintf.texi: Update.
64768         * doc/functions/printf.texi: Update.
64769         * doc/functions/snprintf.texi: Update.
64770         * doc/functions/sprintf.texi: Update.
64771         * doc/functions/vfprintf.texi: Update.
64772         * doc/functions/vprintf.texi: Update.
64773         * doc/functions/vsnprintf.texi: Update.
64774         * doc/functions/vsprintf.texi: Update.
64775
64776 2007-05-19  Bruno Haible  <bruno@clisp.org>
64777
64778         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
64779         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
64780         Instead of multiplying with 10^k, set extra_zeroes to k.
64781         (scale10_round_long_double): Remove function.
64782
64783 2007-05-18  Bruno Haible  <bruno@clisp.org>
64784
64785         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
64786         introduced on 2007-05-06.
64787
64788 2007-05-18  Bruno Haible  <bruno@clisp.org>
64789
64790         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
64791         %g directives.
64792         * tests/test-vasprintf-posix.c (test_function): Likewise.
64793         * tests/test-snprintf-posix.h (test_function): Likewise.
64794         * tests/test-sprintf-posix.h (test_function): Likewise.
64795
64796 2007-05-18  Bruno Haible  <bruno@clisp.org>
64797
64798         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
64799         (strmatch): New function.
64800         (test_function): Test the %f directive on numbers of various exponents.
64801         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
64802         (strmatch): New function.
64803         (test_function): Test the %f directive on numbers of various exponents.
64804         * tests/test-snprintf-posix.h (strmatch): New function.
64805         (test_function): Test the %f directive on numbers of various exponents.
64806         * tests/test-sprintf-posix.h (strmatch): New function.
64807         (test_function): Test the %f directive on numbers of various exponents.
64808         * tests/test-snprintf-posix.c (SIZEOF): New macro.
64809         * tests/test-sprintf-posix.c (SIZEOF): New macro.
64810         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
64811         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
64812
64813 2007-05-18  Bruno Haible  <bruno@clisp.org>
64814
64815         Add support for 'long double' number output.
64816         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
64817         * lib/vasnprintf.c: Include math.h and float+.h.
64818         (mp_limb_t): New type.
64819         (GMP_LIMB_BITS): New macro.
64820         (mp_twolimb_t): New type.
64821         (GMP_TWOLIMB_BITS): New macro.
64822         (mpn_t): New type.
64823         (multiply, divide, convert_to_decimal, decode_long_double,
64824         scale10_round_long_double, scale10_round_decimal_long_double,
64825         floorlog10l): New functions.
64826         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
64827         for the %f, %F, %e, %E, %g, %G directives.
64828         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
64829         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64830         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
64831         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
64832         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64833         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64834         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64835         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64836         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64837         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64838         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64839         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
64840         * modules/snprintf-posix (Depends-on): Likewise.
64841         * modules/sprintf-posix (Depends-on): Likewise.
64842         * modules/vasnprintf-posix (Depends-on): Likewise.
64843         * modules/vasprintf-posix (Depends-on): Likewise.
64844         * modules/vfprintf-posix (Depends-on): Likewise.
64845         * modules/vsnprintf-posix (Depends-on): Likewise.
64846         * modules/vsprintf-posix (Depends-on): Likewise.
64847         * modules/vasnprintf (Files): Add lib/float+.h.
64848         * doc/functions/fprintf.texi: Update.
64849         * doc/functions/printf.texi: Update.
64850         * doc/functions/snprintf.texi: Update.
64851         * doc/functions/sprintf.texi: Update.
64852         * doc/functions/vfprintf.texi: Update.
64853         * doc/functions/vprintf.texi: Update.
64854         * doc/functions/vsnprintf.texi: Update.
64855         * doc/functions/vsprintf.texi: Update.
64856
64857 2007-05-18  Bruno Haible  <bruno@clisp.org>
64858
64859         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
64860
64861 2007-05-18  Bruno Haible  <bruno@clisp.org>
64862
64863         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
64864         for printing 64-bit integers. Needed for mingw.
64865
64866 2007-05-18  Bruno Haible  <bruno@clisp.org>
64867
64868         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
64869         gl_FUNC_FREXPL_WORKS.
64870         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
64871
64872 2007-05-18  Bruno Haible  <bruno@clisp.org>
64873
64874         * modules/frexpl-nolibm-tests: New file.
64875
64876         * modules/frexpl-nolibm: New file.
64877         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
64878
64879 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
64880
64881         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
64882         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
64883         GCC 4.2, which otherwise issues a lot of warnings.
64884         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
64885         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
64886         Likewise.
64887         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
64888         * modules/iconv_open (iconv.h): Likewise.
64889         * modules/locale (locale.h): Likewise.
64890         * modules/netinet_in (netinet/in.h): Likewise.
64891         * modules/sys_select (sys_select.h): Likewise.
64892         * modules/sys_socket (sys/socket.h): Likewise.
64893         * modules/sys_stat (sys/stat.h): Likewise.
64894         * modules/sysexits (sysexits.h): Likewise.
64895         * modules/unistd (unistd.h): Likewise.
64896
64897 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64898
64899         * modules/closein-tests (Makefile.am): Distribute
64900         `test-closein.sh'.
64901
64902 2007-05-17  Bruno Haible  <bruno@clisp.org>
64903
64904         * tests/test-printf-posix.output: Renamed from
64905         tests/test-fprintf-posix.out.
64906         * modules/fprintf-posix-tests: Update.
64907         * modules/printf-posix-tests: Update.
64908         * modules/vfprintf-posix-tests: Update.
64909         * modules/vprintf-posix-tests: Update.
64910         * tests/test-fprintf-posix.sh: Update.
64911         * tests/test-printf-posix.sh: Update.
64912         * tests/test-vfprintf-posix.sh: Update.
64913         * tests/test-vprintf-posix.sh: Update.
64914         Reported by Ralf Wildenhues.
64915
64916 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
64917
64918         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
64919         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
64920         GCC 4.2, which otherwise issues a lot of warnings.
64921         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
64922         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
64923         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
64924         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
64925         it should no longer be needed.
64926         * lib/string_.h: Likewise.
64927         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
64928         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
64929         * modules/inttypes (inttypes.h): Likewise.
64930         * modules/math (math.h): Likewise.
64931         * modules/search (search.h): Likewise.
64932         * modules/signal (signal.h): Likewise.
64933         * modules/stdint (stdint.h): Likewise.
64934         * modules/stdio (stdio.h): Likewise.
64935         * modules/stdlib (stdlib.h): Likewise.
64936         * modules/string (string.h): Likewise.
64937         * modules/sys_time (sys/time.h): Likewise.
64938         * modules/time (time.h): Likewise.
64939         * modules/wchar (wchar.h): Likewise.
64940         * modules/wctype (wtype.h): Likewise.
64941
64942 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
64943
64944         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
64945
64946 2007-05-13  Bruno Haible  <bruno@clisp.org>
64947
64948         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
64949         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
64950         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
64951         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
64952         (gl_PREREQ_STRTOK_R): Don't require it here.
64953
64954 2007-05-13  Bruno Haible  <bruno@clisp.org>
64955
64956         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
64957         when used in C++ mode.
64958
64959 2007-05-12  Bruno Haible  <bruno@clisp.org>
64960
64961         * lib/linebuffer.h: Tweak doc.
64962         * lib/linebuffer.c: Likewise.
64963
64964 2007-05-12  James Youngman  <jay@gnu.org>
64965
64966         * lib/linebuffer.c (readlinebuffer_delim): New function,
64967         like readlinebuffer, but use a caller-specified delimiter.
64968         (readlinebuffer): Just call readlinebuffer_delim with '\n'
64969         as the delimiter.
64970         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
64971
64972 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
64973
64974         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
64975         * modules/openat (Files): Remove openat-die.c.
64976         (Depends-on): Add openat-die.
64977         * modules/openat-die: New module.
64978
64979 2007-05-06  Bruno Haible  <bruno@clisp.org>
64980
64981         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
64982         Update with info about Cygwin.
64983         * doc/functions/fprintf.texi: Update.
64984         * doc/functions/printf.texi: Update.
64985         * doc/functions/snprintf.texi: Update.
64986         * doc/functions/sprintf.texi: Update.
64987         * doc/functions/vfprintf.texi: Update.
64988         * doc/functions/vprintf.texi: Update.
64989         * doc/functions/vsnprintf.texi: Update.
64990         * doc/functions/vsprintf.texi: Update.
64991         Reported by Eric Blake.
64992
64993 2007-05-06  Bruno Haible  <bruno@clisp.org>
64994
64995         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
64996         padding ourselves for the floating-point directives.
64997         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
64998         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
64999         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65000         gl_PRINTF_FLAG_ZERO and test its result. Invoke
65001         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
65002         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65003         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
65004         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65005         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65006         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65007         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65008         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65009         * tests/test-snprintf-posix.h (test_function): Also check the width
65010         and some flags in the %f directive.
65011         * tests/test-sprintf-posix.h (test_function): Likewise.
65012         * tests/test-vasnprintf-posix.c (test_function): Likewise.
65013         * tests/test-vasprintf-posix.c (test_function): Likewise.
65014         * doc/functions/fprintf.texi: Update.
65015         * doc/functions/printf.texi: Update.
65016         * doc/functions/snprintf.texi: Update.
65017         * doc/functions/sprintf.texi: Update.
65018         * doc/functions/vfprintf.texi: Update.
65019         * doc/functions/vprintf.texi: Update.
65020         * doc/functions/vsnprintf.texi: Update.
65021         * doc/functions/vsprintf.texi: Update.
65022
65023 2007-05-06  Bruno Haible  <bruno@clisp.org>
65024
65025         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
65026         pass the ' flag character to sprintf or snprintf.
65027         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
65028         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
65029         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65030         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
65031         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
65032         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65033         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
65034         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65035         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65036         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65037         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65038         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65039         * tests/test-snprintf-posix.h (test_function): Also check the grouping
65040         flag.
65041         * tests/test-sprintf-posix.h (test_function): Likewise.
65042         * tests/test-vasnprintf-posix.c (test_function): Likewise.
65043         * tests/test-vasprintf-posix.c (test_function): Likewise.
65044         * doc/functions/fprintf.texi: Update.
65045         * doc/functions/printf.texi: Update.
65046         * doc/functions/snprintf.texi: Update.
65047         * doc/functions/sprintf.texi: Update.
65048         * doc/functions/vfprintf.texi: Update.
65049         * doc/functions/vprintf.texi: Update.
65050         * doc/functions/vsnprintf.texi: Update.
65051         * doc/functions/vsprintf.texi: Update.
65052
65053 2007-05-01  Bruno Haible  <bruno@clisp.org>
65054
65055         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
65056
65057 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
65058
65059         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
65060         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
65061
65062 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
65063
65064         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
65065         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
65066         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
65067
65068 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
65069
65070         * lib/argp-help.c (struct hol_entry): New member `ord'.
65071         (HOL_ENTRY_PTRCMP): Use ord for comparison
65072         (hol_sort): Initialize ord.
65073
65074 2007-05-01  Bruno Haible  <bruno@clisp.org>
65075
65076         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
65077         Reported by Eric Blake.
65078         * doc/gnulib.texi (Function Substitutes): Update.
65079
65080 2007-05-01  Bruno Haible  <bruno@clisp.org>
65081
65082         * doc/functions.texi: Remove file, now redundant through
65083         doc/functions/*.texi.
65084
65085 2007-05-01  Bruno Haible  <bruno@clisp.org>
65086
65087         * modules/argp (Depends-on): Add sleep.
65088
65089 2007-05-01  Bruno Haible  <bruno@clisp.org>
65090
65091         * modules/sleep-tests: New file.
65092         * tests/test-sleep.c: New file.
65093
65094         * modules/sleep: New file.
65095         * lib/sleep.c: New file.
65096         * m4/sleep.m4: New file.
65097         * lib/unistd_.h (sleep): New declaration.
65098         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
65099         HAVE_SLEEP.
65100         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
65101         * doc/functions/sleep.texi: Document the sleep module.
65102
65103 2007-05-01  Bruno Haible  <bruno@clisp.org>
65104
65105         * lib/sigprocmask.h: Remove file.
65106         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
65107         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
65108         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
65109         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
65110         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
65111         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
65112         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
65113         HAVE_SIGSET_T as a shell variable.
65114         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
65115         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
65116         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
65117         (Depends-on): Add signal. Remove verify.
65118         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
65119         (Include): Mention <signal.h> instead of sigprocmask.h.
65120         * NEWS: Mention the change.
65121         * lib/fatal-signal.c: Don't include sigprocmask.h.
65122
65123 2007-05-01  Bruno Haible  <bruno@clisp.org>
65124
65125         * modules/signal: New file.
65126         * lib/signal_.h: New file.
65127         * m4/signal_h.m4: New file.
65128
65129 2007-05-01  Bruno Haible  <bruno@clisp.org>
65130
65131         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
65132         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
65133         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
65134         HAVE_WCTYPE_CTMP_BUG into wctype.h.
65135
65136 2007-05-01  Bruno Haible  <bruno@clisp.org>
65137
65138         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
65139         configure time.
65140         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
65141         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
65142         * modules/sys_stat (Makefile.am): Substitute their values into
65143         sys/stat.h.
65144
65145 2007-05-01  Bruno Haible  <bruno@clisp.org>
65146
65147         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
65148         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
65149         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
65150
65151 2007-05-01  Bruno Haible  <bruno@clisp.org>
65152
65153         * doc/header/assert.texi: Undo last change: don't mention the gnulib
65154         'assert' module here.
65155
65156 2007-05-01  Bruno Haible  <bruno@clisp.org>
65157
65158         * doc/functions/*.texi: New files.
65159         * doc/functions/google-ranking.txt: New file.
65160         * doc/gnulib.texi (Function Substitutes): New chapter.
65161         (ctime, inet_ntoa): Remove sections.
65162         * doc/ctime.texi: Remove file.
65163         * doc/inet_ntoa.texi: Remove file.
65164         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
65165         dependencies.
65166         (%.info): New rule, specifying a --reference-limit.
65167
65168 2007-05-01  Bruno Haible  <bruno@clisp.org>
65169
65170         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
65171
65172 2007-05-01  Bruno Haible  <bruno@clisp.org>
65173
65174         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
65175         the portability of 'mkdir' to mingw systems.
65176
65177 2007-05-01  Bruno Haible  <bruno@clisp.org>
65178
65179         * doc/headers/google-ranking.txt: New file.
65180
65181 2007-04-30  Eric Blake  <ebb9@byu.net>
65182
65183         Prefer fseeko to fseek.
65184         * modules/getpass (Depends-on): Add fseeko.
65185         * lib/getpass.c (getpass): Use fseeko, not fseek.
65186
65187 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
65188
65189         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
65190         assumes the sorting is stable, while most qsort implementations
65191         are not.  Use argument addresses to ensure they never compare as
65192         equal.
65193
65194         * tests/test-argp-2.sh (usage-indent test): Fix output
65195         (func_compare): Restore diff options
65196         * tests/test-argp.c: Restore #include "progname.h"
65197
65198 2007-04-29  Bruno Haible  <bruno@clisp.org>
65199
65200         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
65201         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65202         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
65203         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65204         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
65205         (configure.ac): Define CHECK_SNPRINTF_POSIX.
65206         (TESTS, check_PROGRAMS): Add test-snprintf.
65207         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
65208         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
65209         (TESTS, check_PROGRAMS): Add test-vsnprintf.
65210         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
65211         assertions that fail on HP-UX, OSF/1, or IRIX.
65212         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
65213
65214 2007-04-29  Bruno Haible  <bruno@clisp.org>
65215
65216         * MODULES.html.sh (posix_functions): Remove 'contents'.
65217
65218 2007-04-29  Karl Berry  <karl@gnu.org>
65219
65220         * config/srclist.txt (gendocs_template_min): new entry.
65221
65222 2007-04-29  Bruno Haible  <bruno@clisp.org>
65223
65224         Work around fpurge bug on BSD systems.
65225         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
65226         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
65227         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
65228         fpurge to rpl_fpurge if the system already has this function.
65229         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
65230         the case where the system already has this function. Correct invariants
65231         on BSD systems.
65232         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
65233         BSD systems.
65234
65235 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
65236
65237         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
65238         proposed by Sven Verdoolaege.
65239
65240         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
65241         options.
65242         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
65243         (usage and help tests): Update
65244
65245 2007-04-29  Bruno Haible  <bruno@clisp.org>
65246
65247         * tests/test-fflush.c (main): Use a file of size 17, not 10.
65248         Print more information in case of failure. Disable a test on BeOS.
65249
65250 2007-04-29  Bruno Haible  <bruno@clisp.org>
65251
65252         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
65253         This helps debugging on systems on which no gdb is available.
65254
65255 2007-04-29  Bruno Haible  <bruno@clisp.org>
65256
65257         * lib/freading.h: Improve comments.
65258         * lib/fwriting.h: Likewise.
65259         * tests/test-freading.c (main): Don't check freading immediately after
65260         repositioning. Needed for glibc.
65261
65262 2007-04-29  Bruno Haible  <bruno@clisp.org>
65263
65264         * lib/freading.c (freading): Trivial simplification.
65265
65266 2007-04-28  Bruno Haible  <bruno@clisp.org>
65267
65268         * tests/test-fwriting.c (main): Also test the interaction between
65269         fflush and fwriting.
65270         * modules/fwriting-tests (Depends-on): Add fflush.
65271
65272         * tests/test-freading.c (main): Also test the interaction between
65273         fflush and freading.
65274         * modules/freading-tests (Depends-on): Add fflush.
65275
65276 2007-04-28  Bruno Haible  <bruno@clisp.org>
65277
65278         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
65279         fseeko and ftello.
65280         Suggested by Eric Blake.
65281
65282 2007-04-28  Jim Meyering  <jim@meyering.net>
65283
65284         Avoid false-negative in gl_STDINT_H's C99 conformance test.
65285         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
65286         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
65287
65288 2007-04-27  Eric Blake  <ebb9@byu.net>
65289
65290         * doc/headers/assert.texi (assert.h): Document assert module use.
65291
65292 2007-04-27  Bruno Haible  <bruno@clisp.org>
65293
65294         * doc/headers/*.texi: New files.
65295         * doc/gnulib.texi (Header File Substitutes): New chapter.
65296         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
65297         dependencies.
65298         (standards.info ,standards.html, standards.dvi): Update dependencies.
65299         (mostlyclean, clean): New targets.
65300
65301 2007-04-27  Bruno Haible  <bruno@clisp.org>
65302
65303         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
65304         * modules/sysexits (Files, Makefile.am): Update.
65305
65306         * lib/sys_socket_.h: Renamed from lib/socket_.h.
65307         * modules/sys_socket (Files, Makefile.am): Update.
65308
65309         * lib/sys_stat_.h: Renamed from lib/stat_.h.
65310         * modules/sys_stat (Files, Makefile.am): Update.
65311
65312 2007-04-27  Eric Blake  <ebb9@byu.net>
65313
65314         * lib/freading.h: Improve comments.
65315         * lib/fwriting.h: Likewise.
65316         * lib/fflush.c: Likewise.
65317
65318         Fix closein for mingw.
65319         * modules/closein-tests: Add tests for closein.
65320         * tests/test-closein.c: New file.
65321         * tests/test-closein.sh: Likewise.
65322         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
65323         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
65324
65325 2007-04-27  Bruno Haible  <bruno@clisp.org>
65326
65327         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
65328         version is < 6.
65329         * lib/math_.h [__DECC]: Likewise.
65330         * lib/stdio_.h [__DECC]: Likewise.
65331         * lib/stdlib_.h [__DECC]: Likewise.
65332         * lib/string_.h [__DECC]: Likewise.
65333         * lib/time_.h [__DECC]: Likewise.
65334         * lib/wchar_.h [__DECC]: Likewise.
65335         * lib/wctype_.h [__DECC]: Likewise.
65336
65337 2007-04-27  Bruno Haible  <bruno@clisp.org>
65338
65339         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
65340
65341 2007-04-27  Bruno Haible  <bruno@clisp.org>
65342
65343         * lib/fflush.c: Add comments.
65344         * modules/fpurge-tests (Depends-on): Add fflush.
65345         * modules/freadable-tests (Depends-on): Likewise.
65346         * modules/fwritable-tests (Depends-on): Likewise.
65347
65348 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
65349
65350         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
65351         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
65352         Report by Bruno Haible <bruno@clisp.org>.
65353
65354 2007-04-26  Eric Blake  <ebb9@byu.net>
65355
65356         Fix fflush on mingw.
65357         * modules/fflush (Depends-on): Add freading.
65358         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
65359         but unread data.
65360
65361 2007-04-26  Eric Blake  <ebb9@byu.net>
65362         and Bruno Haible  <bruno@clisp.org>
65363
65364         Implement freading and fwriting.
65365         * lib/freading.c: New file.
65366         * lib/freading.h: Likewise.
65367         * m4/freading.m4: Likewise.
65368         * modules/freading: Likewise.
65369         * modules/freading-tests: Likewise.
65370         * tests/test-freading.c: Likewise.
65371         * lib/fwriting.c: New file.
65372         * lib/fwriting.h: Likewise.
65373         * m4/fwriting.m4: Likewise.
65374         * modules/fwriting: Likewise.
65375         * modules/fwriting-tests: Likewise.
65376         * tests/test-fwriting.c: Likewise.
65377         * MODULES.html.sh (File stream based Input/Output): Mention them.
65378
65379 2007-04-26  Bruno Haible  <bruno@clisp.org>
65380
65381         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
65382         'long' when we assume it.
65383         Suggested by Eric Blake.
65384
65385 2007-04-26  Bruno Haible  <bruno@clisp.org>
65386
65387         Ensure fseeko, ftello are declared on glibc systems.
65388         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
65389         * modules/fseeko (configure.ac-early): Likewise.
65390         * modules/ftello (configure.ac-early): Likewise.
65391         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
65392         AC_FUNC_FSEEKO for this.
65393         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
65394         (gl_CHECK_FSEEKO): Remove macro.
65395
65396 2007-04-26  Bruno Haible  <bruno@clisp.org>
65397
65398         * tests/test-fflush.c (main): Also check the ftell result after
65399         fflush and fseek/fseeko.
65400         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
65401         file descriptor position cache in the stream.
65402         * lib/fseeko.c (rpl_fseeko): Likewise.
65403
65404 2007-04-26  Bruno Haible  <bruno@clisp.org>
65405
65406         * modules/fflush-tests (Depends-on): Add fseeko.
65407
65408 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
65409             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65410
65411         * lib/argz_.h: ensure error_t definition is obtained in same
65412         mechanism system argz.h would have.
65413         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
65414         argz facilities are known bad.  Err on the side of caution if
65415         cross-compiling.
65416
65417 2007-04-25  Eric Blake  <ebb9@byu.net>
65418
65419         * lib/fpurge.c (includes): Use stdlib.h for free.
65420         * tests/test-fflush.c (main): Also test fflush-fseeko.
65421
65422 2007-04-25  Bruno Haible  <bruno@clisp.org>
65423
65424         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
65425         * lib/fseeko.c: New file.
65426         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
65427         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
65428         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
65429         gl_FUNC_FSEEKO.
65430         (gl_FUNC_FSEEKO): Invoke it.
65431         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
65432         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
65433         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
65434
65435 2007-04-25  Bruno Haible  <bruno@clisp.org>
65436
65437         * modules/fflush (Depends-on): Add ftello.
65438
65439 2007-04-25  Bruno Haible  <bruno@clisp.org>
65440
65441         * modules/ftello-tests: New file.
65442         * tests/test-ftello.c: New file.
65443
65444         * modules/ftello: New file.
65445         * m4/ftello.m4: New file.
65446         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
65447         HAVE_FTELLO.
65448         * lib/stdio_.h (ftello): New declaration.
65449         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
65450         HAVE_FTELLO.
65451
65452 2007-04-25  Bruno Haible  <bruno@clisp.org>
65453
65454         * modules/fseeko-tests: New file.
65455         * tests/test-fseeko.c: New file.
65456
65457         * modules/fseeko: New file.
65458         * m4/fseeko.m4: New file.
65459         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
65460         HAVE_FSEEKO.
65461         * lib/stdio_.h (fseeko): New declaration.
65462         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
65463         HAVE_FSEEKO.
65464
65465 2007-04-25  Bruno Haible  <bruno@clisp.org>
65466
65467         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
65468
65469 2007-04-25  Bruno Haible  <bruno@clisp.org>
65470
65471         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
65472         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
65473         * tests/test-unistd.c: Likewise.
65474         * tests/test-fcntl.c: Likewise.
65475
65476 2007-04-23  Eric Blake  <ebb9@byu.net>
65477
65478         * lib/fflush.c: Fix missing include.
65479         Reported by Bruno Haible.
65480
65481 2007-04-23  Bruno Haible  <bruno@clisp.org>
65482
65483         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
65484         Reported by Eric Blake.
65485
65486 2007-04-23  Bruno Haible  <bruno@clisp.org>
65487
65488         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
65489
65490 2007-04-23  Bruno Haible  <bruno@clisp.org>
65491
65492         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
65493
65494 2007-04-23  Bruno Haible  <bruno@clisp.org>
65495
65496         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
65497         Needed on HP-UX 11.
65498
65499 2007-04-16  Eric Blake  <ebb9@byu.net>
65500
65501         Make fflush rely on fpurge.
65502         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
65503         open coding all variants.
65504         * modules/fflush (Depends-on): Add fpurge and unistd.
65505         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
65506         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
65507
65508         Fix --with-tests compilation on cygwin.
65509         * modules/argmatch-tests (Makefile.am): List gnulib library first
65510         in LDADD.
65511         * modules/argp-tests (Makefile.am): Likewise.
65512         * modules/array-list-tests (Makefile.am): Likewise.
65513         * modules/array-oset-tests (Makefile.am): Likewise.
65514         * modules/avltree-list-tests (Makefile.am): Likewise.
65515         * modules/avltree-oset-tests (Makefile.am): Likewise.
65516         * modules/avltreehash-list-tests (Makefile.am): Likewise.
65517         * modules/carray-list-tests (Makefile.am): Likewise.
65518         * modules/dirname-tests (Makefile.am): Likewise.
65519         * modules/frexp-tests (Makefile.am): Likewise.
65520         * modules/isnanl-tests (Makefile.am): Likewise.
65521         * modules/linked-list-tests (Makefile.am): Likewise.
65522         * modules/linkedhash-list-tests (Makefile.am): Likewise.
65523         * modules/lock-tests (Makefile.am): Likewise.
65524         * modules/rbtree-list-tests (Makefile.am): Likewise.
65525         * modules/rbtree-oset-tests (Makefile.am): Likewise.
65526         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
65527         * modules/tls-tests (Makefile.am): Likewise.
65528         * modules/tsearch-tests (Makefile.am): Likewise.
65529         * modules/xvasprintf-tests (Makefile.am): Likewise.
65530
65531         Fix fpurge for cygwin.
65532         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
65533         value.
65534         * modules/fpurge-tests (Depends-on): Clean up trash.
65535
65536 2007-04-16  Simon Josefsson  <simon@josefsson.org>
65537
65538         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
65539
65540         * m4/autobuild.m4: Re-indent.
65541
65542 2007-04-13  Bruno Haible  <bruno@clisp.org>
65543
65544         * modules/fpurge-tests: New file.
65545         * tests/test-fpurge.c: New file.
65546
65547         * modules/fpurge: New file.
65548         * lib/fpurge.h: New file.
65549         * lib/fpurge.c: New file.
65550         * m4/fpurge.m4: New file.
65551
65552 2007-04-13  Bruno Haible  <bruno@clisp.org>
65553
65554         * modules/fbufmode-tests: New file.
65555         * tests/test-fbufmode.c: New file.
65556
65557         * modules/fbufmode: New file.
65558         * lib/fbufmode.h: New file.
65559         * lib/fbufmode.c: New file.
65560         * m4/fbufmode.m4: New file.
65561
65562 2007-04-13  Bruno Haible  <bruno@clisp.org>
65563
65564         * modules/fwritable-tests: New file.
65565         * tests/test-fwritable.c: New file.
65566
65567         * modules/fwritable: New file.
65568         * lib/fwritable.h: New file.
65569         * lib/fwritable.c: New file.
65570         * m4/fwritable.m4: New file.
65571
65572 2007-04-13  Bruno Haible  <bruno@clisp.org>
65573
65574         * modules/freadable-tests: New file.
65575         * tests/test-freadable.c: New file.
65576
65577         * modules/freadable: New file.
65578         * lib/freadable.h: New file.
65579         * lib/freadable.c: New file.
65580         * m4/freadable.m4: New file.
65581
65582 2007-04-13  Bruno Haible  <bruno@clisp.org>
65583
65584         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
65585         MOSTLYCLEANFILES.
65586
65587 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
65588
65589         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
65590         gzip bootstrap.conf to avoid dragging in i18n machinery.
65591         (gnulib_tool_option): Use it.
65592
65593 2007-04-13  Bruno Haible  <bruno@clisp.org>
65594
65595         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
65596         %F directives.
65597         * tests/test-vasprintf-posix.c (test_function): Likewise.
65598         * tests/test-snprintf-posix.h (test_function): Likewise.
65599         * tests/test-sprintf-posix.h (test_function): Likewise.
65600         * tests/test-fprintf-posix.h (test_function): Likewise.
65601         * tests/test-printf-posix.h (test_function): Likewise.
65602         * tests/test-fprintf-posix.out: Likewise.
65603
65604 2007-04-13  Bruno Haible  <bruno@clisp.org>
65605
65606         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
65607         * modules/tls-tests (configure.ac): Likewise.
65608         Reported by Arto C. Nirkko <anirkko@insel.ch>.
65609
65610 2007-04-13  Bruno Haible  <bruno@clisp.org>
65611
65612         * lib/tls.c (glthread_tls_get): Fix return type.
65613         Patch by Arto C. Nirkko <anirkko@insel.ch>.
65614
65615 2007-04-12  Eric Blake  <ebb9@byu.net>
65616
65617         * modules/gettime (Depends-on): Remove gettime.
65618         Reported by Dmitry V. Levin.
65619
65620 2007-04-12  Bruno Haible  <bruno@clisp.org>
65621
65622         * modules/fflush (Include): Mention <stdio.h>.
65623         * modules/strtoimax (Include): Mention <inttypes.h>.
65624         * modules/strtoumax (Include): Likewise.
65625
65626 2007-04-12  Eric Blake  <ebb9@byu.net>
65627
65628         * .cvsignore: New file.
65629         * .gitignore: Likewise.
65630
65631 2007-04-12  Bruno Haible  <bruno@clisp.org>
65632
65633         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
65634         not before, since $(LDADD) often contains libgnu.a.
65635         * modules/striconv-tests (test_striconv_LDADD): Likewise.
65636         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
65637         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
65638         Needed on Cygwin.
65639
65640 2007-04-12  Eric Blake  <ebb9@byu.net>
65641
65642         Work around glibc's failure to flush stdin on fclose.
65643         * lib/closein.c (close_stdin): Flush stdin before closing.
65644
65645         Work around glibc's failure to reset seekable stdin on exit.
65646         * modules/closein: New module.
65647         * lib/closein.c: New file.
65648         * lib/closein.h: Likewise.
65649         * m4/closein.m4: Likewise.
65650         * MODULES.html.sh (File stream based Input/Output): Document it.
65651
65652 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65653
65654         * gnulib-tool: Rename generated 'autobuild' script to
65655         'do-autobuild' in --create-megatestdir output.
65656
65657         * doc/gnulib.texi (Build robot for gnulib): Fix.
65658
65659 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65660
65661         * modules/sysexits (Depends-on): Add absolute-header.
65662
65663 2007-04-12  Eric Blake  <ebb9@byu.net>
65664
65665         No need to preserve errno on success.
65666         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
65667         Reported by Bruno Haible.
65668
65669 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65670
65671         * MODULES.html.sh (Support for maintaining and releasing
65672         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
65673
65674 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65675
65676         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
65677
65678 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65679
65680         * modules/autobuild: New module.
65681
65682         * m4/autobuild.m4: New file.
65683
65684 2007-04-11  Bruno Haible  <bruno@clisp.org>
65685
65686         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
65687         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
65688         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
65689         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
65690         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65691         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65692         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65693         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65694         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65695         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65696         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
65697         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65698         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65699         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
65700         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65701         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65702         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
65703         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65704         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65705         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
65706         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65707         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65708         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
65709         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65710         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65711         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
65712         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65713         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65714         Reported by Eric Blake.
65715
65716 2007-04-11  Bruno Haible  <bruno@clisp.org>
65717
65718         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
65719
65720 2007-04-10  Bruno Haible  <bruno@clisp.org>
65721
65722         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
65723         for NaN and Infinity. Needed on FreeBSD 6.1.
65724         * tests/test-vasnprintf-posix.c (test_function): Undo last change
65725         regarding results for "%010a" of Infinity and NaN.
65726         * tests/test-vasprintf-posix.c (test_function): Likewise.
65727         * tests/test-snprintf-posix.h (test_function): Likewise.
65728         * tests/test-sprintf-posix.h (test_function): Likewise.
65729         * tests/test-fprintf-posix.h (test_function): Likewise.
65730         * tests/test-printf-posix.h (test_function): Likewise.
65731         * tests/test-fprintf-posix.out: Likewise.
65732
65733 2007-04-10  Bruno Haible  <bruno@clisp.org>
65734
65735         * modules/locale-tests: New file.
65736         * tests/test-locale.c: New file.
65737
65738         * modules/locale: New file.
65739         * lib/locale_.h: New file.
65740         * m4/locale_h.m4: New file.
65741
65742 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
65743             Bruno Haible  <bruno@clisp.org>
65744
65745         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
65746         be determined, test for availability of the copysignf, copysign,
65747         copysignl functions.
65748         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
65749         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
65750         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
65751
65752 2007-04-09  Eric Blake  <ebb9@byu.net>
65753
65754         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
65755         * modules/stdio (Makefile.am): Support fflush.
65756         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
65757         * modules/fflush: New file.
65758         * lib/fflush.c: Likewise.
65759         * m4/fflush.m4: Likewise.
65760         * modules/fflush-tests: New test.
65761         * tests/test-fflush.c: Likewise.
65762         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
65763
65764 2007-04-06  Bruno Haible  <bruno@clisp.org>
65765
65766         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
65767         (VASNPRINTF): Use signbit for faster determination whether to print a
65768         minus sign.
65769         * modules/vasnprintf (Files): Remove lib/float+.h.
65770         * modules/fprintf-posix (Depends-on): Add signbit.
65771         * modules/snprintf-posix (Depends-on): Likewise.
65772         * modules/sprintf-posix (Depends-on): Likewise.
65773         * modules/vasnprintf-posix (Depends-on): Likewise.
65774         * modules/vasprintf-posix (Depends-on): Likewise.
65775         * modules/vfprintf-posix (Depends-on): Likewise.
65776         * modules/vsnprintf-posix (Depends-on): Likewise.
65777         * modules/vsprintf-posix (Depends-on): Likewise.
65778
65779 2007-04-06  Bruno Haible  <bruno@clisp.org>
65780
65781         * tests/test-frexp.c (main): Test also the sign bit of zero results.
65782         * tests/test-frexpl.c (main): Likewise.
65783         * tests/test-ldexpl.c (main): Likewise.
65784         * modules/frexp-tests (Depends-on): Add signbit.
65785         * modules/frexpl-tests (Depdends-on): Likewise.
65786         * modules/ldexpl-tests (Depdends-on): Likewise.
65787
65788 2007-04-06  Bruno Haible  <bruno@clisp.org>
65789
65790         * modules/signbit-tests: New file.
65791         * tests/test-signbit.c: New file.
65792
65793         * modules/signbit: New file.
65794         * lib/signbitf.c: New file.
65795         * lib/signbitd.c: New file.
65796         * lib/signbitl.c: New file.
65797         * m4/signbit.m4: New file.
65798         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
65799         (signbit): New macro.
65800         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
65801         REPLACE_SIGNBIT.
65802         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
65803         REPLACE_FREXPL into math.h.
65804
65805 2007-04-06  Bruno Haible  <bruno@clisp.org>
65806
65807         * modules/isnanf-nolibm-tests: New file.
65808         * tests/test-isnanf.c: New file.
65809
65810         * modules/isnanf-nolibm: New file.
65811         * lib/isnanf.h: New file.
65812         * lib/isnanf.c: New file.
65813         * lib/isnan.c: Consider the USE_FLOAT macro.
65814         * m4/isnanf.m4: New file.
65815
65816 2007-04-06  Bruno Haible  <bruno@clisp.org>
65817
65818         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
65819         (Link): New section.
65820
65821         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
65822
65823 2007-04-06  Bruno Haible  <bruno@clisp.org>
65824
65825         Assume the 'long double' type.
65826         * m4/longdouble.m4: Remove file.
65827         * config/srclist.txt: Don't mention longdouble.m4.
65828         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
65829         * lib/float+.h: Likewise.
65830         * lib/frexp.c: Likewise.
65831         * lib/printf-args.h: Likewise.
65832         * lib/printf-args.c: Likewise.
65833         * lib/printf-frexp.c: Likewise.
65834         * lib/printf-parse.c: Likewise.
65835         * lib/vasnprintf.c: Likewise.
65836         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
65837         * m4/intl.m4: Likewise.
65838         * m4/isnanl.m4: Likewise.
65839         * m4/printf.m4: Likewise.
65840         * m4/printf-frexpl.m4: Likewise.
65841         * m4/vasnprintf.m4: Likewise.
65842         * modules/allocsa (Files): Remove m4/longdouble.m4.
65843         * modules/gettext (Files): Likewise.
65844         * modules/relocatable-prog-wrapper (Files): Likewise.
65845         * modules/vasnprintf (Files): Likewise.
65846         * modules/isnanl (Files): Likewise.
65847         (Include): Simplify.
65848         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
65849         (Include): Simplify.
65850         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
65851         (Include): Simplify.
65852         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
65853         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65854         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
65855         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65856         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
65857         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65858         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
65859         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65860         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
65861         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65862         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
65863         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65864         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
65865         * tests/test-isnanl.c: Likewise.
65866         * tests/test-snprintf-posix.h: Likewise.
65867         * tests/test-sprintf-posix.h: Likewise.
65868         * tests/test-vasnprintf-posix.c: Likewise.
65869         * tests/test-vasnprintf-posix2.c: Likewise.
65870         * tests/test-vasprintf-posix.c: Likewise.
65871
65872 2007-04-06  Bruno Haible  <bruno@clisp.org>
65873
65874         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
65875         * lib/math_.h [__DECC]: Include the overridden include file through
65876         #include_next, outside the double-inclusion guard.
65877         * lib/stdio_.h [__DECC]: Likewise.
65878         * lib/stdlib_.h [__DECC]: Likewise.
65879         * lib/string_.h [__DECC]: Likewise.
65880         * lib/time_.h [__DECC]: Likewise.
65881         * lib/wchar_.h [__DECC]: Likewise.
65882         * lib/wctype_.h [__DECC]: Likewise.
65883         * lib/inttypes_.h [__DECC]: Likewise.
65884         Reported by Albert Chin <china@thewrittenword.com> in
65885         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
65886
65887 2007-04-04  Eric Blake  <ebb9@byu.net>
65888
65889         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
65890         1.5.x.
65891
65892 2007-04-04  Bruno Haible  <bruno@clisp.org>
65893
65894         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
65895         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
65896
65897 2007-04-04  Bruno Haible  <bruno@clisp.org>
65898
65899         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
65900         results for "%010a" of Infinity and NaN.
65901         * tests/test-vasprintf-posix.c (test_function): Likewise.
65902         * tests/test-snprintf-posix.h (test_function): Likewise.
65903         * tests/test-sprintf-posix.h (test_function): Likewise.
65904         * tests/test-fprintf-posix.h (test_function): Remove these tests.
65905         * tests/test-printf-posix.h (test_function): Likewise.
65906         * tests/test-fprintf-posix.out: Update.
65907         Needed for FreeBSD 6.1.
65908
65909 2007-04-04  Bruno Haible  <bruno@clisp.org>
65910
65911         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
65912         directly used by the gnulib modules nor by gnulib-tool.
65913
65914 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
65915
65916         * DEPENDENCIES: Give overall description of version dependency
65917         desirability.  Use more-typical names for apps.
65918         Add shell, coreutils, diffutils, grep, tar, gzip.
65919
65920 2007-04-04  Simon Josefsson  <simon@josefsson.org>
65921
65922         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
65923
65924 2007-04-04  Karl Berry  <karl@gnu.org>
65925
65926         * MODULES.html.sh (func_module): missing '.
65927
65928 2007-04-03  Bruno Haible  <bruno@clisp.org>
65929
65930         * modules/argmatch-tests (Makefile.am): New variable
65931         test_argmatch_LDADD.
65932         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
65933         * modules/array-list-tests (Makefile.am): New variable
65934         test_array_list_LDADD.
65935         * modules/array-oset-tests (Makefile.am): New variable
65936         test_array_oset_LDADD.
65937         * modules/avltree-list-tests (Makefile.am): New variable
65938         test_avltree_list_LDADD.
65939         * modules/avltree-oset-tests (Makefile.am): New variable
65940         test_avltree_oset_LDADD.
65941         * modules/avltreehash-list-tests (Makefile.am): New variable
65942         test_avltreehash_list_LDADD.
65943         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
65944         test_canonicalize_lgpl_LDADD.
65945         * modules/carray-list-tests (Makefile.am): New variable
65946         test_carray_list_LDADD.
65947         * modules/dirname-tests (Makefile.am): New variable
65948         test_dirname_LDADD.
65949         * modules/linked-list-tests (Makefile.am): New variable
65950         test_linked_list_LDADD.
65951         * modules/linkedhash-list-tests (Makefile.am): New variable
65952         test_linkedhash_list_LDADD.
65953         * modules/rbtree-list-tests (Makefile.am): New variable
65954         test_rbtree_list_LDADD.
65955         * modules/rbtree-oset-tests (Makefile.am): New variable
65956         test_rbtree_oset_LDADD.
65957         * modules/rbtreehash-list-tests (Makefile.am): New variable
65958         test_rbtreehash_list_LDADD.
65959         * modules/xvasprintf-tests (Makefile.am): New variable
65960         test_xvasprintf_LDADD.
65961         Reported by Eric Blake.
65962
65963 2007-04-03  Eric Blake  <ebb9@byu.net>
65964
65965         * DEPENDENCIES: Weaken m4 requirements.
65966
65967 2007-04-03  Bruno Haible  <bruno@clisp.org>
65968
65969         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
65970         * modules/isnanl-tests (configure.ac): Likewise.
65971
65972 2007-04-03  Ben Pfaff  <blp@gnu.org>
65973
65974         * modules/iconv_open: Add $(srcdir)/ to source directory
65975         references in Makefile fragments that call gperf, to fix VPATH
65976         builds.
65977
65978 2007-04-03  Bruno Haible  <bruno@clisp.org>
65979
65980         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
65981         * lib/ldexpl.c: Undo last change.
65982
65983 2007-04-03  Bruno Haible  <bruno@clisp.org>
65984
65985         * modules/printf-frexpl (Depends-on): Undo last change.
65986         (Files): Add m4/ldexpl.m4.
65987
65988 2007-04-03  Bruno Haible  <bruno@clisp.org>
65989
65990         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
65991         * modules/isnanl (Link): New section.
65992
65993         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
65994         * modules/frexp (Link): New section.
65995
65996         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
65997         * modules/frexpl (Link): New section.
65998
65999         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
66000         * modules/ldexpl (Link): New section.
66001
66002 2007-04-03  Bruno Haible  <bruno@clisp.org>
66003
66004         * modules/TEMPLATE-EXTENDED: New file.
66005         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
66006
66007 2007-04-03  Bruno Haible  <bruno@clisp.org>
66008
66009         * DEPENDENCIES: New file.
66010         Suggested by Simon Josefsson.
66011
66012 2007-04-03  Bruno Haible  <bruno@clisp.org>
66013
66014         * doc/gnulib.texi: Escape @.
66015
66016 2007-04-03  James Youngman  <jay@gnu.org>
66017         and Paul Eggert  <eggert@cs.ucla.edu>
66018
66019         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
66020         birthtime on all systems that have birthtime, not just those which
66021         use st_birthtimensec rather than st_birthtim.  Putting zero in
66022         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
66023         that the birth time is not available for files on an NFS mount.
66024
66025 2007-04-03  Simon Josefsson  <simon@josefsson.org>
66026
66027         * modules/memxor: Move back from crypto/, suggested by Bruno.
66028         * modules/crypto/hmac-sha1: Fix memxor dependency.
66029
66030         * modules/crypto/gc: Moved from ../.
66031
66032 2007-04-02  Eric Blake  <ebb9@byu.net>
66033
66034         * lib/ldexpl.c (includes): Avoid libm.
66035
66036         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
66037
66038 2007-04-02  Bruno Haible  <bruno@clisp.org>
66039
66040         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
66041         on IRIX.
66042
66043 2007-04-02  Bruno Haible  <bruno@clisp.org>
66044
66045         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
66046         x86 or x86_64 platforms running MacOS X.
66047         Reported by Ryan Schmidt <@ryandesign.com>.
66048
66049 2007-04-02  Bruno Haible  <bruno@clisp.org>
66050
66051         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
66052         i386.
66053
66054 2007-04-01  Simon Josefsson  <simon@josefsson.org>
66055
66056         * modules/crypto/arcfour: Moved from ../.
66057         * modules/crypto/arcfour-tests: Moved from ../.
66058         * modules/crypto/arctwo: Moved from ../.
66059         * modules/crypto/arctwo-tests: Moved from ../.
66060         * modules/crypto/des: Moved from ../.
66061         * modules/crypto/des-tests: Moved from ../.
66062         * modules/crypto/gc-arcfour: Moved from ../.
66063         * modules/crypto/gc-arcfour-tests: Moved from ../.
66064         * modules/crypto/gc-arctwo: Moved from ../.
66065         * modules/crypto/gc-arctwo-tests: Moved from ../.
66066         * modules/crypto/gc-des: Moved from ../.
66067         * modules/crypto/gc-des-tests: Moved from ../.
66068         * modules/crypto/gc-hmac-md5: Moved from ../.
66069         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
66070         * modules/crypto/gc-hmac-sha1: Moved from ../.
66071         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
66072         * modules/crypto/gc-md2: Moved from ../.
66073         * modules/crypto/gc-md2-tests: Moved from ../.
66074         * modules/crypto/gc-md4: Moved from ../.
66075         * modules/crypto/gc-md4-tests: Moved from ../.
66076         * modules/crypto/gc-md5: Moved from ../.
66077         * modules/crypto/gc-md5-tests: Moved from ../.
66078         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
66079         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
66080         * modules/crypto/gc-random: Moved from ../.
66081         * modules/crypto/gc-rijndael: Moved from ../.
66082         * modules/crypto/gc-rijndael-tests: Moved from ../.
66083         * modules/crypto/gc-sha1: Moved from ../.
66084         * modules/crypto/gc-sha1-tests: Moved from ../.
66085         * modules/crypto/gc-tests: Moved from ../.
66086         * modules/crypto/hmac-md5: Moved from ../.
66087         * modules/crypto/hmac-md5-tests: Moved from ../.
66088         * modules/crypto/hmac-sha1: Moved from ../.
66089         * modules/crypto/hmac-sha1-tests: Moved from ../.
66090         * modules/crypto/md2: Moved from ../.
66091         * modules/crypto/md2-tests: Moved from ../.
66092         * modules/crypto/md4: Moved from ../.
66093         * modules/crypto/md4-tests: Moved from ../.
66094         * modules/crypto/md5: Moved from ../.
66095         * modules/crypto/md5-tests: Moved from ../.
66096         * modules/crypto/memxor: Moved from ../.
66097         * modules/crypto/rijndael: Moved from ../.
66098         * modules/crypto/rijndael-tests: Moved from ../.
66099         * modules/crypto/sha1: Moved from ../.
66100
66101 2007-03-30  James Youngman  <jay@gnu.org>
66102
66103         * tests/test-stat-time.c (prepare_test): use chmod() rather than
66104         rename() to change the ctime of a file (because ctime is unaffected
66105         by rename on jfs2 on AIX 5.1).
66106         (main): Start by doing cleanup, in case a previous run failed leaving
66107         test files behind.
66108
66109 2007-03-31  Bruno Haible  <bruno@clisp.org>
66110
66111         Support old proprietary implementations of iconv.
66112         * modules/iconv_open: New file.
66113         * lib/iconv_.h: New file.
66114         * m4/iconv_h.m4: New file.
66115         * lib/iconv_open.c: New file.
66116         * lib/iconv_open-aix.gperf: New file.
66117         * lib/iconv_open-hpux.gperf: New file.
66118         * lib/iconv_open-irix.gperf: New file.
66119         * lib/iconv_open-osf.gperf: New file.
66120         * m4/iconv_open.m4: New file.
66121         * modules/linebreak (Depends-on): Add iconv_open.
66122         * modules/striconv (Depends-on): Likewise.
66123         * modules/striconveh (Depends-on): Likewise.
66124         * modules/unicodeio (Depends-on): Likewise.
66125         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
66126         (iconv_t)(-1).
66127         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
66128         conversion if cd is (iconv_t)(-1).
66129         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
66130         is not possible.
66131
66132 2007-03-31  Bruno Haible  <bruno@clisp.org>
66133
66134         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
66135         work on Solaris either. Protect also second use of "autodetect_jp".
66136
66137 2007-03-31  Bruno Haible  <bruno@clisp.org>
66138
66139         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
66140         the function is not present.
66141
66142 2007-03-31  Bruno Haible  <bruno@clisp.org>
66143
66144         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
66145         the function is not present.
66146
66147 2007-03-31  Bruno Haible  <bruno@clisp.org>
66148
66149         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
66150         a bug in HP-UX iconv_open().
66151
66152 2007-03-31  Bruno Haible  <bruno@clisp.org>
66153
66154         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
66155         (Mathematics <math.h>): New section, add fpieee.
66156         (Input/output <stdio.h>): Add fseterr.
66157         (Mathematics <math.h>): New section, add printf-frexp.
66158         (Container data structures): Add sublist.
66159         (Core language properties): Add fpucw, inline.
66160         (Functions for greatest-width integer types <inttypes.h>): Add
66161         imaxabs, imaxdiv, inttypes.
66162         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
66163         isnanl-nolibm, ldexp.
66164         (Mathematics <math.h>): New section, add printf-frexpl.
66165         (Support for systems lacking POSIX:2001): Add fprintf-posix,
66166         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
66167         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
66168         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
66169         (Unicode string functions): Add unistr/u*-mbtoucr.
66170         (Java): Add javacomp-script, javaexec-script.
66171         (C#): Add csharpcomp-script, csharpexec-script.
66172         (Support for building libraries and executables): Add havelib,
66173         relocatable-*.
66174         (Support for maintaining and releasing projects): Renamed from
66175         'Support for maintaining and release projects'. Add announce-gen.
66176
66177 2007-03-31  Bruno Haible  <bruno@clisp.org>
66178
66179         * README: Talk primarily about git.
66180         (git and CVS): Renamed from CVS.
66181         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
66182         gnulib is available through git.
66183         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
66184
66185 2007-03-30  Bruno Haible  <bruno@clisp.org>
66186
66187         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
66188         * lib/poll_.h: Likewise.
66189         * lib/stat_.h: Likewise.
66190         * lib/sys_time_.h: Likewise.
66191         * lib/sysexit_.h: Likewise.
66192         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
66193         * lib/stdbool_.h: Likewise.
66194         * lib/byteswap_.h: Add double-inclusion guard.
66195
66196 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
66197
66198         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
66199
66200 2007-03-30  Karl Berry  <karl@gnu.org>
66201
66202         * config/srclist-update: double space after USA in the license
66203         substitution, since that's how it's usually (?) written.
66204
66205 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
66206
66207         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
66208         reported by Bruno Haible.
66209
66210 2007-03-29  Bruno Haible  <bruno@clisp.org>
66211
66212         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
66213         a bug in AIX iconv().
66214
66215 2007-03-29  Bruno Haible  <bruno@clisp.org>
66216
66217         * modules/ldexpl-tests: New file.
66218         * tests/test-ldexpl.c: New file.
66219
66220 2007-03-29  Bruno Haible  <bruno@clisp.org>
66221
66222         * lib/ldexpl.c: Include fpucw.h.
66223         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
66224         multiplication.
66225         * modules/ldexpl (Depends-on): Add fpucw.
66226
66227 2007-03-29  Bruno Haible  <bruno@clisp.org>
66228
66229         * modules/ldexpl: New file.
66230         * m4/ldexpl.m4: New file.
66231         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
66232         set.
66233         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
66234         REPLACE_LDEXPL.
66235         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
66236         REPLACE_LDEXPL.
66237         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
66238         gl_FUNC_LDEXPL_WORKS.
66239         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
66240         * modules/mathl (Files): Remove lib/ldexpl.c.
66241         (Depends-on): Add ldexpl.
66242
66243 2007-03-29  Bruno Haible  <bruno@clisp.org>
66244
66245         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
66246
66247 2007-03-29  Bruno Haible  <bruno@clisp.org>
66248
66249         * tests/test-striconveh.c (main): Don't assume that a direct conversion
66250         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
66251         and possibly also HP-UX.
66252         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
66253         work on AIX, IRIX, HP-UX, OSF/1.
66254         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
66255         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
66256         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
66257         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
66258         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
66259         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
66260
66261 2007-03-29  Bruno Haible  <bruno@clisp.org>
66262
66263         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
66264
66265 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
66266
66267         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
66268         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
66269
66270 2007-03-29  Eric Blake  <ebb9@byu.net>
66271
66272         * lib/acl-internal.h: Remove redundant include.
66273         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
66274         Cygwin when a file is locked.
66275
66276 2007-03-29  Bruno Haible  <bruno@clisp.org>
66277
66278         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
66279         file.
66280         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
66281
66282 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
66283
66284         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
66285         try to remove a parent directory if the child couldn't be removed
66286         (except for the first rmdir, which could fail because the child
66287         doesn't exist).  Problem reported by Jeff Blaine in
66288         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
66289
66290 2007-03-28  Bruno Haible  <bruno@clisp.org>
66291
66292         * lib/striconveh.c (utf8conv_carefully): New function.
66293         (mem_cd_iconveh_internal): Invoke it.
66294
66295 2007-03-28  Bruno Haible  <bruno@clisp.org>
66296
66297         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
66298         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
66299         input.
66300         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
66301         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
66302         unistr/u8-uctomb.
66303
66304 2007-03-28  Bruno Haible  <bruno@clisp.org>
66305
66306         * modules/unistr/u8-mbtoucr: New file.
66307         * lib/unistr/u8-mbtoucr.c: New file.
66308         * modules/unistr/u16-mbtoucr: New file.
66309         * lib/unistr/u16-mbtoucr.c: New file.
66310         * modules/unistr/u16-mbtoucr: New file.
66311         * lib/unistr/u16-mbtoucr.c: New file.
66312         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
66313
66314 2007-03-27  Simon Josefsson  <simon@josefsson.org>
66315             Bruno Haible  <bruno@clisp.org>
66316
66317         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
66318         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
66319         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
66320
66321         * m4/stdio_h.m4: Add stubs for vasprintf too.
66322
66323         * modules/stdio: Support vasprintf in sed command.
66324
66325         * modules/vasprintf: Depend on stdio for prototypes.  Remove
66326         vasprintf.h.  Add stdio module indicator.
66327
66328         * lib/stdio_.h: Declare asprintf and vasprintf, based on
66329         vasprintf.h.
66330
66331         * lib/vasprintf.h: File removed.
66332
66333         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
66334         * lib/vasprintf.c: Ditto.
66335         * lib/xvasprintf.c: Ditto.
66336         * tests/test-vasprintf-posix.c: Ditto.
66337         * tests/test-vasprintf.c: Ditto.
66338
66339 2007-03-27  Bruno Haible  <bruno@clisp.org>
66340
66341         Make vasnprintf multithread-safe.
66342         * lib/vasnprintf.c (decimal_point_char): New function.
66343         (VASNPRINTF): Use it.
66344         Suggested by Simon Josefsson.
66345
66346 2007-03-27  Eric Blake  <ebb9@byu.net>
66347
66348         Support sub-second birthtime on cygwin.
66349         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
66350         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
66351         (get_stat_birthtime): Also work with st_birthtim.
66352
66353 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
66354
66355         * lib/stat-time.h (USE_BIRTHTIME): Remove.
66356         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
66357         (get_stat_birthtime_ns): Do not try to use "spare" fields.
66358         (get_stat_birthtime_ns): Simplify compile-time tests.
66359         (get_stat_birthtime): Change the API to look like
66360         get_stat_mtime etc., except return a negative tv_nsec on error.
66361         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
66362         Don't check for "spare" fields.
66363         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
66364         or for struct stat.st_birthtime, as these tests aren't used.
66365         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
66366
66367 2007-03-27  Bruno Haible  <bruno@clisp.org>
66368
66369         * lib/stat-time.h: Include <sys/stat.h>.
66370
66371 2007-03-27  James Youngman  <jay@gnu.org>
66372
66373         * lib/stat-time.h (get_stat_birthtime): New function for
66374           retrieving st_birthtime as provided by UFS2 (hence *BSD).
66375         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
66376           and its variants.
66377         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
66378         * modules/stat-time-test: New file.
66379         * tests/test-stat-time.c: New test, devised by Bruno Haible.
66380
66381 2007-03-26  Bruno Haible  <bruno@clisp.org>
66382
66383         Better support of signalling NaNs.
66384         * lib/atanl.c: Include isnanl.h.
66385         (atanl): Perform test for NaN at the beginning of the function and
66386         through a call to isnanl.
66387         * lib/cosl.c: Include isnanl.h.
66388         (cosl): Perform test for NaN at the beginning of the function and
66389         through a call to isnanl.
66390         * lib/ldexpl.c: Include isnanl.h.
66391         (ldexpl): Perform test for NaN through a call to isnanl.
66392         * lib/logl.c: Include isnanl.h.
66393         (logl): Perform test for NaN at the beginning of the function and
66394         through a call to isnanl.
66395         * lib/sinl.c: Include isnanl.h.
66396         (sinl): Perform test for NaN at the beginning of the function and
66397         through a call to isnanl.
66398         * lib/sqrtl.c: Include isnanl.h.
66399         (sqrtl): Perform test for NaN at the beginning of the function and
66400         through a call to isnanl.
66401         * lib/tanl.c: Include isnanl.h.
66402         (tanl): Perform test for NaN at the beginning of the function and
66403         through a call to isnanl.
66404         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
66405         * modules/mathl (Depends-on): Add isnanl.
66406
66407 2007-03-26  Eric Blake  <ebb9@byu.net>
66408
66409         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
66410         regression in logic sense of previous patch.
66411
66412 2007-03-26  Bruno Haible  <bruno@clisp.org>
66413
66414         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
66415         unportable shell command "if ! ...".
66416         Reported by Ralf Wildenhues.
66417
66418 2007-03-25  Bruno Haible  <bruno@clisp.org>
66419
66420         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
66421         <sysexits.h> file, and only add EX_CONFIG.
66422         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
66423         absolute file name and whether it is sufficient. Substitute also
66424         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
66425         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
66426         ABSOLUTE_SYSEXITS_H into sysexits.h.
66427
66428 2007-03-25  Bruno Haible  <bruno@clisp.org>
66429
66430         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
66431         hints is NULL.
66432
66433 2007-03-25  Bruno Haible  <bruno@clisp.org>
66434
66435         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
66436         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
66437
66438 2007-03-25  Bruno Haible  <bruno@clisp.org>
66439
66440         * lib/vasnprintf.c: Include langinfo.h.
66441         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
66442         multithread-safe.
66443         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
66444         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
66445         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66446         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66447         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66448         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66449         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66450         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
66451         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66452         Reported by Simon Josefsson.
66453
66454 2007-03-25  Bruno Haible  <bruno@clisp.org>
66455
66456         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
66457         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
66458         * modules/vasnprintf (Depends-on): Add stdint.
66459
66460 2007-03-25  Bruno Haible  <bruno@clisp.org>
66461
66462         * modules/fpieee: New file.
66463         * m4/fpieee.m4: New file.
66464         * modules/isnan-nolibm (Depends-on): Add fpieee.
66465         * modules/isnanl-nolibm (Depends-on): Add fpieee.
66466         * modules/isnanl (Depends-on): Add fpieee.
66467
66468 2007-03-25  Bruno Haible  <bruno@clisp.org>
66469
66470         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
66471
66472 2007-03-25  Bruno Haible  <bruno@clisp.org>
66473
66474         Avoid test failures on IRIX 6.5.
66475         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
66476         (main): Use it.
66477         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
66478         macros.
66479         (main): Use them.
66480
66481 2007-03-25  Bruno Haible  <bruno@clisp.org>
66482
66483         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
66484         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
66485         exists but doesn't work.
66486         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
66487         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
66488         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
66489         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
66490         math.h.
66491
66492 2007-03-25  Bruno Haible  <bruno@clisp.org>
66493
66494         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
66495         returns inf. Needed on IRIX 6.5.
66496
66497 2007-03-25  Bruno Haible  <bruno@clisp.org>
66498
66499         * tests/test-frexpl.c: Include isnanl-nolibm.h.
66500         (main): Use isnanl instead of x != x idiom.
66501         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
66502
66503         * tests/test-frexp.c: Include isnan.h.
66504         (main): Use isnan instead of x != x idiom.
66505         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
66506
66507 2007-03-25  Bruno Haible  <bruno@clisp.org>
66508
66509         * tests/test-frexp.c (NaN): New function/macro.
66510         (main): Use it instead of 0.0 / 0.0.
66511         * tests/test-isnan.c (NaN): New function/macro.
66512         (main): Use it instead of 0.0 / 0.0.
66513         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
66514         (test_function): Use it instead of 0.0 / 0.0.
66515         * tests/test-vasprintf-posix.c (NaN): New function/macro.
66516         (test_function): Use it instead of 0.0 / 0.0.
66517         * tests/test-snprintf-posix.h (NaN): New function/macro.
66518         (test_function): Use it instead of 0.0 / 0.0.
66519         * tests/test-sprintf-posix.h (NaN): New function/macro.
66520         (test_function): Use it instead of 0.0 / 0.0.
66521         * tests/test-fprintf-posix.h (NaN): New function/macro.
66522         (test_function): Use it instead of 0.0 / 0.0.
66523         * tests/test-printf-posix.h (NaN): New function/macro.
66524         (test_function): Use it instead of 0.0 / 0.0.
66525
66526         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
66527
66528 2007-03-25  Bruno Haible  <bruno@clisp.org>
66529
66530         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
66531
66532 2007-03-25  Bruno Haible  <bruno@clisp.org>
66533
66534         * lib/regexec.c (merge_state_with_log): Make static.
66535
66536 2007-03-25  Bruno Haible  <bruno@clisp.org>
66537
66538         * lib/trigl.c (kernel_rem_pio2): Make static.
66539
66540 2007-03-25  Bruno Haible  <bruno@clisp.org>
66541
66542         * lib/sincosl.c (sincosl_table): Make static.
66543
66544 2007-03-25  Bruno Haible  <bruno@clisp.org>
66545
66546         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
66547         if the compiler does not support C99.
66548
66549 2007-03-25  Bruno Haible  <bruno@clisp.org>
66550
66551         * modules/time (Makefile.am): Ensure all rule action lines start with a
66552         tab.
66553
66554 2007-03-24  Bruno Haible  <bruno@clisp.org>
66555
66556         * modules/tsearch-tests: New file.
66557         * tests/test-tsearch.sh: New file.
66558         * tests/test-tsearch.c: New file, mostly copied from glibc.
66559
66560         * modules/search-tests: New file.
66561         * tests/test-search.c: New file.
66562
66563         * modules/search: New file.
66564         * lib/search_.h: New file, incorporating lib/tsearch.h.
66565         * m4/search_h.m4: New file.
66566         * lib/tsearch.h: Remove file.
66567         * lib/tsearch.c: Include search.h instead of tsearch.h.
66568         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
66569         HAVE_TSEARCH.
66570         * modules/tsearch (Files): Remove lib/tsearch.h.
66571         (Depends-on): Add search.
66572         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
66573         (Include): Change tsearch.h into search.h.
66574
66575 2007-03-24  Bruno Haible  <bruno@clisp.org>
66576
66577         * modules/fpucw: New file.
66578         * lib/fpucw.h: New file.
66579         * lib/frexp.c: Include fpucw.h.
66580         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
66581         (FUNC): Use them.
66582         * lib/printf-frexp.c: Include fpucw.h.
66583         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
66584         (FUNC): Use them.
66585         * lib/vasnprintf.c: Include fpucw.h.
66586         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
66587         'long double' calculations.
66588         * tests/test-frexpl.c: Include fpucw.h.
66589         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
66590         * tests/test-printf-frexpl.c: Include fpucw.h.
66591         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
66592         * modules/frexpl (Depends-on): Add fpucw.
66593         * modules/printf-frexpl (Depends-on): Likewise.
66594         * modules/fprintf-posix (Depends-on): Likewise.
66595         * modules/snprintf-posix (Depends-on): Likewise.
66596         * modules/sprintf-posix (Depends-on): Likewise.
66597         * modules/vasnprintf-posix (Depends-on): Likewise.
66598         * modules/vasprintf-posix (Depends-on): Likewise.
66599         * modules/vfprintf-posix (Depends-on): Likewise.
66600         * modules/vsnprintf-posix (Depends-on): Likewise.
66601         * modules/vsprintf-posix (Depends-on): Likewise.
66602         * modules/frexpl-tests (Depends-on): Likewise.
66603         * modules/printf-frexpl-tests (Depends-on): Likewise.
66604
66605 2007-03-24  Bruno Haible  <bruno@clisp.org>
66606
66607         * lib/float+.h: New file.
66608         * lib/isnan.c: Include float+.h.
66609         (SIZE): New macro.
66610         (FUNC): Compare only SIZE bytes of the value.
66611         * lib/vasnprintf.c: Include float+.h.
66612         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
66613         SIZEOF_LDBL or SIZEOF_DBL bytes.
66614         * modules/isnan-nolibm (Files): Add lib/float+.h.
66615         * modules/isnanl-nolibm (Files): Add lib/float+.h.
66616         * modules/isnanl (Files): Add lib/float+.h.
66617         * modules/vasnprintf (Files): Add lib/float+.h.
66618
66619 2007-03-24  Bruno Haible  <bruno@clisp.org>
66620
66621         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
66622         include isnanl-nolibm.h.
66623
66624 2007-03-24  Bruno Haible  <bruno@clisp.org>
66625
66626         * tests/test-read-file.c (main): Don't produce spurious output for
66627         expected situations. Make the test fail if it encountered unexpected
66628         results.
66629
66630 2007-03-24  Bruno Haible  <bruno@clisp.org>
66631
66632         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
66633         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
66634
66635 2007-03-24  Bruno Haible  <bruno@clisp.org>
66636
66637         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
66638
66639 2007-03-24  Bruno Haible  <bruno@clisp.org>
66640
66641         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
66642         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
66643
66644         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
66645         * modules/utf8-ucs4: Turn into a symbolic link to module
66646         unistr/u8-mbtouc.
66647
66648         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
66649         utf8-ucs4-unsafe.
66650         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
66651         unistr/u8-mbtouc-unsafe.
66652
66653         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
66654         * modules/utf16-ucs4: Turn into a symbolic link to module
66655         unistr/u16-mbtouc.
66656
66657         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
66658         utf16-ucs4-unsafe.
66659         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
66660         unistr/u16-mbtouc-unsafe.
66661
66662         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
66663         * modules/ucs4-utf8: Turn into a symbolic link to module
66664         unistr/u8-ubtomb.
66665
66666         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
66667         * modules/ucs4-utf16: Turn into a symbolic link to module
66668         unistr/u16-ubtomb.
66669
66670 2007-03-24  Bruno Haible  <bruno@clisp.org>
66671
66672         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
66673         Enable the function only if HAVE_INLINE.
66674         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
66675         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
66676         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
66677         Enable the function only if HAVE_INLINE.
66678         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
66679         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
66680         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
66681         Enable the function only if HAVE_INLINE.
66682         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
66683         Enable the function only if HAVE_INLINE.
66684         * modules/utf8-ucs4: Update.
66685         * modules/utf8-ucs4-unsafe: Update.
66686         * modules/utf16-ucs4: Update.
66687         * modules/utf16-ucs4-unsafe: Update.
66688         * modules/ucs4-utf8: Update.
66689         * modules/ucs4-utf16: Update.
66690
66691 2007-03-24  Bruno Haible  <bruno@clisp.org>
66692
66693         * lib/utf8-ucs4.h: Remove file.
66694         * lib/utf8-ucs4-unsafe.h: Remove file.
66695         * lib/utf16-ucs4.h: Remove file.
66696         * lib/utf16-ucs4-unsafe.h: Remove file.
66697         * lib/ucs4-utf8.h: Remove file.
66698         * lib/ucs4-utf16.h: Remove file.
66699         * lib/unistr.h: Include their previous contents.
66700         * m4/utf-ucs4.m4: Remove file.
66701         * m4/ucs4-utf.m4: Remove file.
66702         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
66703         (Depends-on): Add unistr/base.
66704         (configure.ac): Remove gl_UTF_UCS4.
66705         (Makefile.am): Update.
66706         (Include): Change to unistr.h.
66707         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
66708         (Depends-on): Add unistr/base.
66709         (configure.ac): Remove gl_UTF_UCS4.
66710         (Makefile.am): Update.
66711         (Include): Change to unistr.h.
66712         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
66713         (Depends-on): Add unistr/base.
66714         (configure.ac): Remove gl_UTF_UCS4.
66715         (Makefile.am): Update.
66716         (Include): Change to unistr.h.
66717         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
66718         (Depends-on): Add unistr/base.
66719         (configure.ac): Remove gl_UTF_UCS4.
66720         (Makefile.am): Update.
66721         (Include): Change to unistr.h.
66722         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
66723         (Depends-on): Add unistr/base.
66724         (configure.ac): Remove gl_UCS4_UTF.
66725         (Makefile.am): Update.
66726         (Include): Change to unistr.h.
66727         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
66728         (Depends-on): Add unistr/base.
66729         (configure.ac): Remove gl_UCS4_UTF.
66730         (Makefile.am): Update.
66731         (Include): Change to unistr.h.
66732         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
66733         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
66734         utf8-ucs4-unsafe.h.
66735         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
66736         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
66737         utf16-ucs4-unsafe.h.
66738         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
66739         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
66740         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
66741         * lib/unistr/u8-strchr.c: Likewise.
66742         * lib/unistr/u8-strrchr.c: Likewise.
66743         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
66744         * lib/unistr/u16-strchr.c: Likewise.
66745         * lib/unistr/u16-strrchr.c: Likewise.
66746         * lib/striconveh.c: Update.
66747         * lib/linebreak.c: Update.
66748
66749 2007-03-24  Bruno Haible  <bruno@clisp.org>
66750
66751         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
66752         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
66753
66754 2007-03-22  Bruno Haible  <bruno@clisp.org>
66755
66756         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
66757
66758 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
66759
66760         * MODULES.html.sh (File system functions): New module write-any-file.
66761         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
66762         * m4/write-any-file.m4: New files.
66763
66764 2007-03-23  Eric Blake  <ebb9@byu.net>
66765
66766         * gnulib-tool: Rearrange space-tab sequences, since some editors
66767         like to eat them.
66768
66769 2007-03-23  Eric Blake  <ebb9@byu.net>
66770
66771         * lib/version-etc.c (version_etc_va): Update license wording to
66772         be more concise.  Recommended by Richard Stallman.
66773
66774 2007-03-22  Bruno Haible  <bruno@clisp.org>
66775
66776         * lib/poll.c (MSG_PEEK): New fallback definition.
66777
66778 2007-03-22  Bruno Haible  <bruno@clisp.org>
66779
66780         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
66781         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
66782         (main): Update.
66783         Fixes a compilation error on BeOS.
66784
66785 2007-03-22  Bruno Haible  <bruno@clisp.org>
66786
66787         * modules/frexpl-tests: New file.
66788         * tests/test-frexpl.c: New file.
66789
66790         * modules/frexpl: New file.
66791         * m4/frexpl.m4: New file.
66792         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
66793         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
66794         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
66795         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
66796         (Depends-on): Add frexpl. Remove isnanl-nolibm.
66797         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
66798
66799 2007-03-22  Bruno Haible  <bruno@clisp.org>
66800
66801         * lib/frexpl.c: Share code with lib/frexp.c.
66802         * modules/mathl (Files): Add lib/frexp.c.
66803         (Depends-on): Add isnanl-nolibm.
66804
66805 2007-03-22  Bruno Haible  <bruno@clisp.org>
66806
66807         * modules/printf-frexp (Files): Add m4/frexp.m4.
66808         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
66809         only if the found frexp function actually works.
66810
66811 2007-03-22  Bruno Haible  <bruno@clisp.org>
66812
66813         * lib/frexp.c: Remove older implementation that uses divisions.
66814
66815 2007-03-21  Bruno Haible  <bruno@clisp.org>
66816
66817         * modules/frexp-tests: New file.
66818         * tests/test-frexp.c: New file.
66819
66820         * modules/frexp: New file.
66821         * lib/frexp.c: New file.
66822         * m4/frexp.m4: New file.
66823         * lib/math_.h (frexp): New declaration.
66824         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
66825         REPLACE_FREXP.
66826         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
66827
66828 2007-03-21  Bruno Haible  <bruno@clisp.org>
66829
66830         * modules/isnanl-tests: New file.
66831         * tests/test-isnanl.c: New file.
66832
66833         * modules/isnanl: New file.
66834         * lib/isnanl.h: New file.
66835         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
66836         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
66837         gl_FUNC_ISNANL_WORKS.
66838         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
66839         New macros.
66840
66841 2007-03-21  Bruno Haible  <bruno@clisp.org>
66842
66843         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
66844         lib/isnanl.h.
66845         (Include): Update.
66846         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
66847         * lib/vasnprintf.c: Update.
66848         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
66849         tests/test-isnanl.h, remove tests/test-isnanl.c.
66850         (Makefile.am): Update.
66851         * tests/test-isnanl-nolibm.c: New file.
66852         * tests/test-isnanl.h: New file.
66853         * tests/test-isnanl.c: Remove file.
66854
66855 2007-03-21  Jim Meyering  <jim@meyering.net>
66856
66857         When trying to open ".", treat ESTALE like EACCES.
66858         * lib/savewd.c (savewd_save): Resort to forking not just upon
66859         failure with EACCES, but also when errno is ESTALE.
66860
66861 2007-03-20  Bruno Haible  <bruno@clisp.org>
66862
66863         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
66864         Needed on AIX 5.1. Reported by Matthew Woehlke.
66865
66866 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
66867
66868         Suggestions by Bruno Haible:
66869         * lib/acl-internal.h: Include "gettext.h" rather than rolling
66870         our own.
66871         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
66872         * modules/acl (Depends-on): Add gettext.
66873
66874 2007-03-19  Bruno Haible  <bruno@clisp.org>
66875
66876         * modules/iconvme: Remove file.
66877         * lib/iconvme.h: Remove file.
66878         * lib/iconvme.c: Remove file.
66879         * m4/iconvme.m4: Remove file.
66880
66881 2007-03-19  Bruno Haible  <bruno@clisp.org>
66882
66883         * doc/relocatable-maint.texi: Break long shell script line.
66884         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
66885
66886 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
66887
66888         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
66889         handle file_has_acl.
66890         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
66891         * lib/acl.c: Move header inclusions and related macro defns into
66892         lib/acl-internal.h.
66893         (S_ISLNK): Remove defn, since that's now done for us.
66894         (file_has_acl): Move to lib/file-has-acl.c.
66895         Call acl_trivial if available.  This is the crucial part of the fix.
66896         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
66897         shared within the library.  Rewrite a bit, partly to make it compatible
66898         with the GNU coding style.
66899         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
66900         Remove unnecessary double-quotes.
66901         Don't test for acl_to_text; the build will catch that.
66902         Replace acl_entries if it doesn't exist and it is needed.
66903         Check for -lsec and acl_trivial (as used on Solaris 10).
66904         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
66905         lib/file-has-acl.c.
66906         (Depends-on): Add sys_stat, for S_ISLNK.
66907
66908 2007-03-19  Ben Pfaff  <blp@gnu.org>
66909
66910         * doc/gnulib.texi: Fix typos.
66911         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
66912
66913 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
66914
66915         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
66916         If size is zero here, buf must be zero.
66917
66918 2007-03-19  Simon Josefsson  <simon@josefsson.org>
66919
66920         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
66921         <bruno@clisp.org>.
66922
66923 2007-03-18  Bruno Haible  <bruno@clisp.org>
66924
66925         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
66926         Suggested by Eric Blake.
66927
66928 2007-03-18  Ben Pfaff  <blp@gnu.org>
66929
66930         * doc/relocatable.texi: Recommend using as prefix a directory
66931         that does not exist and will never be created.  Based on
66932         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
66933         and others.
66934
66935 2007-03-17  Bruno Haible  <bruno@clisp.org>
66936
66937         * lib/fchownat.c: Include lchown.h.
66938
66939 2007-03-17  Bruno Haible  <bruno@clisp.org>
66940
66941         Fix endless loop when the given allocated size was > INT_MAX.
66942         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
66943         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
66944         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
66945         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
66946         * lib/sprintf.c (sprintf): Likewise.
66947
66948 2007-03-17  Bruno Haible  <bruno@clisp.org>
66949
66950         * tests/test-argp-2.sh (func_compare): Output a context diff.
66951
66952 2007-03-17  Bruno Haible  <bruno@clisp.org>
66953
66954         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
66955         locale's decimal-point character.
66956
66957 2007-03-17  Bruno Haible  <bruno@clisp.org>
66958
66959         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
66960         before comparing it. Needed because on some platforms (e.g. x86) a
66961         'long double' occupies less bytes than sizeof (long double).
66962
66963 2007-03-17  Bruno Haible  <bruno@clisp.org>
66964
66965         * tests/test-crc.c (main): Make printf statements 64-bit clean.
66966         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
66967         * tests/test-getaddrinfo.c (simple): Likewise.
66968         * tests/test-read-file.c (main): Likewise.
66969
66970 2007-03-17  Bruno Haible  <bruno@clisp.org>
66971
66972         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
66973
66974 2007-03-17  Bruno Haible  <bruno@clisp.org>
66975
66976         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
66977         unused variable.
66978
66979 2007-03-17  Bruno Haible  <bruno@clisp.org>
66980
66981         * tests/test-c-strcasecmp.c: Include c-strcase.h.
66982         * tests/test-c-strncasecmp.c: Likewise.
66983
66984 2007-03-17  Bruno Haible  <bruno@clisp.org>
66985
66986         * modules/stdlib (Depends-on): Add unistd.
66987         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
66988         Needed for MacOS X 10.3.
66989
66990 2007-03-17  Bruno Haible  <bruno@clisp.org>
66991
66992         * lib/unistr/u-strdup.h: Include <stdlib.h>.
66993
66994 2007-03-17  Bruno Haible  <bruno@clisp.org>
66995
66996         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
66997
66998 2007-03-17  Bruno Haible  <bruno@clisp.org>
66999
67000         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
67001         to reflect files copied from gnulib (with or without modifications).
67002         Suggested by Jim Meyering.
67003
67004 2007-03-17  Eric Blake  <ebb9@byu.net>
67005
67006         * NEWS: Document stdlib change from 2007-02-18.
67007
67008 2007-03-17  Jim Meyering  <jim@meyering.net>
67009
67010         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
67011         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
67012         someone uses a name containing shell meta-characters.
67013         Reported by Alfred M. Szmidt.
67014
67015         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
67016
67017 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
67018
67019         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
67020         and copy gettext configuration files only if configure.ac contains
67021         a use of AM_GNU_GETTEXT_VERSION.
67022
67023 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
67024
67025         * build-aux/bootstrap (gnulib_name): New variable.
67026         (gnulib_tool_options): Use it.
67027
67028 2007-03-13  Simon Josefsson  <simon@josefsson.org>
67029
67030         * tests/test-des.c: Use new namespace.
67031
67032 2007-03-15  Bruno Haible  <bruno@clisp.org>
67033
67034         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
67035         Reported by James Youngman <jay@gnu.org>.
67036
67037 2007-03-15  Bruno Haible  <bruno@clisp.org>
67038
67039         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
67040         declared prototype. Needed with cc on OSF/1 5.1.
67041
67042 2007-03-15  Bruno Haible  <bruno@clisp.org>
67043
67044         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
67045         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
67046         (struct gl_list_implementation): Add dispose_fn argument to the
67047         'create_empty', 'create' methods.
67048         (struct gl_list_impl_base): Add field 'dispose_fn'.
67049         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
67050         argument.
67051         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
67052         dispose_fn argument.
67053         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
67054         dispose_fn on the dropped values.
67055         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
67056         dispose_fn argument.
67057         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
67058         dropped values.
67059         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
67060         (gl_tree_remove_node): Call dispose_fn on the dropped value.
67061         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
67062         (gl_tree_remove_node): Call dispose_fn on the dropped value.
67063         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
67064         argument.
67065         (gl_tree_list_free): Call dispose_fn on the dropped values.
67066         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
67067         the dropped values.
67068         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
67069         Add dispose_fn argument.
67070         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
67071         Call dispose_fn on the dropped values.
67072         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
67073         Add dispose_fn argument.
67074         (gl_sublist_create): Initialize the 'dispose_fn' field.
67075         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
67076         * tests/test-array_list.c (main): Update.
67077         * tests/test-carray_list.c (main): Update.
67078         * tests/test-avltree_list.c (main): Update.
67079         * tests/test-rbtree_list.c (main): Update.
67080         * tests/test-avltreehash_list.c (main): Update.
67081         * tests/test-rbtreehash_list.c (main): Update.
67082         * tests/test-linked_list.c (main): Update.
67083         * tests/test-linkedhash_list.c (main): Update.
67084         * tests/test-array_oset.c (main): Update.
67085
67086 2007-03-15  Bruno Haible  <bruno@clisp.org>
67087
67088         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
67089         (gl_oset_create_empty): Add dispose_fn argument.
67090         (struct gl_oset_implementation): Add dispose_fn argument to
67091         'create_empty' method.
67092         (struct gl_oset_impl_base): Add dispose_fn field.
67093         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
67094         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
67095         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
67096         values.
67097         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
67098         (gl_tree_oset_free): Call dispose_fn on the dropped values.
67099         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
67100         dropped value.
67101         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
67102         dropped value.
67103         * tests/test-array_oset.c (main): Update.
67104         * tests/test-avltree_oset.c (main): Update.
67105         * tests/test-rbtree_oset.c (main): Update.
67106         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
67107
67108 2007-03-13  Bruno Haible  <bruno@clisp.org>
67109
67110         * tests/test-stdbool.c (i): Update after last patch.
67111
67112 2007-03-12  Bruno Haible  <bruno@clisp.org>
67113
67114         * lib/quotearg.c: Include <wctype.h> early, before the definition of
67115         the iswprint macro. Needed on Solaris 2.5.1.
67116
67117 2007-03-12  Bruno Haible  <bruno@clisp.org>
67118
67119         * tests/test-printf-frexp.c (main): Declare x as volatile.
67120
67121 2007-03-12  Simon Josefsson  <simon@josefsson.org>
67122
67123         * doc/gnulib.texi (Build robot for gnulib): New section.
67124
67125 2007-03-12  Jim Meyering  <jim@meyering.net>
67126
67127         * build-aux/bootstrap: New file.
67128         * build-aux/bootstrap.conf: New file, from coreutils.
67129
67130 2007-03-11  Bruno Haible  <bruno@clisp.org>
67131
67132         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
67133
67134 2007-03-12  Simon Josefsson  <simon@josefsson.org>
67135
67136         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
67137         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
67138         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
67139
67140 2007-03-11  Bruno Haible  <bruno@clisp.org>
67141
67142         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
67143         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
67144
67145 2007-03-11  Bruno Haible  <bruno@clisp.org>
67146
67147         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
67148         formula. Needed for SunPRO C 5.0.
67149
67150 2007-03-11  Bruno Haible  <bruno@clisp.org>
67151
67152         * modules/long-options (Depends-on): Add getopt.
67153
67154 2007-03-11  Bruno Haible  <bruno@clisp.org>
67155
67156         * modules/modechange (Depends-on): Add stdbool.
67157
67158 2007-03-11  Bruno Haible  <bruno@clisp.org>
67159
67160         * modules/i-ring (Depends-on): Add stdbool.
67161
67162 2007-03-11  Bruno Haible  <bruno@clisp.org>
67163
67164         * modules/gc-des (Depends-on): Add stdbool.
67165
67166 2007-03-11  Bruno Haible  <bruno@clisp.org>
67167
67168         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
67169
67170 2007-03-11  Bruno Haible  <bruno@clisp.org>
67171
67172         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
67173
67174 2007-03-11  Bruno Haible  <bruno@clisp.org>
67175
67176         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
67177
67178 2007-03-11  Bruno Haible  <bruno@clisp.org>
67179
67180         * lib/vasnprintf.c (sprintf): Undefine.
67181
67182 2007-03-11  Bruno Haible  <bruno@clisp.org>
67183
67184         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
67185         initializers in SunPRO C and Compaq C compilers.
67186
67187 2007-03-11  Bruno Haible  <bruno@clisp.org>
67188
67189         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
67190         decrementing code ANSI C compliant.
67191
67192 2007-03-11  Bruno Haible  <bruno@clisp.org>
67193
67194         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
67195         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
67196
67197 2007-03-11  Bruno Haible  <bruno@clisp.org>
67198
67199         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
67200         <stdbool.h> substitute doesn't pass.
67201
67202 2007-03-11  Bruno Haible  <bruno@clisp.org>
67203
67204         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
67205
67206 2007-03-11  Bruno Haible  <bruno@clisp.org>
67207
67208         * gnulib-tool (func_create_megatestdir): Create also an autobuild
67209         script, for submission to autobuild.josefsson.org.
67210
67211 2007-03-10  Bruno Haible  <bruno@clisp.org>
67212
67213         * modules/canonicalize-lgpl-tests: New file.
67214         * tests/test-canonicalize-lgpl.sh: New file.
67215         * tests/test-canonicalize-lgpl.c: New file.
67216
67217         * modules/c-strcase-tests: New file.
67218         * tests/test-c-strcase.sh: New file.
67219         * tests/test-c-strcasecmp.c: New file.
67220         * tests/test-c-strncasecmp.c: New file.
67221
67222         * modules/atexit-tests: New file.
67223         * tests/test-atexit.sh: New file.
67224         * tests/test-atexit.c: New file.
67225
67226 2007-03-10  Bruno Haible  <bruno@clisp.org>
67227
67228         * tests/test-binary-io.sh: Use temporary filenames that are not so
67229         likely to clash with those of other tests (in a parallel make).
67230         * tests/test-binary-io.c: Likewise.
67231
67232 2007-03-10  Bruno Haible  <bruno@clisp.org>
67233
67234         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
67235         fallback; use #error instead.
67236         Suggested by Simon Josefsson.
67237
67238 2007-03-10  Bruno Haible  <bruno@clisp.org>
67239
67240         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
67241         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
67242         first and the last.
67243
67244 2007-03-10  Bruno Haible  <bruno@clisp.org>
67245
67246         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
67247
67248 2007-03-10  Bruno Haible  <bruno@clisp.org>
67249
67250         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
67251         "make distcheck".
67252         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
67253         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
67254         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
67255
67256 2007-03-10  Bruno Haible  <bruno@clisp.org>
67257
67258         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
67259         variable.
67260         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
67261         variable.
67262
67263 2007-03-09  Eric Blake  <ebb9@byu.net>
67264         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
67265
67266         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
67267         types are not being provided by gnulib.
67268         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
67269         types are supported.
67270
67271 2007-03-10  Bruno Haible  <bruno@clisp.org>
67272
67273         * lib/stdio_.h (__attribute__): New macro.
67274         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
67275         vsprintf): Specify __attribute__ __format__ for GCC.
67276         Suggested by Eric Blake.
67277
67278 2007-03-09  Bruno Haible  <bruno@clisp.org>
67279
67280         * modules/printf-posix-tests: New file.
67281         * tests/test-printf-posix.sh: New file.
67282         * tests/test-printf-posix.c: New file.
67283
67284         * modules/printf-posix: New file.
67285         * lib/printf.c: New file.
67286         * m4/printf-posix-rpl.m4: New file.
67287         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
67288         REPLACE_PRINTF.
67289         * lib/stdio_.h (printf): New declaration.
67290         (format, __format__, ____printf____, ____scanf____, ____strftime____,
67291         ____strfmon____): New macros.
67292         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
67293         REPLACE_PRINTF.
67294
67295 2007-03-09  Bruno Haible  <bruno@clisp.org>
67296
67297         * tests/test-vasnprintf-posix2.sh: New file.
67298         * tests/test-vasnprintf-posix2.c: New file.
67299         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
67300         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
67301         (Makefile.am): Activate test-vasnprintf-posix2.sh.
67302
67303         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
67304         a locale dependent decimal point, rather than always '.'.
67305
67306 2007-03-09  Eric Blake  <ebb9@byu.net>
67307
67308         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
67309         spite of platforms like Tandem/NSK that define it to -1.
67310
67311 2007-03-08  Bruno Haible  <bruno@clisp.org>
67312
67313         * modules/vprintf-posix-tests: New file.
67314         * tests/test-vprintf-posix.sh: New file.
67315         * tests/test-vprintf-posix.c: New file.
67316         * tests/test-printf-posix.h: New file.
67317
67318         * modules/vprintf-posix: New file.
67319         * lib/vprintf.c: New file.
67320         * m4/vprintf-posix.m4: New file.
67321         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
67322         REPLACE_VPRINTF.
67323         * lib/stdio_.h (vprintf): New declaration.
67324         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
67325         REPLACE_VPRINTF.
67326
67327 2007-03-08  Bruno Haible  <bruno@clisp.org>
67328
67329         * modules/fprintf-posix-tests: New file.
67330         * tests/test-fprintf-posix.sh: New file.
67331         * tests/test-fprintf-posix.c: New file.
67332
67333         * modules/fprintf-posix: New file.
67334         * lib/fprintf.c: New file.
67335         * m4/fprintf-posix.m4: New file.
67336         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
67337         REPLACE_FPRINTF.
67338         * lib/stdio_.h (fprintf): New declaration.
67339         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
67340         REPLACE_FPRINTF.
67341
67342 2007-03-08  Bruno Haible  <bruno@clisp.org>
67343
67344         * modules/vfprintf-posix-tests: New file.
67345         * tests/test-vfprintf-posix.sh: New file.
67346         * tests/test-vfprintf-posix.c: New file.
67347         * tests/test-fprintf-posix.h: New file.
67348         * tests/test-fprintf-posix.out: New file.
67349
67350         * modules/vfprintf-posix: New file.
67351         * lib/vfprintf.c: New file.
67352         * m4/vfprintf-posix.m4: New file.
67353         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
67354         REPLACE_VFPRINTF.
67355         * lib/stdio_.h (vfprintf): New declaration.
67356         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
67357         REPLACE_VFPRINTF.
67358
67359 2007-03-08  Bruno Haible  <bruno@clisp.org>
67360
67361         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
67362
67363 2007-03-08  Bruno Haible  <bruno@clisp.org>
67364
67365         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
67366         instead of 'expr' invocations.
67367         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67368         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67369         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67370         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67371         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67372         Suggested by Paul Eggert.
67373
67374 2007-03-08  Bruno Haible  <bruno@clisp.org>
67375
67376         * modules/fseterr-tests: New file.
67377         * tests/test-fseterr.c: New file.
67378
67379         * modules/fseterr: New file.
67380         * lib/fseterr.h: New file.
67381         * lib/fseterr.c: New file.
67382
67383 2007-03-08  Bruno Haible  <bruno@clisp.org>
67384
67385         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
67386         * lib/getopt_.h: Likewise.
67387         * lib/mbswidth.h: Likewise.
67388         * lib/setenv.h: Likewise.
67389         * lib/vasnprintf.h: Likewise.
67390         * lib/vasprintf.h: Likewise.
67391         * lib/verror.h: Likewise.
67392         * lib/xsetenv.h: Likewise.
67393         * lib/xvasprintf.h: Likewise.
67394
67395 2007-03-08  Jim Meyering  <jim@meyering.net>
67396
67397         * users.txt: Add parted.
67398
67399         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
67400
67401 2007-03-07  Bruno Haible  <bruno@clisp.org>
67402
67403         * m4/printf.m4: Make the shell script snippets copy&pastable.
67404
67405 2007-03-02  Bruno Haible  <bruno@clisp.org>
67406
67407         * lib/netinet_in_.h: New file.
67408         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
67409         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
67410         * modules/netinet_in (Files): Add lib/netinet_in_.h.
67411         (Depends-on): Add absolute-header.
67412         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
67413         into netinet/in.h.
67414
67415 2007-03-03  Bruno Haible  <bruno@clisp.org>
67416
67417         * lib/sys_select_.h: New file.
67418         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
67419         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
67420         * modules/sys_select (Files): Add lib/sys_select_.h.
67421         (Depends-on): Add absolute-header.
67422         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
67423         into sys/select.h.
67424
67425 2007-03-02  Bruno Haible  <bruno@clisp.org>
67426
67427         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
67428         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
67429         values.
67430         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
67431         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
67432         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
67433         * modules/sys_socket (Depends-on): Add absolute-header.
67434         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
67435         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
67436         (Include): Remove requirement of inclusion of <sys/types.h>.
67437
67438 2007-03-02  Bruno Haible  <bruno@clisp.org>
67439
67440         * lib/byteswap_.h (bswap_32): Fix formula.
67441
67442 2007-03-06  Bruno Haible  <bruno@clisp.org>
67443
67444         * modules/sprintf-posix-tests: New file.
67445         * tests/test-sprintf-posix.c: New file.
67446
67447         * modules/sprintf-posix: New file.
67448         * lib/sprintf.c: New file.
67449         * m4/sprintf-posix.m4: New file.
67450         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
67451         REPLACE_SPRINTF.
67452         * lib/stdio_.h (sprintf): New declaration.
67453         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
67454         REPLACE_SPRINTF.
67455
67456 2007-03-06  Bruno Haible  <bruno@clisp.org>
67457
67458         * modules/vsprintf-posix-tests: New file.
67459         * tests/test-vsprintf-posix.c: New file.
67460         * tests/test-sprintf-posix.h: New file.
67461
67462         * modules/vsprintf-posix: New file.
67463         * lib/vsprintf.c: New file.
67464         * m4/vsprintf-posix.m4: New file.
67465         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
67466         REPLACE_VSPRINTF.
67467         * lib/stdio_.h (vsprintf): New declaration.
67468         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
67469         REPLACE_VSPRINTF.
67470
67471 2007-03-06  Bruno Haible  <bruno@clisp.org>
67472
67473         * modules/vsnprintf (Depend-on): Remove minmax.
67474
67475 2007-03-06  Bruno Haible  <bruno@clisp.org>
67476
67477         * modules/snprintf-posix-tests: New file.
67478         * tests/test-snprintf-posix.c: New file.
67479
67480         * modules/snprintf-posix: New file.
67481         * m4/snprintf-posix.m4: New file.
67482         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
67483         gl_FUNC_SNPRINTF.
67484         (gl_FUNC_SNPRINTF): Invoke it.
67485         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
67486         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
67487         is set.
67488         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
67489
67490 2007-03-06  Bruno Haible  <bruno@clisp.org>
67491
67492         * modules/vsnprintf-posix-tests: New file.
67493         * tests/test-vsnprintf-posix.c: New file.
67494         * tests/test-snprintf-posix.h: New file.
67495
67496         * modules/vsnprintf-posix: New file.
67497         * m4/vsnprintf-posix.m4: New file.
67498         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
67499         gl_FUNC_VSNPRINTF.
67500         (gl_FUNC_VSNPRINTF): Invoke it.
67501         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
67502         * lib/stdio_.h (vsnprintf): Define as a replacement if
67503         REPLACE_VSNPRINTF is set.
67504         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
67505
67506 2007-03-06  Bruno Haible  <bruno@clisp.org>
67507
67508         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
67509         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
67510
67511 2007-03-06  Bruno Haible  <bruno@clisp.org>
67512
67513         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
67514         (asinl): Declare also if HAVE_DECL_ASINL is set.
67515         (atanl): Declare also if HAVE_DECL_ATANL is set.
67516         (ceill): Declare also if HAVE_DECL_CEILL is set.
67517         (cosl): Declare also if HAVE_DECL_COSL is set.
67518         (expl): Declare also if HAVE_DECL_EXPL is set.
67519         (floorl): Declare also if HAVE_DECL_FLOORL is set.
67520         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
67521         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
67522         (logl): Declare also if HAVE_DECL_LOGL is set.
67523         (sinl): Declare also if HAVE_DECL_SINL is set.
67524         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
67525         (tanl): Declare also if HAVE_DECL_TANL is set.
67526         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
67527         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
67528         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
67529         declaration of frexpl, ldexpl.
67530         * modules/printf-frexpl (Depends-on): Add math.
67531         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
67532
67533 2007-03-05  Bruno Haible  <bruno@clisp.org>
67534
67535         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
67536         frexpl and ldexpl are declared.
67537         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
67538
67539 2007-03-05  Bruno Haible  <bruno@clisp.org>
67540
67541         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
67542         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
67543
67544 2007-03-05  Bruno Haible  <bruno@clisp.org>
67545
67546         * lib/stdio_.h: Include <stddef.h>.
67547
67548 2007-03-05  Bruno Haible  <bruno@clisp.org>
67549
67550         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
67551
67552 2007-03-05  Bruno Haible  <bruno@clisp.org>
67553
67554         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
67555         NetBSD 4, from Ralf Wildenhues.
67556
67557 2007-03-04  Bruno Haible  <bruno@clisp.org>
67558
67559         * lib/vasprintf.h: Update #if logic for the case when the functions
67560         exist but are overridden.
67561
67562 2007-03-04  Bruno Haible  <bruno@clisp.org>
67563
67564         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
67565         implementations: glibc-2.4 and MacOS X 10.3.
67566         * tests/test-vasnprintf-posix.c (test_function): Test also the case
67567         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
67568         * tests/test-vasprintf-posix.c (test_function): Likewise.
67569
67570 2007-03-04  Bruno Haible  <bruno@clisp.org>
67571
67572         * modules/vasprintf-posix-tests: New file.
67573         * tests/test-vasprintf-posix.c: New file.
67574
67575         * modules/vasprintf-posix: New file.
67576         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
67577         defined.
67578         * m4/vasprintf-posix.m4: New file.
67579         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
67580         gl_FUNC_VASPRINTF.
67581         (gl_FUNC_VASPRINTF): Invoke it.
67582         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
67583         here.
67584         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
67585
67586 2007-03-04  Bruno Haible  <bruno@clisp.org>
67587
67588         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
67589         REPLACE_GETTIMEOFDAY.
67590         * modules/sys_time (Makefile.am): Likewise.
67591         * m4/sys_time_h.m4: Likewise.
67592         * m4/gettimeofday.m4: Likewise.
67593
67594 2007-03-04  Bruno Haible  <bruno@clisp.org>
67595
67596         * modules/vasnprintf-posix-tests: New file.
67597         * tests/test-vasnprintf-posix.c: New file.
67598
67599         * modules/vasnprintf-posix: New file.
67600         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
67601         printf-frexpl.h.
67602         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
67603         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
67604         REPLACE_VASNPRINTF is defined.
67605         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
67606         gl_FUNC_VASNPRINTF.
67607         (gl_FUNC_VASNPRINTF): Invoke it.
67608         * m4/vasnprintf-posix.m4: New file.
67609         * m4/printf.m4: New file.
67610
67611 2007-03-04  Bruno Haible  <bruno@clisp.org>
67612
67613         Compile progreloc.c only if --enable-relocatable is specified.
67614         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
67615         if --enable-relocatable was specified.
67616         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
67617         lib_SOURCES.
67618
67619 2007-03-04  Jim Meyering  <jim@meyering.net>
67620
67621         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
67622         Use it consistently, rather than enumerating errno constants.
67623
67624 2007-03-04  Bruno Haible  <bruno@clisp.org>
67625
67626         * modules/xvasprintf-tests: New file.
67627         * tests/test-xvasprintf.c: New file.
67628
67629         * modules/vasprintf-tests: New file.
67630         * tests/test-vasprintf.c: New file.
67631
67632         * modules/vasnprintf-tests: New file.
67633         * tests/test-vasnprintf.c: New file.
67634
67635         * modules/vsnprintf-tests: New file.
67636         * tests/test-vsnprintf.c: New file.
67637
67638         * modules/snprintf-tests: New file.
67639         * tests/test-snprintf.c: New file.
67640
67641 2007-03-04  Bruno Haible  <bruno@clisp.org>
67642
67643         Compile relocatable.c only if --enable-relocatable is specified.
67644         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
67645         gl_RELOCATABLE_LIBRARY.
67646         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
67647         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
67648         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
67649         gl_RELOCATABLE_LIBRARY.
67650         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
67651         (Makefile.am): Remove lib_SOURCES.
67652         * modules/relocatable-lib-lgpl (configure.ac): Invoke
67653         gl_RELOCATABLE_LIBRARY.
67654         (Makefile.am): Remove lib_SOURCES.
67655         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
67656         always.
67657         * modules/relocatable-prog-wrapper (configure.ac): Invoke
67658         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
67659
67660 2007-03-04  Bruno Haible  <bruno@clisp.org>
67661
67662         * modules/argmatch-tests: New file.
67663         * tests/test-argmatch.c: New file.
67664
67665         * tests/test-allocsa.c (main): Halve the number of loop runs.
67666
67667         * modules/alloca-opt-tests: New file.
67668         * tests/test-alloca-opt.c: New file.
67669
67670 2007-03-04  Jim Meyering  <jim@meyering.net>
67671
67672         Work around difference between Linux ACLs and Solaris 10 ZFS.
67673         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
67674         for EINVAL.
67675
67676 2007-03-03  Bruno Haible  <bruno@clisp.org>
67677
67678         * modules/relocatable-prog (Depends-on): Add back progreloc's
67679         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
67680
67681 2007-03-03  Bruno Haible  <bruno@clisp.org>
67682
67683         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
67684         * modules/relocatable-lib: New file.
67685
67686 2007-03-03  Bruno Haible  <bruno@clisp.org>
67687
67688         * modules/relocatable-prog: Renamed from modules/relocatable.
67689         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
67690
67691 2007-03-03  Bruno Haible  <bruno@clisp.org>
67692
67693         * modules/relocatable-script (Files): Add doc/relocatable.texi,
67694         m4/relocatable-lib.m4.
67695         (Depends-on): Remove 'relocatable'.
67696         (configure.ac): Add gl_RELOCATABLE_NOP.
67697
67698 2007-03-03  Bruno Haible  <bruno@clisp.org>
67699
67700         * modules/relocatable-prog-wrapper: New file.
67701         * modules/relocatable (Depends-on): Add it. Remove all other
67702         dependencies except progname.
67703         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
67704
67705         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
67706         (gl_FUNC_STRERROR): Nop.
67707         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
67708
67709         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
67710         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
67711
67712         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
67713         (gl_FUNC_READLINK): Update.
67714
67715         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
67716
67717 2007-03-03  Bruno Haible  <bruno@clisp.org>
67718
67719         * lib/xreadlink.c: Include <unistd.h> unconditionally.
67720         * modules/xreadlink (Depends-on): Add unistd.
67721         * modules/xreadlink-with-size (Depends-on): Likewise.
67722
67723 2007-03-03  Bruno Haible  <bruno@clisp.org>
67724
67725         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
67726         extracted from gt_FUNC_SETENV.
67727         (gt_FUNC_SETENV): Remove macro.
67728         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
67729         remove gt_FUNC_SETENV.
67730
67731 2007-03-03  Bruno Haible  <bruno@clisp.org>
67732
67733         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
67734         ENABLE_RELOCATABLE here.
67735         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
67736
67737 2007-03-03  Bruno Haible  <bruno@clisp.org>
67738
67739         * modules/rbtreehash-list-tests (Depends-on): Add progname.
67740         * tests/test-rbtreehash_list.c: Include progname.h.
67741         (main): Call set_program_name.
67742
67743         * modules/rbtree-oset-tests (Depends-on): Add progname.
67744         * tests/test-rbtree_oset.c: Include progname.h.
67745         (main): Call set_program_name.
67746
67747         * modules/rbtree-list-tests (Depends-on): Add progname.
67748         * tests/test-rbtree_list.c: Include progname.h.
67749         (main): Call set_program_name.
67750
67751         * modules/linked-list-tests (Depends-on): Add progname.
67752         * tests/test-linked_list.c: Include progname.h.
67753         (main): Call set_program_name.
67754
67755 2007-03-03  Bruno Haible  <bruno@clisp.org>
67756
67757         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
67758         All uses of __restrict changed to _Restrict_.
67759         * lib/glob_.h (__restrict): Remove macro.
67760
67761 2007-03-02  Bruno Haible  <bruno@clisp.org>
67762
67763         * modules/gettext (configure.ac): Require gettext infrastructure
67764         from version 0.16.1.
67765
67766 2007-03-02  Bruno Haible  <bruno@clisp.org>
67767
67768         * modules/linkedhash-list-tests (Depends-on): Add progname.
67769         * tests/test-linkedhash_list.c: Include progname.h.
67770         (main): Call set_program_name.
67771
67772         * modules/carray-list-tests (Depends-on): Add progname.
67773         * tests/test-carray_list.c: Include progname.h.
67774         (main): Call set_program_name.
67775
67776         * modules/avltreehash-list-tests (Depends-on): Add progname.
67777         * tests/test-avltreehash_list.c: Include progname.h.
67778         (main): Call set_program_name.
67779
67780         * modules/avltree-oset-tests (Depends-on): Add progname.
67781         * tests/test-avltree_oset.c: Include progname.h.
67782         (main): Call set_program_name.
67783
67784         * modules/avltree-list-tests (Depends-on): Add progname.
67785         * tests/test-avltree_list.c: Include progname.h.
67786         (main): Call set_program_name.
67787
67788         * modules/array-oset-tests (Depends-on): Add progname.
67789         * tests/test-array_oset.c: Include progname.h.
67790         (main): Call set_program_name.
67791
67792         * modules/array-list-tests (Depends-on): Add progname.
67793         * tests/test-array_list.c: Include progname.h.
67794         (main): Call set_program_name.
67795
67796         * modules/argp-tests (Depends-on): Add progname.
67797         * tests/test-argp.c: Include argp.h first. Include progname.h.
67798         (main): Call set_program_name.
67799
67800 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
67801
67802         * doc/gnulib-tool.texi (Initial import): Reword description of
67803         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
67804         limited effect even if defined after the first system include.
67805
67806 2007-03-01  Bruno Haible  <bruno@clisp.org>
67807
67808         * build-aux/config.libpath: Update to libtool-1.5.22.
67809         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
67810
67811 2007-03-01  Bruno Haible  <bruno@clisp.org>
67812
67813         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
67814         foo_CFLAGS.
67815         Reported by Ralf Wildenhues.
67816
67817 2007-03-01  Bruno Haible  <bruno@clisp.org>
67818
67819         * build-aux/install-reloc: Remove object files left over by some
67820         compilers.
67821         Reported by Ralf Wildenhues.
67822
67823 2007-03-01  Bruno Haible  <bruno@clisp.org>
67824
67825         * build-aux/install-reloc: Break long lines.
67826
67827 2007-03-01  Bruno Haible  <bruno@clisp.org>
67828
67829         * doc/relocatable.texi: Document that it may not work on OpenBSD.
67830         Reported by Ralf Wildenhues.
67831
67832 2007-03-01  Bruno Haible  <bruno@clisp.org>
67833
67834         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
67835         include ordering constraints.
67836
67837 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67838
67839         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
67840         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
67841         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
67842         as another example.
67843         * lib/time_.h: Fix misspelling.
67844         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
67845         Require gl_HEADER_TIME_H_DEFAULTS.
67846         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
67847         * m4/time_r.m4 (gl_TIME_R): Likewise.
67848         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
67849
67850 2007-03-01  Bruno Haible  <bruno@clisp.org>
67851
67852         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
67853         * m4/utimens.m4 (gl_UTIMENS): Likewise.
67854
67855 2007-03-01  Jim Meyering  <jim@meyering.net>
67856
67857         * modules/xreadlink (Maintainer): Add my name.
67858         * modules/xreadlink-with-size (Depends-on): Alphabetize.
67859
67860 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
67861             Bruno Haible  <bruno@clisp.org>
67862
67863         * build-aux/install-reloc: Compile also c-ctype.c.
67864         * build-aux/relocatable.sh.in: New file.
67865         * doc/relocatable.texi: New file.
67866         * doc/relocatable-maint.texi: New file.
67867         * doc/gnulib.texi: Include relocatable-maint.texi.
67868         * lib/progreloc.c: Include unistd.h unconditionally.
67869         * lib/relocwrapper.c: Include unistd.h unconditionally.
67870         Include c-ctype.h.
67871         (add_dotbin): Use c_tolower.
67872         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
67873         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
67874         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
67875         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
67876         to m4/relocatable-lib.m4.
67877         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
67878         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
67879         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
67880         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
67881         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
67882         * modules/relocatable: New file.
67883         * modules/relocatable-lib: New file.
67884         * modules/relocatable-script: New file.
67885
67886 2007-02-28  Bruno Haible  <bruno@clisp.org>
67887
67888         Import --enable-relocatable infrastructure.
67889         * build-aux/config.libpath: New file, from GNU gettext.
67890         * build-aux/install-reloc: New file, from GNU gettext.
67891         * build-aux/reloc-ldflags: New file, from GNU gettext.
67892         * lib/relocatable.h: New file, from GNU gettext.
67893         * lib/relocatable.c: New file, from GNU gettext.
67894         * lib/relocwrapper.c: New file, from GNU gettext.
67895         * m4/relocatable.m4: New file, from GNU gettext.
67896
67897 2007-02-28  Bruno Haible  <bruno@clisp.org>
67898
67899         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
67900
67901         * modules/xreadlink: New file, from GNU gettext with modifications.
67902         * lib/xreadlink.c: New file, from GNU gettext.
67903         * lib/xreadlink.h: Add comments.
67904         (xreadlink): New declaration.
67905
67906         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
67907         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
67908         lib/xreadlink-with-size.c.
67909         (configure.ac): Remove gl_XREADLINK invocation.
67910         (Makefile.am): Augment lib_SOURCES.
67911         * m4/xreadlink.m4: Remove file.
67912         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
67913         (xreadlink_with_size): Renamed from xreadink.
67914         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
67915         * modules/canonicalize (Depends-on): Replace xreadlink with
67916         xreadlink-with-size.
67917         * lib/canonicalize.c (canonicalize_filename_mode): Update.
67918
67919 2007-02-25  Jim Meyering  <jim@meyering.net>
67920
67921         * build-aux/announce-gen: When complaining about excess arguments,
67922         list them.
67923
67924 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
67925
67926         * README: Document signed integer overflow situation more
67927         accurately.
67928
67929 2007-02-25  Bruno Haible  <bruno@clisp.org>
67930
67931         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
67932         'a' or 'A' conversion.
67933
67934 2007-02-25  Bruno Haible  <bruno@clisp.org>
67935
67936         * modules/filename: Renamed from modules/pathname.
67937         (Files): Replace lib/pathname.h with lib/filename.h. Replace
67938         lib/concatpath.c with lib/concat-filename.c.
67939         (Makefile.am): Update.
67940         (Include): Replace pathname.h with filename.h.
67941         * lib/filename.h: Renamed from lib/pathname.h.
67942         (concatenated_filename): Renamed from concatenated_pathname.
67943         * lib/concat-filename.c: Renamed from lib/concatpath.c.
67944         (concatenated_filename): Renamed from concatenated_pathname.
67945         * lib/findprog.c: Include filename.h instead of pathname.h.
67946         (find_in_path): Update.
67947         * lib/javacomp.c: Include filename.h instead of pathname.h.
67948         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
67949         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
67950         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
67951         is_oldgcj_14_13_usable, is_javac_usable): Update.
67952         * lib/javaexec.c: Include filename.h instead of pathname.h.
67953         (execute_java_class): Update.
67954         * modules/findprog: Update.
67955         * modules/javacomp: Update.
67956         * modules/javaexec: Update.
67957         * MODULES.html.sh (File system functions): Add 'filename', remove
67958         'pathname'.
67959
67960 2007-02-25  Bruno Haible  <bruno@clisp.org>
67961
67962         * modules/printf-frexpl-tests: New file.
67963         * tests/test-printf-frexpl.c: New file.
67964
67965         * modules/printf-frexpl: New file.
67966         * lib/printf-frexpl.h: New file.
67967         * lib/printf-frexpl.c: New file.
67968         * m4/printf-frexpl.m4: New file.
67969
67970 2007-02-25  Bruno Haible  <bruno@clisp.org>
67971
67972         * modules/printf-frexp-tests: New file.
67973         * tests/test-printf-frexp.c: New file.
67974
67975         * modules/printf-frexp: New file.
67976         * lib/printf-frexp.h: New file.
67977         * lib/printf-frexp.c: New file.
67978         * m4/printf-frexp.m4: New file.
67979
67980 2007-02-25  Bruno Haible  <bruno@clisp.org>
67981
67982         Assume automake >= 1.10 for the tests.
67983         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
67984         * modules/arctwo-tests: Likewise.
67985         * modules/argp-tests: Likewise.
67986         * modules/avltree-list-tests: Likewise.
67987         * modules/avltree-oset-tests: Likewise.
67988         * modules/avltreehash-list-tests: Likewise.
67989         * modules/carray-list-tests: Likewise.
67990         * modules/crc-tests: Likewise.
67991         * modules/des-tests: Likewise.
67992         * modules/gc-arcfour-tests: Likewise.
67993         * modules/gc-arctwo-tests: Likewise.
67994         * modules/gc-des-tests: Likewise.
67995         * modules/gc-hmac-md5-tests: Likewise.
67996         * modules/gc-hmac-sha1-tests: Likewise.
67997         * modules/gc-md2-tests: Likewise.
67998         * modules/gc-md4-tests: Likewise.
67999         * modules/gc-md5-tests: Likewise.
68000         * modules/gc-pbkdf2-sha1-tests: Likewise.
68001         * modules/gc-rijndael-tests: Likewise.
68002         * modules/gc-sha1-tests: Likewise.
68003         * modules/gc-tests: Likewise.
68004         * modules/getaddrinfo-tests: Likewise.
68005         * modules/hmac-md5-tests: Likewise.
68006         * modules/hmac-sha1-tests: Likewise.
68007         * modules/linked-list-tests: Likewise.
68008         * modules/linkedhash-list-tests: Likewise.
68009         * modules/lock-tests: Likewise.
68010         * modules/md2-tests: Likewise.
68011         * modules/md4-tests: Likewise.
68012         * modules/md5-tests: Likewise.
68013         * modules/rbtree-list-tests: Likewise.
68014         * modules/rbtree-oset-tests: Likewise.
68015         * modules/rbtreehash-list-tests: Likewise.
68016         * modules/read-file-tests: Likewise.
68017         * modules/rijndael-tests: Likewise.
68018         * modules/stdint-tests: Likewise.
68019         * modules/tls-tests: Likewise.
68020
68021 2007-02-24  Bruno Haible  <bruno@clisp.org>
68022
68023         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
68024         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
68025         function; instead check whether isnan with a double argument links.
68026         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
68027         function; instead check whether isnan with a 'long double' argument
68028         links.
68029         Reported by Eric Blake <ebb9@byu.net>.
68030
68031 2007-02-24  Bruno Haible  <bruno@clisp.org>
68032
68033         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
68034         defined.
68035         * lib/isnanl.c: Remove all code. Just include isnan.c.
68036         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
68037
68038 2007-02-25  Jim Meyering  <jim@meyering.net>
68039
68040         Avoid conflicting types for 'unsetenv' on FreeBSD.
68041         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
68042         conflicting with FreeBSD's (5.0 and 6.1) function declaration
68043         in stdlib.h.
68044
68045 2007-02-24  Bruno Haible  <bruno@clisp.org>
68046
68047         * modules/isnanl-nolibm-tests: New file.
68048         * tests/test-isnanl.c: New file.
68049
68050         * modules/isnanl-nolibm: New file.
68051         * lib/isnanl.h: New file.
68052         * lib/isnanl.c: New file.
68053         * m4/isnanl.m4: New file.
68054
68055 2007-02-24  Bruno Haible  <bruno@clisp.org>
68056
68057         * modules/isnan-nolibm-tests: New file.
68058         * tests/test-isnan.c: New file.
68059
68060         * modules/isnan-nolibm: New file.
68061         * lib/isnan.h: New file.
68062         * lib/isnan.c: New file.
68063         * m4/isnan.m4: New file.
68064
68065 2007-02-24  Bruno Haible  <bruno@clisp.org>
68066
68067         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
68068         assume that an exponent fits in 20 bits.
68069
68070 2007-02-24  Jim Meyering  <jim@meyering.net>
68071
68072         * m4/regex.m4: Update the description of the configure-time option,
68073         --without-included-regex, to state accurately what the defaults are,
68074         and perhaps to give people an idea why using this option is risky.
68075
68076 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
68077
68078         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
68079         loops on small arguments.  This attempts to avoid the problem
68080         Bruno Haible reported for AIX 4.3.2 in
68081         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
68082
68083 2007-02-23  Bruno Haible  <bruno@clisp.org>
68084
68085         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
68086         Needed for help2man.
68087
68088 2007-02-23  Karl Berry  <karl@gnu.org>
68089
68090         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
68091         exists, foo.h should be cvs-ignored, not committed.
68092
68093 2007-02-23  Eric Blake  <ebb9@byu.net>
68094
68095         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
68096         * lib/stat-time.h (includes): Likewise.
68097         * lib/utimecmp.c (includes): Likewise.
68098         * lib/utimens.h (includes): Likewise.
68099         * lib/getdate.y (includes): Also include "timespec.h" for use
68100         internal to the module.
68101         * modules/utimens (Depends-on): Revert yesterday's patch.
68102         * modules/nanosleep (Depends-on): Add missing dependency.
68103
68104 2007-02-22  Bruno Haible  <bruno@clisp.org>
68105
68106         * lib/glob.c: Don't include getlogin_r.h.
68107
68108 2007-02-22  Jim Meyering  <jim@meyering.net>
68109
68110         * modules/utimens (Depends-on): Add timespec, required for
68111         utimens.h's inclusion of timespec.h.
68112
68113 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
68114
68115         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
68116         long unreadable paths in GNU/Linux.  Problem reported by Andreas
68117         Schwab in
68118         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
68119         I'll try to think of a better way to fix the Solaris problem.
68120
68121         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
68122         like glibc; on Solaris 10, it fails with errno == EINVAL.
68123         POSIX says the behavior is unspecified if the first argument is NULL,
68124         so play it safe and never pass NULL to the system getcwd.
68125
68126 2007-02-21  Jim Meyering  <jim@meyering.net>
68127
68128         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
68129         of gettimeofday.  It would conflict with the one now always
68130         provided via sys_time_.h.  Reported by Matthew Woehlke, as
68131         an IRIX 6.5 build failure.
68132
68133 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
68134
68135         Minor fixups to port to Solaris 10 with Sun C 5.8.
68136         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
68137         * modules/getcwd (Depends-on): Add dirfd.
68138         * lib/putenv.c (putenv): #undef it.
68139         (rpl_putenv): New decl.
68140         (malloc, free): Include <stdlib.h> rather than prototyping separately.
68141
68142 2007-02-20  Bruno Haible  <bruno@clisp.org>
68143
68144         * modules/stdio-tests: New file.
68145         * tests/test-stdio.c: New file.
68146
68147         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
68148         (Depends-on): Add stdio.
68149         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
68150         (Include): Use <stdio.h> instead of vsnprintf.h.
68151         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
68152         HAVE_DECL_VSNPRINTF.
68153         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
68154
68155         * modules/snprintf (Files): Remove lib/snprintf.h.
68156         (Depends-on): Add stdio.
68157         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
68158         (Include): Use <stdio.h> instead of snprintf.h.
68159         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
68160         HAVE_DECL_SNPRINTF.
68161         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
68162         * lib/getaddrinfo.c: Likewise.
68163
68164         * modules/stdio: New file.
68165         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
68166         * lib/snprintf.h: Remove file.
68167         * lib/vsnprintf.h: Remove file.
68168         * lib/.cppi-disable: Remove snprintf.h.
68169         * m4/stdio_h.m4: New file.
68170         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
68171
68172 2007-02-20  Jim Meyering  <jim@meyering.net>
68173
68174         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
68175         used by e.g., mingw.  From Bruno Haible.
68176
68177 2007-02-19  Bruno Haible  <bruno@clisp.org>
68178
68179         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
68180         warnings.
68181         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68182
68183 2007-02-19  Bruno Haible  <bruno@clisp.org>
68184
68185         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
68186         from mingw users.
68187
68188 2007-02-19  Bruno Haible  <bruno@clisp.org>
68189
68190         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
68191         warnings.
68192         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
68193
68194 2007-02-19  Jim Meyering  <jim@meyering.net>
68195
68196         Don't use FD after a successful "fdopendir (fd)".
68197         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
68198         Reset it by calling dirfd on the just-obtained DIR*.
68199
68200         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
68201         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
68202
68203 2007-02-18  Bruno Haible  <bruno@clisp.org>
68204
68205         * lib/readlink.c: Include <unistd.h>.
68206         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
68207         HAVE_READLINK.
68208         * modules/readlink (Depends-on): Add unistd.
68209         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68210         (Include): Add <unistd.h>.
68211
68212         * lib/getlogin_r.h: Remove file.
68213         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
68214         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
68215         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
68216         HAVE_DECL_GETLOGIN_R.
68217         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
68218         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68219         (Include): Use <unistd.h> instead of getlogin_r.h.
68220
68221         * lib/getcwd.h: Remove file.
68222         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
68223         * lib/xgetcwd.c: Likewise.
68224         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
68225         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
68226         * modules/getcwd (Files): Remove lib/getcwd.h.
68227         (Depends-on): Add unistd.
68228         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68229         (Include): Use <unistd.h> instad of getcwd.h.
68230
68231         * lib/ftruncate.c: Include <unistd.h> first.
68232         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
68233         Set HAVE_FTRUNCATE.
68234         * modules/ftruncate (Depends-on): Add unistd.
68235         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68236
68237         * lib/fchdir.c: Include <unistd.h> first.
68238         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
68239         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
68240         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
68241         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68242         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
68243
68244         * lib/dup2.c: Include <unistd.h> first.
68245         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
68246         HAVE_DUP2.
68247         * modules/dup2 (Depends-on): Add unistd.
68248         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68249
68250         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
68251         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
68252         REPLACE_CHOWN. Don't define chown as a macro here.
68253         * modules/chown (Depends-on): Add unistd.
68254         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68255
68256         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
68257         Add definition for GL_LINK_WARNING.
68258         (chown, dup2): New declarations.
68259         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
68260         link warning.
68261         (ftruncate): New declaration.
68262         (getcwd): New declaration, taken from old getcwd.h.
68263         (getlogin_r): New declaration, taken from old getlogin_r.h.
68264         (readlink): New declaration.
68265         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
68266         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
68267         (gl_PREREQ_UNISTD): Remove macro.
68268         (gl_UNISTD_MODULE_INDICATOR): New macro.
68269         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
68270         many new variables. Don't set UNISTD_H.
68271         * modules/unistd (Description): Change.
68272         (Depends-on): Add link-warning.
68273         (configure.ac): Update.
68274         (Makefile.am): Create unistd.h always. Substitute many new variables
68275         into it.
68276
68277 2007-02-18  Bruno Haible  <bruno@clisp.org>
68278
68279         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
68280         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
68281         HAVE_GETSUBOPT.
68282         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
68283         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
68284         * lib/getsubopt.h: Remove file.
68285         * modules/getsubopt (Files): Remove lib/getsubopt.h.
68286         (Depends-on): Add stdlib.
68287         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68288         (Includes): Use <stdlib.h> instead of getsubopt.h.
68289         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
68290         Set HAVE_GETSUBOPT.
68291         * lib/getsubopt.c: Don't include getsubopt.h.
68292
68293 2007-02-18  Bruno Haible  <bruno@clisp.org>
68294
68295         * modules/fchdir (Depends-on): Add dup2.
68296
68297 2007-02-18  Bruno Haible  <bruno@clisp.org>
68298
68299         * lib/stdlib_.h: Handle glibc's special invocation convention
68300         specially.
68301
68302 2007-02-18  Bruno Haible  <bruno@clisp.org>
68303
68304         * modules/stdlib-tests: New file.
68305         * tests/test-stdlib.c: New file.
68306
68307         * modules/mkstemp (Files): Remove lib/mkstemp.h.
68308         (Depends-on): Add stdlib.
68309         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68310         (Includes): Use <stdlib.h> instead of mkstemp.h.
68311         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
68312         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
68313         * lib/mkstemp.c: Don't include mkstemp.h.
68314         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
68315         * lib/stdlib--.h: Don't include mkstemp.h.
68316
68317         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
68318         (Depends-on): Add stdlib.
68319         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68320         (Includes): Use <stdlib.h> instead of mkdtemp.h.
68321         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
68322         HAVE_MKDTEMP.
68323         * lib/mkdtemp.c: Don't include mkdtemp.h.
68324         * lib/clean-temp.c: Don't include mkdtemp.h.
68325
68326         * modules/exit (Files): Remove lib/exit.h.
68327         (Depends-on): Add stdlib.
68328         (Makefile.am): Remove lib_SOURCES.
68329         (Include): Use <stdlib.h> instead of exit.h.
68330         * lib/argmatch.c: Don't include exit.h.
68331         * lib/execute.c: Likewise.
68332         * lib/pagealign_alloc.c: Likewise.
68333         * lib/pipe.c: Likewise.
68334         * lib/wait-process.c: Likewise.
68335         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
68336         * lib/exitfail.c: Likewise.
68337         * lib/savewd.c: Likewise.
68338         * lib/xsetenv.c: Likewise.
68339
68340         * modules/stdlib: New file.
68341         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
68342         and extra comments about mkstemp().
68343         * lib/exit.h: Remove file.
68344         * lib/mkdtemp.h: Remove file.
68345         * lib/mkstemp.h: Remove file.
68346         * m4/stdlib_h.m4: New file.
68347         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
68348
68349 2007-02-18  Bruno Haible  <bruno@clisp.org>
68350
68351         * modules/math-tests: New file.
68352         * tests/test-math.c: New file.
68353
68354         * modules/math: New file.
68355         * modules/mathl (Files): Remove lib/mathl.h.
68356         (Depends-on): Add math.
68357         (Makefile.am): Don't mention mathl.h.
68358         (Include): Use <math.h> instead of mathl.h.
68359         * lib/math_.h: New file.
68360         * lib/mathl.h: Remove file.
68361         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
68362         mathl.h.
68363         * lib/asinl.c: Likewise.
68364         * lib/atanl.c: Likewise.
68365         * lib/ceill.c: Likewise.
68366         * lib/cosl.c: Likewise.
68367         * lib/expl.c: Likewise.
68368         * lib/floorl.c: Likewise.
68369         * lib/frexpl.c: Likewise.
68370         * lib/ldexpl.c: Likewise.
68371         * lib/logl.c: Likewise.
68372         * lib/sincosl.c: Likewise.
68373         * lib/sinl.c: Likewise.
68374         * lib/sqrtl.c: Likewise.
68375         * lib/tanl.c: Likewise.
68376         * lib/trigl.c: Likewise.
68377         * m4/math_h.m4: New file.
68378         * MODULES.html.sh (Mathematics): Add math.
68379
68380 2007-02-17  Bruno Haible  <bruno@clisp.org>
68381
68382         * modules/wctype-tests: New file.
68383         * tests/test-wctype.c: New file.
68384
68385         * modules/wchar-tests: New file.
68386         * tests/test-wchar.c: New file.
68387
68388         * modules/unistd-tests: New file.
68389         * tests/test-unistd.c: New file.
68390
68391         * modules/time-tests: New file.
68392         * tests/test-time.c: New file.
68393
68394         * modules/sysexits-tests: New file.
68395         * tests/test-sysexits.c: New file.
68396
68397         * modules/sys_time-tests: New file.
68398         * tests/test-sys_time.c: New file.
68399
68400         * modules/sys_stat-tests: New file.
68401         * tests/test-sys_stat.c: New file.
68402
68403         * modules/sys_socket-tests: New file.
68404         * tests/test-sys_socket.c: New file.
68405
68406         * modules/sys_select-tests: New file.
68407         * tests/test-sys_select.c: New file.
68408
68409         * modules/string-tests: New file.
68410         * tests/test-string.c: New file.
68411
68412         * modules/stdbool-tests: New file.
68413         * tests/test-stdbool.c: New file.
68414
68415         * modules/netinet_in-tests: New file.
68416         * tests/test-netinet_in.c: New file.
68417
68418         * modules/inttypes-tests: New file.
68419         * tests/test-inttypes.c: New file.
68420
68421         * modules/fcntl-tests: New file.
68422         * tests/test-fcntl.c: New file.
68423
68424         * modules/byteswap-tests: New file.
68425         * tests/test-byteswap.c: New file.
68426
68427         * modules/arpa_inet-tests: New file.
68428         * tests/test-arpa_inet.c: New file.
68429
68430 2007-02-17  Bruno Haible  <bruno@clisp.org>
68431
68432         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
68433         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
68434         if the corresponding module is not enabled. Emit link warnings if
68435         the function is used nevertheless.
68436         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
68437         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
68438         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
68439         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
68440         * modules/inttypes (Depends-on): Add link-warning.
68441         (Makefile.am): Copy the contents of build-aux/link-warning.h into
68442         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
68443         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
68444         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
68445         * modules/imaxdiv (configure.ac): Likewise.
68446         * modules/strtoimax (configure.ac): Likewise.
68447         * modules/strtoumax (configure.ac): Likewise.
68448
68449 2007-02-17  Bruno Haible  <bruno@clisp.org>
68450
68451         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
68452         gl_STRING_MODULE_INDICATOR_DEFAULTS.
68453         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
68454         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
68455
68456 2007-02-17  Bruno Haible  <bruno@clisp.org>
68457
68458         * modules/link-warning: New file.
68459         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
68460         * lib/string_.h (GL_LINK_WARNING): Remove definition.
68461         * modules/string (Depends-on): Add link-warning.
68462         (Makefile.am): Copy the contents of build-aux/link-warning.h into
68463         string.h.
68464         * MODULES.html.sh (Support for building libraries and executables): Add
68465         link-warning.
68466
68467 2007-02-17  Bruno Haible  <bruno@clisp.org>
68468
68469         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
68470         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
68471         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
68472         long lines.
68473
68474 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
68475             Bruno Haible  <bruno@clisp.org>
68476
68477         * modules/tmpfile: New file.
68478         * lib/tmpfile.c: New file.
68479         * m4/tmpfile.m4: New file.
68480         * MODULES.html.sh (func_all_modules): New section "Input/output".
68481
68482 2007-02-15  Bruno Haible  <bruno@clisp.org>
68483
68484         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
68485         (supports_delete_on_close): New function.
68486         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
68487
68488 2007-02-14  Bruno Haible  <bruno@clisp.org>
68489
68490         * modules/mbspcasecmp-tests: New file.
68491         * tests/test-mbspcasecmp.sh: New file.
68492         * tests/test-mbspcasecmp.c: New file.
68493
68494         New module mbspcasecmp.
68495         * modules/mbspcasecmp: New file.
68496         * lib/mbspcasecmp.c: New file.
68497         * lib/string_.h (strncasecmp): Change warning message.
68498         (mbspcasecmp): New declaration.
68499         * m4/mbspcasecmp.m4: New file.
68500         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68501         GNULIB_MBSPCASECMP.
68502         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
68503         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
68504
68505 2007-02-14  Bruno Haible  <bruno@clisp.org>
68506
68507         * modules/mbsncasecmp-tests: New file.
68508         * tests/test-mbsncasecmp.sh: New file.
68509         * tests/test-mbsncasecmp.c: New file.
68510
68511         New module mbsncasecmp.
68512         * modules/mbsncasecmp: New file.
68513         * lib/mbsncasecmp.c: New file.
68514         * lib/string_.h (mbsncasecmp): New declaration.
68515         * m4/mbsncasecmp.m4: New file.
68516         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68517         GNULIB_MBSNCASECMP.
68518         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
68519         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
68520
68521 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
68522
68523         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
68524         Verify that it doesn't overlap with our flags.
68525         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
68526         do not have the desired effect in multibyte locales; instead, use
68527         mbscasecmp.
68528         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
68529         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
68530         we don't require GNU fnmatch ourselves (if our users require it, they
68531         should do so explicitly).
68532
68533         Fix regex code so it doesn't rely on strcasecmp.
68534         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
68535         Otherwise, include gnulib's langinfo.h.
68536         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
68537         undesirable behavior in non-C locales.  Instead, rely on localecharset.
68538         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
68539         * modules/regex (FILES): Remove m4/codeset.m4.
68540         (Depends-on): Add localcharset.  Remove strcase.
68541
68542 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68543
68544         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
68545         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
68546
68547 2007-02-13  Bruno Haible  <bruno@clisp.org>
68548
68549         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
68550         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68551
68552 2007-02-12  Bruno Haible  <bruno@clisp.org>
68553
68554         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
68555         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
68556         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
68557         time warning rather than a link error.
68558
68559 2007-02-12  Bruno Haible  <bruno@clisp.org>
68560
68561         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
68562         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
68563         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68564
68565 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
68566
68567         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
68568         args, not 2.
68569
68570 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
68571
68572         New module 'time', so that apps can include <time.h> as per
68573         POSIX and GNU instead of separate include files like time_r.h
68574         and timegm.h.  This implementation tries out a simpler approach
68575         for replacing decls in standard include files (as compared to
68576         the string module), somewhat as an experiment.
68577
68578         * config/srclist.txt: Comment out mktime.c for now.
68579         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
68580         since it doesn't apply any more.  Use generic wording instead.
68581         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
68582         'time'.
68583         * lib/time_.h, m4/time_h.m4, modules/time: New files.
68584         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
68585         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
68586         Don't include <sys/types.h>; no longer needed since we assume C89.
68587         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
68588         * lib/strftime.c: Likewise.
68589         * lib/time_r.c: Likewise.
68590         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
68591         * lib/nanosleep.c: Include <time.h> first, to check interface.
68592         * lib/strptime.c: Likewise.
68593         * lib/time_r.c: Likewise.
68594         * lib/timegm.c: Likewise.
68595         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
68596         needed.
68597         * lib/timegm.c: Don't include timegm.h; no longer needed.
68598         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
68599         time.h now handles any problems in that area.
68600         (struct timespec, nanosleep): Remove; time.h now arranges for these.
68601         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
68602         that time.h defines struct timespec.
68603         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
68604         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
68605         handles that.
68606         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
68607         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
68608         needed.  Set REPLACE_LOCALTIME.
68609         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
68610         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
68611         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
68612         nanosleep; time_h.m4 now does that.  Don't require
68613         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
68614         module handles this now.
68615         * modules/getdate (Depends-on): Remove timespec.  Add time.
68616         * modules/nanosleep (Depends-on): Likewise.
68617         * modules/stat-time (Depends-on): Likewise.
68618         * modules/nanosleep (Include): Include time.h, not timespec.h.
68619         * modules/strptime (Files): Remove lib/strptime.h.
68620         (Depends-on): Add extensions, time.
68621         (Include): Include time.h, not strptime.h.
68622         * modules/time_r (Files): Remove lib/time_r.h.
68623         (Depends-on): Add time.
68624         (Include): Include time.h, not time_r.h.
68625         * modules/timegm: Likewise.
68626         * modules/timespec (Description): Now does timespec-related decls
68627         of our own, instead of struct timespec itself.
68628         (Depends-on): Add time; remove extensions.
68629         (Maintainer): Add self.
68630         * modules/utimecmp (Depends-on): Add time; remove timespec.
68631         * modules/utimens (Depends-on): Likewise.
68632         * modules/xnanosleep (Depends-on): Likewise.
68633
68634 2007-02-11  Bruno Haible  <bruno@clisp.org>
68635
68636         * lib/c-strstr.c: Include allocsa.h.
68637         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
68638         * lib/c-strcasestr.c: Include allocsa.h.
68639         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
68640         * lib/strcasestr.c: Include allocsa.h.
68641         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
68642         * lib/mbsstr.c: Include allocsa.h.
68643         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
68644         allocsa/freesa instead of malloc/free.
68645         * lib/mbscasestr.c: Include allocsa.h.
68646         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
68647         allocsa/freesa instead of malloc/free.
68648         * modules/c-strstr (Depends-on): Add allocsa.
68649         * modules/c-strcasestr (Depends-on): Likewise.
68650         * modules/strcasestr (Depends-on): Likewise.
68651         * modules/mbsstr (Depends-on): Likewise.
68652         * modules/mbscasestr (Depends-on): Likewise.
68653
68654 2007-02-11  Bruno Haible  <bruno@clisp.org>
68655
68656         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
68657
68658         * modules/mbsspn-tests: New file.
68659         * tests/test-mbsspn.sh: New file.
68660         * tests/test-mbsspn.c: New file.
68661
68662 2007-02-11  Bruno Haible  <bruno@clisp.org>
68663
68664         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
68665
68666         * modules/mbspbrk-tests: New file.
68667         * tests/test-mbspbrk.sh: New file.
68668         * tests/test-mbspbrk.c: New file.
68669
68670 2007-02-11  Bruno Haible  <bruno@clisp.org>
68671
68672         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
68673         unneeded cast.
68674
68675         * modules/mbscspn-tests: New file.
68676         * tests/test-mbscspn.sh: New file.
68677         * tests/test-mbscspn.c: New file.
68678
68679 2007-02-11  Bruno Haible  <bruno@clisp.org>
68680
68681         * modules/mbscasecmp-tests: New file.
68682         * tests/test-mbscasecmp.sh: New file.
68683         * tests/test-mbscasecmp.c: New file.
68684
68685 2007-02-11  Bruno Haible  <bruno@clisp.org>
68686
68687         Ensure O(n) worst-case complexity of mbscasestr.
68688         * lib/mbscasestr.c: Include stdbool.h.
68689         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
68690         functions.
68691         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
68692         the bookkeeping indicates that it's worth it.
68693         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
68694
68695         * modules/mbscasestr-tests: New file.
68696         * tests/test-mbscasestr1.c: New file.
68697         * tests/test-mbscasestr2.sh: New file.
68698         * tests/test-mbscasestr2.c: New file.
68699         * tests/test-mbscasestr3.sh: New file.
68700         * tests/test-mbscasestr3.c: New file.
68701         * tests/test-mbscasestr4.sh: New file.
68702         * tests/test-mbscasestr4.c: New file.
68703         * m4/locale-tr.m4: New file.
68704
68705 2007-02-11  Bruno Haible  <bruno@clisp.org>
68706
68707         Ensure O(n) worst-case complexity of mbsstr.
68708         * lib/mbsstr.c: Include stdbool.h.
68709         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
68710         functions.
68711         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
68712         bookkeeping indicates that it's worth it.
68713         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
68714
68715         * modules/mbsstr-tests: New file.
68716         * tests/test-mbsstr1.c: New file.
68717         * tests/test-mbsstr2.sh: New file.
68718         * tests/test-mbsstr2.c: New file.
68719         * tests/test-mbsstr3.sh: New file.
68720         * tests/test-mbsstr3.c: New file.
68721         * m4/locale-fr.m4: New file.
68722
68723 2007-02-11  Bruno Haible  <bruno@clisp.org>
68724
68725         * lib/mbsrchr.c (mbsrchr): Fix bug.
68726
68727         * modules/mbsrchr-tests: New file.
68728         * tests/test-mbsrchr.sh: New file.
68729         * tests/test-mbsrchr.c: New file.
68730
68731 2007-02-11  Bruno Haible  <bruno@clisp.org>
68732
68733         * lib/mbschr.c (mbschr): Fix bug.
68734
68735         * modules/mbschr-tests: New file.
68736         * tests/test-mbschr.sh: New file.
68737         * tests/test-mbschr.c: New file.
68738         * m4/locale-zh.m4: New file.
68739
68740 2007-02-11  Bruno Haible  <bruno@clisp.org>
68741
68742         Support for copying multibyte string iterators.
68743         * lib/mbiter.h: Include <string.h>.
68744         (mbiter_multi_copy): New function.
68745         (mbi_copy): New macro.
68746         * lib/mbuiter.h: Include <string.h>.
68747         (mbuiter_multi_copy): New function.
68748         (mbui_copy): New macro.
68749
68750 2007-02-11  Bruno Haible  <bruno@clisp.org>
68751
68752         New module mbslen.
68753         * modules/mbslen: New file.
68754         * lib/mbslen.c: New file.
68755         * lib/string_.h (mbslen): New declaration.
68756         * m4/mbslen.m4: New file.
68757         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68758         GNULIB_MBSLEN.
68759         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
68760         * MODULES.html.sh (Internationalization functions): Add mbslen.
68761
68762 2007-02-11  Bruno Haible  <bruno@clisp.org>
68763
68764         Ensure O(n) worst-case complexity of strcasestr substitute.
68765         * lib/strcasestr.c: Include stdbool.h.
68766         (knuth_morris_pratt): New function.
68767         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
68768         bookkeeping indicates that it's worth it.
68769         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
68770
68771         * modules/strcasestr-tests: New file.
68772         * tests/test-strcasestr.c: New file.
68773
68774 2007-02-11  Bruno Haible  <bruno@clisp.org>
68775
68776         Ensure O(n) worst-case complexity of c_strcasestr.
68777         * lib/c-strcasestr.c: Include stdbool.h, string.h.
68778         (knuth_morris_pratt): New function.
68779         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
68780         the bookkeeping indicates that it's worth it.
68781         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
68782
68783         * modules/c-strcasestr-tests: New file.
68784         * tests/test-c-strcasestr.c: New file.
68785
68786 2007-02-11  Bruno Haible  <bruno@clisp.org>
68787
68788         Ensure O(n) worst-case complexity of c_strstr.
68789         * lib/c-strstr.c: Include stdbool.h, string.h.
68790         (knuth_morris_pratt): New function.
68791         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
68792         bookkeeping indicates that it's worth it.
68793         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
68794
68795         * lib/c-strstr.c: Complete rewrite for maintainability.
68796
68797         * modules/c-strstr-tests: New file.
68798         * tests/test-c-strstr.c: New file.
68799
68800 2007-02-11  Bruno Haible  <bruno@clisp.org>
68801
68802         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
68803         5.2.1 and earlier, whereby \055 was treated just like the range
68804         delimiter '-'.
68805         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
68806
68807 2007-02-08  Bruno Haible  <bruno@clisp.org>
68808
68809         * modules/regex (Depends-on): Add stdbool.
68810         Reported by Dalibor Topic <robilad@kaffe.org>.
68811
68812 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
68813
68814         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
68815         Prefer returning from main to exiting from it.
68816         Remove unnecessary parens after sizeof.
68817
68818 2007-02-05  Bruno Haible  <bruno@clisp.org>
68819
68820         New module mbssep.
68821         * modules/mbssep: New file.
68822         * lib/mbssep.c: New file.
68823         * lib/string_.h (strsep): Add a conditional link warning.
68824         (mbssep): New declaration.
68825         * m4/mbssep.m4: New file.
68826         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68827         GNULIB_MBSSEP.
68828         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
68829         * MODULES.html.sh (Internationalization functions): Add mbssep.
68830
68831 2007-02-05  Bruno Haible  <bruno@clisp.org>
68832
68833         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
68834         Optimize search in case of 1 delimiter.
68835
68836 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
68837
68838         * lib/acl.h: Include sys/types.h before sys/acl.h.
68839
68840 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
68841
68842         Merge upstream fix for glibc bugzilla #3957:
68843
68844         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
68845
68846         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
68847         bit for RE_HAT_LISTS_NOT_NEWLINE.
68848         (build_charclass_op): Remove bogus comment.
68849
68850 2007-02-05  Simon Josefsson  <simon@josefsson.org>
68851
68852         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
68853
68854 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
68855
68856         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
68857         * lib/memmem.c [!defined _LIBC]: Include config.h.
68858
68859 2007-02-04  Bruno Haible  <bruno@clisp.org>
68860
68861         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
68862         warning message.
68863
68864 2007-02-04  Bruno Haible  <bruno@clisp.org>
68865
68866         New module mbstok_r.
68867         * modules/mbstok_r: New file.
68868         * lib/mbstok_r.c: New file.
68869         * lib/string_.h (strtok_r): Change argument names to match the
68870         comments. Add a conditional link warning.
68871         (mbstok_r): New declaration.
68872         * m4/mbstok_r.m4: New file.
68873         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68874         GNULIB_MBSTOK_R.
68875         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
68876         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
68877
68878 2007-02-04  Bruno Haible  <bruno@clisp.org>
68879
68880         New module mbsspn.
68881         * modules/mbsspn: New file.
68882         * lib/mbsspn.c: New file.
68883         * lib/string_.h (strspn): Add a conditional link warning.
68884         (mbsspn): New declaration.
68885         * m4/mbsspn.m4: New file.
68886         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68887         GNULIB_MBSSPN.
68888         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
68889         * MODULES.html.sh (Internationalization functions): Add mbsspn.
68890
68891 2007-02-04  Bruno Haible  <bruno@clisp.org>
68892
68893         New module mbspbrk.
68894         * modules/mbspbrk: New file.
68895         * lib/mbspbrk.c: New file.
68896         * lib/string_.h (strpbrk): Add a conditional link warning.
68897         (mbspbrk): New declaration.
68898         * m4/mbspbrk.m4: New file.
68899         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68900         GNULIB_MBSPBRK.
68901         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
68902         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
68903
68904 2007-02-04  Bruno Haible  <bruno@clisp.org>
68905
68906         New module mbscspn.
68907         * modules/mbscspn: New file.
68908         * lib/mbscspn.c: New file.
68909         * lib/string_.h (strcspn): Add a conditional link warning.
68910         (mbscspn): New declaration.
68911         * m4/mbscspn.m4: New file.
68912         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68913         GNULIB_MBSCSPN.
68914         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
68915         * MODULES.html.sh (Internationalization functions): Add mbscspn.
68916
68917 2007-02-04  Bruno Haible  <bruno@clisp.org>
68918
68919         New module mbscasestr, reduced goal of strcasestr.
68920         * modules/mbscasestr: New file.
68921         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
68922         (mbscasestr): Renamed from strcasestr.
68923         * lib/strcasestr.c: Don't include mbuiter.h.
68924         (strcasestr): Remove support for multibyte locales.
68925         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
68926         Change the conditional link warning.
68927         (mbscasestr): New declaration.
68928         * m4/mbscasestr.m4: New file.
68929         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
68930         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
68931         REPLACE_STRCASESTR.
68932         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
68933         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
68934         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
68935         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
68936         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
68937         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
68938         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
68939         (Depends-on): Remove mbuiter.
68940         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
68941
68942 2007-02-04  Bruno Haible  <bruno@clisp.org>
68943
68944         Simplify handling of strncasecmp.
68945         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
68946         the conditional link warning.
68947         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
68948         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
68949         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
68950         * modules/strcase (configure.ac): Don't invoke
68951         gl_STRING_MODULE_INDICATOR.
68952         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
68953
68954 2007-02-04  Bruno Haible  <bruno@clisp.org>
68955
68956         New module mbscasecmp, reduced goal of strcasecmp.
68957         * modules/mbscasecmp: New file.
68958         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
68959         (mbscasecmp): Renamed from strcasecmp.
68960         * lib/strcasecmp.c: Don't include mbuiter.h.
68961         (strcasecmp): Remove support for multibyte locales.
68962         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
68963         Change the conditional link warning.
68964         (mbscasecmp): New declaration.
68965         * m4/mbscasecmp.m4: New file.
68966         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
68967         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
68968         REPLACE_STRCASECMP.
68969         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
68970         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68971         GNULIB_MBSCASECMP.
68972         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
68973         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
68974         * modules/strcase (Files): Remove m4/mbrtowc.m4.
68975         (Depends-on): Remove mbuiter.
68976         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
68977
68978 2007-02-04  Bruno Haible  <bruno@clisp.org>
68979
68980         New module mbsstr. Remove module strstr.
68981         * modules/mbsstr: New file.
68982         * modules/strstr: Remove file.
68983         * lib/mbsstr.c: Renamed from lib/strstr.c.
68984         (mbsstr): Renamed from strstr.
68985         * lib/string_.h (strstr): Remove declaration. Change the conditional
68986         link warning.
68987         (mbsstr): New declaration.
68988         * m4/mbsstr.m4: New file.
68989         * m4/strstr.m4: Remove file.
68990         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
68991         REPLACE_STRSTR.
68992         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
68993         Don't initialize GNULIB_STRSTR.
68994         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
68995         substitute GNULIB_STRSTR and REPLACE_STRSTR.
68996         * MODULES.html.sh (Internationalization functions): Add mbsstr.
68997         (Support for systems lacking ANSI C 89): Remove strstr.
68998
68999 2007-02-04  Bruno Haible  <bruno@clisp.org>
69000
69001         New module mbsrchr.
69002         * modules/mbsrchr: New file.
69003         * lib/mbsrchr.c: New file.
69004         * lib/string_.h (strrchr): Add a conditional link warning.
69005         (mbsrchr): New declaration.
69006         * m4/mbsrchr.m4: New file.
69007         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69008         GNULIB_MBSRCHR.
69009         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
69010         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
69011
69012 2007-02-04  Bruno Haible  <bruno@clisp.org>
69013
69014         New module mbschr.
69015         * modules/mbschr: New file.
69016         * lib/mbschr.c: New file.
69017         * lib/string_.h (strchr): Add a conditional link warning.
69018         (mbschr): New declaration.
69019         * m4/mbschr.m4: New file.
69020         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69021         GNULIB_MBSCHR.
69022         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
69023         * MODULES.html.sh (Internationalization functions): Add mbschr.
69024
69025 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
69026
69027         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
69028
69029         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
69030
69031 2007-02-04  Bruno Haible  <bruno@clisp.org>
69032
69033         New module description section 'configure.ac-early'.
69034         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
69035         (func_get_autoconf_early_snippet): New function.
69036         (func_import, func_create_testdir): Use it. Remove special cases for
69037         modules 'extensions' and 'lock'.
69038         * modules/extensions (configure.ac-early): Require
69039         gl_USE_SYSTEM_EXTENSIONS.
69040         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
69041
69042 2007-02-04  Bruno Haible  <bruno@clisp.org>
69043
69044         Make use of gcj-4.3's -fsource and -ftarget option.
69045         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
69046         and if so try the options -fsource and -ftarget.
69047         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
69048         source_version, ftarget_option, target_version arguments.
69049         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
69050         (is_envjavac_oldgcj_14_14_usable): Renamed from
69051         is_envjavac_gcj_14_14_usable.
69052         (is_envjavac_oldgcj_14_13_usable): Renamed from
69053         is_envjavac_gcj_14_13_usable.
69054         (is_gcj_present): Update.
69055         (is_gcj_43, is_gcj43_usable): New functions.
69056         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
69057         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
69058         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
69059         try the options -fsource and -ftarget.
69060
69061 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
69062
69063         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
69064         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
69065         larger value.
69066
69067 2007-02-03  Jim Meyering  <jim@meyering.net>
69068
69069         Give tools a better chance to allocate space for very large buffers.
69070         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
69071
69072         Make pwd and readlink work also when run with an unreadable parent dir
69073         on systems with openat support.
69074         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
69075         provided getcwd function, even when we have openat support.
69076         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
69077
69078 2007-02-02  Bruno Haible  <bruno@clisp.org>
69079
69080         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
69081         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
69082         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
69083         portability problems if one of these functions is only used on specific
69084         platforms.
69085         Reported by Paul Eggert.
69086
69087 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
69088
69089         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
69090         is causing more trouble than it's curing.
69091         * lib/regex_internal.h (__mempcpy): Remove.
69092         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
69093         (and make the code a tad smaller to boot).
69094         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
69095
69096 2007-02-02  Jim Meyering  <jim@meyering.net>
69097
69098         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
69099         section, not in the Makefile.am: one.
69100
69101 2007-02-02  Eric Blake  <ebb9@byu.net>
69102
69103         * lib/strchrnul.c: Always include config.h first.
69104
69105         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
69106         gnulib strstr is not necessary here.
69107
69108 2007-02-02  Simon Josefsson  <simon@josefsson.org>
69109
69110         * m4/socklen.m4: Fix typo.
69111
69112 2007-02-02  Eric Blake  <ebb9@byu.net>
69113
69114         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
69115         * modules/netinet_in (Makefile.am): Likewise.
69116
69117 2007-02-01  Bruno Haible  <bruno@clisp.org>
69118
69119         * lib/string_.h (GL_LINK_WARNING): New macro.
69120         (strcasecmp, strstr, strcasestr): If provided by the system,
69121         conditionally define as a macro that leads to a warning instead of to
69122         an error.
69123         (strncasecmp): Conditionally define as a macro that leads to a warning.
69124
69125 2007-02-01  Karl Berry  <karl@gnu.org>
69126
69127         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
69128
69129 2007-02-01  Bruno Haible  <bruno@clisp.org>
69130
69131         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
69132         renamings.
69133
69134 2007-02-01  Eric Blake  <ebb9@byu.net>
69135
69136         * modules/regex (Depends-on): Revert dependence on mempcpy.
69137         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
69138         module's definition of mempcpy.
69139         Reported by Paul Eggert.
69140
69141 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
69142
69143         * lib/string_.h: If the gnulib module XYZ is not present, undefine
69144         the symbol XYZ before redefining it.  This fixes a problem with
69145         programs that don't use XYZ, when compiled on systems that define
69146         XYZ to something else.
69147
69148 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
69149
69150         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
69151         occurs when "mkdir -m foo" creates a setgid directory that is (1)
69152         writeable to group or other and (2) is intended to have a special
69153         mode bit that is set or cleared.  In such a case, the directory
69154         should be neither group- nor other-writeable until the special
69155         mode bits are right.
69156
69157 2007-01-31  Eric Blake  <ebb9@byu.net>
69158
69159         * modules/mountlist (Depends-on): Add strstr.
69160
69161         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
69162         bug.
69163         * modules/string (Makefile.am): Remove redundant replacement.
69164         * modules/regex (Depends-on): Add mempcpy.
69165
69166 2007-01-31  Bruno Haible  <bruno@clisp.org>
69167
69168         New module description field 'Link'.
69169         * gnulib-tool (func_usage): Document --extract-link-directive.
69170         (sed_extract_prog): Recognize 'Link' directive.
69171         (func_get_link_directive): New function.
69172         (func_import): Show summary of link directives.
69173         Handle --extract-link-directive option.
69174         * modules/acl (Link): New section.
69175         * modules/clock-time (Link): New section.
69176         * modules/euidaccess (Link): New section.
69177         * modules/gettext (Link): New section.
69178         * modules/iconv (Link): New section.
69179         * modules/lock (Link): New section.
69180         * modules/nanosleep (Link): New section.
69181         * modules/readline (Link): New section.
69182
69183 2007-01-27  Bruno Haible  <bruno@clisp.org>
69184
69185         Enforce the use of gnulib modules for unportable <string.h> functions.
69186         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
69187         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
69188         (gl_HEADER_STRING_H_BODY): Require it.
69189         * lib/string_.h: If the gnulib module XYZ is not present, redefine
69190         the symbol XYZ to one that gives a link error.
69191         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
69192         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
69193         * modules/mempcpy (configure.ac): Likewise.
69194         * modules/memrchr (configure.ac): Likewise.
69195         * modules/stpcpy (configure.ac): Likewise.
69196         * modules/stpncpy (configure.ac): Likewise.
69197         * modules/strcase (configure.ac): Likewise.
69198         * modules/strcasestr (configure.ac): Likewise.
69199         * modules/strchrnul (configure.ac): Likewise.
69200         * modules/strdup (configure.ac): Likewise.
69201         * modules/strndup (configure.ac): Likewise.
69202         * modules/strnlen (configure.ac): Likewise.
69203         * modules/strpbrk (configure.ac): Likewise.
69204         * modules/strsep (configure.ac): Likewise.
69205         * modules/strstr (configure.ac): Likewise.
69206         * modules/strtok_r (configure.ac): Likewise.
69207
69208 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
69209
69210         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
69211
69212 2007-01-30  Jim Meyering  <jim@meyering.net>
69213
69214         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
69215
69216 2007-01-29  Bruno Haible  <bruno@clisp.org>
69217
69218         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
69219         * lib/execute.c: Likewise.
69220         * lib/pipe.c: Likewise.
69221         * lib/printf-args.h: Likewise.
69222         * lib/printf-args.c: Likewise.
69223         * lib/printf-parse.c: Likewise.
69224         * lib/vasnprintf.c: Likewise.
69225
69226 2007-01-29  Eric Blake  <ebb9@byu.net>
69227
69228         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
69229         declaration.
69230
69231 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
69232
69233         * lib/strptime.h (strptime): Use 'restrict' for args where
69234         POSIX requires this.
69235         * lib/strptime.c (strptime): Likewise.
69236         Change license notice from LGPL to GPL, since gnulib-tool will
69237         change this as needed.
69238         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
69239         defined.
69240         Include "strptime.h" first, to check interface.
69241         Do not #undef _LIBC and _NL_CURRENT.
69242         Do not include <stdlib.h>; no longer needed.
69243         Include "time_r.h" and declare ptime_locale_status
69244         only if _LIBC is not defined.
69245         (__P): Remove unused macro.
69246         (match_string): Bring back glibc version, but use it only if _LIBC
69247         is defined.
69248         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
69249         Remove unnecessary assertion and abort() call.
69250         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
69251         * m4/strptime.m4: Fix serial number comment.
69252         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
69253         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
69254         (Depends-on): Add time_r.
69255
69256 2007-01-29  Bruno Haible  <bruno@clisp.org>
69257
69258         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69259         strptime.
69260         * modules/strptime (Depends-on): Add stdbool.
69261         * lib/strptime.h: Include <time.h> always. Add comments.
69262
69263 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69264
69265         * modules/strptime: New file.
69266         * lib/strptime.h: New file.
69267         * lib/strptime.c: New file.
69268         * m4/strptime.m4: New file.
69269
69270 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
69271
69272         * MODULES.html.sh: New module mpsort.
69273         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
69274
69275         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
69276         a circularity problem with HP-UX ia64 reported by Bob Proulx in
69277         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
69278         All uses changed.
69279         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
69280         All uses changed.
69281         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
69282         to _Restrict_.
69283         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
69284         the parameter matches the prototype.
69285
69286 2007-01-28  Jim Meyering  <jim@meyering.net>
69287
69288         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
69289         sys/time.h here, reverting that part of the previous patch:
69290         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
69291
69292 2007-01-28  Bruno Haible  <bruno@clisp.org>
69293
69294         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
69295         value of $(SYS_TIME_H).
69296         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
69297         remove it conditionally, too. [added by Jim Meyering]
69298         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
69299         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
69300         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
69301         GETTIMEOFDAY_REPLACEMENT to 1.
69302
69303 2007-01-28  Bruno Haible  <bruno@clisp.org>
69304
69305         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
69306         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
69307         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
69308         Set UNISTD_H instead of UNISTD_H2.
69309         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
69310
69311 2007-01-28  Bruno Haible  <bruno@clisp.org>
69312
69313         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
69314         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
69315
69316 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69317
69318         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
69319         (func_create_testdir): Ensure C locale for `grep' and `tr'
69320         character ranges.
69321         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
69322         ACLOCAL_AMFLAGS parsing state machine.
69323
69324 2007-01-27  Bruno Haible  <bruno@clisp.org>
69325
69326         * modules/unistr/base: Update.
69327
69328 2007-01-27  Bruno Haible  <bruno@clisp.org>
69329
69330         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
69331         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
69332         * modules/unistr/u32-mbtouc-unsafe: Renamed from
69333         modules/unistr/u32-mbtouc.
69334         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
69335         * lib/unistr.h: Update.
69336         * lib/linebreak.c: Update.
69337         * modules/unistr/u32-mbtouc: Renamed from
69338         modules/unistr/u32-mbtouc-safe.
69339         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
69340         * lib/unistr.h: Update.
69341         * lib/unistr/u32-to-u8.c: Update.
69342         * lib/unistr/u32-to-u16.c: Update.
69343
69344 2007-01-27  Bruno Haible  <bruno@clisp.org>
69345
69346         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
69347         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
69348         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
69349         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
69350         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
69351         * modules/unistr/u16-mbtouc-unsafe: Renamed from
69352         modules/unistr/u16-mbtouc.
69353         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
69354         * lib/unistr.h: Update.
69355         * lib/linebreak.c: Update.
69356         * modules/linebreak: Update.
69357         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
69358         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
69359         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
69360         * modules/unistr/u16-mbtouc: Renamed from
69361         modules/unistr/u16-mbtouc-safe.
69362         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
69363         * lib/unistr.h: Update.
69364         * lib/unistr/u16-to-u8.c: Update.
69365         * modules/unistr/u16-to-u8: Update.
69366         * lib/unistr/u16-to-u32.c: Update.
69367         * modules/unistr/u16-to-u32: Update.
69368
69369 2007-01-27  Bruno Haible  <bruno@clisp.org>
69370
69371         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
69372         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
69373         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
69374         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
69375         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
69376         * modules/unistr/u8-mbtouc-unsafe: Renamed from
69377         modules/unistr/u8-mbtouc.
69378         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
69379         * lib/unistr.h: Update.
69380         * lib/striconveh.c: Update.
69381         * modules/striconveh: Update.
69382         * lib/linebreak.c: Update.
69383         * modules/linebreak: Update.
69384         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
69385         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
69386         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
69387         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
69388         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
69389         * lib/unistr.h: Update.
69390         * lib/striconveh.c: Update.
69391         * modules/striconveh: Update.
69392         * lib/unistr/u8-to-u16.c: Update.
69393         * modules/unistr/u8-to-u16: Update.
69394         * lib/unistr/u8-to-u32.c: Update.
69395         * modules/unistr/u8-to-u32: Update.
69396
69397 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69398
69399         Sync from Libtool.
69400         * lib/argz.c: Do not include strings.h nor memory.h, include
69401         string.h unconditionally.  Patch by Simon Josefsson.
69402
69403 2007-01-27  Bruno Haible  <bruno@clisp.org>
69404
69405         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
69406         from gl_HEADER_STRING_H_BODY.
69407         (gl_HEADER_STRING_H_BODY): Require it.
69408         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
69409         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
69410         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
69411         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
69412         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
69413         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
69414         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
69415         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
69416         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
69417         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
69418         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
69419         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
69420         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
69421         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
69422         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69423
69424 2007-01-27  Bruno Haible  <bruno@clisp.org>
69425
69426         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
69427         check_PROGRAMS into noinst_PROGRAMS.
69428         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
69429         check_PROGRAMS in this case.
69430         (func_import): Set for_test to false.
69431         (func_create_testdir): Set for_test to true.
69432
69433 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
69434             Bruno Haible  <bruno@clisp.org>
69435
69436         * modules/strcasestr (Files): Remove lib/strcasestr.h.
69437         (Depends-on): Add string.
69438         (Includes): Use <string.h> instead of strcasestr.h.
69439         * modules/string (Makefile.am): Also substitute the value of
69440         REPLACE_STRCASESTR.
69441         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
69442         assume strcasestr is declared in <string.h> not <strings.h>. Also
69443         set REPLACE_STRCASESTR.
69444         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
69445         REPLACE_STRCASESTR.
69446         * lib/strcasestr.h: Remove file.
69447         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
69448         * lib/string_.h (strcasestr): New declaration.
69449
69450 2007-01-27  Bruno Haible  <bruno@clisp.org>
69451
69452         * lib/string_.h: Use 'extern'.
69453
69454 2007-01-27  Jim Meyering  <jim@meyering.net>
69455
69456         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
69457         of set-but-not-used local, "q".
69458
69459         * lib/mempcpy.c: Include <config.h> before <string.h>.
69460         This fixes a compilation error on HP-UX, due to the system's
69461         "restrict"-using mempcpy prototype.
69462
69463 2007-01-26  Bruno Haible  <bruno@clisp.org>
69464
69465         Small optimization.
69466         * lib/javacomp.c: Include c-strstr.h.
69467          (is_envjavac_gcj): Use c_strstr instead of strstr.
69468         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
69469
69470 2007-01-26  Bruno Haible  <bruno@clisp.org>
69471
69472         * MODULES.html.sh (Unicode string functions): Add the new modules.
69473
69474         * modules/uniconv/u32-strconv-to-locale: New file.
69475         * lib/uniconv/u32-strconv-to-locale.c: New file.
69476
69477         * modules/uniconv/u16-strconv-to-locale: New file.
69478         * lib/uniconv/u16-strconv-to-locale.c: New file.
69479
69480         * modules/uniconv/u8-strconv-to-locale: New file.
69481         * lib/uniconv/u8-strconv-to-locale.c: New file.
69482
69483         * modules/uniconv/u32-strconv-from-locale: New file.
69484         * lib/uniconv/u32-strconv-from-locale.c: New file.
69485
69486         * modules/uniconv/u16-strconv-from-locale: New file.
69487         * lib/uniconv/u16-strconv-from-locale.c: New file.
69488
69489         * modules/uniconv/u8-strconv-from-locale: New file.
69490         * lib/uniconv/u8-strconv-from-locale.c: New file.
69491
69492         * modules/uniconv/u32-strconv-to-enc: New file.
69493         * lib/uniconv/u32-strconv-to-enc.c: New file.
69494         * modules/uniconv/u32-strconv-to-enc-tests: New file.
69495         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
69496
69497         * modules/uniconv/u16-strconv-to-enc: New file.
69498         * lib/uniconv/u16-strconv-to-enc.c: New file.
69499         * lib/uniconv/u-strconv-to-enc.h: New file.
69500         * modules/uniconv/u16-strconv-to-enc-tests: New file.
69501         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
69502
69503         * modules/uniconv/u8-strconv-to-enc: New file.
69504         * lib/uniconv/u8-strconv-to-enc.c: New file.
69505         * modules/uniconv/u8-strconv-to-enc-tests: New file.
69506         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
69507
69508         * modules/uniconv/u32-strconv-from-enc: New file.
69509         * lib/uniconv/u32-strconv-from-enc.c: New file.
69510         * modules/uniconv/u32-strconv-from-enc-tests: New file.
69511         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
69512
69513         * modules/uniconv/u16-strconv-from-enc: New file.
69514         * lib/uniconv/u16-strconv-from-enc.c: New file.
69515         * modules/uniconv/u16-strconv-from-enc-tests: New file.
69516         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
69517
69518         * modules/uniconv/u8-strconv-from-enc: New file.
69519         * lib/uniconv/u8-strconv-from-enc.c: New file.
69520         * lib/uniconv/u-strconv-from-enc.h: New file.
69521         * modules/uniconv/u8-strconv-from-enc-tests: New file.
69522         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
69523
69524         * modules/uniconv/u32-conv-from-enc: New file.
69525         * lib/uniconv/u32-conv-from-enc.c: New file.
69526         * modules/uniconv/u32-conv-from-enc-tests: New file.
69527         * tests/uniconv/test-u32-conv-from-enc.c: New file.
69528
69529         * modules/uniconv/u16-conv-from-enc: New file.
69530         * lib/uniconv/u16-conv-from-enc.c: New file.
69531         * lib/uniconv/u-conv-from-enc.h: New file.
69532         * modules/uniconv/u16-conv-from-enc-tests: New file.
69533         * tests/uniconv/test-u16-conv-from-enc.c: New file.
69534
69535         * modules/uniconv/u8-conv-from-enc: New file.
69536         * lib/uniconv/u8-conv-from-enc.c: New file.
69537         * modules/uniconv/u8-conv-from-enc-tests: New file.
69538         * tests/uniconv/test-u8-conv-from-enc.c: New file.
69539
69540         * modules/uniconv/base: New file.
69541         * lib/uniconv.h: New file.
69542
69543 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
69544
69545         * doc/gnulib-tool.texi (Initial import): Update to match current
69546         behavior with strdup module.
69547         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
69548         * lib/memmem.h: Remove; all uses removed.  This is now done
69549         by <string.h>.
69550         * lib/mempcpy.h: Likewise.
69551         * lib/memrchr.h: Likewise.
69552         * lib/stpcpy.h: Likewise.
69553         * lib/stpncpy.h: Likewise.
69554         * lib/strcase.h: Likewise.
69555         * lib/strchrnul.h: Likewise.
69556         * lib/strdup.h: Likewise.
69557         * lib/strndup.h: Likewise.
69558         * lib/strnlen.h: Likewise.
69559         * lib/strpbrk.h: Likewise.
69560         * lib/strsep.h: Likewise.
69561         * lib/strstr.h: Likewise.
69562         * lib/strtok_r.h: Likewise.
69563         * lib/string_.h: New file.
69564         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
69565         Rely on <string.h> instead.
69566         * lib/canon-host.c: Likewise.
69567         * lib/chdir-long.c: Likewise.
69568         * lib/concatpath.c: Likewise.
69569         * lib/exclude.c: Likewise.
69570         * lib/fchdir.c: Likewise.
69571         * lib/getaddrinfo.c: Likewise.
69572         * lib/getcwd.c: Likewise.
69573         * lib/getsubopt.c: Likewise.
69574         * lib/glob.c: Likewise.
69575         * lib/hard-locale.c: Likewise.
69576         * lib/iconvme.c: Likewise.
69577         * lib/javacomp.c: Likewise.
69578         * lib/mempcpy.c: Likewise.
69579         * lib/memrchr.c: Likewise.
69580         * lib/regex_internal.h: Likewise.
69581         * lib/stpncpy.c: Likewise.
69582         * lib/strcasecmp.c: Likewise.
69583         * lib/strchrnul.c: Likewise.
69584         * lib/strdup.c: Likewise.
69585         * lib/striconv.c: Likewise.
69586         * lib/striconveh.c: Likewise.
69587         * lib/striconveha.c: Likewise.
69588         * lib/strncasecmp.c: Likewise.
69589         * lib/strndup.c: Likewise.
69590         * lib/strnlen.c: Likewise.
69591         * lib/strsep.c: Likewise.
69592         * lib/strstr.c: Likewise.
69593         * lib/strtok_r.c: Likewise.
69594         * lib/userspec.c: Likewise.
69595         * lib/w32spawn.h: Likewise.
69596         * lib/xstrndup.c: Likewise.
69597         * lib/mountlist.c (strstr): Remove decl.
69598         * m4/string_h.m4: New file.
69599         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
69600         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
69601         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
69602         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
69603         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
69604         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
69605         Set REPLACE_STRCASECMP if necessary.
69606         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
69607         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
69608         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
69609         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
69610         HAVE_DECL_STRDUP if necessary.
69611         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
69612         since gl_FUNC_STRNDUP does that now.
69613         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
69614         Check for decl here...
69615         (gl_PREREQ_STRNLEN): ... not here.
69616         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
69617         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
69618         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
69619         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
69620         necessary.
69621         * modules/string: New file.
69622         * modules/memmem (Files): Remove special-purpose include file.
69623         (Depends-on): Add string.
69624         (Include): Include <string.h>, not the removed file.
69625         * modules/mempcpy: Likewise.
69626         * modules/memrchr: Likewise.
69627         * modules/stpcpy: Likewise.
69628         * modules/stpncpy: Likewise.
69629         * modules/strcase: Likewise.
69630         * modules/strchrnul: Likewise.
69631         * modules/strdup: Likewise.
69632         * modules/strndup: Likewise.
69633         * modules/strnlen: Likewise.
69634         * modules/strpbrk: Likewise.
69635         * modules/strsep: Likewise.
69636         * modules/strstr: Likewise.
69637         * modules/strtok_r: Likewise.
69638         * tests/test-dirname.c: Don't include "strdup.h", since
69639         <string.h> now suffices.
69640         * tests/test-memmem.c: Don't include "memmem.h", since
69641         <string.h> now suffices.
69642
69643 2007-01-25  Bruno Haible  <bruno@clisp.org>
69644
69645         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
69646         *resultp is 0.
69647
69648         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
69649         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
69650         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
69651         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
69652
69653         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
69654         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
69655         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
69656         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
69657         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
69658         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
69659
69660 2007-01-24  Bruno Haible  <bruno@clisp.org>
69661
69662         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
69663         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
69664         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
69665         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
69666         gl_FUNC_FTS_CORE.
69667         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
69668         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
69669         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
69670         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
69671         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
69672         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
69673         gl_FUNC_FCHOWNAT.
69674         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
69675         gl_FUNC_STRFTIME.
69676         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
69677         Reported by Ralf Wildenhues.
69678
69679 2007-01-24  Bruno Haible  <bruno@clisp.org>
69680
69681         Drop AC_REQUIRE calls that are redundant with the module dependencies.
69682         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
69683         gl_GETADDRINFO.
69684         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
69685         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
69686         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
69687
69688 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
69689
69690         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
69691         Don't use 'exit'; just return from 'main'.
69692         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
69693
69694         * lib/fnmatch_.h: Readjust white space and comments to match
69695         glibc, to avoid spurious diffs.
69696
69697 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69698
69699         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
69700         2004-12-01 change by Jakub Jelinek, since this code won't compile
69701         if !LIBC.  Problem reported by Bob Proulx.
69702
69703 2007-01-23  Bruno Haible  <bruno@clisp.org>
69704
69705         * lib/striconveh.c: Include c-strcaseeq.h.
69706         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
69707         * modules/striconveh (Depends-on): Add c-strcaseeq.
69708
69709 2007-01-23  Bruno Haible  <bruno@clisp.org>
69710
69711         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
69712
69713         * modules/c-strcaseeq: New file.
69714         * lib/c-strcaseeq.h: New file.
69715
69716         * modules/streq: New file.
69717         * lib/streq.h: New file.
69718
69719 2007-01-23  Bruno Haible  <bruno@clisp.org>
69720
69721         * modules/striconveha-tests: New file.
69722         * tests/test-striconveha.c: New file.
69723
69724         * lib/striconveha.h: Include <stdbool.h>.
69725         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
69726         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
69727         (mem_iconveha_notranslit): Renamed from mem_iconveha.
69728         (mem_iconveha): New function.
69729         (str_iconveha_notranslit): Renamed from str_iconveha.
69730         (str_iconveha): New function.
69731         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
69732         c-strcase.
69733
69734 2007-01-23  Bruno Haible  <bruno@clisp.org>
69735
69736         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
69737         encodings without forgiving before trying any encoding with handler.
69738         (str_iconveha): Try all encodings without forgiving before trying any
69739         encoding with handler.
69740
69741 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69742
69743         Import the following changes from libc.
69744
69745         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
69746
69747         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
69748
69749         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
69750
69751         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
69752         normal_bracket label.
69753
69754         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
69755
69756         [BZ #361]
69757         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
69758         to normal_bracket after fetching the next character.
69759
69760 2007-01-22  Bruno Haible  <bruno@clisp.org>
69761
69762         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
69763         argument.
69764         * lib/striconveh.c (iconv_carefully_1): New function.
69765         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
69766         argument.
69767         (str_cd_iconveh): Update.
69768         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
69769         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
69770         * tests/test-striconveh.c (MAGIC): New macro.
69771         (new_offsets): New function.
69772         (main): Test call with and without offsets.
69773
69774 2007-01-22  Bruno Haible  <bruno@clisp.org>
69775
69776         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
69777         * modules/sys_select (Makefile.am): Likewise.
69778         * modules/sys_socket (Makefile.am): Likewise.
69779         * modules/sys_time (Makefile.am): Likewise.
69780
69781 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
69782
69783         * modules/gettimeofday (License): Change from GPL to LGPL, since
69784         gettimeofday is a library function.
69785
69786 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69787
69788         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
69789
69790 2007-01-21  Bruno Haible  <bruno@clisp.org>
69791
69792         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
69793
69794 2007-01-21  Bruno Haible  <bruno@clisp.org>
69795
69796         * modules/striconveha: New file.
69797         * lib/striconveha.h: New file.
69798         * lib/striconveha.c: New file.
69799         * MODULES.html.sh (Internationalization functions): Add striconveha.
69800         * lib/striconv.c (str_iconv): Optimize the case of an empty input
69801         string.
69802         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
69803
69804 2007-01-21  Bruno Haible  <bruno@clisp.org>
69805
69806         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
69807         * lib/striconveh.c (str_iconveh): Likewise.
69808
69809 2007-01-21  Bruno Haible  <bruno@clisp.org>
69810
69811         * lib/striconveh.h (mem_iconveh): New declaration.
69812         * lib/striconveh.c (mem_iconveh): New function.
69813         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
69814
69815 2007-01-21  Bruno Haible  <bruno@clisp.org>
69816
69817         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
69818
69819         * lib/striconveh.h (mem_cd_iconveh): Change specification.
69820         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
69821         original result buffer.
69822         (str_cd_iconveh): Update.
69823         * tests/test-striconveh.c (main): Update.
69824
69825         * lib/striconv.h (mem_cd_iconv): Change specification.
69826         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
69827         result buffer.
69828         (str_cd_iconv): Update.
69829         * tests/test-striconv.c (main): Update.
69830
69831 2007-01-21  Bruno Haible  <bruno@clisp.org>
69832
69833         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
69834
69835 2007-01-20  Jim Meyering  <jim@meyering.net>
69836
69837         * lib/userspec.c (parse_with_separator): If a user or group string
69838         starts with "+", skip the corresponding name-to-ID look-up, since
69839         such a look-up must fail: user and group names may not include "+".
69840
69841 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
69842
69843         * lib/poll.c: Include sys/time.h and time.h unconditionally,
69844         since we now assume the sys_time module.
69845         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
69846         check for sys/time.h; no longer needed.
69847         * modules/poll (Depends-on): Depend on sys_time.
69848
69849 2007-01-18  Bruno Haible  <bruno@clisp.org>
69850
69851         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
69852         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
69853
69854         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
69855         gettimeofday.
69856
69857         * tests/test-gettimeofday.c: Include <time.h>.
69858         (dummy): Remove variable.
69859
69860         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
69861         gl_HEADER_SYS_TIME_H.
69862         (gl_HEADER_SYS_TIME_H): New macro.
69863
69864         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
69865         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69866         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
69867         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
69868         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69869         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
69870         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
69871         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69872         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
69873         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
69874         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69875
69876         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
69877         last change; it caused a compilation error when cross-compiling to
69878         Cygwin.
69879
69880 2007-01-18  Jim Meyering  <jim@meyering.net>
69881
69882         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
69883         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
69884         than the race-prone "test -d sys || mkdir sys".
69885         (configure.ac): Use AC_PROG_MKDIR_P.
69886         * modules/sys_select: Likewise.
69887         * modules/sys_socket: Likewise.
69888         * modules/sys_time: Likewise.
69889
69890 2007-01-18  Eric Blake  <ebb9@byu.net>
69891
69892         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
69893         replace gettimeofday.
69894         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
69895         name, to avoid infinite recursion.
69896
69897 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
69898
69899         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
69900         module sys_time.
69901         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
69902         assume timespec.h defines struct timeval.
69903         * lib/settime.c: Likewise.
69904         * lib/utimens.c: Likewise.
69905         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
69906         since we now assume the gettimeofday module.
69907         * lib/tempname.c (__gen_tempname): Likewise.
69908         * lib/gettimeofday.h: Remove.
69909         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
69910         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
69911         Include <time.h>, for 'time()'.
69912         (localtime_buffer_addr): Also use this workaround if
69913         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
69914         to simplify the uses.  All uses changed.
69915         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
69916         that #undef is inside {}, and 'const' follows type name consistently.
69917         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
69918         (gettimeofday): Do not use the maximum possible value for
69919         tv->tv_usec, since that might break usages other than ls.c.
69920         Instead, we'll leave ls.c alone.  This undoes today's patch
69921         by Bruno.  Add a compile-time warning for 1s-clock resolution;
69922         we've never observed the problem but might as well keep the
69923         canary.
69924         * lib/nanosleep.c: Include timespec.h first, for interface check.
69925         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
69926         now assume the sys_time module.
69927         * lib/tempname.c: Likewise.
69928         * lib/timespec.h: Likewise.
69929         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
69930         needed.
69931         * lib/strftime.c: Likewise.
69932         * lib/timespec.h: Likewise.
69933         * lib/posixtm.c: Include posixtm.h first, for interface check.
69934         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
69935         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
69936         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
69937         * lib/sys_time_.h: New file.
69938         * lib/timespec.h (struct timespec): Use long int, not long.
69939         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
69940         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
69941         Remove obsolescent call to AC_HEADER_TIME.
69942         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
69943         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
69944         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
69945         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
69946         Likewise.
69947         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
69948         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
69949         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
69950         into the sys_time module.  Check for gettimeofday just once.
69951         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
69952         for gettimeofday signature to just check the signature.  Merely
69953         compile it, since linking doesn't test signature.  Improve test for
69954         whether gettimeofday.o is actually needed.
69955         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
69956         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
69957         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
69958         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69959         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
69960         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
69961         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
69962         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
69963         than worrying about sys/time.h.
69964         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
69965         Don't bother worrying about TIME_WITH_SYS_TIME.
69966         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
69967         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
69968         * m4/sys_time_h.m4: New file.
69969         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
69970         Don't include sys/time.h.  Return from main rather than exiting.
69971         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
69972         all uses changed.
69973         * modules/gethrxtime (Depends-on): Add sys_time.
69974         * modules/gettime (Depends-on): Likewise.
69975         * modules/gettimeofday (Depends-on): Likewise.
69976         * modules/nanosleep (Depends-on): Likewise.
69977         * modules/settime (Depends-on): Likewise.
69978         * modules/tempname (Depends-on): Likewise.
69979         * modules/utimens (Depends-on): Likewise.
69980         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
69981         (Include): Change back to <sys/time.h>.
69982         (Maintainer): Add self.
69983         * modules/sys_time: New file.
69984         * modules/tempname (Depends-on): Add gettimeofday.
69985         * tests/test-gettimeofday.c: Include <sys/time.h>
69986         rather than gettimeofday.h.
69987
69988 2007-01-17  Bruno Haible  <bruno@clisp.org>
69989
69990         * gnulib-tool (func_get_license): Revert last patch. Instead, let
69991         the license default to GPL.
69992         (func_create_testdir): Don't complain if a module is LGPL and its
69993         tests module depends on GPLed modules.
69994
69995 2007-01-17  Bruno Haible  <bruno@clisp.org>
69996
69997         * lib/gettimeofday.c (gettimeofday): Add code for the case
69998         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
69999         maximum possible value for tv->tv_usec, rather than the minimum one.
70000
70001 2005-10-08  Martin Lambers  <marlam@marlam.de>
70002 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
70003 2007-01-16  Bruno Haible  <bruno@clisp.org>
70004
70005         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
70006         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
70007         gl_FUNC_GETTIMEOFDAY.
70008         (Include): Add gettimeofday.h.
70009         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
70010         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
70011         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
70012         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
70013         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
70014         * lib/gettimeofday.h: New file.
70015         * lib/gettimeofday.c: Include <sys/timeb.h>.
70016         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
70017         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70018         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
70019         fall back on time().
70020
70021         * tests/test-gettimeofday.c: New file.
70022         * modules/gettimeofday-tests: New file.
70023
70024 2007-01-16  Eric Blake  <ebb9@byu.net>
70025
70026         * modules/fnmatch (Depends-on): Depend on wchar.
70027         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
70028         * m4/fnmatch.m4: Likewise.
70029         * modules/mbchar (Makefile.am): Assume <wchar.h>.
70030         * m4/mbchar.m4: Likewise.
70031         * modules/mbswidth (Depends-on): Depend on wchar.
70032         * lib/mbswidth.c: Assume <wchar.h>.
70033         * m4/mbswidth.m4: Likewise.
70034         * modules/quotearg (Depends-on): Depend on wchar.
70035         * lib/quotearg.c: Assume <wchar.h>.
70036         * m4/quotearg.m4: Likewise.
70037         * modules/regex (Depends-on): Depend on wchar.
70038         * lib/regex_internal.h: Assume <wchar.h>.
70039         * m4/regex.m4: Likewise.
70040         * modules/stdint (Depends-on): Depend on wchar.
70041         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
70042         * m4/stdint.m4: Likewise.
70043         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
70044         * modules/strftime (Depends-on): Depend on wchar.
70045         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
70046         * modules/strtol (Depends-on): Depend on wchar.
70047         * lib/strtol.c: Assume <wchar.h>.
70048         * modules/wcwidth (Depends-on): Depend on wchar.
70049         * lib/wcwidth.h: Assume <wchar.h>.
70050         * m4/wcwidth.m4: Likewise.
70051
70052 2007-01-16  Bruno Haible  <bruno@clisp.org>
70053
70054         * modules/csharpexec-script: New, created from...
70055         * modules/csharpexec: ... this.
70056
70057 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
70058
70059         * modules/javaexec-script: New, created from...
70060         * modules/javaexec: ... this.
70061
70062 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70063
70064         * modules/poll (Dependencies): Add sys_select.
70065
70066 2007-01-15  Jim Meyering  <jim@meyering.net>
70067
70068         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
70069         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
70070         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
70071         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
70072
70073 2007-01-15  Bruno Haible  <bruno@clisp.org>
70074
70075         * modules/striconveh: New file.
70076         * lib/striconveh.h: New file.
70077         * lib/striconveh.c: New file.
70078         * MODULES.html.sh (Internationalization functions): Add striconveh.
70079
70080         * modules/striconveh-tests: New file.
70081         * tests/test-striconveh.c: New file.
70082
70083 2007-01-15  Bruno Haible  <bruno@clisp.org>
70084
70085         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
70086         not from GNU libiconv or GNU libc.
70087
70088 2007-01-15  Bruno Haible  <bruno@clisp.org>
70089
70090         * doc/gnulib-intro.texi (Copyright): Explain the different license
70091         terms for module descriptions, autoconf macros, tests, documentation.
70092
70093 2007-01-14  Bruno Haible  <bruno@clisp.org>
70094
70095         * modules/striconv-tests: New file.
70096         * tests/test-striconv.c: New file.
70097
70098 2007-01-14  Bruno Haible  <bruno@clisp.org>
70099
70100         * modules/iconv-tests: New file.
70101         * tests/test-iconv.c: New file.
70102
70103 2007-01-14  Bruno Haible  <bruno@clisp.org>
70104
70105         * gnulib-tool (func_get_license): For test modules, use the license of
70106         the main module.
70107
70108 2007-01-14  Bruno Haible  <bruno@clisp.org>
70109
70110         * modules/iconv (Include): Clarify that <iconv.h> can only be included
70111         if iconv is found to exist.
70112
70113 2007-01-14  Bruno Haible  <bruno@clisp.org>
70114
70115         * modules/c-ctype-tests: New file.
70116         * tests/test-c-ctype.c: New file.
70117
70118 2007-01-14  Bruno Haible  <bruno@clisp.org>
70119
70120         * modules/binary-io-tests: New file.
70121         * tests/test-binary-io.sh: New file.
70122         * tests/test-binary-io.c: New file.
70123
70124 2007-01-14  Bruno Haible  <bruno@clisp.org>
70125
70126         * modules/array-oset-tests: New file.
70127         * tests/test-array_oset.c: New file.
70128
70129 2007-01-14  Bruno Haible  <bruno@clisp.org>
70130
70131         * modules/array-list-tests: New file.
70132         * tests/test-array_list.c: New file.
70133
70134 2007-01-14  Bruno Haible  <bruno@clisp.org>
70135
70136         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
70137         and make.
70138         Reported by Simon Josefsson in
70139         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
70140
70141 2007-01-14  Bruno Haible  <bruno@clisp.org>
70142
70143         * modules/allocsa-tests: New file.
70144         * tests/test-allocsa.c: New file.
70145
70146 2007-01-14  Bruno Haible  <bruno@clisp.org>
70147
70148         * modules/fchdir (Depends-on): Add absolute-header.
70149         * modules/unistd (Depends-on): Likewise.
70150
70151 2006-12-30  Bruno Haible  <bruno@clisp.org>
70152
70153         * modules/fchdir: New file.
70154         * modules/unistd (Files): Add lib/unistd_.h.
70155         (Makefile.am): Generate unistd.h from unistd_.h.
70156         * lib/fchdir.c: New file.
70157         * lib/dirent_.h: New file.
70158         * lib/unistd_.h: New file.
70159         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
70160         * m4/fchdir.m4: New file.
70161         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
70162         (gl_HEADER_UNISTD): Invoke it.
70163         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
70164         function.
70165         * lib/backupfile.c (opendir, closedir): Undefine.
70166         * lib/chown.c (open, close): Undefine.
70167         * lib/clean-temp.c (open, close): Undefine.
70168         * lib/copy-file.c (open, close): Undefine.
70169         * lib/execute.c (open, close): Undefine.
70170         * lib/fsusage.c (open, close): Undefine.
70171         * lib/gc-gnulib.c (open, close): Undefine.
70172         * lib/getcwd.c (opendir, closedir): Undefine.
70173         * lib/glob.c (opendir, closedir): Undefine.
70174         * lib/javacomp.c (open, close): Undefine.
70175         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
70176         * lib/openat-proc.c (open, close): Undefine.
70177         * lib/pagealign_alloc.c (open, close): Undefine.
70178         * lib/pipe.c (open, close): Undefine.
70179         * lib/progreloc.c (open, close): Undefine.
70180         * lib/savedir.c (opendir, closedir): Undefine.
70181         * lib/utime.c (open, close): Undefine.
70182         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
70183
70184 2007-01-10  Bruno Haible  <bruno@clisp.org>
70185
70186         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
70187
70188 2007-01-12  Eric Blake  <ebb9@byu.net>
70189
70190         Provide a robust <wchar.h>.  Further simplifications are now
70191         possible in other modules, but not included here.
70192         * modules/wchar: New module.
70193         * m4/wchar.m4: New file.
70194         * lib/wchar_.h: Likewise.
70195         * modules/mbchar (Depends-on): Depend on wchar, as the first use
70196         of the new module.
70197         * MODULES.html.sh (Extended multibyte and wide character utilities):
70198         New section.
70199
70200 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
70201
70202         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
70203         to a reasonable default for memory allocation.
70204         (xreadlink): Don't allocate a huge buffer, to work around a buggy
70205         file system that reports garbage st_size values for symlinks.
70206         Problem reported by Liyang Hu.
70207
70208 2007-01-11  Simon Josefsson  <simon@josefsson.org>
70209
70210         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
70211         Emacs .#* auto-save files).
70212
70213 2007-01-11  Bruno Haible  <bruno@clisp.org>
70214
70215         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
70216         directory.
70217
70218 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
70219
70220         Use @...@ consistently in lib/wctype_.h.
70221         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
70222         on it being set to 1 or 0.
70223         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
70224         go back to AC_SUBSTing it.
70225         * modules/wctype (Makefile.am): Undo previous change.
70226
70227 2007-01-10  Eric Blake  <ebb9@byu.net>
70228
70229         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
70230         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
70231         * modules/wctype (Makefile.am): Likewise.
70232         Reported by Chris McGuire.
70233
70234 2007-01-10  Jim Meyering  <jim@meyering.net>
70235
70236         fts.c: a small readability/maintainability improvement
70237         * lib/fts.c (fts_read): Make this code slightly more readable and
70238         maintainable by hoisting the "sp->fts_cur = p" assignments to
70239         immediately follow the statements that set P.  Derived from
70240         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
70241
70242 2007-01-10  Eric Blake  <ebb9@byu.net>
70243
70244         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
70245         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
70246         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
70247         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
70248         Reported by Chris McGuire.
70249
70250 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70251
70252         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
70253         in sed script.
70254
70255 2007-01-09  Bruno Haible  <bruno@clisp.org>
70256
70257         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
70258         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
70259         variables.
70260         (func_module): Use them.
70261
70262 2007-01-09  Bruno Haible  <bruno@clisp.org>
70263
70264         * modules/unistr/base: New file.
70265         * lib/unistr.h: New file.
70266
70267         * modules/unistr/u8-to-u16: New file.
70268         * lib/unistr/u8-to-u16.c: New file.
70269
70270         * modules/unistr/u8-to-u32: New file.
70271         * lib/unistr/u8-to-u32.c: New file.
70272
70273         * modules/unistr/u16-to-u8: New file.
70274         * lib/unistr/u16-to-u8.c: New file.
70275
70276         * modules/unistr/u16-to-u32: New file.
70277         * lib/unistr/u16-to-u32.c: New file.
70278
70279         * modules/unistr/u32-to-u8: New file.
70280         * lib/unistr/u32-to-u8.c: New file.
70281
70282         * modules/unistr/u32-to-u16: New file.
70283         * lib/unistr/u32-to-u16.c: New file.
70284
70285         * modules/unistr/u8-check: New file.
70286         * modules/unistr/u16-check: New file.
70287         * modules/unistr/u32-check: New file.
70288         * lib/unistr/u8-check.c: New file.
70289         * lib/unistr/u16-check.c: New file.
70290         * lib/unistr/u32-check.c: New file.
70291
70292         * modules/unistr/u8-chr: New file.
70293         * modules/unistr/u16-chr: New file.
70294         * modules/unistr/u32-chr: New file.
70295         * lib/unistr/u8-chr.c: New file.
70296         * lib/unistr/u16-chr.c: New file.
70297         * lib/unistr/u32-chr.c: New file.
70298
70299         * modules/unistr/u8-cmp: New file.
70300         * modules/unistr/u16-cmp: New file.
70301         * modules/unistr/u32-cmp: New file.
70302         * lib/unistr/u8-cmp.c: New file.
70303         * lib/unistr/u16-cmp.c: New file.
70304         * lib/unistr/u32-cmp.c: New file.
70305
70306         * modules/unistr/u8-cpy: New file.
70307         * modules/unistr/u16-cpy: New file.
70308         * modules/unistr/u32-cpy: New file.
70309         * lib/unistr/u8-cpy.c: New file.
70310         * lib/unistr/u16-cpy.c: New file.
70311         * lib/unistr/u32-cpy.c: New file.
70312         * lib/unistr/u-cpy.h: New file.
70313
70314         * modules/unistr/u8-cpy-alloc: New file.
70315         * modules/unistr/u16-cpy-alloc: New file.
70316         * modules/unistr/u32-cpy-alloc: New file.
70317         * lib/unistr/u8-cpy-alloc.c: New file.
70318         * lib/unistr/u16-cpy-alloc.c: New file.
70319         * lib/unistr/u32-cpy-alloc.c: New file.
70320         * lib/unistr/u-cpy-alloc.h: New file.
70321
70322         * modules/unistr/u8-endswith: New file.
70323         * modules/unistr/u16-endswith: New file.
70324         * modules/unistr/u32-endswith: New file.
70325         * lib/unistr/u8-endswith.c: New file.
70326         * lib/unistr/u16-endswith.c: New file.
70327         * lib/unistr/u32-endswith.c: New file.
70328         * lib/unistr/u-endswith.h: New file.
70329
70330         * modules/unistr/u8-mblen: New file.
70331         * modules/unistr/u16-mblen: New file.
70332         * modules/unistr/u32-mblen: New file.
70333         * lib/unistr/u8-mblen.c: New file.
70334         * lib/unistr/u16-mblen.c: New file.
70335         * lib/unistr/u32-mblen.c: New file.
70336
70337         * modules/unistr/u8-mbtouc: New file.
70338         * modules/unistr/u16-mbtouc: New file.
70339         * modules/unistr/u32-mbtouc: New file.
70340         * lib/unistr/u8-mbtouc.c: New file.
70341         * lib/unistr/u16-mbtouc.c: New file.
70342         * lib/unistr/u32-mbtouc.c: New file.
70343
70344         * modules/unistr/u8-mbtouc-safe: New file.
70345         * modules/unistr/u16-mbtouc-safe: New file.
70346         * modules/unistr/u32-mbtouc-safe: New file.
70347         * lib/unistr/u8-mbtouc-safe.c: New file.
70348         * lib/unistr/u16-mbtouc-safe.c: New file.
70349         * lib/unistr/u32-mbtouc-safe.c: New file.
70350
70351         * modules/unistr/u8-move: New file.
70352         * modules/unistr/u16-move: New file.
70353         * modules/unistr/u32-move: New file.
70354         * lib/unistr/u8-move.c: New file.
70355         * lib/unistr/u16-move.c: New file.
70356         * lib/unistr/u32-move.c: New file.
70357         * lib/unistr/u-move.h: New file.
70358
70359         * modules/unistr/u8-next: New file.
70360         * modules/unistr/u16-next: New file.
70361         * modules/unistr/u32-next: New file.
70362         * lib/unistr/u8-next.c: New file.
70363         * lib/unistr/u16-next.c: New file.
70364         * lib/unistr/u32-next.c: New file.
70365
70366         * modules/unistr/u8-prev: New file.
70367         * modules/unistr/u16-prev: New file.
70368         * modules/unistr/u32-prev: New file.
70369         * lib/unistr/u8-prev.c: New file.
70370         * lib/unistr/u16-prev.c: New file.
70371         * lib/unistr/u32-prev.c: New file.
70372
70373         * modules/unistr/u8-set: New file.
70374         * modules/unistr/u16-set: New file.
70375         * modules/unistr/u32-set: New file.
70376         * lib/unistr/u8-set.c: New file.
70377         * lib/unistr/u16-set.c: New file.
70378         * lib/unistr/u32-set.c: New file.
70379         * lib/unistr/u-set.h: New file.
70380
70381         * modules/unistr/u8-startswith: New file.
70382         * modules/unistr/u16-startswith: New file.
70383         * modules/unistr/u32-startswith: New file.
70384         * lib/unistr/u8-startswith.c: New file.
70385         * lib/unistr/u16-startswith.c: New file.
70386         * lib/unistr/u32-startswith.c: New file.
70387         * lib/unistr/u-startswith.h: New file.
70388
70389         * modules/unistr/u8-stpcpy: New file.
70390         * modules/unistr/u16-stpcpy: New file.
70391         * modules/unistr/u32-stpcpy: New file.
70392         * lib/unistr/u8-stpcpy.c: New file.
70393         * lib/unistr/u16-stpcpy.c: New file.
70394         * lib/unistr/u32-stpcpy.c: New file.
70395         * lib/unistr/u-stpcpy.h: New file.
70396
70397         * modules/unistr/u8-stpncpy: New file.
70398         * modules/unistr/u16-stpncpy: New file.
70399         * modules/unistr/u32-stpncpy: New file.
70400         * lib/unistr/u8-stpncpy.c: New file.
70401         * lib/unistr/u16-stpncpy.c: New file.
70402         * lib/unistr/u32-stpncpy.c: New file.
70403         * lib/unistr/u-stpncpy.h: New file.
70404
70405         * modules/unistr/u8-strcat: New file.
70406         * modules/unistr/u16-strcat: New file.
70407         * modules/unistr/u32-strcat: New file.
70408         * lib/unistr/u8-strcat.c: New file.
70409         * lib/unistr/u16-strcat.c: New file.
70410         * lib/unistr/u32-strcat.c: New file.
70411         * lib/unistr/u-strcat.h: New file.
70412
70413         * modules/unistr/u8-strchr: New file.
70414         * modules/unistr/u16-strchr: New file.
70415         * modules/unistr/u32-strchr: New file.
70416         * lib/unistr/u8-strchr.c: New file.
70417         * lib/unistr/u16-strchr.c: New file.
70418         * lib/unistr/u32-strchr.c: New file.
70419
70420         * modules/unistr/u8-strcmp: New file.
70421         * modules/unistr/u16-strcmp: New file.
70422         * modules/unistr/u32-strcmp: New file.
70423         * lib/unistr/u8-strcmp.c: New file.
70424         * lib/unistr/u16-strcmp.c: New file.
70425         * lib/unistr/u32-strcmp.c: New file.
70426
70427         * modules/unistr/u8-strcpy: New file.
70428         * modules/unistr/u16-strcpy: New file.
70429         * modules/unistr/u32-strcpy: New file.
70430         * lib/unistr/u8-strcpy.c: New file.
70431         * lib/unistr/u16-strcpy.c: New file.
70432         * lib/unistr/u32-strcpy.c: New file.
70433         * lib/unistr/u-strcpy.h: New file.
70434
70435         * modules/unistr/u8-strcspn: New file.
70436         * modules/unistr/u16-strcspn: New file.
70437         * modules/unistr/u32-strcspn: New file.
70438         * lib/unistr/u8-strcspn.c: New file.
70439         * lib/unistr/u16-strcspn.c: New file.
70440         * lib/unistr/u32-strcspn.c: New file.
70441         * lib/unistr/u-strcspn.h: New file.
70442
70443         * modules/unistr/u8-strdup: New file.
70444         * modules/unistr/u16-strdup: New file.
70445         * modules/unistr/u32-strdup: New file.
70446         * lib/unistr/u8-strdup.c: New file.
70447         * lib/unistr/u16-strdup.c: New file.
70448         * lib/unistr/u32-strdup.c: New file.
70449         * lib/unistr/u-strdup.h: New file.
70450
70451         * modules/unistr/u8-strlen: New file.
70452         * modules/unistr/u16-strlen: New file.
70453         * modules/unistr/u32-strlen: New file.
70454         * lib/unistr/u8-strlen.c: New file.
70455         * lib/unistr/u16-strlen.c: New file.
70456         * lib/unistr/u32-strlen.c: New file.
70457         * lib/unistr/u-strlen.h: New file.
70458
70459         * modules/unistr/u8-strmblen: New file.
70460         * modules/unistr/u16-strmblen: New file.
70461         * modules/unistr/u32-strmblen: New file.
70462         * lib/unistr/u8-strmblen.c: New file.
70463         * lib/unistr/u16-strmblen.c: New file.
70464         * lib/unistr/u32-strmblen.c: New file.
70465
70466         * modules/unistr/u8-strmbtouc: New file.
70467         * modules/unistr/u16-strmbtouc: New file.
70468         * modules/unistr/u32-strmbtouc: New file.
70469         * lib/unistr/u8-strmbtouc.c: New file.
70470         * lib/unistr/u16-strmbtouc.c: New file.
70471         * lib/unistr/u32-strmbtouc.c: New file.
70472
70473         * modules/unistr/u8-strncat: New file.
70474         * modules/unistr/u16-strncat: New file.
70475         * modules/unistr/u32-strncat: New file.
70476         * lib/unistr/u8-strncat.c: New file.
70477         * lib/unistr/u16-strncat.c: New file.
70478         * lib/unistr/u32-strncat.c: New file.
70479         * lib/unistr/u-strncat.h: New file.
70480
70481         * modules/unistr/u8-strncmp: New file.
70482         * modules/unistr/u16-strncmp: New file.
70483         * modules/unistr/u32-strncmp: New file.
70484         * lib/unistr/u8-strncmp.c: New file.
70485         * lib/unistr/u16-strncmp.c: New file.
70486         * lib/unistr/u32-strncmp.c: New file.
70487
70488         * modules/unistr/u8-strncpy: New file.
70489         * modules/unistr/u16-strncpy: New file.
70490         * modules/unistr/u32-strncpy: New file.
70491         * lib/unistr/u8-strncpy.c: New file.
70492         * lib/unistr/u16-strncpy.c: New file.
70493         * lib/unistr/u32-strncpy.c: New file.
70494         * lib/unistr/u-strncpy.h: New file.
70495
70496         * modules/unistr/u8-strnlen: New file.
70497         * modules/unistr/u16-strnlen: New file.
70498         * modules/unistr/u32-strnlen: New file.
70499         * lib/unistr/u8-strnlen.c: New file.
70500         * lib/unistr/u16-strnlen.c: New file.
70501         * lib/unistr/u32-strnlen.c: New file.
70502         * lib/unistr/u-strnlen.h: New file.
70503
70504         * modules/unistr/u8-strpbrk: New file.
70505         * modules/unistr/u16-strpbrk: New file.
70506         * modules/unistr/u32-strpbrk: New file.
70507         * lib/unistr/u8-strpbrk.c: New file.
70508         * lib/unistr/u16-strpbrk.c: New file.
70509         * lib/unistr/u32-strpbrk.c: New file.
70510         * lib/unistr/u-strpbrk.h: New file.
70511
70512         * modules/unistr/u8-strrchr: New file.
70513         * modules/unistr/u16-strrchr: New file.
70514         * modules/unistr/u32-strrchr: New file.
70515         * lib/unistr/u8-strrchr.c: New file.
70516         * lib/unistr/u16-strrchr.c: New file.
70517         * lib/unistr/u32-strrchr.c: New file.
70518
70519         * modules/unistr/u8-strspn: New file.
70520         * modules/unistr/u16-strspn: New file.
70521         * modules/unistr/u32-strspn: New file.
70522         * lib/unistr/u8-strspn.c: New file.
70523         * lib/unistr/u16-strspn.c: New file.
70524         * lib/unistr/u32-strspn.c: New file.
70525         * lib/unistr/u-strspn.h: New file.
70526
70527         * modules/unistr/u8-strstr: New file.
70528         * modules/unistr/u16-strstr: New file.
70529         * modules/unistr/u32-strstr: New file.
70530         * lib/unistr/u8-strstr.c: New file.
70531         * lib/unistr/u16-strstr.c: New file.
70532         * lib/unistr/u32-strstr.c: New file.
70533         * lib/unistr/u-strstr.h: New file.
70534
70535         * modules/unistr/u8-strtok: New file.
70536         * modules/unistr/u16-strtok: New file.
70537         * modules/unistr/u32-strtok: New file.
70538         * lib/unistr/u8-strtok.c: New file.
70539         * lib/unistr/u16-strtok.c: New file.
70540         * lib/unistr/u32-strtok.c: New file.
70541         * lib/unistr/u-strtok.h: New file.
70542
70543         * modules/unistr/u8-uctomb: New file.
70544         * modules/unistr/u16-uctomb: New file.
70545         * modules/unistr/u32-uctomb: New file.
70546         * lib/unistr/u8-uctomb.c: New file.
70547         * lib/unistr/u16-uctomb.c: New file.
70548         * lib/unistr/u32-uctomb.c: New file.
70549
70550         * MODULES.html.sh (Unicode string functions): Add the new modules.
70551
70552 2007-01-08  Bruno Haible  <bruno@clisp.org>
70553
70554         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
70555         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
70556         subdirectories.
70557
70558 2007-01-08  Karl Berry  <karl@gnu.org>
70559
70560         * doc/error.texi: mention that main() fns must set program_name
70561         when progname is used.
70562
70563 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
70564
70565         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
70566         WCTYPE_H is empty, for the benefit of builds from non-distclean
70567         directories.  Problem reported by Eric Blake in
70568         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
70569
70570 2007-01-08  Bruno Haible  <bruno@clisp.org>
70571
70572         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
70573         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
70574         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
70575         PROVIDE_CANONICALIZE_FILENAME_MODE.
70576         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
70577
70578 2007-01-08  Bruno Haible  <bruno@clisp.org>
70579
70580         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
70581         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
70582         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
70583         * lib/fts.c: Likewise.
70584         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
70585
70586 2006-12-25  Bruno Haible  <bruno@clisp.org>
70587
70588         * modules/utf8-ucs4-safe: New file.
70589         * lib/utf8-ucs4-safe.h: New file.
70590         * lib/unistr/utf8-ucs4-safe.c: New file.
70591
70592         * modules/utf16-ucs4-safe: New file.
70593         * lib/utf16-ucs4-safe.h: New file.
70594         * lib/unistr/utf16-ucs4-safe.c: New file.
70595
70596         * MODULES.html.sh (Unicode string functions): Add the new modules.
70597
70598 2007-01-08  Bruno Haible  <bruno@clisp.org>
70599
70600         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
70601         (Depends-on): Add unitypes.
70602         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
70603         (u8_mbtouc_aux): Move out to separate file.
70604         (u8_mbtouc): Use ucs4_t, uint8_t types.
70605         * lib/unistr/utf8-ucs4.c: New file.
70606
70607         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
70608         (Depends-on): Add unitypes.
70609         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
70610         (u16_mbtouc_aux): Move out to separate file.
70611         (u16_mbtouc): Use ucs4_t, uint16_t types.
70612         * lib/unistr/utf16-ucs4.c: New file.
70613
70614         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
70615         (Depends-on): Add unitypes.
70616         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
70617         (u8_uctomb_aux): Move out to separate file.
70618         (u8_uctomb): Use ucs4_t, uint8_t types.
70619         * lib/unistr/ucs4-utf8.c: New file.
70620
70621         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
70622         (Depends-on): Add unitypes.
70623         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
70624         (u16_uctomb_aux): Move out to separate file.
70625         (u16_uctomb): Use ucs4_t, uint16_t types.
70626         * lib/unistr/ucs4-utf16.c: New file.
70627
70628 2006-12-25  Bruno Haible  <bruno@clisp.org>
70629
70630         * modules/unitypes: New file.
70631         * lib/unitypes.h: New file.
70632         * MODULES.html.sh (func_all_modules): New section "Unicode string
70633         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
70634         this section. Add unitypes.
70635
70636 2007-01-08  Bruno Haible  <bruno@clisp.org>
70637
70638         Avoid variable names that conflict with those from libtool.
70639         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
70640         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
70641         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
70642         library_names_spec to acl_library_names_spec, hardcode_* to
70643         acl_hardcode_*.
70644         Reported by Ralf Wildenhues.
70645
70646 2007-01-08  Bruno Haible  <bruno@clisp.org>
70647
70648         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
70649         definition.
70650         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
70651         definition.
70652         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
70653         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
70654         definition.
70655         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
70656         definition.
70657         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
70658         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
70659         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
70660         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
70661         definition.
70662         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
70663         definition.
70664         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
70665         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
70666         GC_USE_<algorithm>.
70667         * lib/gc-libgcrypt.c: Likewise.
70668         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
70669         * modules/gc-arctwo (configure.ac): Likewise.
70670         * modules/gc-des (configure.ac): Likewise.
70671         * modules/gc-hmac-md5 (configure.ac): Likewise.
70672         * modules/gc-hmac-sha1 (configure.ac): Likewise.
70673         * modules/gc-md2 (configure.ac): Likewise.
70674         * modules/gc-md4 (configure.ac): Likewise.
70675         * modules/gc-md5 (configure.ac): Likewise.
70676         * modules/gc-random (configure.ac): Likewise.
70677         * modules/gc-rijndael (configure.ac): Likewise.
70678         * modules/gc-sha1 (configure.ac): Likewise.
70679
70680 2007-01-08  Bruno Haible  <bruno@clisp.org>
70681
70682         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
70683         macro definition.
70684         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
70685         definition.
70686         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
70687         definition.
70688         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
70689         * modules/fcntl-safer (configure.ac): Likewise.
70690         * modules/fopen-safer (configure.ac): Likewise.
70691         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
70692         GNULIB_FWRITEERROR macro definition.
70693
70694 2007-01-08  Bruno Haible  <bruno@clisp.org>
70695
70696         * m4/gnulib-common.m4: New file.
70697         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
70698         (func_get_filelist): Add m4/gnulib-common.m4.
70699
70700 2007-01-08  Bruno Haible  <bruno@clisp.org>
70701
70702         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
70703         command.
70704
70705 2007-01-08  Jim Meyering  <jim@meyering.net>
70706
70707         Use a more robust test for a "can't happen" condition.
70708         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
70709         narrowed the st_size value.  Presuming the "can't happen" condition
70710         is true, that narrowing could conceivably convert an invalid st_size
70711         value into a valid one.  Instead, use a change based on Matthew
70712         Woehlke's original patch.
70713
70714         Slight readability improvement: use an assert-like macro
70715         in place of literal "abort ()" uses.
70716         * lib/fts.c (fts_assert): Define.
70717         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
70718         Use this macro instead of a bare 'abort'.
70719
70720 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
70721
70722         Don't worry about using IRIX 5.3's wctype.h broken definitions;
70723         simply work around them.
70724         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
70725         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
70726         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
70727         declaring.
70728         Don't bother to define as macros, since the standard doesn't require it.
70729         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
70730         longer worry about IRIX 5.3.
70731         (HAVE_WCTYPE_CTMP_BUG): Remove.
70732
70733 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
70734
70735         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
70736         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
70737         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
70738         Problems reported by Georg Schwarz for IRIX 5.3.
70739
70740         * gnulib-tool (autoconf_minversion): Take the maximum version number
70741         found, not the minimum.  Problem reported by James Youngman.
70742
70743 2007-01-03  Karl Berry  <karl@gnu.org>
70744
70745         * doc/error.texi: new file, explaining interaction with progname.
70746         * doc/gnulib.texi: include it.  Update copyright.
70747
70748 2007-01-03  Simon Josefsson  <simon@josefsson.org>
70749
70750         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
70751         AC_CANONICAL_HOST, to improve autobuild outputs.
70752
70753 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
70754             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
70755
70756         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
70757         sockets, server sockets, and other file descriptors.  Count errors
70758         to compute the return value.  Reorder the code a bit to be easier
70759         to follow.  Don't set event bits that were not requested (except
70760         POLLERR and POLLHUP).
70761
70762 2007-01-01  Bruno Haible  <bruno@clisp.org>
70763
70764         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
70765
70766 2007-01-03  Jim Meyering  <jim@meyering.net>
70767
70768         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
70769
70770 2007-01-02  Bruno Haible  <bruno@clisp.org>
70771
70772         * modules/settime (Include): Require timespec.h.
70773         * modules/nanosleep (Include): Likewise.
70774
70775 2007-01-01  Bruno Haible  <bruno@clisp.org>
70776
70777         * gnulib-tool (func_emit_copyright_notice): Bump year.
70778         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
70779
70780 2007-01-01  Bruno Haible  <bruno@clisp.org>
70781
70782         Improve support for OpenBSD.
70783         * build-aux/config.rpath (libname_spec): Export.
70784         (library_names_spec): New variable. Export.
70785         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
70786         library_names_spec from the config.rpath output. Locate shared library
70787         through the name pattern in library_names_spec.
70788
70789 2007-01-01  Eric Blake  <ebb9@byu.net>
70790
70791         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
70792
70793 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
70794
70795         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
70796         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
70797         assume the C locale, and avoid an "eval" that could cause trouble.
70798         Problem with SORT reported by Bob Proulx.
70799
70800         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
70801         Define.  Trivial patch from Henning Nielsen Lund, originally
70802         sent to bug-grep@gnu.org today.
70803
70804 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
70805
70806         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
70807         struct stat.  Problem reported by Henning Nielsen Lund.
70808         * lib/acl.c: Include acl.h first, to check interface.  Don't
70809         bother to include sys/types.h and sys/stat.h again.
70810
70811 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
70812
70813         Import the following change from libc; problem reported by
70814         Sven Verdoolaege.
70815
70816         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
70817
70818         [BZ #1373]
70819         * lib/argp.h: Remove __NTH for __argp_usage inline function.
70820
70821 2006-12-28  Jim Meyering  <jim@meyering.net>
70822
70823         * build-aux/announce-gen: Do not assume that the package
70824         builds any of tar.gz, tar.bz2, and .xdelta files.
70825         Suggestion from Simon Josefsson.
70826
70827 2006-12-28  Simon Josefsson  <simon@josefsson.org>
70828
70829         * modules/announce-gen: New file.
70830
70831 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
70832
70833         * lib/mbchar.h: Just include <wctype.h>; the wctype module
70834         handles its gotchas now.
70835         * lib/mbswidth.c: Likewise.
70836         * lib/wcwidth.h: Likewise.
70837         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
70838         and iswcntrl; the wctype module does this stuff now.
70839         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
70840         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
70841         * modules/mbchar (Depends-on): Add wctype.
70842         * modules/mbswidth (Depends-on): Likewise.
70843         * modules/wcwidth (Depends-on): Likewise.
70844
70845 2006-12-27  Eric Blake  <ebb9@byu.net>
70846
70847         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
70848         module uses more than what <wctype.h> is required to provide.
70849
70850 2006-12-26  Eric Blake  <ebb9@byu.net>
70851
70852         * gnulib-tool (sed_extract_prog): Avoid space-tab.
70853
70854 2006-12-26  Eric Blake  <ebb9@byu.net>
70855
70856         * modules/absolute-header: New module.
70857         * modules/fcntl (Depends-on): Depend on it.
70858         * modules/inttypes (Depends-on): Likewise.
70859         * modules/stdint (Depends-on): Likewise.
70860         * modules/sys_stat (Depends-on): Likewise.
70861         * modules/wctype (Depends-on): Likewise.
70862         * MODULES.html.sh (Support for building libraries and
70863         executables): Document it.
70864
70865 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
70866
70867         * gnulib-tool (SED): Remove, undoing previous change.
70868         The problem was that it broke coreutils on Solaris, because
70869         "sed --posix" leaked into a makefile.
70870         (sed): New alias, if 'alias' and GNU sed.
70871
70872 2006-12-24  Jim Meyering  <jim@meyering.net>
70873
70874         Work around an fchownat bug in glibc-2.4:
70875         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
70876         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
70877         in spite of the -P option.
70878         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
70879         New macros.
70880         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
70881         * modules/openat (Files): Add lib/fchownat.c.
70882         * lib/openat.c (fchownat): Don't define here.  Move to...
70883         * lib/fchownat.c: ...this new file.
70884
70885 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
70886
70887         Fix bug reported by Bruno Haible in
70888         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
70889         where quotearg.c didn't compile on Mac OS X 10.2 because it
70890         lacks <wchar.h> and wint_t.
70891         * lib/wctype_.h (__wctype_wint_t): New type.
70892         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
70893         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
70894         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
70895         Arg is now of type __wctype_wint_t, not wint_t.
70896         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
70897         substitute HAVE_WINT_T.
70898         * modules/wctype (Files): Add m4/wint_t.m4.
70899         (wctype.h): Substitute HAVE_WINT_T.
70900
70901 2006-12-23  Bruno Haible  <bruno@clisp.org>
70902
70903         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
70904
70905 2006-12-23  Bruno Haible  <bruno@clisp.org>
70906
70907         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
70908         S_ISLNK.
70909         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
70910         mingw.
70911
70912 2006-12-22  Bruno Haible  <bruno@clisp.org>
70913
70914         * lib/copy-file.c: Include acl.h.
70915         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
70916         Close the file descriptors only after being done with copy_acl.
70917         * modules/copy-file (Depends-on): Add acl.
70918
70919 2006-12-22  Bruno Haible  <bruno@clisp.org>
70920
70921         * gnulib-tool (SED): New variable.
70922         Use $SED instead of sed everywhere.
70923
70924 2006-12-22  Bruno Haible  <bruno@clisp.org>
70925
70926         * modules/no-c++: New file.
70927         * m4/no-c++.m4: New file.
70928         * MODULES.html.sh (Support for building libraries and executables):
70929         Add no-c++.
70930
70931 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
70932
70933         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
70934         Include <limits.h>, and use its INT_MAX to rewrite the
70935         j loop so that it does not overflow 'int'.  Problem reported by
70936         Ralf Wildenhues in
70937         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
70938         Play it safe by shifting left by 1 rather than multiplying by 2,
70939         as GCC is less likely to optimize this away when the value
70940         is signed (when it assumes overflow leads to undefined behavior).
70941         Also, don't assume time_t uses two's complement.
70942
70943 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
70944
70945         * MODULES.html.sh: New module wctype.
70946         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
70947         * lib/fnmatch.c: Don't bother to include <wchar.h> before
70948         <wctype.h>, since the new wctype module should fix this.
70949         * lib/quotearg.c: Include <wctype.h> unconditionally, since
70950         the wctype module should arrange for it.
70951         * lib/regex_internal.h: Likewise.
70952         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
70953         since the wctype module should handle this now.
70954         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
70955         * modules/fnmatch (Depends-on): Add wctype.
70956         * modules/quotearg (Depends-on): Likewise.
70957         * modules/regex (Depends-on): Likewise.
70958
70959 2006-12-19  Bruno Haible  <bruno@clisp.org>
70960
70961         * lib/strdup.h [C++]: Wrap definitions in extern "C".
70962         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
70963
70964 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70965
70966         * modules/savewd (Depends-on): Fix dependency on fcntl.
70967
70968 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
70969
70970         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
70971         conforms to C99, rather than relying on the user's environment
70972         setting of STDINT_H.
70973
70974 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
70975         and Eric Blake  <ebb9@byu.net>
70976
70977         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
70978         This is more consistent with the other defines here.
70979         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
70980         Port to z/OS.  Problem reported by Paul Gilmartin.
70981         Change local vars to use gl_ prefix rather than ac_.
70982         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
70983         with other defines.
70984         * modules/double-slash-root: New module.
70985         * modules/dirname (Files): Remove m4/double-slash-root.m4.
70986         (Depends-on): Add double-slash-root.
70987         * MODULES.html.sh (File system functions): Mention new module.
70988
70989 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
70990
70991         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
70992         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
70993         This is for the benefit of gzip, which doesn't do i18n.
70994
70995 2006-12-12  Jim Meyering  <jim@meyering.net>
70996
70997         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
70998         Reported by Andreas Schwab <schwab@suse.de>.
70999
71000 2006-12-12  Bruno Haible  <bruno@clisp.org>
71001
71002         Merge these changes.
71003         2006-09-05  Bruno Haible  <bruno@clisp.org>
71004         * lib/iconvme.c (iconv_string): No need to save and restore errno when
71005         iconv_alloc succeeded.
71006         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
71007         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
71008         test for " && dest " at the end - dest is always != NULL there. Call
71009         iconv with 4xNULL arguments initially, to reset the state. Call iconv
71010         with 2xNULL arguments, also to flush the state storage. Handle the
71011         IRIX iconv behaviour. Realloc the final result, to throw away unused
71012         memory.
71013
71014 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
71015
71016         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
71017         and fchmodat unconditionally, since glibc 2.4 has them.
71018         Problem reported by Arkadiusz Miskiewicz.
71019
71020 2006-12-10  Bruno Haible  <bruno@clisp.org>
71021
71022         * gnulib-tool (func_import): Show the include files only for those
71023         modules that are copied and specified.
71024         Reported by Karl Berry.
71025
71026 2006-12-08  Jim Meyering  <jim@meyering.net>
71027
71028         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
71029         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
71030
71031         * build-aux/announce-gen: Add two new options, both optional:
71032         --bootstrap-tools=TOOL_LIST
71033               a comma-separated list of tools, e.g.,
71034               autoconf,automake,bison,gnulib
71035         --gnulib-snapshot-date=DATE
71036               if gnulib is in the bootstrap tool list,
71037               then report this as the snapshot date.
71038               If not specified, use the current date/time.
71039               If you specify a date here, be sure it's UTC.
71040
71041 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71042
71043         * tests/test-argp-2.sh: Fix test to match actual output.
71044         (func_compare): Fix sed script to be portable.
71045
71046 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
71047
71048         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
71049         workaround for this case.  It is not autoconfigured now; offhand
71050         it's hard to see how to autoconfigure it.
71051
71052 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
71053
71054         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
71055         a directory that is about to be chowned.  Such a directory's
71056         initial file permissions should permit the owner only and this
71057         should not be changed until after the chown, since the group and
71058         other bits would be incorrect if they granted permission before
71059         the chown.
71060
71061         Fix porting problem for iswctype reported by Georg Schwarz in:
71062         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
71063         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
71064         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
71065         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
71066         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
71067
71068 2006-12-03  Jim Meyering  <jim@meyering.net>
71069
71070         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
71071         p->fts_statp may not yet be defined.
71072         (fts_read): Instead, set it in the caller, once p->fts_statp is
71073         sure to be defined, and corresponds to a top-level directory.
71074         This bug made du -x fail.  Here's the coreutils test case:
71075         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
71076         Reported by Mike Frysinger.
71077
71078 2006-12-01  Jim Meyering  <jim@meyering.net>
71079
71080         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
71081         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
71082         Reported by Simon Josefsson.
71083
71084 2006-11-30  Jim Meyering  <jim@meyering.net>
71085
71086         * m4/warning.m4: Use the all-permissive copyright notice
71087         recommended by RMS (rather than LGPL).
71088         * m4/vararrays.m4: Likewise.
71089         * m4/flexmember.m4: Likewise.
71090
71091 2006-11-29  Bruno Haible  <bruno@clisp.org>
71092
71093         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
71094         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
71095         using +=.
71096         Reported by Simon Josefsson <simon@josefsson.org>.
71097
71098 2006-11-28  James Youngman <jay@gnu.org>
71099
71100         * README: Advise users that they might find the bug-gnulib@gnu.org
71101         and autotools-announce@gnu.org mailing lists useful.
71102
71103 2006-11-28  Bruno Haible  <bruno@clisp.org>
71104
71105         * m4/ptrdiff_max.m4: Remove file.
71106
71107 2006-11-21  Bruno Haible  <bruno@clisp.org>
71108
71109         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
71110         _AC_COMPUTE_INT.
71111         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71112         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
71113         _AC_COMPUTE_INT.
71114         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71115         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
71116         _AC_COMPUTE_INT.
71117         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71118
71119 2006-11-28  Jim Meyering  <jim@meyering.net>
71120
71121         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
71122         warning from "gcc -Wshadow" about shadowing the builtin.
71123
71124 2006-11-27  Bruno Haible  <bruno@clisp.org>
71125
71126         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
71127         _AC_COMPUTE_INT.
71128         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71129
71130 2006-11-27  Bruno Haible  <bruno@clisp.org>
71131             Paul Eggert  <eggert@cs.ucla.edu>
71132
71133         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
71134
71135 2006-11-26  Bruno Haible  <bruno@clisp.org>
71136
71137         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
71138         noinst_LTLIBRARIES.
71139
71140 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
71141             Bruno Haible  <bruno@clisp.org>
71142
71143         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
71144         if compiling with "gcc -ansi".
71145
71146 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
71147
71148         Fix some incompatibilities with gcc -ansi -pedantic.
71149         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
71150         if compiling pedantically with GCC, unless it's C99 or later.
71151         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
71152         it mishandles gcc -ansi -pedantic as well.
71153         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
71154         if gcc -pedantic.
71155         * lib/regexec.c (check_node_accept_bytes): Don't use auto
71156         initializers for struct if -pedantic, unless it's C99 or later.
71157
71158 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
71159
71160         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
71161         Don't close an fd more than once. Identical atimes indicate
71162         success, not failure.
71163
71164 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
71165
71166         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
71167
71168 2006-11-23  Jim Meyering  <jim@meyering.net>
71169
71170         * build-aux/announce-gen: New file.  From coreutils.
71171
71172 2006-11-22  Jim Meyering  <jim@meyering.net>
71173
71174         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
71175         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
71176         (fts_read): Use a temporary to narrow the overused st_size member
71177         before using it in a switch statement.  Reported by Matthew Woehlke.
71178
71179         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
71180         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
71181
71182 2006-11-20  Bruno Haible  <bruno@clisp.org>
71183
71184         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
71185         changequote instead of pairs of brackets.
71186         Reported by Andreas Schwab <schwab@suse.de>.
71187
71188 2006-11-21  Jim Meyering  <jim@meyering.net>
71189
71190         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
71191         so as to remain compatible with older compilers.
71192         Patch from Michael Deutschmann.
71193
71194 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71195
71196         * MODULES.html.sh (File system functions): Add openat.
71197
71198         * lib/openat.h (rpl_fstatat): New macro, if
71199         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
71200         (fstatat): Define to rpl_fstatat under the same conditions,
71201         unless COMPILING_FSTATAT.
71202         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
71203         seems to have the bug.
71204         * lib/fstatat.c: New file.
71205         * modules/openat (Files): Add it.
71206
71207 2006-11-20  Bruno Haible  <bruno@clisp.org>
71208
71209         * Makefile: New file.
71210
71211 2006-11-20  Jim Meyering  <jim@meyering.net>
71212
71213         The beginnings of syntax-related checks for gnulib.
71214         * lib/Makefile: New file.
71215         * lib/t-idcache: New script.  Ensure that the two halves of
71216         idcache.c stay in sync.
71217
71218         * lib/idcache.c: Adjust comments in user- and group- portions to
71219         be more accurate, and to be consistent with one another.
71220
71221 2006-11-20  Jim Meyering  <jim@meyering.net>
71222
71223         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
71224         continue using the flexible array member (thus, this module performs
71225         half as many malloc calls), with the addition that...
71226         (getgroup, getuser): Consistently record a non-match via an empty
71227         "name" string, and map an empty string match to a NULL return value.
71228         * modules/idcache (Depends-on): Re-add flexmember.
71229
71230         * lib/idcache.c (getuser): Remove all uses of the register keyword.
71231         (getuidbyname, getgroup, getgidbyname): Likewise.
71232
71233         Use cleaner syntax: NULL rather than 0.
71234         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
71235
71236 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71237
71238         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
71239         It mishandled the case where the group was missing.
71240         Problem reported by Greg Schafer.
71241         * modules/idcache: Likewise.
71242
71243 2006-11-18  Jim Meyering  <jim@meyering.net>
71244
71245         * check-module (%exempt_header): Add exception for some
71246         conditionally-included headers.
71247
71248         * modules/i-ring (Depends-on): Add verify.
71249         (License): Change to LGPL.
71250
71251 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71252
71253         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
71254         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
71255         and inttostr.h.  Use snprintf rather than uinttostr, so that
71256         LGPLed code doesn't depend on GPLed.
71257
71258 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
71259
71260         * modules/inline (License): Change from GPL to LGPL.
71261
71262 2006-11-17  Jim Meyering  <jim@meyering.net>
71263
71264         * modules/d-type (License): Switch to LGPL.
71265
71266 2006-11-15  Bruno Haible  <bruno@clisp.org>
71267
71268         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
71269
71270 2006-11-15  Eric Blake  <ebb9@byu.net>
71271
71272         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
71273         the module dependency.
71274
71275 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71276             Bruno Haible  <bruno@clisp.org>
71277
71278         * gnulib-tool (func_create_testdir): Add license consistency check.
71279
71280 2006-11-15  Eric Blake  <ebb9@byu.net>
71281
71282         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
71283         random "(cached)" in configure output.
71284
71285 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71286
71287         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
71288         test for conforming inttypes.h is both announced and cached.
71289
71290         * MODULES.html.sh (seen_modules, seen_files): New variables.
71291         (func_module): Rewrite to use a few less gnulib-tool and sed
71292         invocations.  Avoid a couple of quadratic algorithms for ...
71293         (missed_modules, missed_files): ... these, with ...
71294         (func_append, func_tmpdir): ... these new functions, from
71295         gnulib-tool.  Analogously, install traps for cleanup.
71296
71297         * tests/test-gc.c (main): Remove unused variables.
71298         * tests/test-read-file.c: Include stdlib.h, for 'free'.
71299
71300 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
71301
71302         * modules/inttostr (License): Change to LGPL.
71303
71304 2006-11-14  Eric Blake  <ebb9@byu.net>
71305
71306         * modules/tempname (License): Change to LGPL.
71307
71308 2006-11-14  Eric Blake  <ebb9@byu.net>
71309
71310         * doc/functions.texi (Function Portability): *printf functions on
71311         Cygwin now understand all POSIX size specifiers.
71312
71313 2006-11-14  Bruno Haible  <bruno@clisp.org>
71314
71315         * modules/c-ctype (License): Change to LGPL.
71316
71317 2006-11-12  Bruno Haible  <bruno@clisp.org>
71318
71319         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
71320         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
71321         for GNOME libraries, for which the include files are installed in
71322         subdirectories of $prefix/include.
71323
71324 2006-11-12  Bruno Haible  <bruno@clisp.org>
71325
71326         * m4/lib-link.m4: Require at least autoconf-2.54.
71327         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
71328         name to underscores for the --with option.
71329
71330 2006-11-13  Bruno Haible  <bruno@clisp.org>
71331
71332         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
71333         the tests directory.
71334         Reported by Ralf Wildenhues.
71335
71336 2006-11-13  Bruno Haible  <bruno@clisp.org>
71337
71338         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
71339         (func_emit_initmacro_end): Undo the override here.
71340         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
71341         Works around the famous automake error in coreutils.
71342
71343 2006-11-13  Eric Blake  <ebb9@byu.net>
71344
71345         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
71346         element, not its node.
71347
71348 2006-11-12  Bruno Haible  <bruno@clisp.org>
71349
71350         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
71351         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
71352
71353 2006-11-12  Bruno Haible  <bruno@clisp.org>
71354
71355         * gnulib-tool: New option --local-symlink.
71356         (func_usage): Document it.
71357         (lsymbolic): New variable.
71358         (func_import, func_create_testdir): If --symlink was not specified,
71359         test whether --local-symlink was specified and the file comes from
71360         the local_gnulib_dir.
71361
71362 2006-11-12  Bruno Haible  <bruno@clisp.org>
71363
71364         * gnulib-tool (func_ln): New function.
71365         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
71366
71367 2006-11-12  Bruno Haible  <bruno@clisp.org>
71368
71369         Finish support for source files in subdirectories.
71370         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
71371         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
71372         AUTOMAKE_OPTIONS.
71373         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
71374
71375 2006-11-12  Bruno Haible  <bruno@clisp.org>
71376
71377         * gnulib-tool (func_get_automake_snippet): Synthesize also an
71378         EXTRA_lib_SOURCES augmentation.
71379         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
71380
71381 2006-11-12  Jim Meyering  <jim@meyering.net>
71382
71383         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
71384         file descriptors.  This also averts a failure on systems with
71385         native openat support when a traversed directory lacks "x" access.
71386         * lib/fts_.h: Include "i-ring.h"
71387         (struct FTS) [fts_fd_ring]: New member.
71388         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
71389         (FCHDIR): Add parentheses.
71390         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
71391         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
71392         When descending, rather than simply closing the previous
71393         fts_cwd_fd value, push that file descriptor onto the ring.
71394         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
71395         (fts_open): Initialize the new fd_ring member.
71396         (fts_close): Clear the ring.
71397         (fts_safe_changedir): When possible, use our new fd_ring to skip
71398         the diropen and fstat and dev/ino comparison that would normally
71399         accompany a virtual `chdir ("..")'.
71400
71401         * modules/fts (Depends-on): Add i-ring.
71402         * modules/i-ring: New module.
71403         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
71404         * m4/i-ring.m4: New file.
71405
71406 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71407
71408         * gnulib-tool (func_create_testdir): Fix replacement of
71409         `build-aux' in configure.ac.  Run autotools in gltests
71410         subdirectory.
71411         (func_create_testdir, func_create_megatestdir, test): There is
71412         no need for '--force' in most autotool invocations in a new
71413         tree.  Actually fail the whole test if any of the tools, or the
71414         configure or make stages fail.
71415
71416         Sync from Automake.
71417         * build-aux/gnupload: Revert last change.  Add pointer to upload
71418         instructions of the GNU Maintenance Instructions.
71419         Suggestion by Karl Berry.
71420
71421 2006-11-10  Jim Meyering  <jim@meyering.net>
71422
71423         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
71424
71425 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71426
71427         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
71428         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
71429         (bind_textdomain_codeset) [! ENABLE_NLS]:
71430         Evaluate all the arguments.  That way, callers get compatible behavior
71431         if the arguments have side effects.  Also, it avoids some GCC
71432         diagnostics in some cases; Joel E. Denny reported problems when Bison
71433         was configured with --enable-gcc-warnigs.
71434
71435 2006-11-10  Jim Meyering  <jim@meyering.net>
71436
71437         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
71438         relevant options in CFLAGS (like -O, -fno-inline) are taken into
71439         account.
71440
71441 2006-11-10  Jim Meyering  <jim@meyering.net>
71442
71443         * modules/inline: New file/module.
71444         * modules/xalloc (Files): Remove m4/inline.m4.
71445         (Depends-on): Add inline, instead.
71446         * modules/oset: Likewise.
71447         * modules/list: Likewise.
71448
71449 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71450
71451         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
71452         Problem reported by Matthew Woehlke.
71453
71454 2006-11-09  Bruno Haible  <bruno@clisp.org>
71455
71456         * lib/tempname.c (gen_tempname): Remove variant that invokes
71457         __gen_tempname.
71458         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
71459         __gen_tempname.
71460
71461 2006-11-08  Bruno Haible  <bruno@clisp.org>
71462
71463         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
71464         to 'yes' instead of 'cross-compiling'.
71465
71466 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
71467
71468         * lib/quotearg.h (quotearg_free): New decl.
71469         * lib/quotearg.c (quotearg_free): New function.
71470         (slot0, nslots, slotvec0, slotvec):
71471         Now file-scope so that quotearg_free can get at them.
71472
71473 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71474
71475         Sync from Automake.
71476         * build-aux/gnupload: Add missing 'gnu' to example URL.
71477         Report by Karl Berry.
71478
71479 2006-11-08  Bruno Haible  <bruno@clisp.org>
71480
71481         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
71482         Suggested by Paul Eggert.
71483
71484 2006-11-08  Jim Meyering  <jim@meyering.net>
71485
71486         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
71487         It's already included if !_LIBC.
71488         (fts_safe_changedir): Add a comment.
71489
71490 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
71491
71492         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
71493         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
71494         Matthew Woehlke.
71495
71496         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
71497         definitions up, to avoid colliding with change below.
71498         (static_inline) [HAVE_INLINE]: New macro.
71499         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
71500         Provide extern decls when !HAVE_INLINE.  Do not define unless
71501         static_inline is defined, either by us or by xmalloc.c.  Use
71502         static_inline rather than static inline.
71503         (XCALLOC): Optimize sizeof(T) = 1 case.
71504         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
71505
71506 2006-11-07  Bruno Haible  <bruno@clisp.org>
71507
71508         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
71509         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
71510         AC_C_INLINE.
71511         * modules/xalloc (Files): Add m4/inline.m4.
71512
71513 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71514
71515         * README: Fix typo.
71516         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
71517         (Miscellanous Notes): ...from this.
71518
71519 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
71520
71521         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
71522         Mention that offsetof should be used instead of sizeof.
71523         From Bruno Haible.
71524
71525 2006-11-07  Bruno Haible  <bruno@clisp.org>
71526
71527         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
71528
71529 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
71530
71531         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
71532         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
71533         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
71534         (gl_tree_add_before, gl_tree_add_after):
71535         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
71536         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
71537         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
71538         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
71539         (gl_linked_add_after, gl_linked_add_at): Likewise.
71540         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
71541         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
71542         (gl_tree_add_before, gl_tree_add_after): Likewise.
71543         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
71544         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
71545         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
71546
71547 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71548
71549         * lib/gl_oset.h: Use C comment style, not C++ comment style.
71550
71551 2006-11-06  Bruno Haible  <bruno@clisp.org>
71552
71553         * m4/inline.m4: New file.
71554         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
71555         * modules/list (Files): Add m4/inline.m4.
71556         * modules/oset (Files): Likewise.
71557
71558 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
71559
71560         * lib/idcache.c: Include <stddef.h>, for offsetof.
71561         (struct userid.name): Change from char * to a flexible array member.
71562         All uses changed.
71563         * modules/idcache (Depends-on): Add flexmember.
71564
71565         * MODULES.html.sh (Core language properties): New module flexmember.
71566         * modules/flexmember, m4/flexmember.m4: New files.
71567
71568         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
71569         inline functions that are identical with the old xnmalloc_inline,
71570         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
71571         that we can avoid some unnecessary integer multiplications and
71572         divisions in the common case where the element size is known at
71573         compile time.
71574         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
71575         needed.
71576         (xnboundedmalloc): Remove.
71577         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
71578         arguments, for consistency with rest of this header.
71579         (xcharalloc): Rewrite using XNMALLOC.
71580         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
71581         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
71582         versions have been moved to lib/xalloc.h and renamed to be the
71583         non-*_inline versions.
71584         (xmalloc, xrealloc): Implement without reference to the xnmalloc
71585         and xnrealloc functions, since those functions are now inline and
71586         now call us.
71587         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
71588         renaming described above.
71589         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
71590         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
71591         captures the dependency in AC_C_INLINE.
71592
71593         New module canonicalize-lgpl, proposed by Charles Wilson in
71594         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
71595         with a few small changes afterwards.
71596         * MODULES.html.sh (File system functions): New module
71597         canonicalize-lgpl.
71598         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
71599         and canonicalize_file_name.
71600         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
71601         * modules/canonicalize-lgpl: New files.
71602
71603 2006-11-05  Bruno Haible  <bruno@clisp.org>
71604
71605         * gnulib-tool (func_import, func_create_testdir): Create directories
71606         also for files in subdirectories of lib/.
71607
71608 2006-11-05  Bruno Haible  <bruno@clisp.org>
71609
71610         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
71611         ANSI C compliant.
71612
71613 2006-11-03  Bruno Haible  <bruno@clisp.org>
71614
71615         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
71616         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
71617         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
71618         (xnboundedmalloc): New inline function.
71619         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
71620         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
71621         xmalloc.
71622         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
71623         xmalloc.
71624         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
71625         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
71626         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
71627         xmalloc.
71628         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
71629         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
71630         xmalloc.
71631         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
71632         gl_tree_add_after): Use XMALLOC instead of xmalloc.
71633         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
71634         xmalloc.
71635         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
71636         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
71637         gl_tree_add_after): Use XMALLOC instead of xmalloc.
71638         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
71639         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
71640         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
71641         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
71642
71643 2006-11-03  Bruno Haible  <bruno@clisp.org>
71644
71645         * lib/c-ctype.h [C++]: Define functions without name mangling.
71646         * lib/fwriteerror.h [C++]: Likewise.
71647         * lib/gcd.h [C++]: Likewise.
71648         * lib/linebreak.h [C++]: Likewise.
71649
71650 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
71651
71652         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
71653         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
71654         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
71655         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
71656         Check for functions and headers just once.
71657         Check for declaration of canonicalize_file_name.
71658         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
71659
71660 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
71661
71662         * gnulib-tool (func_import): Fix typo in actioncmd.
71663
71664 2006-11-02  Bruno Haible  <bruno@clisp.org>
71665
71666         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
71667         newline sequence in the Makefile.am snippet as a space, like "make"
71668         does.
71669         Reported by Roger Persson <perrog@gmail.com>.
71670
71671 2006-11-01  Bruno Haible  <bruno@clisp.org>
71672
71673         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
71674         already declared in <string.h>.
71675         * lib/strcase.h (strncasecmp): Don't declare it if yes.
71676
71677 2006-11-01  Bruno Haible  <bruno@clisp.org>
71678
71679         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
71680         * lib/strcase.h: Include <string.h>.
71681         (strcasecmp): Define to rpl_strcasecmp here.
71682
71683 2006-11-01  Bruno Haible  <bruno@clisp.org>
71684
71685         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
71686
71687 2006-11-01  Eric Blake  <ebb9@byu.net>
71688
71689         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
71690
71691         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
71692
71693 2006-10-29  Bruno Haible  <bruno@clisp.org>
71694
71695         Make it compile in C++ mode.
71696         * lib/full-write.c (full_rw): Add a cast.
71697
71698 2006-11-01  Bruno Haible  <bruno@clisp.org>
71699
71700         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
71701         be POSIX compliant.
71702         Reported by Roger Persson <perrog@gmail.com>.
71703
71704 2006-11-01  Eric Blake  <ebb9@byu.net>
71705
71706         * lib/getopt_.h: Fix comments.
71707
71708 2006-10-31  Eric Blake  <ebb9@byu.net>
71709
71710         * modules/tmpdir (Depends-on): Add sys_stat.
71711         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
71712         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
71713         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
71714         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
71715         tempname.
71716
71717 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
71718
71719         Avoid some C++ diagnostics reported by Bruno Haible.
71720         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
71721         xmalloc.
71722         (quotearg_alloc): Use xcharalloc rather than xmalloc.
71723         (struct slotvec): Move to top level.
71724         (quotearg_n_options): Rewrite to avoid xmalloc.
71725         * lib/xalloc.h (xcharalloc): New function.
71726         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
71727         [defined __cplusplus]: Add function template that provides result
71728         type propagation.  This part of the change is from Bruno Haible.
71729
71730 2006-10-29  Bruno Haible  <bruno@clisp.org>
71731
71732         Make it compile in C++ mode.
71733         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
71734         * lib/strnlen1.c (strnlen1): Cast memchr result.
71735         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
71736         * lib/clean-temp.c (string_equals, string_hash): Add casts.
71737         (create_temp_dir): Rename local variable 'template'.
71738         (compile_csharp_using_sscli): Add cast.
71739         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
71740         * lib/findprog.c (find_in_path): Likewise.
71741         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
71742         * lib/wait-process.c (register_slave_subprocess): Likewise.
71743
71744 2006-10-22  Bruno Haible  <bruno@clisp.org>
71745
71746         * modules/tsearch: New file.
71747         * lib/tsearch.h: New file.
71748         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
71749         * m4/tsearch.m4: New file.
71750         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
71751
71752 2006-10-29  Eric Blake  <ebb9@byu.net>
71753
71754         * lib/arcfour.c: Assume config.h.
71755         * lib/arctwo.c: Likewise.
71756         * lib/base64.c: Likewise.
71757         * lib/check-version.c: Likewise.
71758         * lib/crc.c: Likewise.
71759         * lib/des.c: Likewise.
71760         * lib/gc-gnulib.c: Likewise.
71761         * lib/gc-libgcrypt.c: Likewise.
71762         * lib/gc-pbkdf2-sha1.c: Likewise.
71763         * lib/getaddrinfo.c: Likewise.
71764         * lib/getdelim.c: Likewise.
71765         * lib/getline.c: Likewise.
71766         * lib/hmac-md5.c: Likewise.
71767         * lib/hmac-sha1.c: Likewise.
71768         * lib/iconvme.c: Likewise.
71769         * lib/md2.c: Likewise.
71770         * lib/md4.c: Likewise.
71771         * lib/memxor.c: Likewise.
71772         * lib/read-file.c: Likewise.
71773         * lib/readline.c: Likewise.
71774         * lib/rijndael-alg-fst.c: Likewise.
71775         * lib/rijndael-api-fst.c: Likewise.
71776         * lib/xgetdomainname.c: Likewise.
71777
71778 2006-10-28  Eric Blake  <ebb9@byu.net>
71779
71780         * lib/xstrndup.c: Assume config.h.
71781
71782 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
71783
71784         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
71785         stat-macros.h is now for our own macros, whereas stat_h is for
71786         macros in the <sys/stat.h> name space.
71787         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
71788         (STAT_MACROS_H): Remove.
71789         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
71790         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
71791         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
71792         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
71793         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
71794         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
71795         Move these macros to ...
71796         * lib/stat_.h: here.  Don't include stat-macros.h.
71797         * lib/canonicalize.c: Don't include stat-macros.h.
71798         * lib/chown.c: Likewise.
71799         * lib/euidaccess.c: Likewise.
71800         * lib/file-type.c: Likewise.
71801         * lib/filemode.c: Likewise.
71802         * lib/glob.c: Likewise.
71803         * lib/isapipe.c: Likewise.
71804         * lib/lchown.c: Likewise.
71805         * lib/lstat.c: Likewise.
71806         * lib/mkdir-p.c: Likewise.
71807         * lib/rmdir.c: Likewise.
71808         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
71809         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
71810         unless mkdir isn't declared, to speed up 'configure'.
71811         Always create sys/stat.h, since it's unlikely any real sys/stat.h
71812         would define all the S_* symbols.
71813         * modules/canonicalize (Depends-on):
71814         Depend on sys_stat, not stat-macros.
71815         * modules/chown: Likewise.
71816         * modules/euidaccess: Likewise.
71817         * modules/filemode: Likewise.
71818         * modules/file-type: Likewise.
71819         * modules/glob: Likewise.
71820         * modules/isapipe: Likewise.
71821         * modules/lchown: Likewise.
71822         * modules/lstat: Likewise.
71823         * modules/mkancesdirs: Likewise.
71824         * modules/rmdir: Likewise.
71825         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
71826         * modules/modechange: Likewise.
71827         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
71828         (configure.ac): Remove gl_STAT_MACROS.
71829         * modules/sys_stat (Depends-on): Remove stat-macros.
71830
71831 2006-10-27  Bruno Haible  <bruno@clisp.org>
71832
71833         * m4/signed.m4: Remove file.
71834         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
71835         invocation.
71836         * modules/vasnprintf (Files): Remove m4/signed.m4.
71837
71838 2006-10-27  Bruno Haible  <bruno@clisp.org>
71839
71840         Update to GNU gettext 0.16.
71841         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
71842         m4/inttypes-h.m4, m4/signed.m4.
71843         * m4/gettext.m4: Update to GNU gettext 0.16.
71844         * m4/intl.m4: New file, from GNU gettext.
71845         * m4/intldir.m4: New file, from GNU gettext.
71846         * config/srclist.txt: Update
71847
71848 2006-10-27  Eric Blake  <ebb9@byu.net>
71849
71850         * MODULES.html.sh: Document tempname.
71851         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
71852         dependencies.
71853         (Files): Move lib/tempname.c...
71854         * modules/tempname: ...to this new module.
71855         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
71856         (gl_PREREQ_TEMPNAME): Move...
71857         * m4/tempname.m4: ...to this new file.
71858         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
71859         * modules/sys_stat (Depends-on): Add stat-macros.
71860         * lib/stat_.h (includes): Pick up stat macros.
71861         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
71862         if stat macros are broken.
71863         * lib/tempname.c (includes): No need to include "stat-macros.h".
71864         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
71865         (direxists, __path_search) [!_LIBC]: Don't compile these in
71866         gnulib; the tmpdir module covers that.
71867         * lib/tempname.h: New file.
71868
71869 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
71870
71871         * COPYING: Explain how gnulib-tool converts licence headers.
71872         Almost all wording by Eric Blake.
71873
71874 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
71875
71876         * lib/mbchar.h (is_basic_table): Make read-only.
71877         * lib/mbchar.c (is_basic_table): Likewise.
71878         Reported by John Darrington.
71879
71880 2006-10-25  Bruno Haible  <bruno@clisp.org>
71881
71882         * lib/progname.h (set_program_name): Undefine before defining.
71883
71884 2006-10-25  Bruno Haible  <bruno@clisp.org>
71885
71886         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
71887         false for non-gcc C++ compilers.
71888         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
71889
71890 2006-10-24  Bruno Haible  <bruno@clisp.org>
71891
71892         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
71893         iconv implementations like Irix iconv.
71894
71895 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71896
71897         * modules/vararrays: New file.
71898         * m4/vararrays.m4: New file, taken from diffutils.
71899         * MODULES.html.sh: New module vararrays.
71900
71901 2006-10-24  Karl Berry  <karl@gnu.org>
71902
71903         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
71904         Don't call GNU Unix.
71905
71906 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71907
71908         * users.txt: Add Libtool.
71909
71910         Sync from Libtool:
71911
71912         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71913
71914         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
71915         to gnulib's policy of including config.h unconditionally.
71916
71917 2006-10-24  Bruno Haible  <bruno@clisp.org>
71918
71919         * modules/wcwidth (Files): Add m4/wint_t.m4.
71920         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
71921         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
71922
71923 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71924
71925         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
71926         to pacify GCC with some -W flags enabled.  Problem reported by
71927         Bruno Haible.
71928
71929 2006-10-24  Jim Meyering  <jim@meyering.net>
71930
71931         * MODULES.html.sh: Remove uinttostr.  It's not a module.
71932         Reported by Karl Berry.
71933
71934 2006-10-23  Bruno Haible  <bruno@clisp.org>
71935
71936         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
71937
71938 2006-10-24  Bruno Haible  <bruno@clisp.org>
71939
71940         * lib/gl_list.h: Use C comment style, not C++ comment style.
71941
71942 2006-10-23  Eric Blake  <ebb9@byu.net>
71943
71944         * lib/getaddrinfo.c (includes): Add missing include.
71945
71946 2006-10-23  Bruno Haible  <bruno@clisp.org>
71947             Paul Eggert  <eggert@cs.ucla.edu>
71948
71949         Ability to rename obstack_free.
71950         * lib/obstack.h (__obstack_free): New macro. Declare instead of
71951         obstack_free.
71952         (obstack_free): Invoke the __obstack_free macro.
71953         * lib/obstack.c (obstack_free): Use __obstack_free macro.
71954
71955 2006-10-23  Bruno Haible  <bruno@clisp.org>
71956             Paul Eggert  <eggert@cs.ucla.edu>
71957
71958         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
71959         __argc, __argv from the declaration. (They are defined as macros on
71960         mingw.)
71961
71962 2006-10-22  Bruno Haible  <bruno@clisp.org>
71963
71964         * doc/gnulib-intro.texi: New file.
71965         * doc/gnulib.texi: Include it.
71966
71967 2006-10-21  Bruno Haible  <bruno@clisp.org>
71968
71969         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
71970         "Introduction", "Miscellanous Notes", "Particular Modules".
71971
71972 2006-10-21  Bruno Haible  <bruno@clisp.org>
71973
71974         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71975         Change mostlyclean-local rule to avoid sh syntax error from bash
71976         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
71977
71978 2006-10-23  Jim Meyering  <jim@meyering.net>
71979
71980         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
71981         in place of snprintf.
71982
71983         * modules/inttostr (Files): Add lib/uinttostr.c.
71984         * lib/uinttostr.c (inttostr): New file/function.
71985         * lib/inttostr.h (uinttostr): Declare.
71986         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
71987         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
71988         Add uinttostr.
71989         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
71990
71991 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
71992
71993         * lib/canonicalize.c (ELOOP): Define if not already defined.
71994         Problem reported by Bruno Haible in
71995         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
71996
71997 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
71998
71999         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
72000         Problem reported by Perry Smith and Ville Laurikari.
72001
72002         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
72003         uses.
72004
72005 2006-10-19  Bruno Haible  <bruno@clisp.org>
72006
72007         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
72008         for mingw.
72009
72010 2006-10-19  Bruno Haible  <bruno@clisp.org>
72011
72012         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
72013         Needed for mingw.
72014
72015 2006-10-19  Bruno Haible  <bruno@clisp.org>
72016
72017         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
72018
72019 2006-10-19  Bruno Haible  <bruno@clisp.org>
72020
72021         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
72022         it.
72023
72024 2006-10-19  Bruno Haible  <bruno@clisp.org>
72025
72026         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
72027         invocation.
72028
72029 2006-10-19  Bruno Haible  <bruno@clisp.org>
72030
72031         * gnulib-tool (func_create_testdir): Don't include ftruncate and
72032         mountlist by default.
72033
72034 2006-10-16  Bruno Haible  <bruno@clisp.org>
72035
72036         * lib/c-strstr.c: Include c-strstr.h.
72037
72038 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
72039
72040         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
72041         in a slash.
72042
72043 2006-10-18  Bruno Haible  <bruno@clisp.org>
72044
72045         * lib/lock.h [C++]: Wrap definitions in extern "C".
72046
72047 2006-10-18  Bruno Haible  <bruno@clisp.org>
72048
72049         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
72050         gl_LIBOBJS list.
72051
72052 2006-10-18  Bruno Haible  <bruno@clisp.org>
72053
72054         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
72055
72056 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
72057
72058         * lib/xstrtol.h: Include gettext.h.
72059         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
72060         Problem reported by Eric Blake.
72061         * modules/xstrtol (Depends-on): Add gettext-h.
72062
72063 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
72064
72065         * lib/strftime.c (advance): New macro.
72066         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
72067         incomplete type, so you can't add 0 to it.  Problem and patch
72068         reported by Eelco Dolstra for dietlibc.
72069
72070 2006-10-18  Jim Meyering  <jim@meyering.net>
72071
72072         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
72073         type for a local, and rename it: s/up/user_proc/.
72074
72075 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
72076
72077         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
72078         READ_UTMP_USER_PROCESS.
72079         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
72080
72081 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
72082
72083         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
72084         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
72085
72086 2006-10-17  Eric Blake  <ebb9@byu.net>
72087
72088         * lib/sigprocmask.c (sigprocmask): Fix typo.
72089
72090         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
72091
72092         * modules/clean-temp (Makefile.am): Don't add to make output...
72093         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
72094         config.h.
72095
72096 2006-10-17  Bruno Haible  <bruno@clisp.org>
72097
72098         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
72099         differently if DEFAULT_TEXT_DOMAIN is set.
72100
72101 2006-10-16  Bruno Haible  <bruno@clisp.org>
72102
72103         * lib/clean-temp.c: Include fwriteerror.h.
72104
72105 2006-10-16  Bruno Haible  <bruno@clisp.org>
72106
72107         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
72108
72109 2006-10-16  Bruno Haible  <bruno@clisp.org>
72110
72111         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
72112         * lib/sigprocmask.h: Include <sys/types.h>.
72113         (sigset_t): Use the system's definition if present.
72114
72115 2006-10-17  Eric Blake  <ebb9@byu.net>
72116
72117         * lib/xvasprintf.c (includes): Assume config.h.
72118         * lib/xasprintf.c (includes): Likewise.
72119
72120 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
72121
72122         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
72123         at least as wide as intmax_t.
72124
72125 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
72126
72127         (Imported from Automake.)
72128         * build-aux/gnupload: Update to version 1.1 of directive file.
72129
72130 2006-10-16  Eric Blake  <ebb9@byu.net>
72131
72132         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
72133         match Automake 1.10a.
72134
72135 2006-10-14  Bruno Haible  <bruno@clisp.org>
72136
72137         * modules/sigprocmask: New file.
72138         * lib/sigprocmask.h: New file.
72139         * lib/sigprocmask.c: New file.
72140         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
72141         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
72142         request sigprocmask.o.
72143         (gl_PREREQ_SIGPROCMASK): New macro.
72144         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
72145         (Depends-on): Add sigprocmask.
72146         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
72147         gt_SIGNALBLOCKING. Test for 'raise' only once.
72148         * lib/fatal-signal.c: Include sigprocmask.h.
72149         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
72150         unblock_fatal_signals): Define always.
72151         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72152         sigprocmask.
72153
72154 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
72155
72156         Sync from Automake.
72157         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
72158         which incorrectly sets the mode of an existing destination
72159         directory.  In some cases the unpatched install-sh could do the
72160         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
72161         system.  We hope this is rare in practice, but it's clearly worth
72162         fixing.  Problem reported by Alex Unleashed in
72163         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
72164         Also, don't bother to check for -m bugs unless we're using -m;
72165         suggested by Stepan Kasal.
72166
72167 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72168
72169         Sync from Automake.
72170         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
72171         `-c' flag, so they appear at the same position as in %FASTDEP%
72172         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
72173         which ignores unknown options only after the first non-option.
72174         Bug report against M4 by Nelson H. F. Beebe.
72175
72176 2006-10-13  Jim Meyering  <jim@meyering.net>
72177
72178         Fix a bug in yesterday's change.
72179         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
72180         p->fts_statp->st_dev would be used uninitialized.
72181         Ensures that we always call fts_stat on the very first entry.
72182         Miklos Szeredi reported that find -xdev stopped working.
72183
72184 2006-10-12  Bruno Haible  <bruno@clisp.org>
72185
72186         * gnulib-tool (func_get_automake_snippet): Append an automatically
72187         computed EXTRA_DIST augmentation.
72188         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
72189         * modules/alloca-opt (Makefile.am): Likewise.
72190         * modules/allocsa (Makefile.am): Likewise.
72191         * modules/arcfour (Makefile.am): Likewise.
72192         * modules/arctwo (Makefile.am): Likewise.
72193         * modules/argmatch (Makefile.am): Likewise.
72194         * modules/argz (Makefile.am): Likewise.
72195         * modules/atexit (Makefile.am): Likewise.
72196         * modules/backupfile (Makefile.am): Likewise.
72197         * modules/byteswap (Makefile.am): Likewise.
72198         * modules/c-strtod (Makefile.am): Likewise.
72199         * modules/c-strtold (Makefile.am): Likewise.
72200         * modules/calloc (Makefile.am): Likewise.
72201         * modules/canon-host (Makefile.am): Likewise.
72202         * modules/canonicalize (Makefile.am): Likewise.
72203         * modules/chdir-long (Makefile.am): Likewise.
72204         * modules/chdir-safer (Makefile.am): Likewise.
72205         * modules/check-version (Makefile.am): Likewise.
72206         * modules/chown (Makefile.am): Likewise.
72207         * modules/cloexec (Makefile.am): Likewise.
72208         * modules/close-stream (Makefile.am): Likewise.
72209         * modules/closeout (Makefile.am): Likewise.
72210         * modules/crc (Makefile.am): Likewise.
72211         * modules/csharpexec (Makefile.am): Likewise.
72212         * modules/cycle-check (Makefile.am): Likewise.
72213         * modules/des (Makefile.am): Likewise.
72214         * modules/dev-ino (Makefile.am): Likewise.
72215         * modules/dirfd (Makefile.am): Likewise.
72216         * modules/dirname (Makefile.am): Likewise.
72217         * modules/dup2 (Makefile.am): Likewise.
72218         * modules/eealloc (Makefile.am): Likewise.
72219         * modules/error (Makefile.am): Likewise.
72220         * modules/euidaccess (Makefile.am): Likewise.
72221         * modules/exclude (Makefile.am): Likewise.
72222         * modules/exitfail (Makefile.am): Likewise.
72223         * modules/fcntl-safer (Makefile.am): Likewise.
72224         * modules/fcntl (Makefile.am): Likewise.
72225         * modules/file-type (Makefile.am): Likewise.
72226         * modules/fileblocks (Makefile.am): Likewise.
72227         * modules/filemode (Makefile.am): Likewise.
72228         * modules/filenamecat (Makefile.am): Likewise.
72229         * modules/fnmatch (Makefile.am): Likewise.
72230         * modules/fopen-safer (Makefile.am): Likewise.
72231         * modules/fpending (Makefile.am): Likewise.
72232         * modules/fprintftime (Makefile.am): Likewise.
72233         * modules/free (Makefile.am): Likewise.
72234         * modules/fsusage (Makefile.am): Likewise.
72235         * modules/ftruncate (Makefile.am): Likewise.
72236         * modules/fts (Makefile.am): Likewise.
72237         * modules/gc-arcfour (Makefile.am): Likewise.
72238         * modules/gc-des (Makefile.am): Likewise.
72239         * modules/gc-hmac-md5 (Makefile.am): Likewise.
72240         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
72241         * modules/gc-md4 (Makefile.am): Likewise.
72242         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
72243         * modules/gc-sha1 (Makefile.am): Likewise.
72244         * modules/gc (Makefile.am): Likewise.
72245         * modules/getaddrinfo (Makefile.am): Likewise.
72246         * modules/getcwd (Makefile.am): Likewise.
72247         * modules/getdelim (Makefile.am): Likewise.
72248         * modules/getdomainname (Makefile.am): Likewise.
72249         * modules/getgroups (Makefile.am): Likewise.
72250         * modules/gethostname (Makefile.am): Likewise.
72251         * modules/gethrxtime (Makefile.am): Likewise.
72252         * modules/getline (Makefile.am): Likewise.
72253         * modules/getloadavg (Makefile.am): Likewise.
72254         * modules/getlogin_r (Makefile.am): Likewise.
72255         * modules/getndelim2 (Makefile.am): Likewise.
72256         * modules/getopt (Makefile.am): Likewise.
72257         * modules/getpagesize (Makefile.am): Likewise.
72258         * modules/getpass-gnu (Makefile.am): Likewise.
72259         * modules/getpass (Makefile.am): Likewise.
72260         * modules/getsubopt (Makefile.am): Likewise.
72261         * modules/gettime (Makefile.am): Likewise.
72262         * modules/gettimeofday (Makefile.am): Likewise.
72263         * modules/getugroups (Makefile.am): Likewise.
72264         * modules/getusershell (Makefile.am): Likewise.
72265         * modules/glob (Makefile.am): Likewise.
72266         * modules/group-member (Makefile.am): Likewise.
72267         * modules/hard-locale (Makefile.am): Likewise.
72268         * modules/hash (Makefile.am): Likewise.
72269         * modules/hmac-md5 (Makefile.am): Likewise.
72270         * modules/hmac-sha1 (Makefile.am): Likewise.
72271         * modules/human (Makefile.am): Likewise.
72272         * modules/idcache (Makefile.am): Likewise.
72273         * modules/imaxabs (Makefile.am): Likewise.
72274         * modules/imaxdiv (Makefile.am): Likewise.
72275         * modules/inet_ntop (Makefile.am): Likewise.
72276         * modules/inet_pton (Makefile.am): Likewise.
72277         * modules/intprops (Makefile.am): Likewise.
72278         * modules/inttostr (Makefile.am): Likewise.
72279         * modules/inttypes (Makefile.am): Likewise.
72280         * modules/isapipe (Makefile.am): Likewise.
72281         * modules/javaversion (Makefile.am): Likewise.
72282         * modules/lchmod (Makefile.am): Likewise.
72283         * modules/lchown (Makefile.am): Likewise.
72284         * modules/localcharset (Makefile.am): Likewise.
72285         * modules/long-options (Makefile.am): Likewise.
72286         * modules/lstat (Makefile.am): Likewise.
72287         * modules/malloc (Makefile.am): Likewise.
72288         * modules/mathl (Makefile.am): Likewise.
72289         * modules/mbchar (Makefile.am): Likewise.
72290         * modules/md2 (Makefile.am): Likewise.
72291         * modules/md4 (Makefile.am): Likewise.
72292         * modules/md5 (Makefile.am): Likewise.
72293         * modules/memcasecmp (Makefile.am): Likewise.
72294         * modules/memchr (Makefile.am): Likewise.
72295         * modules/memcmp (Makefile.am): Likewise.
72296         * modules/memcoll (Makefile.am): Likewise.
72297         * modules/memcpy (Makefile.am): Likewise.
72298         * modules/memmem (Makefile.am): Likewise.
72299         * modules/memmove (Makefile.am): Likewise.
72300         * modules/mempcpy (Makefile.am): Likewise.
72301         * modules/memrchr (Makefile.am): Likewise.
72302         * modules/memset (Makefile.am): Likewise.
72303         * modules/memxor (Makefile.am): Likewise.
72304         * modules/mkancesdirs (Makefile.am): Likewise.
72305         * modules/mkdir-p (Makefile.am): Likewise.
72306         * modules/mkdir (Makefile.am): Likewise.
72307         * modules/mkdtemp (Makefile.am): Likewise.
72308         * modules/mkstemp (Makefile.am): Likewise.
72309         * modules/mktime (Makefile.am): Likewise.
72310         * modules/modechange (Makefile.am): Likewise.
72311         * modules/mountlist (Makefile.am): Likewise.
72312         * modules/nanosleep (Makefile.am): Likewise.
72313         * modules/obstack (Makefile.am): Likewise.
72314         * modules/openat (Makefile.am): Likewise.
72315         * modules/pagealign_alloc (Makefile.am): Likewise.
72316         * modules/pathmax (Makefile.am): Likewise.
72317         * modules/physmem (Makefile.am): Likewise.
72318         * modules/poll (Makefile.am): Likewise.
72319         * modules/posixtm (Makefile.am): Likewise.
72320         * modules/posixver (Makefile.am): Likewise.
72321         * modules/putenv (Makefile.am): Likewise.
72322         * modules/quote (Makefile.am): Likewise.
72323         * modules/quotearg (Makefile.am): Likewise.
72324         * modules/raise (Makefile.am): Likewise.
72325         * modules/read-file (Makefile.am): Likewise.
72326         * modules/readline (Makefile.am): Likewise.
72327         * modules/readlink (Makefile.am): Likewise.
72328         * modules/readtokens (Makefile.am): Likewise.
72329         * modules/readutmp (Makefile.am): Likewise.
72330         * modules/realloc (Makefile.am): Likewise.
72331         * modules/regex (Makefile.am): Likewise.
72332         * modules/rename-dest-slash (Makefile.am): Likewise.
72333         * modules/rename (Makefile.am): Likewise.
72334         * modules/rijndael (Makefile.am): Likewise.
72335         * modules/rmdir (Makefile.am): Likewise.
72336         * modules/rpmatch (Makefile.am): Likewise.
72337         * modules/safe-read (Makefile.am): Likewise.
72338         * modules/safe-write (Makefile.am): Likewise.
72339         * modules/same-inode (Makefile.am): Likewise.
72340         * modules/same (Makefile.am): Likewise.
72341         * modules/save-cwd (Makefile.am): Likewise.
72342         * modules/savedir (Makefile.am): Likewise.
72343         * modules/setenv (Makefile.am): Likewise.
72344         * modules/settime (Makefile.am): Likewise.
72345         * modules/sha1 (Makefile.am): Likewise.
72346         * modules/sig2str (Makefile.am): Likewise.
72347         * modules/snprintf (Makefile.am): Likewise.
72348         * modules/stat-macros (Makefile.am): Likewise.
72349         * modules/stat-time (Makefile.am): Likewise.
72350         * modules/stdbool (Makefile.am): Likewise.
72351         * modules/stdint (Makefile.am): Likewise.
72352         * modules/stdlib-safer (Makefile.am): Likewise.
72353         * modules/stpcpy (Makefile.am): Likewise.
72354         * modules/stpncpy (Makefile.am): Likewise.
72355         * modules/strcase (Makefile.am): Likewise.
72356         * modules/strcasestr (Makefile.am): Likewise.
72357         * modules/strchrnul (Makefile.am): Likewise.
72358         * modules/strcspn (Makefile.am): Likewise.
72359         * modules/strdup (Makefile.am): Likewise.
72360         * modules/strerror (Makefile.am): Likewise.
72361         * modules/strftime (Makefile.am): Likewise.
72362         * modules/strndup (Makefile.am): Likewise.
72363         * modules/strnlen (Makefile.am): Likewise.
72364         * modules/strpbrk (Makefile.am): Likewise.
72365         * modules/strsep (Makefile.am): Likewise.
72366         * modules/strstr (Makefile.am): Likewise.
72367         * modules/strtod (Makefile.am): Likewise.
72368         * modules/strtoimax (Makefile.am): Likewise.
72369         * modules/strtok_r (Makefile.am): Likewise.
72370         * modules/strtol (Makefile.am): Likewise.
72371         * modules/strtoll (Makefile.am): Likewise.
72372         * modules/strtoul (Makefile.am): Likewise.
72373         * modules/strtoull (Makefile.am): Likewise.
72374         * modules/strtoumax (Makefile.am): Likewise.
72375         * modules/strverscmp (Makefile.am): Likewise.
72376         * modules/sys_socket (Makefile.am): Likewise.
72377         * modules/sys_stat (Makefile.am): Likewise.
72378         * modules/sysexits (Makefile.am): Likewise.
72379         * modules/time_r (Makefile.am): Likewise.
72380         * modules/timegm (Makefile.am): Likewise.
72381         * modules/timespec (Makefile.am): Likewise.
72382         * modules/tmpfile-safer (Makefile.am): Likewise.
72383         * modules/trim (Makefile.am): Likewise.
72384         * modules/unistd-safer (Makefile.am): Likewise.
72385         * modules/unlinkdir (Makefile.am): Likewise.
72386         * modules/unlocked-io (Makefile.am): Likewise.
72387         * modules/userspec (Makefile.am): Likewise.
72388         * modules/utime (Makefile.am): Likewise.
72389         * modules/utimecmp (Makefile.am): Likewise.
72390         * modules/utimens (Makefile.am): Likewise.
72391         * modules/vasnprintf (Makefile.am): Likewise.
72392         * modules/vasprintf (Makefile.am): Likewise.
72393         * modules/vsnprintf (Makefile.am): Likewise.
72394         * modules/xalloc (Makefile.am): Likewise.
72395         * modules/xgetcwd (Makefile.am): Likewise.
72396         * modules/xnanosleep (Makefile.am): Likewise.
72397         * modules/xreadlink (Makefile.am): Likewise.
72398         * modules/xstrtod (Makefile.am): Likewise.
72399         * modules/xstrtol (Makefile.am): Likewise.
72400         * modules/xstrtold (Makefile.am): Likewise.
72401         * modules/yesno (Makefile.am): Likewise.
72402         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
72403
72404 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
72405
72406         * modules/error (Makefile.am): Distribute files through
72407         EXTRA_DIST, not lib_SOURCES.
72408
72409 2006-10-12  Eric Blake  <ebb9@byu.net>
72410
72411         * modules/error (Makefile.am): Distribute files in /lib.
72412         * modules/obstack (Makefile.am): Likewise.
72413
72414 2006-10-12  Bruno Haible  <bruno@clisp.org>
72415
72416         * modules/acl (Makefile.am): Distribute all files in lib/ through
72417         EXTRA_DIST.
72418         * modules/arcfour (Makefile.am): Likewise.
72419         * modules/arctwo (Makefile.am): Likewise.
72420         * modules/argmatch (Makefile.am): Likewise.
72421         * modules/argz (Makefile.am): Likewise.
72422         * modules/atexit (Makefile.am): Likewise.
72423         * modules/backupfile (Makefile.am): Likewise.
72424         * modules/c-strtod (Makefile.am): Likewise.
72425         * modules/c-strtold (Makefile.am): Likewise.
72426         * modules/calloc (Makefile.am): Likewise.
72427         * modules/canon-host (Makefile.am): Likewise.
72428         * modules/canonicalize (Makefile.am): Likewise.
72429         * modules/chdir-long (Makefile.am): Likewise.
72430         * modules/chdir-safer (Makefile.am): Likewise.
72431         * modules/check-version (Makefile.am): Likewise.
72432         * modules/chown (Makefile.am): Likewise.
72433         * modules/cloexec (Makefile.am): Likewise.
72434         * modules/close-stream (Makefile.am): Likewise.
72435         * modules/closeout (Makefile.am): Likewise.
72436         * modules/crc (Makefile.am): Likewise.
72437         * modules/cycle-check (Makefile.am): Likewise.
72438         * modules/des (Makefile.am): Likewise.
72439         * modules/dirfd (Makefile.am): Likewise.
72440         * modules/dirname (Makefile.am): Likewise.
72441         * modules/dup2 (Makefile.am): Likewise.
72442         * modules/euidaccess (Makefile.am): Likewise.
72443         * modules/exclude (Makefile.am): Likewise.
72444         * modules/exitfail (Makefile.am): Likewise.
72445         * modules/fcntl-safer (Makefile.am): Likewise.
72446         * modules/file-type (Makefile.am): Likewise.
72447         * modules/fileblocks (Makefile.am): Likewise.
72448         * modules/filemode (Makefile.am): Likewise.
72449         * modules/filenamecat (Makefile.am): Likewise.
72450         * modules/fnmatch (Makefile.am): Likewise.
72451         * modules/fopen-safer (Makefile.am): Likewise.
72452         * modules/fpending (Makefile.am): Likewise.
72453         * modules/fprintftime (Makefile.am): Likewise.
72454         * modules/free (Makefile.am): Likewise.
72455         * modules/fsusage (Makefile.am): Likewise.
72456         * modules/ftruncate (Makefile.am): Likewise.
72457         * modules/fts (Makefile.am): Likewise.
72458         * modules/gc (Makefile.am): Likewise.
72459         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
72460         * modules/getaddrinfo (Makefile.am): Likewise.
72461         * modules/getcwd (Makefile.am): Likewise.
72462         * modules/getdelim (Makefile.am): Likewise.
72463         * modules/getdomainname (Makefile.am): Likewise.
72464         * modules/getgroups (Makefile.am): Likewise.
72465         * modules/gethostname (Makefile.am): Likewise.
72466         * modules/gethrxtime (Makefile.am): Likewise.
72467         * modules/getline (Makefile.am): Likewise.
72468         * modules/getloadavg (Makefile.am): Likewise.
72469         * modules/getlogin_r (Makefile.am): Likewise.
72470         * modules/getopt (Makefile.am): Likewise.
72471         * modules/getpass (Makefile.am): Likewise.
72472         * modules/getpass-gnu (Makefile.am): Likewise.
72473         * modules/getsubopt (Makefile.am): Likewise.
72474         * modules/gettime (Makefile.am): Likewise.
72475         * modules/gettimeofday (Makefile.am): Likewise.
72476         * modules/getugroups (Makefile.am): Likewise.
72477         * modules/getusershell (Makefile.am): Likewise.
72478         * modules/glob (Makefile.am): Likewise.
72479         * modules/group-member (Makefile.am): Likewise.
72480         * modules/hard-locale (Makefile.am): Likewise.
72481         * modules/hash (Makefile.am): Likewise.
72482         * modules/hmac-md5 (Makefile.am): Likewise.
72483         * modules/hmac-sha1 (Makefile.am): Likewise.
72484         * modules/human (Makefile.am): Likewise.
72485         * modules/idcache (Makefile.am): Likewise.
72486         * modules/imaxabs (Makefile.am): Likewise.
72487         * modules/imaxdiv (Makefile.am): Likewise.
72488         * modules/inet_ntop (Makefile.am): Likewise.
72489         * modules/inet_pton (Makefile.am): Likewise.
72490         * modules/inttostr (Makefile.am): Likewise.
72491         * modules/isapipe (Makefile.am): Likewise.
72492         * modules/lchown (Makefile.am): Likewise.
72493         * modules/long-options (Makefile.am): Likewise.
72494         * modules/lstat (Makefile.am): Likewise.
72495         * modules/malloc (Makefile.am): Likewise.
72496         * modules/mathl (Makefile.am): Likewise.
72497         * modules/mbchar (Makefile.am): Likewise.
72498         * modules/md2 (Makefile.am): Likewise.
72499         * modules/md4 (Makefile.am): Likewise.
72500         * modules/md5 (Makefile.am): Likewise.
72501         * modules/memcasecmp (Makefile.am): Likewise.
72502         * modules/memchr (Makefile.am): Likewise.
72503         * modules/memcmp (Makefile.am): Likewise.
72504         * modules/memcoll (Makefile.am): Likewise.
72505         * modules/memcpy (Makefile.am): Likewise.
72506         * modules/memmem (Makefile.am): Likewise.
72507         * modules/memmove (Makefile.am): Likewise.
72508         * modules/mempcpy (Makefile.am): Likewise.
72509         * modules/memrchr (Makefile.am): Likewise.
72510         * modules/memset (Makefile.am): Likewise.
72511         * modules/memxor (Makefile.am): Likewise.
72512         * modules/mkancesdirs (Makefile.am): Likewise.
72513         * modules/mkdir (Makefile.am): Likewise.
72514         * modules/mkdir-p (Makefile.am): Likewise.
72515         * modules/mkdtemp (Makefile.am): Likewise.
72516         * modules/mkstemp (Makefile.am): Likewise.
72517         * modules/mktime (Makefile.am): Likewise.
72518         * modules/modechange (Makefile.am): Likewise.
72519         * modules/mountlist (Makefile.am): Likewise.
72520         * modules/nanosleep (Makefile.am): Likewise.
72521         * modules/openat (Makefile.am): Likewise.
72522         * modules/pagealign_alloc (Makefile.am): Likewise.
72523         * modules/physmem (Makefile.am): Likewise.
72524         * modules/poll (Makefile.am): Likewise.
72525         * modules/posixtm (Makefile.am): Likewise.
72526         * modules/posixver (Makefile.am): Likewise.
72527         * modules/putenv (Makefile.am): Likewise.
72528         * modules/quote (Makefile.am): Likewise.
72529         * modules/quotearg (Makefile.am): Likewise.
72530         * modules/raise (Makefile.am): Likewise.
72531         * modules/read-file (Makefile.am): Likewise.
72532         * modules/readline (Makefile.am): Likewise.
72533         * modules/readlink (Makefile.am): Likewise.
72534         * modules/readtokens (Makefile.am): Likewise.
72535         * modules/readutmp (Makefile.am): Likewise.
72536         * modules/realloc (Makefile.am): Likewise.
72537         * modules/regex (Makefile.am): Likewise.
72538         * modules/rename (Makefile.am): Likewise.
72539         * modules/rename-dest-slash (Makefile.am): Likewise.
72540         * modules/rijndael (Makefile.am): Likewise.
72541         * modules/rmdir (Makefile.am): Likewise.
72542         * modules/rpmatch (Makefile.am): Likewise.
72543         * modules/safe-read (Makefile.am): Likewise.
72544         * modules/safe-write (Makefile.am): Likewise.
72545         * modules/same (Makefile.am): Likewise.
72546         * modules/save-cwd (Makefile.am): Likewise.
72547         * modules/savedir (Makefile.am): Likewise.
72548         * modules/setenv (Makefile.am): Likewise.
72549         * modules/settime (Makefile.am): Likewise.
72550         * modules/sha1 (Makefile.am): Likewise.
72551         * modules/sig2str (Makefile.am): Likewise.
72552         * modules/snprintf (Makefile.am): Likewise.
72553         * modules/stdlib-safer (Makefile.am): Likewise.
72554         * modules/stpcpy (Makefile.am): Likewise.
72555         * modules/stpncpy (Makefile.am): Likewise.
72556         * modules/strcase (Makefile.am): Likewise.
72557         * modules/strcasestr (Makefile.am): Likewise.
72558         * modules/strchrnul (Makefile.am): Likewise.
72559         * modules/strcspn (Makefile.am): Likewise.
72560         * modules/strdup (Makefile.am): Likewise.
72561         * modules/strerror (Makefile.am): Likewise.
72562         * modules/strftime (Makefile.am): Likewise.
72563         * modules/strndup (Makefile.am): Likewise.
72564         * modules/strnlen (Makefile.am): Likewise.
72565         * modules/strpbrk (Makefile.am): Likewise.
72566         * modules/strsep (Makefile.am): Likewise.
72567         * modules/strstr (Makefile.am): Likewise.
72568         * modules/strtod (Makefile.am): Likewise.
72569         * modules/strtoimax (Makefile.am): Likewise.
72570         * modules/strtok_r (Makefile.am): Likewise.
72571         * modules/strtol (Makefile.am): Likewise.
72572         * modules/strtoll (Makefile.am): Likewise.
72573         * modules/strtoul (Makefile.am): Likewise.
72574         * modules/strtoull (Makefile.am): Likewise.
72575         * modules/strtoumax (Makefile.am): Likewise.
72576         * modules/strverscmp (Makefile.am): Likewise.
72577         * modules/time_r (Makefile.am): Likewise.
72578         * modules/timegm (Makefile.am): Likewise.
72579         * modules/tmpfile-safer (Makefile.am): Likewise.
72580         * modules/unistd-safer (Makefile.am): Likewise.
72581         * modules/unlinkdir (Makefile.am): Likewise.
72582         * modules/userspec (Makefile.am): Likewise.
72583         * modules/utime (Makefile.am): Likewise.
72584         * modules/utimecmp (Makefile.am): Likewise.
72585         * modules/utimens (Makefile.am): Likewise.
72586         * modules/vasnprintf (Makefile.am): Likewise.
72587         * modules/vasprintf (Makefile.am): Likewise.
72588         * modules/vsnprintf (Makefile.am): Likewise.
72589         * modules/xalloc (Makefile.am): Likewise.
72590         * modules/xgetcwd (Makefile.am): Likewise.
72591         * modules/xnanosleep (Makefile.am): Likewise.
72592         * modules/xreadlink (Makefile.am): Likewise.
72593         * modules/xstrtod (Makefile.am): Likewise.
72594         * modules/xstrtol (Makefile.am): Likewise.
72595         * modules/xstrtold (Makefile.am): Likewise.
72596         * modules/yesno (Makefile.am): Likewise.
72597
72598 2006-10-12  Jim Meyering  <jim@meyering.net>
72599
72600         * m4/getloadavg.m4: Revert the change below.
72601
72602         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
72603         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
72604         fail with a symlink, which is what coreutils' ./bootstrap now
72605         creates by default.
72606
72607 2006-10-12  Bruno Haible  <bruno@clisp.org>
72608
72609         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
72610         mingw.
72611         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
72612         MSVC and mingw explicitly.
72613
72614 2006-10-11  Simon Josefsson  <jas@extundo.com>
72615             Bruno Haible  <bruno@clisp.org>
72616
72617         Add support for multiple gnulib-tool invocations in the scope of a
72618         single configure.ac file.
72619         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
72620         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
72621         with the same contents as the _LIBADD variable.
72622         (func_emit_initmacro_start, func_emit_initmacro_end,
72623         func_emit_initmacro_done): New functions.
72624         (func_import, func_create_testdir): Invoke them. Allow the identifiers
72625         gl_LIBOBJS and gl_LTLIBOBJS.
72626
72627 2006-10-11  Bruno Haible  <bruno@clisp.org>
72628
72629         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
72630         (func_create_testdir): Don't create po/Makefile.am, don't invoke
72631         autoreconf. Instead, invoke autopoint explicitly but move back the
72632         *.m4 files from gnulib.
72633
72634 2006-10-11  Bruno Haible  <bruno@clisp.org>
72635
72636         * gnulib-tool (func_usage): Make module names after --create-testdir
72637         optional.
72638         (func_create_testdir): If no module was specified, use nearly all
72639         modules.
72640
72641 2006-10-12  Jim Meyering  <jim@meyering.net>
72642
72643         Big performance improvement for fts-based tools that use FTS_NOSTAT.
72644         Avoid spurious inode-mismatch problems on non-POSIX file systems.
72645         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
72646         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
72647         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
72648         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
72649         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
72650         (fts_set_stat_required): New function.
72651         (fts_open): Defer the calls to fts_stat, if possible or requested.
72652         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
72653         into fts_stat itself.
72654         (fts_read): Perform any required (deferred) fts_stat call.
72655         (fts_build): Likewise, for the directory we're about to open and read.
72656         In the readdir loop, carefully decide whether each entry will require
72657         an eventual call to fts_stat, using dirent.d_type info if available.
72658         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
72659         a command line argument into this function.  Update all callers.
72660         Map a return value of FTS_DOT to FTS_D for a command line argument.
72661         * modules/fts (Depends-on): Add d-type.  Alphabetize.
72662         Thanks to Miklos Szeredi for his tenacity and for the initial
72663         bug report about "find" failing on a FUSE-based file system.
72664
72665         * lib/fts.c (fts_open): Use consistent indentation.
72666
72667 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
72668
72669         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
72670         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
72671         reported by Jim Meyering.  All uses of cache variables renamed
72672         to match Autoconf's.
72673         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
72674         the other one.
72675
72676         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
72677         Fix misspelling in diagnostic.
72678
72679 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
72680
72681         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
72682         defined.  Problem reported by Matthew Woehlke.
72683
72684         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
72685         Add support for Tandem NonStop R series.
72686         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
72687         Use new macro.
72688
72689         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
72690         (has_trailing_slash): Omit size arg; all callers changed.
72691         Omit 'inline', since it doesn't help performance and we'd
72692         need to configure it.
72693         Don't count //, ///, etc. as having a trailing slash.
72694         As a side effect, this removes a C99ism reported by Matthew Woehlke.
72695         (rpl_rename_dest_slash): On failure, use rename's errno rather
72696         than (in some cases) an incorrect or junk errno.
72697         Simplify code by removing need to compute length; this does
72698         cause it to make two passes instead of one over the file name,
72699         but it's worth it.
72700
72701         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
72702         change, since Autoconf's version may no longer be appropriate now
72703         that we are using CVS Autoconf's version.  Add support for Tandem.
72704
72705 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
72706             Bruno Haible  <bruno@clisp.org>
72707
72708         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
72709         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
72710         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
72711         gl_AC_TYPE_LONG_LONG.
72712
72713         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
72714         instead of HAVE_LONG_LONG.
72715         * lib/printf-args.c (printf_fetchargs): Likewise.
72716         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
72717         * lib/vasnprintf.c (VASNPRINTF): Likewise.
72718         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
72719         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
72720         gl_AC_TYPE_LONG_LONG.
72721
72722 2006-10-11  Bruno Haible  <bruno@clisp.org>
72723
72724         * m4/longlong.m4: Add comments.
72725         * m4/ulonglong.m4: Likewise.
72726
72727 2006-10-10  Bruno Haible  <bruno@clisp.org>
72728
72729         Make it possible to #define stpcpy, strdup to aliases.
72730         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
72731         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
72732
72733 2006-10-10  Bruno Haible  <bruno@clisp.org>
72734
72735         Make it possible to #define gcd to an alias.
72736         * lib/gcd.c: Include config.h.
72737
72738 2006-10-10  Bruno Haible  <bruno@clisp.org>
72739
72740         Make it possible to #define c_isascii to an alias.
72741         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
72742         defined. Undefine the macros before defining them, to avoid gcc
72743         warnings.
72744         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
72745         define NO_C_CTYPE_MACROS early.
72746
72747 2006-10-10  Bruno Haible  <bruno@clisp.org>
72748
72749         Make it possible to #define set_program_name to an alias.
72750         * lib/progname.c: Don't undefine set_program_name; instead, undefine
72751         ENABLE_RELOCATABLE early.
72752
72753 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
72754
72755         Port to Tandem NSK OSS, which has 64-bit signed int but at most
72756         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
72757         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
72758         More generally, don't assume that 64-bit signed int is available
72759         if unsigned int is, and vice versa.
72760         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
72761         unsigned symbols, not on their signed counterparts.
72762         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
72763         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
72764         (UINT64_C, UINTMAX_C):
72765         Likewise.
72766         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
72767         unsigned counterparts.
72768         (Have_long_long, Unsigned): New macros.
72769         (Int): Renamed from INT.
72770         (strtoimax): Use the new macros.
72771         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
72772         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
72773         * modules/inttypes (inttypes.h): Substitute
72774         HAVE_UNSIGNED_LONG_LONG_INT.
72775         * modules/stdint (stdint.h): Likewise.
72776         (Files): Add m4/ulonglong.m4.
72777
72778 2006-10-10  Bruno Haible  <bruno@clisp.org>
72779
72780         Fix a gcc -Wshadow warning.
72781         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
72782         to 'bucket'.
72783         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
72784         gl_linked_indexof_from_to): Likewise.
72785         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
72786         Likewise.
72787         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
72788         Likewise.
72789         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
72790         Reported by Eric Blake.
72791
72792 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
72793
72794         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
72795         for NetBSD.  Problem reported by Bruno Haible.
72796
72797 2006-10-09  Jim Meyering  <jim@meyering.net>
72798
72799         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
72800         Patch from Bruno Haible.
72801
72802 2006-10-09  Jim Meyering  <jim@meyering.net>
72803
72804         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
72805         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
72806         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
72807
72808 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
72809
72810         Don't include <config.h> twice; this doesn't work in some cases,
72811         e.g., when config.h has "#define intmax_t long long int" and
72812         we include <config.h>, <inttypes.h>, <config.h> in that order.
72813         Problem reported by Matthew Woehlke in:
72814         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
72815         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
72816         * lib/fts-cycle.c: Don't include config.h.
72817         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
72818         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
72819         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
72820         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
72821         inttypes.h.
72822         * lib/xstrtoumax.c: Likewise.
72823         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
72824         __strtol and the like, so that this module is more like its siblings.
72825         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
72826         Remove; no longer needed now that we assume gnulib inttypes.h.
72827
72828 2006-10-08  Bruno Haible  <bruno@clisp.org>
72829
72830         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
72831         option.
72832
72833 2006-10-07  Jim Meyering  <jim@meyering.net>
72834
72835         * modules/inttypes (inttypes.h): Revert what seems to have been
72836         an inadvertent part of today's change: use "|", not "/" in the
72837         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
72838
72839 2006-10-07  Bruno Haible  <bruno@clisp.org>
72840
72841         * modules/sublist: New file.
72842
72843 2006-10-07  Bruno Haible  <bruno@clisp.org>
72844
72845         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
72846         * modules/argz (argz.h): Likewise.
72847         * modules/arpa_inet (arpa/inet.h): Likewise.
72848         * modules/byteswap (byteswap.h): Likewise.
72849         * modules/configmake (configmake.h): Likewise.
72850         * modules/fcntl (fcntl.h): Likewise.
72851         * modules/fnmatch (fnmatch.h): Likewise.
72852         * modules/getopt (getopt.h): Likewise.
72853         * modules/glob (glob.h): Likewise.
72854         * modules/inttypes (inttypes.h): Likewise.
72855         * modules/netinet_in (netinet/in.h): Likewise.
72856         * modules/poll (poll.h): Likewise.
72857         * modules/stdbool (stdbool.h): Likewise.
72858         * modules/stdint (stdint.h): Likewise.
72859         * modules/sys_select (sys/select.h): Likewise.
72860         * modules/sys_socket (sys/socket.h): Likewise.
72861         * modules/sys_stat (sys/stat.h): Likewise.
72862         * modules/sysexits (sysexits.h): Likewise.
72863         * modules/unistd (unistd.h): Likewise.
72864         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72865         Add a "DO NOT EDIT" comment to the generated file.
72866         (func_import): Likewise for gnulib-comp.m4.
72867
72868 2006-10-07  Bruno Haible  <bruno@clisp.org>
72869
72870         * lib/gl_sublist.h: New file.
72871         * lib/gl_sublist.c: New file.
72872
72873 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
72874
72875         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
72876         name (relative to the original working directory) and the file
72877         name component (relative to the temporary working directory).  All
72878         callers changed.
72879         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
72880         * lib/mkdir-p.c (make_dir_parents): Likewise.
72881         * lib/mkdir-p.h (make_dir_parents): Likewise.
72882
72883 2006-10-06  Eric Blake  <ebb9@byu.net>
72884
72885         Define several macros for use by the clean-temp module.
72886         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
72887         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
72888         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
72889
72890         * lib/clean-temp.h (close_stream_temp): New declaration.
72891         * lib/clean-temp.c (includes): Pull in headers according to what
72892         other modules are in use.
72893         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
72894
72895 2006-10-06  Bruno Haible  <bruno@clisp.org>
72896
72897         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
72898         instead of fopen, fwriteerror.
72899
72900 2006-10-06  Bruno Haible  <bruno@clisp.org>
72901
72902         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
72903         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
72904         int.
72905         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
72906         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
72907         Return an error indicator.
72908         Suggested by Eric Blake.
72909
72910 2006-10-06  Bruno Haible  <bruno@clisp.org>
72911
72912         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
72913         Reported by Eric Blake.
72914
72915 2006-10-06  Bruno Haible  <bruno@clisp.org>
72916
72917         * modules/closeout (Description): Mention stderr too.
72918
72919 2006-10-06  Bruno Haible  <bruno@clisp.org>
72920         and Paul Eggert  <eggert@cs.ucla.edu>
72921
72922         * lib/closeout.c (close_stdout): Also close stderr.
72923         * lib/closeout.h: Update comment.
72924
72925 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
72926
72927         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
72928         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
72929         * lib/dirchownmod.c: Include lchown.h.
72930         * lib/lchown.c: Don't include files that lchown.h now includes.
72931         Don't declare chown, since lchown.h now does that.
72932         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
72933         (lchown): Define to rpl_chown if lchown is declared but
72934         does not exist.  Declare using a prototype if lchown is not
72935         declared.  Add a copyright notice.
72936         * lib/mkstemp.h: Include <unistd.h>.
72937         * lib/openat.c: Include lchown.h.
72938
72939         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
72940         we now test for that separately.
72941         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
72942         rather than O_NOFOLLOW, when testing whether it's possible to
72943         avoid a race condition reliably.
72944         * lib/savewd.c (savewd_chdir): Likewise.
72945
72946         Remove macros that are no longer needed now that stdint.h is
72947         reliable.
72948         * lib/fsusage.c (UINTMAX_MAX): Remove.
72949         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
72950         * lib/utimecmp.c (SIZE_MAX): Remove.
72951
72952         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
72953
72954         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
72955         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
72956         O_NOATIME works.
72957
72958 2006-10-05  Bruno Haible  <bruno@clisp.org>
72959
72960         * lib/gl_list.h (gl_sortedlist_search_from_to,
72961         gl_sortedlist_indexof_from_to): New declarations.
72962         (gl_list_implementation): New fields sortedlist_search_from_to,
72963         sortedlist_indexof_from_to.
72964         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
72965         inline functions.
72966         * lib/gl_list.c (gl_sortedlist_search_from_to,
72967         gl_sortedlist_indexof_from_to): New functions.
72968         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
72969         function.
72970         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
72971         (gl_array_sortedlist_search_from_to): New function.
72972         (gl_array_list_implementation): Update.
72973         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
72974         function.
72975         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
72976         (gl_carray_sortedlist_search_from_to): New function.
72977         (gl_carray_list_implementation): Update.
72978         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
72979         gl_linked_sortedlist_indexof_from_to): New functions.
72980         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
72981         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
72982         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
72983         gl_tree_sortedlist_indexof_from_to): New functions.
72984         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
72985         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
72986         Update.
72987         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
72988         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
72989         Update.
72990
72991 2006-10-05  Bruno Haible  <bruno@clisp.org>
72992
72993         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
72994         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
72995         (struct gl_list_implementation): Add fields search_from_to,
72996         indexof_from_to. Remove fields search, indexof.
72997         (gl_list_search): Use the search_from_to method.
72998         (gl_list_search_from, gl_list_search_from_to): New functions.
72999         (gl_list_indexof): Use the indexof_from_to method.
73000         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
73001         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
73002         (gl_list_search_from, gl_list_search_from_to): New functions.
73003         (gl_list_indexof): Use the indexof_from_to method.
73004         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
73005         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
73006         gl_array_indexof. Add start_index, end_index arguments.
73007         (gl_array_search_from_to): Renamed from gl_array_search. Add
73008         start_index, end_index arguments.
73009         (gl_array_remove, gl_array_list_implementation): Update.
73010         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
73011         gl_carray_indexof. Add start_index, end_index arguments.
73012         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
73013         start_index, end_index arguments.
73014         (gl_carray_remove, gl_carray_list_implementation): Update.
73015         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
73016         gl_linked_search. Add start_index, end_index arguments.
73017         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
73018         start_index, end_index arguments.
73019         (gl_linked_remove): Update.
73020         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
73021         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
73022         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
73023         field to 'size_t'.
73024         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
73025         gl_tree_search. Add start_index, end_index arguments.
73026         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
73027         start_index, end_index arguments.
73028         (gl_tree_remove): Update.
73029         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
73030         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
73031         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
73032         function.
73033         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
73034         gl_tree_search. Add start_index, end_index arguments.
73035         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
73036         start_index, end_index arguments.
73037         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
73038         Update.
73039         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
73040
73041 2006-10-05  Bruno Haible  <bruno@clisp.org>
73042
73043         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
73044
73045         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
73046         fwriteerror_temp): New declarations.
73047         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
73048         (descriptors): New variable.
73049         (cleanup): First, close the descriptors.
73050         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
73051         fclose_temp, fwriteerror_temp): New functions.
73052
73053 2006-10-04  Jim Meyering  <jim@meyering.net>
73054
73055         * lib/fts.c (fts_open): Tiny comment change.
73056
73057 2006-10-04  Bruno Haible  <bruno@clisp.org>
73058
73059         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
73060         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
73061         gl_LOCK_BODY.
73062         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
73063         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
73064         gl_LOCK_EARLY_BODY.
73065         (gl_LOCK): Require gl_LOCK_BODY.
73066
73067 2006-10-04  Bruno Haible  <bruno@clisp.org>
73068
73069         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
73070         (gl_oset_search_atleast): New declaration.
73071         (struct gl_oset_implementation): Add field 'search_atleast'.
73072         (gl_oset_search_atleast): New inline function.
73073         * lib/gl_oset.c (gl_oset_search_atleast): New function.
73074         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
73075         (gl_array_oset_implementation): Update.
73076         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
73077         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
73078         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
73079
73080 2006-10-04  Bruno Haible  <bruno@clisp.org>
73081
73082         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
73083
73084 2006-10-03  Bruno Haible  <bruno@clisp.org>
73085
73086         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
73087         from gl_avltreehash_list_implementation.
73088
73089 2006-10-03  Bruno Haible  <bruno@clisp.org>
73090
73091         * lib/gl_oset.c (gl_oset_add): Fix return type.
73092
73093 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
73094
73095         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
73096
73097 2006-10-02  Eric Blake  <ebb9@byu.net>
73098
73099         * modules/strnlen (Depends-on): Add extensions.
73100
73101 2006-10-02  Eric Blake  <ebb9@byu.net>
73102
73103         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
73104         definition in 2.60+.
73105
73106 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
73107
73108         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
73109         checks.
73110
73111 2006-10-02  Bruno Haible  <bruno@clisp.org>
73112
73113         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
73114         to the AUTOMAKE_OPTIONS.
73115         Reported by Jim Meyering.
73116
73117 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
73118
73119         Work around bug in Solaris 10 /proc file system:
73120         /proc/self/fd/NNN/.. isn't the parent directory of
73121         the directory whose file descriptor is NNN.  This needs to
73122         be worked around at run time, not compile time, since a
73123         program might be built on Solaris 8, where things work, and
73124         run on Solaris 10.
73125         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
73126         to use the following interface instead:
73127         (OPENAT_BUFFER_SIZE): New macro.
73128         (openat_proc_name): New function.
73129         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
73130         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
73131         Likewise.
73132         * lib/openat-proc.c: New file.
73133         * modules/openat (Files): Add lib/openat-proc.c.
73134         (Depends-on): Add same-inode, stdbool.
73135         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
73136
73137 2006-09-29  Bruno Haible  <bruno@clisp.org>
73138
73139         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
73140         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
73141         argument. Set stdout_closed before testing for ferror, not after.
73142         (fwriteerror, fwriteerror_no_ebadf): New functions.
73143
73144 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73145
73146         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
73147
73148 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
73149
73150         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
73151         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
73152
73153 2006-09-28  Jim Meyering  <jim@meyering.net>
73154
73155         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
73156         Include <unistd.h>.
73157
73158 2006-09-28  Bruno Haible  <bruno@clisp.org>
73159
73160         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
73161         * modules/linkedhash-list (Depends-on): Likewise.
73162         * modules/rbtreehash-list (Depends-on): Likewise.
73163
73164 2006-09-28  Bruno Haible  <bruno@clisp.org>
73165
73166         * lib/strndup.h: Simplify the redefinition of strndup.
73167         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
73168         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
73169
73170 2006-09-28  Bruno Haible  <bruno@clisp.org>
73171
73172         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
73173         * lib/gl_linkedhash_list.c: Likewise.
73174         * lib/gl_rbtreehash_list.c: Likewise.
73175
73176 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
73177
73178         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
73179         getaddrinfo.
73180
73181         * lib/__fpending.h: Don't include <stdio_ext.h> unless
73182         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
73183         it causes <stdio_ext.h> to cause a compile-time error.
73184         Problem reported by Nelson H. F. Beebe.
73185         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
73186         of HAVE_DECL___PENDING.
73187
73188         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
73189         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
73190         declaration.
73191
73192 2006-09-27  Jim Meyering  <jim@meyering.net>
73193
73194         This file could end up with a definition for a function
73195         named __strndup, rather than rpl_strndup on a system with
73196         incomplete weak_alias support.
73197         * lib/strndup.c (strndup): Rename from __strndup.
73198         Remove #defines that used to map __strndup to strndup.
73199         Don't use K&R prototypes.
73200         Remove LIBC-related code, since this file is not sync'd with glibc.
73201         * lib/strndup.h: Revamp, accordingly.
73202         * m4/strndup.m4: Modernize.
73203
73204 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
73205
73206         * modules/savewd (Depends-on): Add 'raise'.
73207         * lib/savewd.c: Include <signal.h>, for 'raise'.
73208
73209 2006-09-26  Jim Meyering  <jim@meyering.net>
73210
73211         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
73212         when we detect Darwin 8.7.0's acl_get_file bug.
73213         Rearrange to perform the new (below) run-test while $LIBS
73214         contains any acl-related library.  Set USE_ACL at the end.
73215         (gl_ACL_GET_FILE): New function.
73216
73217 2006-09-26  Eric Blake  <ebb9@byu.net>
73218
73219         * lib/verror.c: Include <config.h> unconditionally.
73220
73221 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
73222
73223         * modules/clock-time (Maintainer): Add self.
73224         * modules/getlogin_r (Depends-on): Add extensions.
73225
73226 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73227
73228         * modules/clock-time: New module.
73229         * modules/nanosleep (Depends-on): Add clock-time.
73230         * modules/gethrxtime (Depends-on): Likewise.
73231         * modules/gettime (Depends-on): Likewise.
73232         * modules/settime (Depends-on): Likewise.
73233
73234         * modules/fts-lgpl: Depend on openat.
73235         * modules/mkancesdirs: Depend on savewd.
73236         * modules/mkdir-p: Likewise.
73237
73238 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73239
73240         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
73241
73242         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
73243         `gl_have_arbitrary_file_name_length_limit' to
73244         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
73245         actually works between configure runs.
73246
73247 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73248             Bruno Haible  <bruno@clisp.org>
73249
73250         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
73251
73252 2006-09-25  Jim Meyering  <jim@meyering.net>
73253
73254         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
73255         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
73256
73257 2006-09-25  Eric Blake  <ebb9@byu.net>
73258
73259         * gnulib-tool (func_import, func_create_testdir): Fix typos in
73260         exec's in 2006-09-18 patch when shuffling fds.
73261
73262 2006-09-25  Bruno Haible  <bruno@clisp.org>
73263
73264         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
73265         Reported by Jim Meyering.
73266
73267 2006-09-24  Jim Meyering  <jim@meyering.net>
73268
73269         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
73270         compare a pointer against a literal "0".  That caused failures with
73271         at least HP-UX's hpcc.
73272
73273 2006-09-22  Simon Josefsson  <jas@extundo.com>
73274
73275         * modules/gc-sha1:
73276         * modules/gc-md4:
73277         * modules/gc-hmac-sha1:
73278         * modules/gc-hmac-md5:
73279         * modules/gc-des:
73280         * modules/gc-arcfour: Distribute more files.
73281
73282 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73283
73284         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
73285         (gl_linked_iterator_from_to): Initialize struct completely.
73286         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
73287         (gl_tree_iterator_from_to): Likewise
73288         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
73289         * lib/gl_array_list.c [lint] (gl_array_iterator)
73290         (gl_array_iterator_from_to): Likewise.
73291         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
73292         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
73293         (gl_carray_iterator_from_to): Likewise.
73294
73295         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
73296         * lib/md4.c (md4_process_block): Remove unused variable.
73297         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
73298         parentheses for clarity.
73299
73300 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73301
73302         * modules/bison-i18n (Depends-on): Add gettext.
73303
73304 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73305
73306         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
73307         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
73308         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
73309         also add missing comma that caused broken test.
73310         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
73311         stdlib.h, for `abort'.
73312         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
73313         variables.
73314         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
73315         include unistd.h if present, for `rmdir'.
73316         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
73317         variables.
73318         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
73319         in the process include standard headers for prototypes.
73320         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
73321         gets declared on GNU/Linux.
73322         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
73323         unistd.h, for `rmdir'.
73324         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
73325
73326         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
73327         always true.
73328         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
73329
73330         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
73331
73332 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73333
73334         * gnulib-tool (func_version): Create output all at once.  This
73335         may help avoid triggering unnecessary SIGPIPEs, and at any
73336         rate it doesn't hurt.
73337
73338 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73339             Bruno Haible  <bruno@clisp.org>
73340
73341         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
73342         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
73343         * m4/signed.m4 (bh_C_SIGNED): Likewise.
73344
73345         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
73346         (gl_FUNC_VASPRINTF): Invoke it.
73347
73348 2006-09-22  Bruno Haible  <bruno@clisp.org>
73349
73350         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
73351         getloadavg.c as first argument.
73352
73353 2006-09-22  Bruno Haible  <bruno@clisp.org>
73354
73355         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
73356         at the beginning of the gl_INIT macro.
73357         * modules/getloadavg (configure.ac): Pass $gl_source_base to
73358         gl_GETLOADAVG.
73359
73360 2006-09-22  Bruno Haible  <bruno@clisp.org>
73361
73362         * gnulib-tool (func_create_megatestdir): Don't include the config-h
73363         module.
73364         Suggested by Ralf Wildenhues.
73365
73366 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
73367
73368         Import this patch from libc:
73369
73370         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
73371
73372         * lib/regex_internal.c (re_string_reconstruct): Handle
73373         offset < pstr->valid_raw_len && pstr->offsets_needed case.
73374         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
73375         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
73376         re_string_context_at.
73377
73378         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
73379         now requires it.
73380         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
73381         gl_REGEX now does it for us.
73382         (gl_REGEX): Add test taken from
73383         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
73384
73385         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
73386         Check that large offsets work.  Modernize Autoconf usages.
73387         Prefer "yes" to mean a good thing rather than a bad.
73388         Don't put "#define mkstemp" in config.h, as this might interfere
73389         with standard system headers that "#define mkstemp mkstemp64".
73390
73391         * modules/mkstemp (Depends-on): Add extensions, so that
73392         mkstemp is visible on some platforms.
73393         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
73394         (Include): Change to "mkstemp.h" from <stdlib.h>.
73395         (Files): Add mkstemp.h.
73396
73397         * lib/mkstemp.h: New file, since some standard headers
73398         #define mkstemp.
73399         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
73400         Include "mkstemp.h".
73401         Make the _LIBC code resemble glibc original more,
73402         e.g., use K&R style.
73403         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
73404         (mkstemp): Remove, since mkstemp.h does this for us.
73405         * lib/stdlib--.h: Include mkstemp.h.
73406
73407         Import this patch from libc:
73408
73409         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
73410
73411         * lib/tempname.c (__gen_tempname): Change attempts_min
73412         into a macro.  Use preprocessor to decide how to initialize
73413         attempts [Coverity CID 67].
73414
73415 2006-09-20  Bruno Haible  <bruno@clisp.org>
73416
73417         * lib/mkdtemp.c: Import from libc.
73418         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
73419                 * sysdeps/posix/tempname.c (__gen_tempname): Change
73420                 attempts_min into a macro.  Use preprocessor to decide how to
73421                 initialize attempts [Coverity CID 67].
73422         2001-11-27  Paul Eggert  <eggert@twinsun.com>
73423                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
73424                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
73425
73426 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73427
73428         * gnulib-tool (func_exit): New function, to allow to pass the
73429         exit status portably through the trap.  Use everywhere.
73430         (--help, --version): Signal a write error.
73431         (trap): catch SIGPIPE, for write errors.
73432         Exit at the end of the trap, with the correct exit status.
73433
73434 2006-09-19  Karl Berry  <karl@gnu.org>
73435
73436         * doc/gnulib.texi: note about the license texinfo files.
73437
73438 2006-09-19  Eric Blake  <ebb9@byu.net>
73439
73440         * gnulib-tool: Avoid space-tab.
73441
73442 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
73443
73444         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
73445         that prevented coreutils 6.1 from building.  Problem reported
73446         by Petter Reinholdtsen.
73447
73448 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
73449
73450         * gnulib-tool (avoidlist): Fix typo that broke options like
73451         --avoid=lock that are used by coreutils bootstrap.
73452
73453 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
73454
73455         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
73456         more systematically.
73457
73458 2006-09-18  Jim Meyering  <jim@meyering.net>
73459
73460         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
73461
73462 2006-09-18  Bruno Haible  <bruno@clisp.org>
73463
73464         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
73465
73466 2006-09-18  Bruno Haible  <bruno@clisp.org>
73467
73468         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
73469         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
73470         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
73471         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
73472         * m4/gettext.m4: Require autoconf >= 2.52.
73473         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
73474         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
73475         of gl_cv_header_inttypes_h.
73476
73477 2006-09-18  Bruno Haible  <bruno@clisp.org>
73478
73479         * lib/javaversion.c: Include configmake.h.
73480
73481 2006-09-18  Bruno Haible  <bruno@clisp.org>
73482
73483         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
73484         avoid that the while loops be executed in a subshell.
73485
73486 2006-09-18  Bruno Haible  <bruno@clisp.org>
73487
73488         * MODULES.html.sh (func_module): Break long lines.
73489         Suggested by Bruce Korb <bkorb@gnu.org>.
73490
73491 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73492
73493         Speed up by a factor of 1.12.
73494         * gnulib-tool (nl): New variable.
73495         (func_import): Rewrite include directive extraction to only read each
73496         directive once.
73497
73498 2006-09-17  Bruno Haible  <bruno@clisp.org>
73499
73500         * modules/javaversion (Makefile.am): Remove DEFS setting.
73501         (Depends-on): Add configmake, for PKGDATADIR definition.
73502
73503 2006-09-17  Bruno Haible  <bruno@clisp.org>
73504
73505         * gnulib-tool (func_create_testdir): Rewrite all files at once.
73506
73507 2006-09-17  Bruno Haible  <bruno@clisp.org>
73508
73509         * gnulib-tool (func_append): New function, stolen from libtool.m4.
73510         (func_modules_transitive_closure, func_modules_add_dummy,
73511         func_modules_to_filelist, func_import, func_create_testdir,
73512         func_create_megatestdir, ...): Use it wherever possible.
73513         Suggested by Ralf Wildenhues.
73514
73515 2006-09-16  Karl Berry  <karl@gnu.org>
73516
73517         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
73518         to avoid sectioning errors.
73519         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
73520         [ifinfo]: blank line after @center-ed titles.
73521         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
73522         Spell FSF address consistently with others.
73523         (These changes approved by rms.)
73524
73525 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73526
73527         Speed up by a factor of 1.61.
73528         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
73529         already checked module names again.
73530
73531 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73532
73533         Speed up by a factor of 1.13.
73534         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
73535         for new_files, and the input to func_add_or_update.
73536
73537 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73538
73539         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
73540         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
73541
73542 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73543
73544         * modules/mkancesdirs (Depends-on): Add fcntl.
73545         * modules/savewd: New file.
73546         * MODULES.html.sh (File system functions): Add savewd.
73547
73548         * modules/configmake (Makefile.am): Add support for the
73549         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
73550
73551 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73552
73553         * m4/savewd.m4: New file.
73554
73555 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73556
73557         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
73558         (dirchownmod): New arg FD.  All callers changed.
73559         Use FD rather than opening the directory ourself, as opening is
73560         now the caller's responsibility.
73561         * lib/dirchownmod.h: Likewise.
73562         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
73563         hosts that require <sys/types.h> before <sys/stat.h>.  Include
73564         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
73565         (test_dir): Remove.
73566         (mkancesdirs): Return length of prefix of FILE that has already
73567         been made, or -2 if there is a child doing the work.  Redo
73568         algorithm so that it is O(N) rather than O(N**2).  Optimize away
73569         ".", and treat ".." specially since it might stray back into
73570         already-created areas.  Use a subprocess if necessary.  New arg
73571         WD; all users changed.  MAKE_DIR function should now return 1
73572         if it creates a directory that is not readable.  Return -2 if
73573         a child process is spun off.
73574         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
73575         Adjust signature to match code.
73576         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
73577         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
73578         all users changed.
73579         * lib/savewd.c, lib/savewd.h: New files.
73580
73581 2006-09-15  Jim Meyering  <jim@meyering.net>
73582
73583         * modules/rename-dest-slash: New module.
73584         * MODULES.html.sh (posix_compat): Add it here.
73585
73586         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
73587
73588 2006-09-15  Jim Meyering  <jim@meyering.net>
73589
73590         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
73591         file.
73592
73593         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
73594
73595 2006-09-15  Jim Meyering  <jim@meyering.net>
73596
73597         * lib/rename-dest-slash.c (has_trailing_slash): Use
73598         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
73599         (rpl_rename_dest_slash): Perform the cheaper trailing slash
73600         test before testing whether SRC is a directory.
73601         Suggestions from Bruno Haible.
73602
73603         Avoid a warning about an unused variable.
73604         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
73605         into the #ifdef block where it's used.
73606
73607         * lib/rename-dest-slash.c: New file.
73608
73609 2006-09-14  Bruno Haible  <bruno@clisp.org>
73610
73611         * lib/allocsa.c: Include <config.h> unconditionally.
73612         * lib/asnprintf.c: Likewise.
73613         * lib/asprintf.c: Likewise.
73614         * lib/c-strcasecmp.c: Likewise.
73615         * lib/c-strcasestr.c: Likewise.
73616         * lib/c-strncasecmp.c: Likewise.
73617         * lib/c-strstr.c: Likewise.
73618         * lib/classpath.c: Likewise.
73619         * lib/clean-temp.c: Likewise.
73620         * lib/concatpath.c: Likewise.
73621         * lib/copy-file.c: Likewise.
73622         * lib/csharpcomp.c: Likewise.
73623         * lib/csharpexec.c: Likewise.
73624         * lib/execute.c: Likewise.
73625         * lib/fatal-signal.c: Likewise.
73626         * lib/findprog.c: Likewise.
73627         * lib/fwriteerror.c: Likewise.
73628         * lib/gl_array_list.c: Likewise.
73629         * lib/gl_array_oset.c: Likewise.
73630         * lib/gl_avltree_list.c: Likewise.
73631         * lib/gl_avltree_oset.c: Likewise.
73632         * lib/gl_avltreehash_list.c: Likewise.
73633         * lib/gl_carray_list.c: Likewise.
73634         * lib/gl_linked_list.c: Likewise.
73635         * lib/gl_linkedhash_list.c: Likewise.
73636         * lib/gl_list.c: Likewise.
73637         * lib/gl_oset.c: Likewise.
73638         * lib/gl_rbtree_list.c: Likewise.
73639         * lib/gl_rbtree_oset.c: Likewise.
73640         * lib/gl_rbtreehash_list.c: Likewise.
73641         * lib/imaxabs.c: Likewise.
73642         * lib/imaxdiv.c: Likewise.
73643         * lib/javacomp.c: Likewise.
73644         * lib/javaexec.c: Likewise.
73645         * lib/javaversion.c: Likewise.
73646         * lib/linebreak.c: Likewise.
73647         * lib/localcharset.c: Likewise.
73648         * lib/lock.c: Likewise.
73649         * lib/mbchar.c: Likewise.
73650         * lib/mbswidth.c: Likewise.
73651         * lib/mkdtemp.c: Likewise.
73652         * lib/pipe.c: Likewise.
73653         * lib/printf-args.c: Likewise.
73654         * lib/printf-parse.c: Likewise.
73655         * lib/progname.c: Likewise.
73656         * lib/progreloc.c: Likewise.
73657         * lib/readlink.c: Likewise.
73658         * lib/sh-quote.c: Likewise.
73659         * lib/stpcpy.c: Likewise.
73660         * lib/stpncpy.c: Likewise.
73661         * lib/strcasecmp.c: Likewise.
73662         * lib/strcasestr.c: Likewise.
73663         * lib/strcspn.c: Likewise.
73664         * lib/striconv.c: Likewise.
73665         * lib/strncasecmp.c: Likewise.
73666         * lib/strnlen1.c: Likewise.
73667         * lib/strstr.c: Likewise.
73668         * lib/strtok_r.c: Likewise.
73669         * lib/tls.c: Likewise.
73670         * lib/tmpdir.c: Likewise.
73671         * lib/unicodeio.c: Likewise.
73672         * lib/unsetenv.c: Likewise.
73673         * lib/vasnprintf.c: Likewise.
73674         * lib/vasprintf.c: Likewise.
73675         * lib/wait-process.c: Likewise.
73676         * lib/xallocsa.c: Likewise.
73677         * lib/xsetenv.c: Likewise.
73678         * lib/xstriconv.c: Likewise.
73679
73680 2006-09-13  Simon Josefsson  <jas@extundo.com>
73681
73682         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
73683         that internally, suggested by Ralf Wildenhues
73684         <Ralf.Wildenhues@gmx.de>.
73685
73686 2006-09-13  Simon Josefsson  <jas@extundo.com>
73687
73688         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
73689         @LIBOBJS@.
73690         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73691
73692 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
73693
73694         * lib/_fpending.c: Include <config.h> unconditionally, since we no
73695         longer worry about uses that don't define HAVE_CONFIG_H.
73696         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
73697         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
73698         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
73699         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
73700         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
73701         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
73702         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
73703         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
73704         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
73705         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
73706         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
73707         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
73708         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
73709         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
73710         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
73711         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
73712         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
73713         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
73714         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
73715         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
73716         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
73717         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
73718         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
73719         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
73720         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
73721         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
73722         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
73723         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
73724         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
73725         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
73726         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
73727         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
73728         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
73729         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
73730         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
73731         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
73732         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
73733         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
73734         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
73735         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
73736         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
73737         Likewise.
73738
73739 2006-09-13  Eric Blake  <ebb9@byu.net>
73740
73741         * lib/getopt.c: Fix typo in last commit.
73742
73743 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
73744
73745         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
73746         dgettext.
73747
73748 2006-09-12  Jim Meyering  <jim@meyering.net>
73749
73750         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
73751         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
73752         Reported by Nelson H. F. Beebe.
73753
73754 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73755
73756         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
73757         program_invocation_name and program_invocation_short_name are
73758         initialized.
73759         * lib/argp-namefrob.h: Move declarations of program_invocation_name
73760         and program_invocation_short_name to argp.h, so they are visible
73761         to user programs.
73762         * lib/argp.h: Likewise
73763
73764 2006-09-10  Bruno Haible  <bruno@clisp.org>
73765
73766         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
73767         m4/inttypes_h.m4, m4/uintmax_t.m4.
73768
73769 2006-09-10  Bruno Haible  <bruno@clisp.org>
73770
73771         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
73772         gl_AC_TYPE_UINTMAX_T.
73773
73774 2006-09-10  Bruno Haible  <bruno@clisp.org>
73775
73776         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
73777
73778 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73779
73780         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
73781         convention.  Text proposed by Bruno Haible.
73782         (struct argp_option): Document the use of N_() wrappers.
73783
73784         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
73785         '\v', and translate the two parts separately, instead of feeding
73786         the whole string to gettext.  This allows to exclude
73787         '\v' from the strings visible to the translator by writing doc
73788         strings as N_("..") "\v" N_("..").
73789
73790 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
73791
73792         * config/srclist.txt: Undo latest change; the bug was fixed.
73793
73794 2006-09-09  Bruno Haible  <bruno@clisp.org>
73795
73796         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
73797         assignments if building a library without libtool.
73798         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
73799         in func_emit_lib_Makefile_am.
73800         (func_import): When building a static library libfoo.a, arrange to
73801         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
73802         (func_create_testdir): Likewise.
73803         * modules/gc (configure.ac, Makefile.am): If building statically,
73804         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
73805         * modules/iconvme (configure.ac, Makefile.am): Likewise.
73806         * modules/striconv (configure.ac, Makefile.am): Likewise.
73807         Based on a suggestion by Ralf Wildenhues.
73808
73809 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73810
73811         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
73812         Check for unistd.h too, since Autoconf doesn't assume POSIX.
73813         Also:
73814
73815         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73816         Add year_2050_test to catch glibc bug 2821
73817         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
73818
73819         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
73820         Prefer #ifdef to #if.
73821
73822         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
73823         Return from 'main' instead of calling 'exit'.
73824
73825 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73826
73827         * lib/mktime.c (guess_time_tm): Fix bug where mktime
73828         returned the maximum time_t value rather than (time_t) -1.
73829         Problem originally reported by William Bardwell
73830         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
73831
73832         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
73833         Moved to here ...
73834         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
73835         ... from here.
73836
73837 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73838
73839         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
73840         2821 is fixed.
73841
73842 2006-09-08  Jim Meyering  <jim@meyering.net>
73843
73844         Don't make generated files read-only.  That would bother too many
73845         people.  However, do retain the ability to work when targets are
73846         read-only: remove the destination and temporary files before writing
73847         them (when generated via sed or echo), or by using the -f option for
73848         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
73849         * modules/alloca-opt, modules/argz, modules/arpa_inet:
73850         * modules/byteswap, modules/configmake, modules/fcntl:
73851         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
73852         * modules/localcharset, modules/netinet_in, modules/poll:
73853         * modules/stdbool, modules/stdint, modules/sys_select:
73854         * modules/sys_socket, modules/sys_stat, modules/sysexits:
73855
73856 2006-09-08  Jim Meyering  <jim@meyering.net>
73857
73858         Avoid new build failure on FreeBSD 6.0.
73859         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
73860         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
73861         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
73862
73863 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73864
73865         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
73866
73867 2006-09-07  Jim Meyering  <jim@meyering.net>
73868
73869         Fix global typo in last change: use chmod u-w, not chmod u-x.
73870         Spotted by Paul Eggert and Bruce Korb.
73871         * modules/alloca-opt, modules/argz, modules/arpa_inet:
73872         * modules/byteswap, modules/configmake, modules/fcntl:
73873         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
73874         * modules/localcharset, modules/netinet_in, modules/poll:
73875         * modules/stdbool, modules/stdint, modules/sys_select:
73876         * modules/sys_socket, modules/sys_stat, modules/sysexits:
73877
73878 2006-09-06  Jim Meyering  <jim@meyering.net>
73879
73880         Make generated files be read-only.
73881         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
73882         Ensure that each generated file is now read-only.
73883         * modules/argz: Likewise.
73884         * modules/arpa_inet: Likewise.
73885         * modules/byteswap: Likewise.
73886         * modules/configmake: Likewise.
73887         * modules/fcntl: Likewise.
73888         * modules/fnmatch: Likewise.
73889         * modules/getopt: Likewise.
73890         * modules/glob: Likewise.
73891         * modules/inttypes: Likewise.
73892         * modules/netinet_in: Likewise.
73893         * modules/poll: Likewise.
73894         * modules/stdbool: Likewise.
73895         * modules/stdint: Likewise.
73896         * modules/sys_select: Likewise.
73897         * modules/sys_socket: Likewise.
73898         * modules/sys_stat: Likewise.
73899         * modules/sysexits: Likewise.
73900         * modules/localcharset: Same as above, but continue using temporary
73901         file named "t-$@" (why different?) rather than the "$@-t" used
73902         everywhere else.
73903
73904         * modules/sysexits (Makefile.am): Replace literal occurrences
73905         of "sysexit.h" more readable, and more consistent, "$@".
73906
73907 2006-09-06  Bruno Haible  <bruno@clisp.org>
73908
73909         * modules/striconv: New file.
73910         * modules/xstriconv: New file.
73911         * MODULES.html.sh (Internationalization functions): Add striconv,
73912         xstriconv.
73913
73914 2006-09-06  Bruno Haible  <bruno@clisp.org>
73915
73916         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
73917         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
73918         not using libtool correctly.
73919
73920 2006-09-06  Bruno Haible  <bruno@clisp.org>
73921
73922         * lib/striconv.h: New file.
73923         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
73924         iconvstring.c.
73925         * lib/xstriconv.h: New file.
73926         * lib/xstriconv.c: New file.
73927
73928 2006-09-06  Bruno Haible  <bruno@clisp.org>
73929
73930         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
73931         lib_..._LDFLAGS.
73932
73933 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73934
73935         * lib/argz_.h: Sync from Libtool.
73936
73937         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
73938                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
73939
73940         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
73941
73942 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
73943
73944         * modules/trim: New file.
73945
73946 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
73947
73948         * lib/trim.h: New file.
73949         * lib/trim.c: New file.
73950
73951 2006-09-05  Bruno Haible  <bruno@clisp.org>
73952
73953         * MODULES.html.sh (String handling): Add trim.
73954
73955 2006-09-04  Karl Berry  <karl@gnu.org>
73956
73957         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
73958         until next release.
73959
73960 2006-09-03  Bruno Haible  <bruno@clisp.org>
73961
73962         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
73963         correctly.
73964
73965 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73966
73967         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
73968         not gl_GETLOADAVG.  Omit unneeded semicolons.
73969         Problems reported by Ralf Wildenhues in
73970         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
73971         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
73972         at the end, which is the usual gnulib style.
73973
73974         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
73975         of doing all the work ourselves.
73976         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
73977         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
73978
73979 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73980
73981         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
73982         Problem reported by Ralf Wildenhues in
73983         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
73984
73985         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
73986         HAVE_STRUCT_STATFS_F_FSTYPENAME.
73987
73988 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73989
73990         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
73991         yesterday's patch by changing test -n to test -z.
73992
73993 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73994
73995         * modules/getloadavg (Files): Add m4/getloadavg.m4.
73996         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
73997         the former is now obsolescent.
73998
73999         * modules/chdir-long (Depends-on): Add fcntl.
74000
74001 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74002
74003         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
74004         obsolescent, and programs should use gnulib instead.
74005         * m4/getloadavg.m4: New file, with contents taken from Autoconf
74006         but with prefixes changed.
74007
74008 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74009
74010         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
74011         or stdbool.h, because they might not exist while configuring.
74012
74013         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
74014         Don't include unistd.h or limits.h; not needed, since chdir-long.h
74015         does that for us.
74016         (O_DIRECTORY): Remove.
74017
74018 2006-08-31  Eric Blake  <ebb9@byu.net>
74019
74020         * gnulib-tool: Don't let emacs change spaces to TAB.
74021
74022 2006-08-31  Bruno Haible  <bruno@clisp.org>
74023
74024         * gnulib-tool: When calling func_import more than once, do it in a
74025         subshell.
74026         Reported by Eric Blake <ebb9@byu.net>.
74027
74028 2006-08-31  Bruno Haible  <bruno@clisp.org>
74029
74030         * gnulib-tool (nl): Remove variable.
74031         (sed_transform_lib_file): Use more robust test for config-h module.
74032         (func_import): Fix typo in 2006-08-25 patch.
74033
74034 2006-08-31  Bruno Haible  <bruno@clisp.org>
74035
74036         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
74037         specified, augment Makefile.am variables instead of assigning them.
74038
74039 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74040
74041         Work around a bug in both the Linux and SunOS 64-bit kernels:
74042         nanosleep mishandles sleeps for longer than 2**31 seconds.
74043         Problem reported by Frank v Waveren in
74044         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
74045         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
74046         Check for nanosleep bug.
74047         (LIB_NANOSLEEP): Append clock_gettime library if needed.
74048
74049 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74050
74051         Work around a bug in both the Linux and SunOS 64-bit kernels:
74052         nanosleep mishandles sleeps for longer than 2**31 seconds.
74053         Problem reported by Frank v Waveren in
74054         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
74055         * lib/nanosleep.c (BILLION): New constant.
74056         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
74057         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
74058         implementation.
74059
74060 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74061
74062         * modules/nanosleep (Depends-on): Add gettime.
74063
74064 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74065         and Simon Josefsson  <jas@extundo.com>
74066         and Oskar Liljeblad  <oskar@osk.mine.nu>
74067
74068         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
74069         * gnulib-tool (func_import): New license type 'unmodifiable license
74070         text'.
74071         * modules/fdl: Use it.  Longer description.
74072         * module/gpl, module/lgpl: New files.
74073
74074 2006-08-30  Jim Meyering  <jim@meyering.net>
74075
74076         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
74077         shadowing the parameter.
74078
74079 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74080
74081         Sync from Libtool:
74082
74083         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74084
74085         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
74086         sharing with gnulib.  Report by Eric Blake.
74087
74088 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74089
74090         * modules/isapipe: New file.
74091         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
74092
74093 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74094
74095         * modules/configmake (Makefile.am): Add a comment, and omit
74096         the CONFIGMAKE_ prefix from generated macro names.  Suggested
74097         by Bruno Haible.
74098
74099 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74100
74101         * m4/isapipe.m4: New file.
74102
74103 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74104
74105         * lib/isapipe.c, lib/isapipe.h: New files.
74106
74107 2006-08-29  Jim Meyering  <jim@meyering.net>
74108
74109         * modules/configmake (Makefile.am): Make configmake.h depend on
74110         Makefile.  Otherwise, a stale configmake.h could hang around.
74111
74112 2006-08-29  Eric Blake  <ebb9@byu.net>
74113
74114         * lib/error.c (error_at_line, print_errno_message): Match libc, after
74115         resolution of upstream bug 3044.
74116
74117 2006-08-29  Bruno Haible  <bruno@clisp.org>
74118
74119         * modules/localcharset (Depends-on): Add configmake.
74120         (Makefile.am): Remove setting of LIBDIR through DEFS.
74121
74122 2006-08-29  Bruno Haible  <bruno@clisp.org>
74123
74124         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
74125         defined.
74126
74127 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74128
74129         * modules/fcntl: New file.
74130         * modules/chdir-safer (Depends-on): Add fcntl.
74131         * modules/fts: Likewise.
74132         * modules/mkdir-p: Likewise.
74133
74134         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
74135         This undoes the most recent change, since we're now addressing the
74136         problem in a different way.
74137
74138         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
74139         into output, since the output might be called Makefile.am even
74140         if $makefile_name is something different.
74141         (func_import): Use $makefile_am rather than
74142         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
74143         empty.
74144
74145         * modules/inttypes (Files): Add m4/inttypes-h.m4.
74146
74147 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74148
74149         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
74150         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
74151         recent change to stdint.m4, since we're now addressing the problem in a
74152         different way.
74153
74154 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74155
74156         * m4/fcntl_h.m4: New file.
74157
74158 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74159
74160         * lib/fcntl_.h: New file.
74161         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
74162         the fcntl module.
74163         * lib/dirchownmod.c: Likewise.
74164         * lib/fts.c: Likewise.
74165
74166         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
74167         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
74168         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
74169         just before including <inttypes.h>, to avoid circular inclusion.
74170
74171 2006-08-28  Jim Meyering  <jim@meyering.net>
74172
74173         * doc/visibility.texi: Actually read and correct the grammar of the
74174         sentence affected by yesterday's change.
74175
74176 2006-08-28  Eric Blake  <ebb9@byu.net>
74177
74178         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
74179         needs wrapper.
74180
74181 2006-08-28  Eric Blake  <ebb9@byu.net>
74182
74183         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
74184
74185 2006-08-28  Eric Blake  <ebb9@byu.net>
74186
74187         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
74188
74189 2006-08-28  Bruno Haible  <bruno@clisp.org>
74190
74191         * modules/c-strstr: New file, from GNU gettext.
74192         * MODULES.html.sh (String handling): Add c-strstr.
74193
74194 2006-08-28  Bruno Haible  <bruno@clisp.org>
74195
74196         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
74197         macros.
74198         Reported by Eric Blake.
74199
74200 2006-08-28  Bruno Haible  <bruno@clisp.org>
74201
74202         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
74203         (VASNPRINTF): Return a string of length > INT_MAX without failing.
74204         * lib/vasprintf.c: Include errno.h, limits.h.
74205         (EOVERFLOW): New fallback definition.
74206         (vasprintf): Test here whether the string length is > INT_MAX.
74207         * lib/vsnprintf.c: Include errno.h, limits.h.
74208         (EOVERFLOW): New fallback definition.
74209         (vsnprintf): Fix bug when generated string was too long for the buffer.
74210         Test here whether the string length is > INT_MAX.
74211
74212 2006-08-28  Bruno Haible  <bruno@clisp.org>
74213
74214         * lib/inttypes_.h (SCNX*): Remove definitions.
74215         Reported by Eric Blake.
74216
74217 2006-08-28  Bruno Haible  <bruno@clisp.org>
74218
74219         * lib/c-strstr.h: New file, from GNU gettext.
74220         * lib/c-strstr.c: New file, from GNU gettext.
74221
74222 2006-08-28  Bruno Haible  <bruno@clisp.org>
74223
74224         * gnulib-tool: Reorder some statements.
74225
74226 2006-08-28  Bruno Haible  <bruno@clisp.org>
74227
74228         * gnulib-tool: New option --makefile-name.
74229         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
74230         $makefile_name.
74231         (func_import): Write $makefile_name to the cache file, and read it from
74232         there unless explicitly specified. Use $makefile_name as file name
74233         instead of Makefile.am. Adjust the recommendations accordingly.
74234
74235 2006-08-28  Bruno Haible  <bruno@clisp.org>
74236
74237         * gnulib-tool (func_verify_module): Check against misapplying patch.
74238
74239 2006-08-28  Bruno Haible  <bruno@clisp.org>
74240
74241         * gnulib-tool (func_relativize, func_relconcat): New functions.
74242         Give an error if --local-dir is given with --update.
74243         Remove trailing slashes from $local_gnulib_dir.
74244         (func_import): Store the relativized $local_gnulib_dir in
74245         gnulib-cache.m4, and read it from there if not specified explicitly.
74246
74247 2006-08-28  Bruno Haible  <bruno@clisp.org>
74248
74249         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
74250         is the current directory. Respect also $local_gnulib_dir.
74251
74252 2006-08-28  Bruno Haible  <bruno@clisp.org>
74253             Simon Josefsson  <jas@extundo.com>
74254
74255         BeOS portability.
74256         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
74257
74258 2006-08-27  Jim Meyering  <jim@meyering.net>
74259
74260         * doc/visibility.texi: Remove duplicate word: "pointer".
74261
74262 2006-08-26  Bruno Haible  <bruno@clisp.org>
74263
74264         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
74265         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
74266         (Makefile.am): Create inttypes.h from inttypes_.h.
74267         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
74268
74269         * modules/imaxabs: New file.
74270
74271         * modules/imaxdiv: New file.
74272
74273 2006-08-26  Bruno Haible  <bruno@clisp.org>
74274
74275         * m4/inttypes.m4: New file.
74276         * m4/_inttypes_h.m4: Remove file.
74277         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
74278         PRI_MACROS_BROKEN.
74279         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
74280
74281         * m4/imaxabs.m4: New file.
74282
74283         * m4/imaxdiv.m4: New file.
74284
74285 2006-08-26  Bruno Haible  <bruno@clisp.org>
74286
74287         * lib/inttypes_.h: New file.
74288         * lib/inttypes.h: Remove file.
74289         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
74290
74291         * lib/imaxabs.c: New file.
74292
74293         * lib/imaxdiv.c: New file.
74294
74295 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74296
74297         New config-h module, so that "make" output needn't be cluttered
74298         by -DHAVE_CONFIG_H.
74299         * MODULES.html.sh (Support for building libraries and executables):
74300         Add config-h.
74301         * modules/config-h: New file.
74302         * gnulib-tool (nl, sed_transform_lib_file): New vars.
74303         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
74304         the config-h module is used.
74305
74306         New configmake module, so that "make" output needn't be cluttered
74307         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
74308         * MODULES.html.sh (Support for building libraries and executables):
74309         Add configmake.
74310         * modules/configmake: New file.
74311
74312 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74313
74314         * m4/config-h.m4: New file.
74315
74316 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74317
74318         * config/srclist.txt: Add elisp-comp.
74319
74320 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74321
74322         * MODULES.html.sh (Support for building libraries and executables):
74323         Add elisp-comp.
74324         * build-aux/elisp-comp: New file.
74325         * modules/elisp-comp: New file.
74326
74327 2006-08-24  Bruno Haible  <bruno@clisp.org>
74328
74329         * gnulib-tool (func_create_testdir): Use non-default values of
74330         sourcebase and m4base.
74331
74332 2006-08-24  Bruno Haible  <bruno@clisp.org>
74333
74334         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
74335         HTML structure.
74336
74337 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74338
74339         * modules/openat (Depends-on): Add lchown.
74340
74341 2006-08-23  Bruno Haible  <bruno@clisp.org>
74342
74343         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
74344         of gl_LOCK_EARLY instead of gl_LOCK.
74345
74346 2006-08-23  Bruno Haible  <bruno@clisp.org>
74347
74348         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
74349         on OSF/1 to no.
74350         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
74351
74352 2006-08-23  Bruno Haible  <bruno@clisp.org>
74353
74354         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
74355         as unusable.
74356
74357         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
74358         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
74359         (gl_LOCK): New macro.
74360
74361 2006-08-22  Simon Josefsson  <jas@extundo.com>
74362
74363         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
74364         to md5 module.
74365
74366 2006-08-22  Simon Josefsson  <jas@extundo.com>
74367
74368         * MODULES.html.sh: Add "Support for maintaining and release
74369         projects".
74370
74371         * build-aux/gnupload: New file, from coreutils.
74372
74373 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74374
74375         Avoid the need for AC_LIBSOURCES in m4 macros.
74376         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
74377         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
74378         * modules/check-version (EXTRA_DIST): Add check-version.h.
74379         * modules/crc (EXTRA_DIST): Add crc.h.
74380         * modules/des (EXTRA_DIST): Add des.h.
74381         * modules/gc (EXTRA_DIST): Add gc.h.
74382         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
74383         * modules/getline (EXTRA_DIST): Add getline.h.
74384         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
74385         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
74386         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
74387         * modules/md2 (EXTRA_DIST): Add md2.h.
74388         * modules/md4 (EXTRA_DIST): Add md4.h.
74389         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
74390         * modules/read-file (EXTRA_DIST): Add read-file.h.
74391         * modules/readline (EXTRA_DIST): Add readline.h.
74392         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
74393         rijndael-api-fst.h.
74394
74395 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74396
74397         * m4/rijndael.m4 (gl_ARCFOUR):
74398         * m4/arctwo.m4 (gl_ARCTWO):
74399         * m4/check-version.m4 (gl_CHECK_VERSION):
74400         * m4/crc.m4 (gl_CRC):
74401         * m4/des.m4 (gl_DES):
74402         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
74403         * m4/gc.m4 (gl_GC):
74404         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
74405         * m4/getline.m4 (gl_FUNC_GETLINE):
74406         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
74407         * m4/hmac-md5.m4 (gl_HMAC_MD5):
74408         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
74409         * m4/md2.m4 (gl_MD2):
74410         * m4/md4.m4 (gl_MD4):
74411         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
74412         * m4/read-file.m4 (gl_FUNC_READ_FILE):
74413         * m4/readline.m4 (gl_FUNC_READLINE):
74414         * m4/rijndael.m4 (gl_RIJNDAEL):
74415         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
74416         to get the necessary .h files and whatnot.
74417
74418 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74419
74420         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
74421         gnulib rather than the other way around.
74422         * config/srclistvars.sh (COREUTILS): Remove.
74423
74424 2006-08-22  Jim Meyering  <jim@meyering.net>
74425
74426         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
74427
74428         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
74429
74430 2006-08-22  Eric Blake  <ebb9@byu.net>
74431
74432         * modules/regexprops-generic: New file.
74433         * MODULES.html.sh (Support for building documentation): List it.
74434
74435 2006-08-22  Eric Blake  <ebb9@byu.net>
74436
74437         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
74438         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
74439         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
74440         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
74441
74442 2006-08-22  Bruno Haible  <bruno@clisp.org>
74443
74444         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
74445         and lib_LTLIBRARIES like the other lib_* variables.
74446
74447 2006-08-22  Bruno Haible  <bruno@clisp.org>
74448
74449         * build-aux/x-to-1.in: New file, from GNU gettext.
74450
74451 2006-08-22  Bruno Haible  <bruno@clisp.org>
74452
74453         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
74454         <utmpx.h> exists.
74455
74456 2006-08-22  Bruno Haible  <bruno@clisp.org>
74457
74458         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
74459         <utmpx.h> exists.
74460
74461 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74462
74463         BeOS portability.
74464         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
74465         exist.
74466         Problem reported by Bruno Haible.
74467
74468 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74469
74470         Avoid the need for AC_LIBSOURCES in m4 macros.
74471         * modules/acl (EXTRA_DIST): Add acl.h.
74472         * modules/argmatch (Files): Add m4/argmatch.m4.
74473         (configure.ac): Add gl_ARGMATCH.
74474         (EXTRA_DIST): Renamed from lib_SOURCES, for
74475         consistency with the other modules.  Remove argmatch.c.
74476         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
74477         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
74478         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
74479         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
74480         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
74481         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
74482         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
74483         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
74484         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
74485         * modules/closeout (EXTRA_DIST): Add closeout.h.
74486         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
74487         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
74488         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
74489         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
74490         dirname.h; remove basename.c and stripslash.c.
74491         * modules/exclude (EXTRA_DIST): Add exclude.h.
74492         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
74493         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
74494         * modules/file-type (EXTRA_DIST): Add file-type.h.
74495         * modules/filemode (EXTRA_DIST): Add filemode.h.
74496         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
74497         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
74498         * modules/fpending (EXTRA_DIST): Add __fpending.h.
74499         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
74500         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
74501         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
74502         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
74503         * modules/getdate (EXTRA_DIST): Add getdate.c.
74504         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
74505         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
74506         * modules/getpass (EXTRA_DIST): Add getpass.h.
74507         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
74508         * modules/group-member (EXTRA_DIST): Add group-member.h.
74509         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
74510         * modules/hash (EXTRA_DIST): Add hash.h.
74511         * modules/human (EXTRA_DIST): Add human.h.
74512         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
74513         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
74514         * modules/lchown (EXTRA_DIST): Add lchown.h.
74515         * modules/long-options (EXTRA_DIST): Add long-options.h.
74516         * modules/lstat (EXTRA_DIST): Add lstat.h.
74517         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
74518         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
74519         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
74520         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
74521         * modules/memxor (EXTRA_DIST): Add memxor.h.
74522         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
74523         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
74524         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
74525         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
74526         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
74527         * modules/physmem (EXTRA_DIST): Add physmem.h.
74528         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
74529         * modules/posixver (EXTRA_DIST): Add posixver.h.
74530         * modules/quote (EXTRA_DIST): Add quote.h.
74531         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
74532         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
74533         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
74534         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
74535         regex_internal.h regexec.c.
74536         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
74537         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
74538         * modules/same (EXTRA_DIST): Add same.h.
74539         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
74540         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
74541         * modules/savedir (EXTRA_DIST): Add savedir.h.
74542         * modules/sha1 (EXTRA_DIST): Add sha1.h.
74543         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
74544         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
74545         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
74546         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
74547         * modules/strdup (EXTRA_DIST): Add strdup.h.
74548         * modules/strftime (EXTRA_DIST): Add strftime.h.
74549         * modules/strndup (EXTRA_DIST): Add strndup.h.
74550         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
74551         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
74552         * modules/time_r (EXTRA_DIST): Add time_r.h.
74553         * modules/timespec (EXTRA_DIST): Add timespec.h.
74554         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
74555         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
74556         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
74557         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
74558         * modules/userspec (EXTRA_DIST): Add userspec.h.
74559         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
74560         * modules/utimens (EXTRA_DIST): Add utimens.h.
74561         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
74562         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
74563         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
74564         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
74565         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
74566         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
74567         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
74568         * modules/yesno (EXTRA_DIST): Add yesno.h.
74569
74570 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74571
74572         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
74573
74574         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
74575         * m4/dev-ino.m4, same-inode.m4: Remove.
74576
74577         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
74578         * m4/acl.m4 (AC_FUNC_ACL):
74579         * m4/backupfile.m4 (gl_BACKUPFILE):
74580         * m4/c-strtod.m4 (gl_C99_STRTOLD):
74581         * m4/canon-host.m4 (gl_CANON_HOST):
74582         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
74583         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
74584         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
74585         * m4/cloexec.m4 (gl_CLOEXEC):
74586         * m4/close-stream.m4 (gl_CLOSE_STREAM):
74587         * m4/closeout.m4 (gl_CLOSEOUT):
74588         * m4/dirfd.m4 (gl_FUNC_DIRFD):
74589         * m4/dirname.m4 (gl_DIRNAME):
74590         * m4/exclude.m4 (gl_EXCLUDE):
74591         * m4/exitfail.m4 (gl_EXITFAIL):
74592         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
74593         * m4/file-type.m4 (gl_FILE_TYPE):
74594         * m4/filemode.m4 (gl_FILEMODE):
74595         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
74596         * m4/fpending.m4 (gl_FUNC_FPENDING):
74597         * m4/fprintftime.m4 (gl_FPRINTFTIME):
74598         * m4/fts.m4 (gl_FUNC_FTS):
74599         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
74600         * m4/getdate.m4 (gl_GETDATE):
74601         * m4/gethrxtime.m4 (gl_GETHRXTIME):
74602         * m4/getpagesize.m4 (gl_GETPAGESIZE):
74603         * m4/getpass.m4 (gl_FUNC_GETPASS):
74604         * m4/gettime.m4 (gl_GETTIME):
74605         * m4/getugroups.m4 (gl_GETUGROUPS):
74606         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
74607         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
74608         * m4/hard-locale.m4 (gl_HARD_LOCALE):
74609         * m4/hash.m4 (gl_HASH):
74610         * m4/idcache.m4 (gl_IDCACHE):
74611         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
74612         * m4/lchown.m4 (gl_FUNC_LCHOWN):
74613         * m4/long-options.m4 (gl_LONG_OPTIONS):
74614         * m4/lstat.m4 (gl_FUNC_LSTAT):
74615         * m4/md5.m4 (gl_MD5):
74616         * m4/memcasecmp.m4 (gl_MEMCASECMP):
74617         * m4/memcoll.m4 (gl_MEMCOLL):
74618         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
74619         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
74620         * m4/memxor.m4 (gl_MEMXOR):
74621         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
74622         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
74623         * m4/modechange.m4 (gl_MODECHANGE):
74624         * m4/mountlist.m4 (gl_MOUNTLIST):
74625         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
74626         * m4/openat.m4 (gl_FUNC_OPENAT):
74627         * m4/pathmax.m4 (gl_PATHMAX):
74628         * m4/physmem.m4 (gl_PHYSMEM):
74629         * m4/posixtm.m4 (gl_POSIXTM):
74630         * m4/posixver.m4 (gl_POSIXVER):
74631         * m4/quote.m4 (gl_QUOTE):
74632         * m4/quotearg.m4 (gl_QUOTEARG):
74633         * m4/readtokens.m4 (gl_READTOKENS):
74634         * m4/readutmp.m4 (gl_READUTMP):
74635         * m4/regex.m4 (gl_REGEX):
74636         * m4/safe-read.m4 (gl_SAFE_READ):
74637         * m4/safe-write.m4 (gl_SAFE_WRITE):
74638         * m4/same.m4 (gl_SAME):
74639         * m4/save-cwd.m4 (gl_SAVE_CWD):
74640         * m4/savedir.m4 (gl_SAVEDIR):
74641         * m4/settime.m4 (gl_SETTIME):
74642         * m4/sha1.m4 (gl_SHA1):
74643         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
74644         * m4/stat-macros.m4 (gl_STAT_MACROS):
74645         * m4/stat-time.m4 (gl_STAT_TIME):
74646         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
74647         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
74648         * m4/strdup.m4 (gl_FUNC_STRDUP):
74649         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
74650         * m4/strndup.m4 (gl_FUNC_STRNDUP):
74651         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
74652         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
74653         * m4/time_r.m4 (gl_TIME_R):
74654         * m4/timespec.m4 (gl_TIMESPEC):
74655         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
74656         * m4/unlinkdir.m4 (gl_UNLINKDIR):
74657         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
74658         * m4/userspec.m4 (gl_USERSPEC):
74659         * m4/utimecmp.m4 (gl_UTIMECMP):
74660         * m4/utimens.m4 (gl_UTIMENS):
74661         * m4/xalloc.m4 (gl_XALLOC):
74662         * m4/xgetcwd.m4 (gl_XGETCWD):
74663         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
74664         * m4/xreadlink.m4 (gl_XREADLINK):
74665         * m4/xstrtod.m4 (gl_XSTRTOD):
74666         * m4/yesno.m4 (gl_YESNO):
74667         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
74668         to get the necessary .h files and whatnot.
74669
74670 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
74671             Bruno Haible  <bruno@clisp.org>
74672
74673         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
74674         /bin/sh understanding of '!' conditional negation.
74675
74676 2006-08-21  Jim Meyering  <jim@meyering.net>
74677
74678         * modules/openat (Depends-on): Really alphabetize.
74679
74680         * modules/acl (Depends-on): Add error and quote.
74681
74682         * check-module (find_included_lib_files): Add at-func.c to the
74683         ok-to-include-more-than-once white list.
74684
74685         * modules/openat (Depends-on): Add lstat.  Alphabetize.
74686
74687 2006-08-21  Bruno Haible  <bruno@clisp.org>
74688
74689         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74690         Emit a pkgdata_DATA variable only if some snippets add contents to it.
74691         Reported by Martin Lambers <marlam@marlam.de>.
74692
74693 2006-08-21  Bruno Haible  <bruno@clisp.org>
74694
74695         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
74696         specify an installation location, don't emit a noinst_LIBRARIES or
74697         noinst_LTLIBRARIES assignment.
74698
74699 2006-08-21  Bruno Haible  <bruno@clisp.org>
74700
74701         BeOS portability.
74702         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
74703         BeOS has mbrtowc() but no <wctype.h>.
74704
74705 2006-08-21  Bruno Haible  <bruno@clisp.org>
74706
74707         BeOS portability.
74708         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
74709         exist.
74710
74711 2006-08-21  Bruno Haible  <bruno@clisp.org>
74712
74713         BeOS portability.
74714         * lib/mbchar.h: Include <wctype.h> only if it exists.
74715
74716 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74717
74718         Remove files that are no longer needed by their respective modules.
74719         * m4/obstack.m4: Remove.
74720         * m4/strerror_r.m4: Remove.
74721         * m4/uint32_t.m4: Remove.
74722         * m4/uintptr_t.m4: Remove.
74723         * m4/ullong_max.m4: Remove.
74724         * m4/xstrtoimax.m4: Remove.
74725         * m4/xstrtoumax.m4: Remove.
74726
74727         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
74728         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
74729         dependencies now capture this.
74730
74731         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
74732         Do not use AC_LIBSOURCES, since gnulib modules now do this.
74733         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
74734         * m4/human.m4 (gl_HUMAN): Likewise.
74735         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
74736         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
74737
74738         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
74739
74740         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
74741         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
74742         stdint.
74743         * m4/human.m4 (gl_HUMAN): Likewise.
74744         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
74745         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
74746         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
74747         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
74748         * m4/xstrtol (gl_XSTRTOL): Likewise.
74749
74750         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
74751         AC_TYPE_LONG_LONG_INT.
74752         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
74753         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
74754         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
74755         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
74756
74757         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
74758         on stdbool.
74759
74760         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
74761         (gl_PREREQ_XSTRTOUL): Remove.
74762
74763         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
74764
74765         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
74766         mode.
74767
74768 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74769
74770         Add and change modules to make it easier for coreutils to use
74771         gnulib-tool.
74772         * modules/backupfile (Files): Remove m4/d-ino.m4.
74773         (Depends-on): Add d-ino.
74774         * modules/cycle-check (Depends-on): Add stdint.
74775         (lib_SOURCES): Add cycle-check.h.
74776         * modules/d-ino: New module.
74777         * modules/d-type: New module.
74778         * modules/error (Files): Remove m4/strerror_r.m4.
74779         * modules/filemode (Files): Add m4/st_dm_mode.m4.
74780         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
74781         m4/inttypes_h.m4, m4/uintmax_t.m4.
74782         (Depends-on): Add stdint.
74783         (lib_SOURCES): Add fsusage.h.
74784         * modules/getcwd (Files): Remove d-ino.m4.
74785         (Depends-on): Add d-ino.
74786         * modules/getndelim2 (Depends-on): Add stdint.
74787         * modules/glob (Files): Remove m4/d-type.m4.
74788         (Depends-on): Add d-type.
74789         * modules/host-os: New module.
74790         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
74791         m4/inttypes_h.m4, m4/uintmax_t.m4.
74792         * Depends-on: Add stdint.
74793         (lib_SOURCES): Add human.h.
74794         * modules/inttostr (Files): Remove m4/intmax_t.m4,
74795         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
74796         m4/uintmax_t.m4, m4/ulonglong.m4.
74797         (Depends-on): Add stdint.
74798         (EXTRA_DIST): Add inttostr.h.
74799         * modules/lchmod: New module.
74800         * modules/link-follow: New module.
74801         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
74802         (Depends-on): Add lchmod.
74803         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
74804         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
74805         (Depends-on): Add stdint.
74806         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
74807         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
74808         (Depends-on): Add stdint.
74809         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
74810         * modules/perl: New module.
74811         * modules/regex (Depends-on): Add stdint.
74812         * modules/rmdir-errno: New module.
74813         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
74814         m4/intmax_t.m4.
74815         (Depends-on): Add stdint.
74816         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
74817         m4/uintmax_t.m4.
74818         (Depends-on): Add stdint.
74819         * modules/unlink-busy: New module.
74820         * modules/utimecmp (Depends-on): Add stdint.
74821         * modules/uptime: New module.
74822         * modules/winsz-ioctl: New module.
74823         * modules/winsz-termios: New module.
74824         * modules/xnanosleep (Depends-on): Add nanosleep.
74825         * modules/ullong_max: Remove.
74826         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
74827         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
74828         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
74829         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
74830         (Depends-on): Add inttypes.
74831         (lib_SOURCES): Add xstrtol.h.
74832         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
74833         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
74834         * MODULES.html.sh: Move 'assert' into the assert section.
74835         Move 'dummy' into the linking section.
74836         Remove ullong_max.
74837         Add section for compatibility checks for POSIX:2001 functions,
74838         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
74839         winsz-ioctl, and winsz-termios into it.
74840         Add lchmod.
74841         Add top-level Misc section and put host-os, perl, and uptime
74842         into it.
74843
74844 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74845
74846         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
74847         now assume the stdint module.  Do not include inttypes.h.
74848         * lib/fsusage.h: Likewise.
74849         * lib/getndelim2.c: Likewise.
74850         * lib/human.h: Likewise.
74851         * lib/inttostr.h: Likewise.
74852         * lib/obstack.c: Likewise.
74853         * lib/regex_internal.h: Likewise.
74854         * lib/tempname.c: Likewise.
74855         * lib/utimecmp.c: Likewise.
74856         * lib/xstrtol.h: Likewise.
74857
74858         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
74859
74860         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
74861         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
74862         * lib/xtime.h: Likewise.
74863
74864 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74865
74866         * modules/openat (Files): Add lib/fchmodat.c.
74867         Fixes problem reported by Jay Youngman.
74868
74869 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74870
74871         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
74872         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
74873
74874 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
74875             Bruno Haible  <bruno@clisp.org>
74876
74877         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
74878         and is a script that invokes bison. Tighten the code. Add comments.
74879
74880 2006-08-18  Jim Meyering  <jim@meyering.net>
74881
74882         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
74883         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
74884         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
74885         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
74886
74887 2006-08-18  Bruno Haible  <bruno@clisp.org>
74888
74889         * modules/bison-i18n: New file.
74890         * MODULES.html.sh (Internationalization functions): Add it.
74891
74892 2006-08-18  Bruno Haible  <bruno@clisp.org>
74893
74894         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
74895         sys/statvfs.h. When getmntinfo was found, check its declaration and
74896         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
74897
74898 2006-08-18  Bruno Haible  <bruno@clisp.org>
74899
74900         * m4/bison-i18n.m4: New file, from bison.
74901
74902 2006-08-18  Bruno Haible  <bruno@clisp.org>
74903
74904         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
74905         (ME_DUMMY): Treat "kernfs" as a dummy.
74906         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
74907
74908 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74909
74910         Update from coreutils.
74911
74912         2006-08-15  Jim Meyering  <jim@meyering.net>
74913
74914         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
74915
74916         2006-01-17  Jim Meyering  <jim@meyering.net>
74917
74918         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
74919
74920         2006-01-11  Jim Meyering  <jim@meyering.net>
74921
74922         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
74923         Check for the lchmod function.
74924
74925 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74926
74927         Update from coreutils.
74928
74929         * lib/__fpending.h: Add copyright notice.
74930         * lib/fprintftime.h: Likewise.
74931         * lib/savedir.c: Use (C) in copyright notice.
74932         * lib/savedir.h: Likewise.
74933
74934         2006-08-15  Jim Meyering  <jim@meyering.net>
74935
74936         * lib/at-func.c: New file, with the logic of all emulated at-functions.
74937         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
74938         in support of the EXPECTED_ERRNO macro.
74939         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
74940         definitions.  Instead, define the appropriate symbols and include
74941         "at-func.c".
74942         * lib/mkdirat.c (mkdirat): Likewise.
74943         * lib/fchmodat.c (fchmodat): Likewise.
74944         (ENOSYS): Remove definition.
74945         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
74946         it.  Don't include "unistd--.h" -- it wasn't ever used.
74947
74948         2006-01-17  Jim Meyering  <jim@meyering.net>
74949
74950         Rewrite fts.c not to change the current working directory,
74951         by using openat, fstatat, fdopendir, etc..
74952
74953         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
74954         (HAVE_OPENAT_SUPPORT): Define.
74955         [_LIBC] (fchdir): Don't undef or define; no longer used.
74956         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
74957         Now, this `function' always succeeds, and consumes its file descriptor
74958         parameter -- so callers must not close such FDs.  Update callers.
74959         (diropen_fd, opendirat, cwd_advance_fd): New functions.
74960         (diropen): Add parameter, SP.  Adjust all callers.
74961         Implement using diropen_fd, rather than open.
74962         (fts_open): Initialize new member, fts_cwd_fd.
74963         Remove fts_rft-setting code.
74964         (fts_close): Close fts_cwd_fd, if necessary.
74965         (__opendir2): Define in terms of opendir or opendirat,
74966         depending on whether the FST_NOCHDIR flag is set.
74967         (fts_build): Since fts_safe_changedir consumes its FD, and since
74968         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
74969         and close the dup'd file descriptor upon failure.
74970         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
74971         (fts_safe_changedir): Tweak semantics to reflect that this function
74972         now calls cwd_advance_fd and hence consumes its FD argument.
74973         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
74974         [struct FTS] (fts_rft): Remove now-unused member.
74975         [struct FTS] (fts_cycle.state): Improve comment.
74976
74977         * lib/openat.c (openat_needs_fchdir): New function.
74978         * lib/openat.h (openat_needs_fchdir): Declare it.
74979
74980 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
74981
74982         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
74983         Problem and fix reported by Pádraig Brady in
74984         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
74985
74986 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74987
74988         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
74989
74990 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74991
74992         * lib/memcoll.c (memcoll): Optimize for the common case where the
74993         arguments are bytewise equal.
74994
74995 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74996
74997         * doc/regexprops-generic.texi: Add a copyright notice.
74998
74999 2006-08-15  Bruno Haible  <bruno@clisp.org>
75000
75001         * modules/tmpdir (License): Change to LGPL.
75002
75003 2006-08-15  Bruno Haible  <bruno@clisp.org>
75004
75005         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
75006         module.
75007
75008 2006-08-14  Simon Josefsson  <jas@extundo.com>
75009
75010         * config/srclist.txt: Add gnupload.
75011
75012 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75013
75014         Change copyright notice from LGPL 2 to GPL 2, since that's the
75015         standard form used in the gnulib repository.
75016         * tests/test-lock.c: Likewise.
75017         * tests/test-stdint.c: Likewise.
75018         * tests/test-tls.c: Likewise.
75019
75020         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
75021         prelude-manager.  User shorter URLs for GNU projects, without '?'.
75022         Add copyright notice.
75023
75024         * check-module: Add copyright notice.  Output a copyright
75025         notice if "--version" is specified.
75026         * modules/COPYING: New file.
75027         * tests/test-getaddrinfo.c: Add copyright notice.
75028         * tests/test-verify.c: Likewise.
75029
75030 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75031
75032         Change copyright notice from LGPL 2 to GPL 2, since that's the
75033         standard form used in the gnulib repository.
75034         * lib/lock.c: LGPL -> GPL.
75035         * lib/lock.h: Likewise.
75036         * lib/strnlen1.c: Likewise.
75037         * lib/strnlen1.h: Likewise.
75038         * lib/tls.c: Likewise.
75039         * lib/tls.h: Likewise.
75040         * lib/tmpdir.c: Likewise.
75041
75042         * lib/TODO: Remove; this belongs only in coreutils.
75043
75044 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75045
75046         Add copyright notices to long-enough files that lack them, since
75047         otherwise the files aren't clearly free.  Use the same notice that
75048         getdate.texi already uses.
75049         * doc/alloca-opt.texi: Add copyright notice.
75050         * doc/alloca.texi: Likewise.
75051         * doc/ctime.texi: Likewise.
75052         * doc/functions.texi: Likewise.
75053         * doc/gcd.texi: Likewise.
75054         * doc/gnulib-tool.texi: Likewise.
75055         * doc/inet_ntoa.texi: Likewise.
75056         * doc/visibility.texi: Likewise.
75057
75058         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
75059         * doc/quote.texi: Add copyright notice.
75060
75061         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
75062         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
75063         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
75064         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
75065         is now obsolete, and give a pointer to the Sun list.
75066         Add copyright notice.
75067
75068 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75069
75070         * config/srclistvars.sh: Add copyright notice.
75071
75072 2006-08-14  Eric Blake  <ebb9@byu.net>
75073
75074         Import the following change from libc:
75075
75076         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
75077
75078         Upstream bug 2997.
75079         * lib/misc/error.c: Add space between program name and message if file
75080         name is missing.
75081
75082 2006-08-12  Karl Berry  <karl@gnu.org>
75083
75084         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
75085         remove, these originate in gnulib now.
75086
75087 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75088
75089         * doc/Makefile (standards.info standards.html standards.dvi):
75090         Also depend on make-stds.texi.
75091
75092 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75093
75094         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
75095         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
75096
75097         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
75098         in wchar_t.  Problem reported by Eric Blake.
75099
75100         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
75101         LEN is smaller than SIZE.  Suggested by Bruno Haible.
75102         Also, help the compiler to keep LEN in a register.
75103
75104 2006-08-11  Eric Blake  <ebb9@byu.net>
75105
75106         * users.txt: Sort.  Add tar.
75107
75108 2006-08-11  Bruno Haible  <bruno@clisp.org>
75109
75110         * users.txt: New file.
75111
75112 2006-08-11  Bruno Haible  <bruno@clisp.org>
75113
75114         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
75115         before <wchar.h>. Needed for OSF/1 and BSD/OS.
75116
75117 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
75118
75119         * modules/snprintf (Depends-on): Remove minmax.
75120         (Maintainer): Add self and Bruno.
75121
75122 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
75123
75124         * lib/.cppi-disable: Add snprintf.h, socket_.h.
75125         * lib/snprintf.c: Include <errno.h> and <limits.h>.
75126         (EOVERFLOW): Define if the system does not.
75127         Do not include "minmax.h"; it wasn't used.
75128         (snprintf): Don't assume size_t promotes to an unsigned type.
75129         Fix bug when generated string was too long for the buffer: the
75130         buffer's contents are supposed to be the initial prefix of the
75131         output.  Don't assume vasnprintf returns EOVERFLOW if the size
75132         exceeds INT_MAX; do the check ourselves.
75133
75134         Import the following changes from libc:
75135
75136         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
75137
75138         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
75139         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
75140         set wc to the byte which couldn't be converted.
75141         (re_string_reconstruct): Don't clear valid_raw_len before calling
75142         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
75143         tip_context using re_string_context_at.
75144
75145         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
75146
75147         * lib/posix/regex.h: g++ still cannot handled [restrict].
75148
75149         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
75150
75151         * lib/posix/regex.h: Remove special handling for VMS.
75152
75153 2006-08-10  Jim Meyering  <jim@meyering.net>
75154
75155         * modules/same-inode: New module.
75156         * modules/dev-ino: New module.
75157         * modules/cycle-check: Depend on these modules, rather than simply
75158         including their .h files.
75159         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
75160         required via m4/cycle-check.m4.
75161         * modules/same: Depend on new same-inode module, rather than
75162         including same-inode.h.
75163         * modules/chdir-safer: New file.
75164
75165         * modules/chown (Depends-on): Add stat-macros.
75166
75167 2006-08-10  Jim Meyering  <jim@meyering.net>
75168
75169         * m4/cycle-check.m4: New file.
75170         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
75171         * m4/dev-ino.m4, m4/same-inode.m4: New files.
75172
75173 2006-08-10  Eric Blake  <ebb9@byu.net>
75174
75175         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
75176         in from original proposal.
75177
75178 2006-08-10  Eric Blake  <ebb9@byu.net>
75179         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
75180
75181         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
75182         namespace.
75183
75184 2006-08-10  Bruno Haible  <bruno@clisp.org>
75185
75186         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
75187         as well.
75188
75189 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75190
75191         Sync from coreutils.
75192
75193         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
75194
75195         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
75196         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
75197
75198 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75199
75200         * modules/restrict: Remove; no longer needed now that we assume
75201         Autoconf 2.59 or later.
75202         * MODULES.html.sh: Remove 'restrict'.
75203         * modules/argp (Depends-on): Remove 'restrict'.
75204         * modules/base64 (Depends-on): Likewise.
75205         * modules/gc (Depends-on): Likewise.
75206         * modules/getaddrinfo (Depends-on): Likewise.
75207         * modules/glob (Depends-on): Likewise.
75208         * modules/inet_ntop (Depends-on): Likewise.
75209         * modules/inet_pton (Depends-on): Likewise.
75210         * modules/memxor (Depends-on): Likewise.
75211         * modules/regex (Depends-on): Likewise.
75212         * modules/strtok_r (Depends-on): Likewise.
75213         * modules/time_r (Depends-on): Likewise.
75214
75215 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75216
75217         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
75218         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
75219         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
75220         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
75221         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
75222         * m4/memxor.m4 (gl_MEMXOR): Likewise.
75223         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
75224         gl_C_RESTRICT replaced by AC_C_RESTRICT.
75225
75226         Merge from coreutils.
75227         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
75228         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
75229         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
75230         * m4/time_r.m4 (gl_TIME_R): Likewise.
75231
75232 2006-08-09  Karl Berry  <karl@gnu.org>
75233
75234         * config/srclist.txt: no more gettext-tools, per Bruno.
75235
75236 2006-08-08  Eric Blake  <ebb9@byu.net>
75237
75238         * modules/verror: New module.
75239         * MODULES.html.sh: Document it.
75240
75241 2006-08-08  Eric Blake  <ebb9@byu.net>
75242
75243         * lib/verror.h, lib/verror.c: New files.
75244
75245 2006-08-08  Eric Blake  <ebb9@byu.net>
75246
75247         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
75248         verror_at_line output complies with GNU Coding Standards even when
75249         file is NULL.
75250
75251 2006-08-07  Bruno Haible  <bruno@clisp.org>
75252
75253         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
75254         versions of AIX.
75255         Reported by Ralf Wildenhues.
75256
75257 2006-08-07  Bruno Haible  <bruno@clisp.org>
75258
75259         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
75260         in an AC_DEFUN. Needed so that the autoconf snippets can use
75261         AC_REQUIRE.
75262
75263 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75264
75265         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75266         Initialize pkgdata_DATA.
75267         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
75268         overriding it.
75269
75270 2006-08-06  Eric Blake  <ebb9@byu.net>
75271
75272         * lib/error.h: Fold in some upstream changes from glibc.
75273         * lib/error.c: Likewise.
75274
75275 2006-08-04  Bruno Haible  <bruno@clisp.org>
75276
75277         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75278         Make the mostlyclean-local rule depend on mostlyclean-generic.
75279         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
75280
75281 2006-07-31  Bruno Haible  <bruno@clisp.org>
75282
75283         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
75284         <stdlib.h>, <string.h>.
75285
75286 2006-07-30  Bruno Haible  <bruno@clisp.org>
75287
75288         * modules/readlink (License): Change to LGPL.
75289
75290 2006-07-30  Bruno Haible  <bruno@clisp.org>
75291
75292         * modules/javaversion (Makefile.am): Distribute javaversion.java and
75293         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
75294         set PKGDATADIR to point to it.
75295
75296 2006-07-30  Bruno Haible  <bruno@clisp.org>
75297
75298         * modules/csharpexec (configure.ac): Comment out macro invocation.
75299         * modules/javaexec (configure.ac): Likewise.
75300         * modules/javacomp-script (configure.ac): Likewise.
75301
75302         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
75303
75304 2006-07-30  Bruno Haible  <bruno@clisp.org>
75305
75306         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
75307         linked-list.
75308
75309 2006-07-30  Bruno Haible  <bruno@clisp.org>
75310
75311         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
75312
75313 2006-07-30  Bruno Haible  <bruno@clisp.org>
75314
75315         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75316         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
75317         get removed.
75318
75319 2006-07-29  Bruno Haible  <bruno@clisp.org>
75320
75321         Make it possible for gnulib-tool to work with locally modified or
75322         augmented gnulib repositories.
75323         * gnulib-tool (func_usage): Document --local-dir option.
75324         (local_gnulib_dir): New variable.
75325         Handle --local-dir option.
75326         (func_lookup_file): New function.
75327         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
75328         (func_get_description, func_get_filelist, func_get_description,
75329         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
75330         func_get_automake_snippet, func_get_include_directive,
75331         func_get_license, func_get_maintainer): Use func_lookup_file.
75332         (func_import, func_create_testdir): Use func_lookup_file.
75333
75334 2006-07-29  Bruno Haible  <bruno@clisp.org>
75335
75336         * modules/setenv (Depends-on): Add unistd.
75337
75338 2006-07-29  Bruno Haible  <bruno@clisp.org>
75339
75340         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
75341
75342 2006-07-29  Bruno Haible  <bruno@clisp.org>
75343
75344         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
75345
75346 2006-07-29  Bruno Haible  <bruno@clisp.org>
75347
75348         * gnulib-tool (import, update): If there is no Makefile.am, look at
75349         aclocal.m4, instead of bailing out.
75350
75351 2006-07-29  Bruno Haible  <bruno@clisp.org>
75352
75353         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
75354         Categorize the options by when they are useful.
75355
75356 2006-07-29  Bruno Haible  <bruno@clisp.org>
75357
75358         * gnulib-tool (func_usage): Document option --no-libtool.
75359         Handle option --no-libtool.
75360         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
75361         for changed semantics of $libtool variable.
75362         (func_import): Likewise. If libtool is not used, show this through
75363         an option --no-libtool.
75364         (func_create_testdir): Update.
75365
75366 2006-07-29  Bruno Haible  <bruno@clisp.org>
75367
75368         * gnulib-tool (func_import): Extend error message about missing
75369         --doc-base.
75370
75371 2006-07-29  Bruno Haible  <bruno@clisp.org>
75372
75373         * gnulib-tool (func_import): Don't create the $docbase directory if
75374         there is no file to store there.
75375
75376 2006-07-29  Bruno Haible  <bruno@clisp.org>
75377
75378         * gnulib-tool (autoconf_minversion): If a --dir option is given and
75379         relevant, look for configure.ac there, not in the current directory.
75380         Also use a simple search for AC_PREREQ, not "autoconf --trace".
75381
75382 2006-07-29  Bruno Haible  <bruno@clisp.org>
75383
75384         * gnulib-tool (SORT): New variable.
75385         (func_usage): Undocument --assume-autoconf option.
75386         Remove --assume-autoconf option handling.
75387         (autoconf_minversion): Determine from the contents of configure.ac.
75388         (func_import): Remove autoconf_minversion handling.
75389         Suggested by Eric Blake.
75390
75391 2006-07-29  Bruno Haible  <bruno@clisp.org>
75392
75393         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
75394
75395 2006-07-29  Bruno Haible  <bruno@clisp.org>
75396
75397         * config/srclist.txt (*setenv.[ch]): Remove rules.
75398
75399 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75400
75401         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
75402
75403 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75404
75405         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
75406         arpa/inet.h.
75407
75408 2006-07-28  Simon Josefsson  <jas@extundo.com>
75409
75410         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
75411         * modules/inet_pton (Depends-on): Likewise.
75412
75413 2006-07-28  Simon Josefsson  <jas@extundo.com>
75414
75415         * m4/netinet_in_h.m4: New file.
75416
75417 2006-07-28  Simon Josefsson  <jas@extundo.com>
75418
75419         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
75420         #include's.
75421
75422 2006-07-28  Simon Josefsson  <jas@extundo.com>
75423
75424         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
75425         #include's.
75426
75427 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
75428
75429         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
75430         setgid on directories only if they set these bits.
75431         * lib/modechange.h: Remove obsolete comment about masks.
75432
75433 2006-07-28  Eric Blake  <ebb9@byu.net>
75434
75435         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
75436         macro expansion.
75437
75438 2006-07-28  Bruno Haible  <bruno@clisp.org>
75439
75440         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
75441
75442 2006-07-28  Bruno Haible  <bruno@clisp.org>
75443
75444         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
75445
75446 2006-07-28  Bruno Haible  <bruno@clisp.org>
75447
75448         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
75449         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
75450         Define fallbacks.
75451         Avoids link error on FreeBSD 4.x.
75452         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75453
75454         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
75455         encoding.
75456         * lib/mbswidth.c (iswcntrl): Likewise.
75457
75458 2006-07-27  Bruno Haible  <bruno@clisp.org>
75459
75460         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
75461         test.
75462
75463 2006-07-27  Bruno Haible  <bruno@clisp.org>
75464
75465         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
75466         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
75467         defined.
75468
75469 2006-07-26  Eric Blake  <ebb9@byu.net>
75470
75471         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
75472
75473 2006-07-26  Eric Blake  <ebb9@byu.net>
75474
75475         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
75476         like mingw that lack mkstemp.
75477         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
75478         avoid compilation warning on mingw.
75479
75480 2006-07-26  Bruno Haible  <bruno@clisp.org>
75481
75482         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
75483         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
75484         INT_FAST*_MIN, INTPTR_MIN.
75485
75486 2006-07-25  Bruno Haible  <bruno@clisp.org>
75487
75488         * modules/version-etc (Depends-on): Add stdarg.
75489
75490 2006-07-25  Bruno Haible  <bruno@clisp.org>
75491
75492         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
75493         complex commands.
75494
75495 2006-07-25  Bruno Haible  <bruno@clisp.org>
75496
75497         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
75498         defined in <stdarg.h> or config.h.
75499
75500 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
75501
75502         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
75503         (gl_STDIO_SAFER): Remove.
75504
75505 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
75506
75507         * MODULES.html.sh (File stream based Input/Output):
75508         Add fopen-safer, tmpfile-safer; remove stdio-safer.
75509         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
75510         * modules/fopen-safer, modules/tmpfile-safer: New files.
75511         * modules/stdio-safer: Remove.
75512
75513 2006-07-24  Bruno Haible  <bruno@clisp.org>
75514
75515         * modules/tmpdir: New file.
75516         * MODULES.html.sh (File system functions): Add it.
75517
75518 2006-07-24  Bruno Haible  <bruno@clisp.org>
75519
75520         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
75521         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
75522
75523 2006-07-24  Bruno Haible  <bruno@clisp.org>
75524
75525         * modules/clean-temp: New file.
75526
75527 2006-07-24  Bruno Haible  <bruno@clisp.org>
75528
75529         * m4/tmpdir.m4: New file, from GNU gettext.
75530
75531 2006-07-24  Bruno Haible  <bruno@clisp.org>
75532
75533         * lib/tmpdir.h: New file, from GNU gettext.
75534         * lib/tmpdir.c: New file, from GNU gettext.
75535
75536 2006-07-24  Bruno Haible  <bruno@clisp.org>
75537
75538         * lib/clean-temp.h: New file, from GNU gettext.
75539         * lib/clean-temp.c: New file, from GNU gettext.
75540
75541 2006-07-23  Eric Blake  <ebb9@byu.net>
75542
75543         * modules/stdio-safer (Files): Add tmpfile-safer.c.
75544         (Depends-on): Add binary-io.
75545
75546 2006-07-23  Eric Blake  <ebb9@byu.net>
75547
75548         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
75549
75550 2006-07-23  Eric Blake  <ebb9@byu.net>
75551
75552         * lib/tmpfile-safer.c: New file.
75553         * lib/stdio-safer.h (fopen_safer): Add prototype.
75554         * lib/stdio--.h (tmpfile): Make safer.
75555
75556 2006-07-23  Bruno Haible  <bruno@clisp.org>
75557
75558         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
75559         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
75560         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
75561         gl_linked_remove_at): Use it.
75562
75563 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75564         and Simon Josefsson <jas@extundo.com>
75565
75566         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
75567
75568         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
75569
75570 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75571
75572         * modules/close-stream: New file.
75573         * modules/closeout (Description): Make it clear that it exits
75574         with a diagnostic on error.
75575         (Depends-on): Add close-stream.  Remove fpending, stdbool.
75576         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
75577
75578 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75579
75580         * m4/close-stream.m4: New file.
75581
75582 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75583
75584         * lib/close-stream.c, lib/close-stream.h: New files.
75585
75586 2006-07-22  Bruno Haible  <bruno@clisp.org>
75587
75588         Merge from GNU gettext 0.15.
75589
75590         2006-05-01  Bruno Haible  <bruno@clisp.org>
75591
75592                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
75593
75594         2006-07-22  Bruno Haible  <bruno@clisp.org>
75595
75596                 * modules/javaversion: New file.
75597                 * MODULES.html.sh (Java): Add javaversion.
75598
75599         2006-03-12  Bruno Haible  <bruno@clisp.org>
75600
75601                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
75602
75603         2005-12-04  Bruno Haible  <bruno@clisp.org>
75604
75605                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
75606                 (untested).
75607
75608         2006-06-21  Bruno Haible  <bruno@clisp.org>
75609
75610                 Avoid warnings from recent versions of mcs.
75611                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
75612                 -o, -L, -r any more. Use options documented since mcs-1.0
75613                 instead. Similarly for -g.
75614
75615         2005-12-04  Bruno Haible  <bruno@clisp.org>
75616
75617                 * build-aux/csharpcomp.sh.in: Suffix for resources is
75618                 .resources, not .resource.
75619
75620         2005-07-09  Bruno Haible  <bruno@clisp.org>
75621
75622                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
75623                 add a .dll suffix.
75624                 Reported by Mark Junker <mjscod@gmx.de>.
75625
75626         2006-07-22  Bruno Haible  <bruno@clisp.org>
75627
75628                 * modules/gettext: Upgrade to gettext-0.15.
75629                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
75630                 m4/visibility.m4.
75631                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
75632
75633 2006-07-22  Bruno Haible  <bruno@clisp.org>
75634
75635         Merge from GNU gettext 0.15.
75636
75637         2006-03-25  Bruno Haible  <bruno@clisp.org>
75638
75639                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
75640
75641         2006-07-21  Bruno Haible  <bruno@clisp.org>
75642
75643                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
75644                 "1.1".
75645
75646         2006-05-09  Bruno Haible  <bruno@clisp.org>
75647
75648                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
75649                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
75650                 for the conftestver execution.
75651
75652         2006-05-01  Bruno Haible  <bruno@clisp.org>
75653
75654                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
75655                 optional target-version argument. Verify that the compiler
75656                 groks source of the specified source-version, or add -source
75657                 option as necessary. Verify that the compiler produces
75658                 bytecode in the specified target-version, or add -target and
75659                 -source options as necessary. Make the result of the test
75660                 available as variable CONF_JAVAC. Also log error output in
75661                 config.log.
75662
75663         2006-03-11  Bruno Haible  <bruno@clisp.org>
75664
75665                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
75666
75667         2006-05-09  Bruno Haible  <bruno@clisp.org>
75668
75669                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
75670                 CLASSPATH_SEPARATOR to a semicolon.
75671
75672         2006-03-12  Bruno Haible  <bruno@clisp.org>
75673
75674                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
75675                 available as variable CONF_JAVA, for subsequent autoconf
75676                 tests. Also log error output in config.log.
75677
75678         2006-07-19  Bruno Haible  <bruno@clisp.org>
75679
75680                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
75681                 that getline works on glibc2 systems. Needed to avoid trouble
75682                 in relocatable.c.
75683                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
75684
75685         2005-12-04  Bruno Haible  <bruno@clisp.org>
75686
75687                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
75688                 launcher (untested).
75689
75690         2005-12-04  Bruno Haible  <bruno@clisp.org>
75691
75692                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
75693
75694         2006-07-22  Bruno Haible  <bruno@clisp.org>
75695
75696                 * gettext.m4: Update from GNU gettext-0.15.
75697                 * nls.m4: Likewise.
75698                 * po.m4: Likewise.
75699                 * inttypes-pri.m4: Likewise.
75700                 * inttypes-h.m4: Renamed from inttypes.m4.
75701                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
75702
75703 2006-07-22  Bruno Haible  <bruno@clisp.org>
75704
75705         Merge from GNU gettext 0.15.
75706
75707         2005-07-05  Bruno Haible  <bruno@clisp.org>
75708
75709                 * printf-args.c (printf_fetchargs): Work around broken
75710                 definition of wint_t on mingw.
75711
75712         2005-02-12  Bruno Haible  <bruno@clisp.org>
75713
75714                 * xallocsa.h: Add extern "C" for C++.
75715
75716         2006-05-17  Bruno Haible  <bruno@clisp.org>
75717
75718                 Cygwin portability.
75719                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
75720
75721         2006-04-30  Bruno Haible  <bruno@clisp.org>
75722
75723                 * progreloc.c: Include <mach-o/dyld.h> if available.
75724                 (find_executable): Use _NSGetExecutablePath when possible.
75725
75726         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
75727
75728                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
75729                 function.
75730
75731         2005-12-29  Bruno Haible  <bruno@clisp.org>
75732
75733                 * progreloc.c (set_program_name_and_installdir): Fix
75734                 compilation error.
75735
75736         2005-12-04  Bruno Haible  <bruno@clisp.org>
75737
75738                 Cygwin portability.
75739                 * progreloc.c: Include <windows.h> also on Cygwin.
75740                 (find_executable): Add support for Cygwin.
75741                 (set_program_name_and_installdir): Handle also platforms with
75742                 nonempty EXEEXT.
75743
75744         2006-07-11  Bruno Haible  <bruno@clisp.org>
75745
75746                 * javacomp.c: Fix a comment.
75747                 Reported by Jim Meyering.
75748
75749         2006-04-30  Bruno Haible  <bruno@clisp.org>
75750
75751                 * javacomp.h (compile_java_class): Add source_version,
75752                 target_version arguments.
75753                 * javacomp.c: Rewritten to choose only a compiler that
75754                 respects the specified source_version and target_version.
75755
75756         2006-06-27  Bruno Haible  <bruno@clisp.org>
75757
75758                 Assume correct S_ISDIR macro.
75759                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
75760
75761         2006-07-22  Bruno Haible  <bruno@clisp.org>
75762
75763                 * javaversion.h: New file, from GNU gettext.
75764                 * javaversion.c: New file, from GNU gettext.
75765                 * javaversion.java: New file, from GNU gettext.
75766                 * javaversion.class: New file, from GNU gettext.
75767
75768         2006-05-17  Bruno Haible  <bruno@clisp.org>
75769
75770                 Cygwin portability.
75771                 * javaexec.c (execute_java_class): Test for jview program
75772                 also on Cygwin.
75773
75774         2006-04-09  Bruno Haible  <bruno@clisp.org>
75775
75776                 * fatal-signal.c: Don't include string.h.
75777                 (at_fatal_signal): Use a copying loop instead of memcpy.
75778
75779         2005-12-04  Bruno Haible  <bruno@clisp.org>
75780
75781                 * csharpexec.c: Add support for 'clix' launcher (untested).
75782                 (execute_csharp_using_sscli): New function.
75783                 (execute_csharp_program): Call it.
75784
75785         2006-06-21  Bruno Haible  <bruno@clisp.org>
75786
75787                 Avoid warnings from recent versions of mcs.
75788                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
75789                 -o, -L, -r any more. Use options documented since mcs-1.0
75790                 instead. Similarly for -g.
75791
75792         2005-07-09  Bruno Haible  <bruno@clisp.org>
75793
75794                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
75795                 add a .dll suffix.
75796                 Reported by Mark Junker <mjscod@gmx.de>.
75797
75798         2006-06-17  Bruno Haible  <bruno@clisp.org>
75799
75800                 * config.charset: Update for NetBSD 3.0.
75801
75802         2006-05-17  Bruno Haible  <bruno@clisp.org>
75803
75804                 Cygwin portability.
75805                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
75806
75807         2006-05-16  Bruno Haible  <bruno@clisp.org>
75808
75809                 * localcharset.c [CYGWIN]: Include <windows.h>.
75810                 (get_charset_aliases): For Cygwin, return the same CPxxx
75811                 aliases list as under WIN32.
75812                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
75813                 the environment variables. Fall back to GetACP().
75814
75815         2006-04-05  Bruno Haible  <bruno@clisp.org>
75816
75817                 * config.charset: Update Juan Manuel Guerrero's address.
75818
75819         2005-02-12  Bruno Haible  <bruno@clisp.org>
75820
75821                 * allocsa.h: Add extern "C" for C++.
75822
75823         2005-02-10  Bruno Haible  <bruno@clisp.org>
75824
75825                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
75826                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
75827
75828         2006-07-22  Bruno Haible  <bruno@clisp.org>
75829
75830                 * gettext.h: Update to GNU gettext-0.15.
75831
75832 2006-07-22  Bruno Haible  <bruno@clisp.org>
75833
75834         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
75835         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
75836         lib-prefix.m4, longdouble.m4, ssize_t.m4.
75837
75838 2006-07-21  Eric Blake  <ebb9@byu.net>
75839
75840         * modules/stdlib-safer: New file.
75841         * MODULES.html.sh (File stream based Input/Output): Add
75842         stdlib-safer.
75843
75844 2006-07-21  Eric Blake  <ebb9@byu.net>
75845
75846         * lib/stdlib-safer.h: New file from coreutils, required by
75847         stdlib--.h.
75848
75849 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
75850
75851         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
75852
75853 2006-07-20  Bruno Haible  <bruno@clisp.org>
75854
75855         * gnulib-tool: Recognize new option --assume-autoconf.
75856         (autoconf_minversion): New variable.
75857         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
75858
75859 2006-07-20  Bruno Haible  <bruno@clisp.org>
75860
75861         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
75862
75863 2006-07-19  Derek R. Price  <derek@ximbiot.com>
75864
75865         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
75866         Reindent and repaginate.
75867
75868 2006-07-19  Derek Price  <derek@ximbiot.com>
75869
75870         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
75871         Correct grammar.
75872
75873 2006-07-17  Bruno Haible  <bruno@clisp.org>
75874
75875         * modules/list: New file.
75876         * modules/array-list: New file.
75877         * modules/carray-list, modules/carray-list-tests: New files.
75878         * modules/linked-list, modules/linked-list-tests: New files.
75879         * modules/avltree-list, modules/avltree-list-tests: New files.
75880         * modules/rbtree-list, modules/rbtree-list-tests: New files.
75881         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
75882         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
75883         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
75884         * modules/oset: New file.
75885         * modules/array-oset: New file.
75886         * modules/avltree-oset, modules/avltree-oset-tests: New files.
75887         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
75888         * tests/test-carray_list.c: New file.
75889         * tests/test-linked_list.c: New file.
75890         * tests/test-avltree_list.c: New file.
75891         * tests/test-rbtree_list.c: New file.
75892         * tests/test-linkedhash_list.c: New file.
75893         * tests/test-avltreehash_list.c: New file.
75894         * tests/test-rbtreehash_list.c: New file.
75895         * tests/test-avltree_oset.c: New file.
75896         * tests/test-rbtree_oset.c: New file.
75897         * MODULES.html.sh (Container data structures): New section.
75898
75899 2006-07-17  Bruno Haible  <bruno@clisp.org>
75900
75901         * m4/gl_list.m4: New file.
75902
75903 2006-07-17  Bruno Haible  <bruno@clisp.org>
75904
75905         * lib/gl_list.h: New file.
75906         * lib/gl_list.c: New file.
75907         * lib/gl_array_list.h: New file.
75908         * lib/gl_array_list.c: New file.
75909         * lib/gl_carray_list.h: New file.
75910         * lib/gl_carray_list.c: New file.
75911         * lib/gl_linked_list.h: New file.
75912         * lib/gl_linked_list.c: New file.
75913         * lib/gl_anylinked_list1.h: New file.
75914         * lib/gl_anylinked_list2.h: New file.
75915         * lib/gl_avltree_list.h: New file.
75916         * lib/gl_avltree_list.c: New file.
75917         * lib/gl_anyavltree_list1.h: New file.
75918         * lib/gl_anyavltree_list2.h: New file.
75919         * lib/gl_rbtree_list.h: New file.
75920         * lib/gl_rbtree_list.c: New file.
75921         * lib/gl_anyrbtree_list1.h: New file.
75922         * lib/gl_anyrbtree_list2.h: New file.
75923         * lib/gl_anytree_list1.h: New file.
75924         * lib/gl_anytree_list2.h: New file.
75925         * lib/gl_linkedhash_list.h: New file.
75926         * lib/gl_linkedhash_list.c: New file.
75927         * lib/gl_anyhash_list1.h: New file.
75928         * lib/gl_anyhash_list2.h: New file.
75929         * lib/gl_avltreehash_list.h: New file.
75930         * lib/gl_avltreehash_list.c: New file.
75931         * lib/gl_rbtreehash_list.h: New file.
75932         * lib/gl_rbtreehash_list.c: New file.
75933         * lib/gl_anytreehash_list1.h: New file.
75934         * lib/gl_anytreehash_list2.h: New file.
75935
75936         * lib/gl_oset.h: New file.
75937         * lib/gl_oset.c: New file.
75938         * lib/gl_array_oset.h: New file.
75939         * lib/gl_array_oset.c: New file.
75940         * lib/gl_avltree_oset.h: New file.
75941         * lib/gl_avltree_oset.c: New file.
75942         * lib/gl_rbtree_oset.h: New file.
75943         * lib/gl_rbtree_oset.c: New file.
75944         * lib/gl_anytree_oset.h: New file.
75945
75946 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
75947
75948         * m4/mkancesdirs.m4: New file.
75949         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
75950         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
75951         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
75952         it.
75953
75954 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
75955
75956         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
75957         * lib/mkancesdirs.h: New files.
75958         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
75959         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
75960         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
75961         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
75962         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
75963         callers changed.  Revamp internals significantly, by not
75964         attempting to create directories that are temporarily more
75965         permissive than the final results.  Do not attempt to use
75966         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
75967         This removes some race conditions, fixes some bugs, and simplifies
75968         things.  Use new dirchownmod function to do owner and mode changes.
75969         * lib/mkdir-p.h: Likewise.
75970         * lib/modechange.c (octal_to_mode): New function.
75971         (struct mode_change): New member mentioned.
75972         (make_node_op_equals): New arg mentioned.  All callers changed.
75973         (mode_compile): Keep track of which mode bits the user has explicitly
75974         mentioned.
75975         (mode_adjust): New arg DIR, so that we implement the X op correctly.
75976         New arg PMODE_BITS, to keep track of which mode bits the user
75977         mentioned; it treats S_ISUID and S_ISGID speciall.
75978         All callers changed.
75979         * lib/modechange.h: Likewise.
75980
75981 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
75982
75983         * MODULES.html.sh: Add mkancestors.
75984         * modules/mkancesdirs: New module.
75985         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
75986         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
75987         The chdir-safer and afs files are now orphans; I'll remove them
75988         unless someone speaks up.
75989         Add lib/dirchownmod.c, lib/dirchownmod.h.
75990         (Depends-on): Remove alloca, chown, save-cwd, dirname.
75991         Add lchown, mkancesdirs.
75992         (Maintainer): Add self.
75993
75994 2006-07-15  Karl Berry  <karl@gnu.org>
75995
75996         * gnulib-tool: help message wording/arrangement.
75997
75998 2006-07-14  Simon Josefsson  <jas@extundo.com>
75999
76000         * doc/gnulib.texi (Libtool and Windows): New section.
76001
76002 2006-07-12  Simon Josefsson  <jas@extundo.com>
76003
76004         * modules/gendocs (License): Fix license, approved by Karl.
76005
76006 2006-07-12  Eric Blake  <ebb9@byu.net>
76007
76008         * MODULES.html.sh: Add gendocs.
76009
76010 2006-07-11  Eric Blake  <ebb9@byu.net>
76011
76012         * modules/fdl: New module, to install doc/fdl.texi.
76013         * MODULES.html.sh: Add new section for documentation modules.
76014         * gnulib-tool: Avoid space-tab.
76015         (--doc-base): New option, to manage files from doc.
76016
76017 2006-07-11  Eric Blake  <ebb9@byu.net>
76018
76019         * m4/absolute-header.m4: Fix comments to match recent change.
76020
76021 2006-07-11  Eric Blake  <ebb9@byu.net>
76022
76023         * gnulib-tool: List --doc-base before --tests-base.
76024
76025 2006-07-11  Derek R. Price  <derek@ximbiot.com>
76026
76027         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
76028
76029 2006-07-11  Bruno Haible  <bruno@clisp.org>
76030
76031         * README: Mention where to put documentation.
76032
76033 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76034
76035         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
76036
76037 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
76038
76039         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
76040         to stdint.m4.
76041
76042 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
76043
76044         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
76045         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
76046         "no/such/file/stdint.h" when there is no such file, so that
76047         the resulting C code can be parsed by dodgy compilers.
76048         Problems reported by Bob Proulx.
76049
76050 2006-07-10  Derek R. Price  <derek@ximbiot.com>
76051
76052         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
76053         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
76054         macros into the GNU _D_EXACT_NAMLEN.
76055         * lib/savedir.c:  Likewise.
76056         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
76057
76058 2006-07-10  Derek R. Price  <derek@ximbiot.com>
76059         and Paul Eggert  <eggert@cs.ucla.edu>
76060
76061         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
76062         * m4/savedir.m4:
76063         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
76064         macros into the GNU _D_EXACT_NAMLEN.
76065
76066 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76067
76068         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
76069         around the absolute name, to work around a problem with the HP-UX
76070         11.23 native C compiler, reported by Bob Proulx.
76071
76072 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76073
76074         * doc/maintain.texi, make-stds.texi: Sync from
76075         <http://savannah.gnu.org/projects/gnustandards>.
76076
76077 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76078
76079         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
76080
76081 2006-07-09  Jim Meyering  <jim@meyering.net>
76082
76083         * m4/glob.m4: Remove a doubled word in a comment.
76084
76085 2006-07-09  Jim Meyering  <jim@meyering.net>
76086
76087         * lib/argp-pv.c: Remove a doubled word in a comment.
76088         * lib/check-version.c (check_version): Likewise.
76089         * lib/javacomp.c (compile_java_class): Likewise.
76090
76091 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
76092
76093         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
76094         for the benefit of people using Autoconf 2.60.  If you want to
76095         support older Autoconf versions you can copy m4/onceonly_2_57.m4
76096         (or m4/onceonly.m4, if pre-2.57) manually.
76097
76098 2006-07-08  Jim Meyering  <jim@meyering.net>
76099
76100         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
76101         comment.
76102         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
76103         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
76104         comment.
76105
76106 2006-07-08  Jim Meyering  <jim@meyering.net>
76107
76108         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
76109
76110 2006-07-07  Simon Josefsson  <jas@extundo.com>
76111
76112         * tests/test-crc.c: Change expected crc value, the test vector
76113         were probably computed using the old broken crc.c?
76114
76115 2006-07-06  Simon Josefsson  <jas@extundo.com>
76116
76117         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
76118         now the canonical place for the M4 file).
76119
76120         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
76121         from the sys_socket dependency now.
76122
76123         * modules/inet_pton (Files): Ditto.
76124
76125         * modules/inet_ntop (Files): Ditto.
76126
76127 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76128
76129         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
76130         not gl_PREREQ_GETUSERSHELL.
76131
76132 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76133
76134         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
76135         with only one argument, for Autoconf 2.60.
76136         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
76137         expand to nothing, so add a shell command to avoid syntax error.
76138         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
76139
76140 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76141
76142         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
76143
76144 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76145
76146         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
76147         no longer needed.  Check for isblank decl.
76148         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
76149         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
76150         of existence.
76151
76152 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76153
76154         * lib/getloadavg.c: Use __VMS, not VMS.
76155         * lib/getopt.c: Likewise.
76156         * lib/getpagesize.h: Likewise.
76157         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
76158         and probably does not work.
76159
76160 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76161
76162         * lib/.cppi-disable: Add wcwidth.
76163         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
76164         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
76165         (ISGRAPH): Remove.  All uses changed to isgraph.
76166         (FOLD) [!defined _LIBC]: Remove special case.
76167         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
76168         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
76169         HAVE_ISBLANK.
76170         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
76171         case.
76172
76173 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
76174
76175         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
76176         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
76177         brackets.  Other minor changes to suppress some compiler
76178         warnings.
76179
76180 2006-07-06  Derek R. Price  <derek@ximbiot.com>
76181         and Paul Eggert  <eggert@cs.ucla.edu>
76182
76183         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
76184         of invoking obsolescent AC_HEADER_DIRENT macro.
76185         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
76186         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
76187         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
76188         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
76189         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
76190         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
76191         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
76192         * m4/readdir.m4: Remove; no longer needed.
76193
76194 2006-07-06  Derek R. Price  <derek@ximbiot.com>
76195         and Paul Eggert  <eggert@cs.ucla.edu>
76196
76197         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
76198         Don't worry about this obsolete case any more.
76199         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
76200         directories.
76201         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
76202         worry about this obsolete case any more.
76203         * lib/fts.c: Likewise.
76204         * lib/getcwd.c: Likewise.
76205         * lib/glob.h: Likewise.
76206         * lib/savedir.c: Likewise.
76207
76208 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76209
76210         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
76211         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
76212         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
76213         needed.
76214         All uses removed.
76215         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76216         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
76217         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
76218         needed.
76219         * m4/getdate.m4 (gl_GETDATE): Likewise.
76220         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
76221         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
76222         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
76223         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76224         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
76225         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76226         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
76227         needed.
76228
76229 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76230
76231         * lib/memcasecmp.c: Include <limits.h>.
76232         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
76233         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
76234         Don't assume isdigit succeeds only on '0' through '9'.
76235
76236 2006-07-05  Eric Blake  <ebb9@byu.net>
76237
76238         * modules/getaddrinfo (Depends-on): Add snprintf.
76239
76240 2006-07-05  Eric Blake  <ebb9@byu.net>
76241
76242         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
76243         to avoid 'header present but could not be compiled' on cygwin.
76244
76245 2006-07-05  Eric Blake  <ebb9@byu.net>
76246
76247         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
76248         missing from netdb.h.
76249         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
76250
76251 2006-07-05  Derek R. Price  <derek@ximbiot.com>
76252
76253         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
76254         no longer needed.
76255         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
76256         * m4/getdate.m4 (gl_GETDATE): Likewise.
76257         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
76258         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
76259         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
76260         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76261         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76262
76263 2006-07-05  Derek R. Price  <derek@ximbiot.com>
76264
76265         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
76266         All uses of is_space replaced by isspace.
76267         * lib/exit.h: Don't talk about STDC_HEADERS.
76268         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
76269         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
76270         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
76271         replaced by isprint etc.
76272         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
76273         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
76274         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
76275         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
76276         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
76277         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
76278
76279 2006-07-05  Bruno Haible  <bruno@clisp.org>
76280
76281         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
76282         the function exists, before testing against AIX.
76283         Reported by Martin Lambers <marlam@marlam.de>.
76284
76285 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
76286
76287         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
76288         From Mark D. Baushke.
76289
76290 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
76291
76292         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
76293         to the absolute name, not just one, to bypass Sun C 5.8's
76294         "warning: #include of /usr/include/... may be non-portable".
76295
76296 2006-07-04  Eric Blake  <ebb9@byu.net>
76297
76298         * modules/dirname-tests: New test module.
76299         * tests/test-dirname.c: New file, replacing dirname.c
76300         TEST_DIRNAME section that was recently deleted.
76301
76302 2006-07-04  Bruno Haible  <bruno@clisp.org>
76303
76304         Assume ANSI C header files and <ctype.h> functions.
76305         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
76306         (mbsnwidth): Use isprint, iscntrl instead.
76307
76308 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76309
76310         Merge from coreutils.
76311         * MODULES.html.sh: Add xstrtold.
76312         * modules/xstrtold: New file.
76313         * modules/cycle-check (Files): Add lib/same-inode.h.
76314         * modules/dirname (Files): Add m4/double-slash-root.m4.
76315         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
76316         * modules/mkdir-p (Files): Add lib/same-inode.h.
76317         * modules/same (Files): Add lib/same-inode.h.
76318
76319 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76320
76321         * m4/absolute-header.m4: Renamed from full-header-path.m4.
76322         This is to keep the terminology clean; POSIX talks about
76323         "absolute pathnames", not "full pathnames", but the GNU
76324         Coding Standards say to use "path" for something else;
76325         so use "absolute" to keep both sides happy.
76326         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
76327         Set gl_absolute_header, not gl_full_header_path.
76328         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
76329         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
76330         All uses changed.
76331
76332         Merge from coreutils.
76333
76334         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
76335
76336         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
76337         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
76338         want to require the building of c-strtod.o.
76339         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
76340         needs -lm directly.
76341         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
76342
76343         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
76344
76345         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
76346         --as-needed option if available.  Problem reported by Albert Chin in
76347         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
76348         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
76349         cc merely issues a bunch of annoying warnings for --as-needed
76350         (this problem was reported by Bob Proulx).  Also, try linking with
76351         -lm to detect a bug in binutils 2.16 (this problem was reported
76352         by Ralf Wildenhues).
76353
76354         2006-06-18  Jim Meyering  <jim@meyering.net>
76355
76356         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
76357         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
76358         macro.
76359         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
76360         also check for glibc-2.4's abort-inducing bug.
76361
76362         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
76363         Low-probability clean-up should be to use rmdir to get rid of
76364         the just-created directory, not unlink.
76365
76366         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
76367         configure fail, and request a bug report to inform us about it.
76368         Add a comment that, barring reports to the contrary, in 2007 we'll
76369         assume ftruncate is universally available.
76370
76371         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
76372
76373         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
76374
76375         2006-03-12  Jim Meyering  <jim@meyering.net>
76376
76377         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
76378         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
76379         * m4/same.m4 (gl_SAME): Likewise.
76380         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
76381
76382         2006-03-11  Eric Blake  <ebb9@byu.net>
76383
76384         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
76385         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
76386         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
76387         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
76388
76389 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76390
76391         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
76392         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
76393         reported by Mark D. Baushke, one in
76394         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
76395
76396         Merge from coreutils.
76397
76398         * lib/.cppi-disable: Add stdint_.h.
76399         * lib/.cvsignore: Add stdint.h.
76400
76401         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
76402
76403         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
76404         both double and long double versions.
76405         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
76406         * lib/xstrtold.c: New file.
76407         * lib/xstrtod.h (xstrtold): New decl.
76408
76409         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
76410
76411         * lib/filemode.c (setst): Remove.
76412         (strmode): Rewrite to avoid setst.  This makes the code shorter,
76413         (arguably) clearer, and the generated code is a bit smaller on my
76414         Debian GNU/Linux stable x86 host.
76415
76416         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
76417
76418         * lib/filemode.c: Include "filemode.h" first, to test the interface.
76419         Assume that filemode.h includes sys/types.h and sys/stat.h.
76420         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
76421         (ftypelet): Reorder to put common cases first, for efficiency.
76422         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
76423         to do 'M'.
76424         (strmode): Renamed from mode_string, and now stores 12 bytes instead
76425         of 10, for compatibility with FreeBSD.  All callers changed.
76426         (filemodestring): Now stores 12 bytes instead of 10, and sets file
76427         types that can't be deduced solely from st_mode.  First arg is now a
76428         const pointer.
76429         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
76430         (strmode): Renamed from mode_string.
76431         (filemodestring): New decl.
76432         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
76433         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
76434         needed.
76435         (S_ISPORT, S_ISWHT): New macros, if not already defined.
76436
76437         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
76438
76439         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
76440         fsusage.h now does that.  Include fsusage.h first, to test interface.
76441         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
76442         at most one method (the old code could have generated decls that
76443         didn't conform to C89, not that this was ever exercised).
76444         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
76445
76446         2006-03-19  Jim Meyering  <jim@meyering.net>
76447
76448         Work even in a chroot where d_ino values for entries in "/"
76449         don't match the stat.st_ino values for the same names.
76450         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
76451         number, iterate through all entries again, using lstat instead.
76452         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
76453         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
76454
76455         * lib/getcwd.c (__getcwd): Clarify a comment.
76456         Use memcpy in place of a call to strcpy.
76457
76458         2006-03-12  Jim Meyering  <jim@meyering.net>
76459
76460         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
76461         matches that of the current directory (which we're about to chdir ".."
76462         out of), then save the dev-ino of the parent, instead.
76463
76464         * lib/same-inode.h (SAME_INODE): New file/macro.
76465         * lib/chdir-safer.c (SAME_INODE): Remove definition.
76466         Include "same-inode.h", instead.
76467         * lib/same.c: Likewise.
76468         * lib/cycle-check.h: Include "same-inode.h".
76469         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
76470         * lib/cycle-check.c (SAME_INODE): Remove definition.
76471         * lib/root-dev-ino.h: Include "same-inode.h".
76472
76473         2006-03-11  Eric Blake  <ebb9@byu.net>
76474
76475         * lib/same.c (same_name): s/base_name/last_component/
76476         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
76477         * lib/filenamecat.c (file_name_concat): Likewise.
76478
76479         2006-03-11  Eric Blake  <ebb9@byu.net>,
76480                     Paul Eggert  <eggert@cs.ucla.edu>
76481
76482         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
76483         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
76484         drive prefix.
76485         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
76486         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
76487         (last_component): New method.
76488         * lib/dirname.c (dir_len): Determine when drive letters need a
76489         subsequent slash.  Preserve // when it is special.
76490         (dir_name): Don't append dot when drive letter is absolute.
76491         [TEST_DIRNAME]: Move into a full-blown gnulib test.
76492         * lib/basename.c (base_name): New semantics - malloc the result.
76493         Preserve // when it is special.  Preserve relative files that look
76494         like drive letters.
76495         (base_len): Preserve // when it is special.
76496         (last_component): New method, similar to old base_name semantics.
76497         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
76498         base_name.  Strip redundant slashes from ///.
76499
76500 2006-07-03  Jim Meyering  <jim@meyering.net>
76501
76502         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
76503         macro is used before the first cycle_check call.
76504
76505 2006-07-03  Eric Blake  <ebb9@byu.net>
76506
76507         * modules/dirname (Depends-on): Add xstrndup.
76508
76509 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
76510
76511         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
76512         test cases, so that config.log is a bit easier to follow.
76513
76514 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
76515
76516         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
76517         both are 64 bits, since this seems to be the tradition, and this
76518         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
76519         we ever run into a host that prefers long long to long in this
76520         case, we'll need another configure-time test.  Problem reported by
76521         Jim Meyering.
76522
76523 2006-07-02  Eric Blake  <ebb9@byu.net>
76524
76525         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
76526
76527 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76528
76529         * modules/inttypes (Depends-on): No longer depends on stdint.
76530         * modules/stdint (Description): Say more about assumptions.
76531         Say that the fast types might differ.  Say macros are used.
76532         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
76533         (Makefile.am): Revise list of substituted symbols to match
76534         new stdint.m4.
76535         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
76536         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
76537         * tests/test-stdint.c (verify_same_types)
76538         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
76539         the code conforms to C99/C89.
76540         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
76541         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
76542
76543 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76544
76545         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
76546         but fix a bug, by requiring at least 64 bits.
76547         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
76548         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
76549         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
76550         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
76551
76552         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
76553         changes.  Make 2.59 a prerequisite.  Check and substitute for
76554         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
76555         inttypes.h.  Do not use special include files; just use the
76556         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
76557         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
76558         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
76559         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
76560         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
76561         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
76562         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
76563         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
76564         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
76565         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
76566         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
76567         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
76568         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
76569         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
76570         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
76571         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
76572         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
76573         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
76574         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
76575         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
76576         WINT_MAX.  Check for C99 conformance more strictly, by detecting
76577         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
76578         not check for things that C99 does not require, e.g., int8_t.  If
76579         a test isn't needed unless <stdint.h> isn't working, and is
76580         unlikely to be needed for any other reason, then don't do it
76581         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
76582         size_t, since we assume C89 freestanding at least.  Do not check
76583         for sig_atomic_t, wchar_t, or wint_t, since the code now does
76584         the right thing even if the types are not defined.  Instead use:
76585         (gl_STDINT_TYPE_PROPERTIES): New macro.
76586         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
76587         testing whether <sys/types.h> clashes, as Autoconf does this for
76588         us now.  All uses removed.
76589         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
76590         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
76591         (gl_CHECK_TYPE_SAME):
76592         Remove; no longer needed.
76593         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
76594         exists, since we'll return 0 anyway in that case.
76595         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
76596
76597 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76598
76599         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
76600         possible collision with system files.
76601         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
76602         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
76603         WCHAR_MIN and WCHAR_MAX in this case.
76604         (<stddef.h>): Do not include; no longer needed.
76605         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
76606         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
76607         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
76608         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
76609         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
76610         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
76611         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
76612         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
76613         !defined(__c99))]: Include in this case too, since it's harmless
76614         now.
76615         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
76616         dangerous to do so.
76617         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
76618         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
76619         (_STDINT_MIN, _STDINT_MAX): New macros.
76620         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
76621         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
76622         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
76623         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
76624         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
76625         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
76626         macros, not typedefs; this simplifies things quite a bit.
76627         Use long int for all types narrower than int64_t.
76628         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
76629         Define in terms of long long int or int64_t or long int,
76630         not int64_t or int32_t.  This saves some compile-time testing.
76631         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
76632         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
76633         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
76634         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
76635         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
76636         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
76637         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
76638         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
76639         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
76640         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
76641         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
76642         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
76643         undef any previous version and define our own version, for
76644         simplicity and consistency with the new macros for types.
76645         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
76646         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
76647         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
76648         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
76649         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
76650         @WINT_T_SUFFIX@ to keep things simple here.
76651         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
76652         Simplify by assuming typical 8/16/32/64 host, since we're
76653         already doing that elsewhere anyway.
76654         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
76655         and assume long long int is 64 bits if available.  This
76656         speeds up 'configure'.
76657
76658 2006-07-01  Eric Blake  <ebb9@byu.net>
76659
76660         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
76661         Reported by Andreas Buening.
76662
76663 2006-07-01  Eric Blake  <ebb9@byu.net>
76664
76665         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
76666
76667 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
76668
76669         * lib/getaddrinfo.c: fixed typo
76670
76671 2006-06-29  Jim Meyering  <jim@meyering.net>
76672
76673         * modules/strftime (Maintainer): Add my name, since with the
76674         FPRINTFTIME changes strftime.c has forked from glibc.
76675
76676 2006-06-29  Eric Blake  <ebb9@byu.net>
76677
76678         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
76679
76680 2006-06-29  Eric Blake  <ebb9@byu.net>
76681
76682         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
76683
76684 2006-06-29  Eric Blake  <ebb9@byu.net>
76685
76686         * lib/stat_.h: New file.
76687
76688 2006-06-29  Eric Blake  <ebb9@byu.net>
76689
76690         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
76691         unused static function.
76692
76693 2006-06-29  Eric Blake  <ebb9@byu.net>
76694
76695         * doc/functions.texi (Function Portability): Document missing lstat
76696         on mingw.
76697
76698 2006-06-29  Eric Blake  <ebb9@byu.net>
76699
76700         * MODULES.html.sh: Add sys_stat.
76701         * modules/sys_stat: New module.
76702         * modules/mkstemp (Depends-on): Add sys_stat.
76703
76704 2006-06-29  Derek R. Price  <derek@ximbiot.com>
76705
76706         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
76707
76708 2006-06-29  Derek R. Price  <derek@ximbiot.com>
76709
76710         * m4/c-bs-a.m4: Removed.
76711
76712 2006-06-29  Derek R. Price  <derek@ximbiot.com>
76713
76714         * lib/strftime.c: Assume strftime() exists.
76715
76716 2006-06-29  Derek Price  <derek@ximbiot.com>
76717
76718         * modules/c-bs-a: Removed - \a is C89.
76719         * MODULES.html.sh: Remove c-bs-a.
76720
76721 2006-06-29  Bruno Haible  <bruno@clisp.org>
76722
76723         * modules/wcwidth (License): Change to LGPL.
76724
76725 2006-06-28  Simon Josefsson  <jas@extundo.com>
76726
76727         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
76728         on _WIN32.
76729
76730         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
76731         getnameinfo.
76732
76733 2006-06-28  Simon Josefsson  <jas@extundo.com>
76734
76735         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
76736
76737 2006-06-28  Simon Josefsson  <jas@extundo.com>
76738
76739         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
76740         functions there.  It will succeed on Windows XP, but on Windows
76741         2000 and (presumably) earlier, it will fail, and use the internal
76742         re-implementation.
76743         (use_win32_p): New function.
76744         (getaddrinfo): Use strtoul on servname, to support numeric ports.
76745         Support AI_NUMERICSERV to disable getservbyname.
76746         (getnameinfo): New function, only supports
76747         NI_NUMERICHOST|NI_NUMERICSERV for now.
76748
76749         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
76750         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
76751         getnameinfo.
76752
76753 2006-06-28  Eric Blake  <ebb9@byu.net>
76754
76755         * modules/wcwidth: New file.
76756         * modules/mbchar (Depends-on): Add wcwidth.
76757         * modules/mbswidth (Depends-on): Add wcwidth.
76758         * MODULES.html.sh: Add wcwidth.
76759
76760 2006-06-28  Eric Blake  <ebb9@byu.net>
76761
76762         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
76763         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
76764
76765 2006-06-28  Eric Blake  <ebb9@byu.net>
76766
76767         * lib/xvasprintf.h: Fix comments.
76768
76769 2006-06-28  Eric Blake  <ebb9@byu.net>
76770
76771         * lib/mbchar.h (wcwidth): Include wcwidth.h.
76772         * lib/mbswidth.c (wcwidth): Move from here...
76773         * lib/wcwidth.h: ...to this new file.
76774
76775 2006-06-28  Derek R. Price  <derek@ximbiot.com>
76776
76777         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
76778
76779         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
76780         it's obsolete.
76781         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
76782
76783 2006-06-28  Derek R. Price  <derek@ximbiot.com>
76784
76785         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
76786         Autoconf 2.60 says this stuff was obsolete.
76787
76788 2006-06-28  Bruno Haible  <bruno@clisp.org>
76789
76790         * modules/wcwidth (Files): Add m4/wchar_t.m4.
76791
76792 2006-06-28  Bruno Haible  <bruno@clisp.org>
76793
76794         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
76795         gt_TYPE_WCHAR_T.
76796
76797 2006-06-28  Bruno Haible  <bruno@clisp.org>
76798
76799         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
76800         declaration for wcwidth.
76801         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
76802
76803 2006-06-28  Bruno Haible  <bruno@clisp.org>
76804
76805         * lib/mkdtemp.c [MINGW]: Include <io.h>.
76806         (mkdir): Define using _mkdir.
76807
76808 2006-06-28  Bruno Haible  <bruno@clisp.org>
76809
76810         * lib/getaddrinfo.h: Fix POSIX URL.
76811         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
76812         _WIN32.
76813         (use_win32_p): Make static.
76814         (getaddrinfo): Reject service name if it is empty or does not consist
76815         solely of decimal digits, or if its value is > 65535.
76816         (getnameinfo): Remove useless casts.
76817
76818 2006-06-27  Simon Josefsson  <jas@extundo.com>
76819
76820         * modules/sys_select: New file, suggested by Bruno Haible, Paul
76821         Eggert and Martin Lambers.
76822
76823 2006-06-27  Simon Josefsson  <jas@extundo.com>
76824
76825         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
76826         Eggert and Martin Lambers.
76827
76828 2006-06-27  Bruno Haible  <bruno@clisp.org>
76829
76830         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
76831         result to 0, not to empty.
76832         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
76833
76834 2006-06-27  Bruno Haible  <bruno@clisp.org>
76835
76836         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
76837
76838 2006-06-26  Simon Josefsson  <jas@extundo.com>
76839
76840         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
76841         present.
76842
76843 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
76844
76845         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
76846         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
76847         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
76848
76849 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
76850
76851         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
76852
76853 2006-06-26  Bruno Haible  <bruno@clisp.org>
76854
76855         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
76856
76857 2006-06-26  Bruno Haible  <bruno@clisp.org>
76858
76859         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
76860
76861 2006-06-26  Bruno Haible  <bruno@clisp.org>
76862
76863         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
76864         SGI C compiler in pre-C99 mode.
76865         Suggested by Mark D. Baushke and Larry Jones.
76866
76867 2006-06-26  Bruno Haible  <bruno@clisp.org>
76868
76869         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
76870         WCHAR_MAX.
76871         Reported by Mark D. Baushke and Larry Jones.
76872
76873 2006-06-26  Bruno Haible  <bruno@clisp.org>
76874
76875         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
76876         in pre-C99 mode.
76877         Suggested by Mark D. Baushke and Larry Jones.
76878
76879 2006-06-23  Simon Josefsson  <jas@extundo.com>
76880             Bruno Haible  <bruno@clisp.org>
76881
76882         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
76883         Emit mostlyclean-local rule.
76884         (func_emit_tests_Makefile_am): Likewise.
76885         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
76886
76887 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
76888
76889         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
76890
76891 2006-06-23  Bruno Haible  <bruno@clisp.org>
76892
76893         * tests/test-stdint.c: Update to match ISO C 99 Technical
76894         Corrigendum 1.
76895
76896 2006-06-23  Bruno Haible  <bruno@clisp.org>
76897
76898         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
76899
76900 2006-06-23  Bruno Haible  <bruno@clisp.org>
76901
76902         * lib/stdint_.h: Treat IRIX like OpenBSD.
76903
76904 2006-06-23  Bruno Haible  <bruno@clisp.org>
76905
76906         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
76907         ISO C 99 Technical Corrigendum 1.
76908
76909 2006-06-22  Simon Josefsson  <jas@extundo.com>
76910
76911         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
76912         MinGW.
76913
76914 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76915
76916         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
76917         needed.  Some compiler complained about some of them.  Problem reported
76918         by Larry Jones in
76919         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
76920
76921 2006-06-21  Simon Josefsson  <jas@extundo.com>
76922
76923         * tests/test-getaddrinfo.c: New file.
76924
76925         * modules/getaddrinfo-tests: New file.
76926
76927         * MODULES.html.sh: Add inet_pton.
76928
76929         * modules/inet_pton: New file.
76930
76931 2006-06-21  Simon Josefsson  <jas@extundo.com>
76932
76933         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
76934         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
76935         of using the (limited) gnulib implementation on Windows XP.
76936
76937         * m4/inet_pton.m4: New file.
76938
76939 2006-06-21  Simon Josefsson  <jas@extundo.com>
76940
76941         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
76942         variable.
76943
76944         * lib/socket_.h: Don't define WINVER.
76945
76946         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
76947         slightly modified to work in gnulib.
76948
76949 2006-06-21  Simon Josefsson  <jas@extundo.com>
76950
76951         * doc/gnulib.texi (Windows sockets): Add.
76952
76953 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
76954
76955         * lib/read-file.c (fread_file): Start with buffer allocation of
76956         0 bytes rather than 1 byte; this simplifies the code.
76957         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
76958         code to free buffer and save/restore errno.
76959         (internal_read_file): Remove unused local.
76960
76961 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
76962
76963         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
76964         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
76965         Problem reported by Denis Excoffier in
76966         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
76967
76968 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76969
76970         * modules/sys_socket, modules/socklen: Include sys/types since
76971         FreeBSD 4.x's sys/socket.h needs it.
76972
76973 2006-06-19  Simon Josefsson  <jas@extundo.com>
76974
76975         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
76976
76977 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
76978
76979         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
76980
76981 2006-06-19  Bruno Haible  <bruno@clisp.org>
76982
76983         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
76984         and FULL_PATH_INTTYPES_H in angle brackets.
76985         Reported by Mark D. Baushke <mdb@gnu.org>.
76986
76987 2006-06-17  Eric Blake  <ebb9@byu.net>
76988
76989         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
76990         errno.
76991
76992 2006-06-17  Bruno Haible  <bruno@clisp.org>
76993
76994         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
76995         <sys/inttypes.h>.
76996
76997 2006-06-17  Bruno Haible  <bruno@clisp.org>
76998
76999         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
77000         whether errno is declared. Assume <errno.h> declares errno.
77001
77002 2006-06-17  Bruno Haible  <bruno@clisp.org>
77003
77004         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
77005
77006 2006-06-17  Bruno Haible  <bruno@clisp.org>
77007
77008         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
77009         problem on Solaris 2.5.1.
77010
77011 2006-06-16  Eric Blake  <ebb9@byu.net>
77012
77013         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
77014         * lib/unicodeio.c [!defined errno]: Likewise.
77015         * lib/strtol.c [!defined errno]: Likewise.
77016         * lib/strtod.c [!defined errno]: Likewise.
77017
77018 2006-06-15  Eric Blake  <ebb9@byu.net>
77019
77020         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
77021
77022 2006-06-15  Eric Blake  <ebb9@byu.net>
77023
77024         * config/srclist.txt (ssize_t.m4): Lose sync.
77025
77026 2006-06-15  Bruno Haible  <bruno@clisp.org>
77027
77028         * modules/stdint (Files): Include m4/full-header-path.m4,
77029         m4/size_max.m4, m4/wchar_t.m4.
77030         (Makefile.am): Many more substitutions.
77031         * modules/stdint-tests: New file.
77032         * tests/test-stdint.c: New file.
77033
77034 2006-06-15  Bruno Haible  <bruno@clisp.org>
77035
77036         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
77037         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
77038         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
77039         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
77040         gl_CHECK_TYPE_SAME): New macros.
77041
77042 2006-06-15  Bruno Haible  <bruno@clisp.org>
77043
77044         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
77045
77046 2006-06-15  Bruno Haible  <bruno@clisp.org>
77047
77048         * lib/stdint_.h: Rewritten to be fully auto-configured.
77049         Fixes bug on HP-UX/IA64.
77050
77051 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
77052
77053         * lib/getdate.y (__attribute__): Don't define if already defined.
77054         Problem reported by Larry Jones.
77055         * lib/utimens.c (__attribute__): Likewise.
77056
77057 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
77058
77059         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
77060         reported by Andreas Schwab.
77061
77062 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77063             Bruno Haible  <bruno@clisp.org>
77064
77065         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
77066         check for the declaration of strnlen and a run test that exposes the
77067         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
77068         rpl_strndup.
77069
77070 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77071             Bruno Haible  <bruno@clisp.org>
77072
77073         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
77074
77075 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77076
77077         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
77078         compile test, for Tru64 4.0D.
77079
77080 2006-05-28  Karl Berry  <karl@gnu.org>
77081
77082         * config/srclist.txt (printf-args.c): lose sync.
77083
77084 2006-05-26  Martin Lambers  <marlam@marlam.de>
77085
77086         * lib/getpass.c: Updates the test for the native W32 API, and adds
77087         missing includes, thus fixing compilation warnings.
77088
77089 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
77090
77091         * lib/exclude.c (exclude_fnmatch): New function.
77092         (excluded_file_name): Call exclude_fnmatch.
77093         * lib/exclude.h (excluded_file_name): New prototype
77094
77095 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
77096
77097         * lib/tempname.c (small_open, large_open): New macros.
77098         (__open, __open64) [!_LIBC]: Remove.
77099         (__gen_tempname): Use small_open and large_open instead of __open
77100         and __open64.  This fixes a portability bug on HP-UX 11.11i
77101         reported by Simon Wing-Tang in
77102         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
77103
77104 2006-05-24  Bruno Haible  <bruno@clisp.org>
77105
77106         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
77107         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
77108         Reported by Thorsten Maerz <torte@netztorte.de> via
77109         Aaron Stone <aaron@serendipity.cx>.
77110
77111 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
77112
77113         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
77114         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
77115         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
77116         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
77117         not really conditional on the cache.
77118         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
77119
77120 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
77121
77122         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
77123         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
77124         (my_usleep): Don't mishandle maximum value.
77125
77126 2006-05-19  Jim Meyering  <jim@meyering.net>
77127
77128         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
77129
77130 2006-05-17  Bruno Haible  <bruno@clisp.org>
77131
77132         Cygwin portability.
77133         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
77134
77135 2006-05-17  Bruno Haible  <bruno@clisp.org>
77136
77137         * lib/stdint_.h: Fix recognition of Cygwin.
77138
77139 2006-05-15  Bruno Haible  <bruno@clisp.org>
77140
77141         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
77142         on libtool patch by Ralf Wildenhues.
77143
77144 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77145
77146         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
77147         test for C99 conformance; (bool) 0.5 is an integer constant
77148         expression, but (bool) -0.5 is not.  Problem reported by Fedor
77149         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
77150
77151 2006-05-11  Simon Josefsson  <jas@extundo.com>
77152
77153         * m4/xvasprintf.m4: Fix obvious typo.
77154
77155 2006-05-11  Jim Meyering  <jim@meyering.net>
77156
77157         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
77158         James Lemley.
77159
77160 2006-05-10  Simon Josefsson  <jas@extundo.com>
77161
77162         * lib/md4.c: Typo fix, update copyright years.
77163         (K1, K2): Don't use L because it turn computations into 64-bit on
77164         64-bit platforms.
77165
77166 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
77167
77168         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
77169         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
77170         unwanted sign propagation, e.g., on hosts with 64-bit int.
77171         There still are some problems with reeelly weird theoretical hosts
77172         (e.g., 33-bit int) but it's not worth worrying about now.
77173         * lib/sha1.c (rol): Likewise.
77174         (K1, K2, K3, K4): Remove unnecessary L suffix.
77175
77176 2006-05-10  Bruno Haible  <bruno@clisp.org>
77177
77178         * lib/des.c: Cast to avoid warnings.
77179
77180 2006-05-09  Bruno Haible  <bruno@clisp.org>
77181
77182         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
77183         (Depends-on): Depend also on xsize, stdarg.
77184         (configure.ac): Add gl_XVASPRINTF.
77185
77186 2006-05-09  Bruno Haible  <bruno@clisp.org>
77187
77188         * m4/xvasprintf.m4: New file.
77189
77190 2006-05-09  Bruno Haible  <bruno@clisp.org>
77191
77192         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
77193         (EOVERFLOW): Define fallback value.
77194         (xstrcat): New function.
77195         (xvasprintf): Recognize the special case of a string concatenation.
77196
77197 2006-05-08  Eric Blake  <ebb9@byu.net>
77198
77199         * gnulib-tool (func_version): Base copyright year on CVS date.
77200         (func_emit_copyright_notice): New function.
77201         (func_emit_lib_Makefile_am): Use it.
77202         (func_emit_tests_Makefile_am): Likewise.
77203         (func_import): Likewise.
77204
77205 2006-05-08  Bruno Haible  <bruno@clisp.org>
77206
77207         * modules/stdarg: New file.
77208         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
77209
77210 2006-05-08  Bruno Haible  <bruno@clisp.org>
77211
77212         * m4/stdarg.m4: New file, from GNU gettext.
77213
77214 2006-05-08  Bruno Haible  <bruno@clisp.org>
77215
77216         * config/srclist.txt (build-aux/config.rpath): different from latest
77217         release.
77218
77219 2006-05-08  Bruno Haible  <bruno@clisp.org>
77220
77221         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
77222
77223 2006-05-05  Jim Meyering  <jim@meyering.net>
77224
77225         * m4/warning.m4: New file, derived from bison's file by the same name.
77226
77227 2006-05-03  Bruno Haible  <bruno@clisp.org>
77228
77229         * lib/stdint_.h: Shorter URL.
77230         * lib/inttypes.h: Likewise.
77231
77232 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77233
77234         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
77235
77236 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77237
77238         * lib/verify.h: Document the internals better.  Most of this change
77239         was written by Bruno Haible.
77240
77241 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77242
77243         * doc/verify.texi: New file, partly based on a proposal by
77244         Bruno Haible.
77245
77246 2006-05-02  Bruno Haible  <bruno@clisp.org>
77247
77248         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
77249         test from here...
77250         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
77251
77252 2006-04-29  Bruno Haible  <bruno@clisp.org>
77253
77254         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
77255         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
77256
77257 2006-04-29  Bruno Haible  <bruno@clisp.org>
77258
77259         * gnulib-tool: Make --update option actually work.
77260
77261 2006-04-29  Bruno Haible  <bruno@clisp.org>
77262
77263         * doc/gcd.texi: New file.
77264         * doc/gnulib.texi: Include it.
77265
77266 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
77267
77268         * lib/getdate.y (get_date): When adding relative date, start with the
77269         initial time, not with the result of the first mktime call.
77270
77271 2006-04-25  Bruno Haible  <bruno@clisp.org>
77272
77273         * gnulib-tool (func_import): Output the include directives in three
77274         blocks, sorted separately.
77275         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77276
77277 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
77278
77279         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
77280         to define main with arguments, for C++.  Reported by Eric Blake.
77281         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
77282         Prefer 'int main ()' to 'int main (void)', for C++.
77283         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
77284         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
77285         for 'main', for C99 and C++.
77286
77287 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
77288
77289         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
77290         Don't assume that exit status -1 is valid.
77291         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
77292         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
77293         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
77294         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
77295         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
77296         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
77297         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
77298         functions can be used without declaring them, or that you can
77299         exit with status -1.
77300         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
77301
77302 2006-04-24  Karl Berry  <karl@gnu.org>
77303
77304         * config/srclist.txt (longdouble.m4): sync lost.
77305
77306 2006-04-24  Eric Blake  <ebb9@byu.net>
77307
77308         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
77309
77310 2006-04-24  Bruno Haible  <bruno@clisp.org>
77311
77312         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
77313         poll() implementation in AIX.
77314         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77315
77316 2006-04-24  Bruno Haible  <bruno@clisp.org>
77317
77318         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
77319         assigned exactly once.
77320
77321 2006-04-23  Claudio Fontana  <claudio@gnu.org>
77322             Bruno Haible  <bruno@clisp.org>
77323
77324         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
77325         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
77326         for AM_CPPFLAGS.
77327
77328 2006-04-23  Bruno Haible  <bruno@clisp.org>
77329
77330         * modules/copy-file: Depend on unistd.
77331         * modules/execute: Likewise.
77332         * modules/fatal-signal: Likewise.
77333         * modules/findprog: Likewise.
77334         * modules/mkdtemp : Likewise.
77335         * modules/pipe: Likewise.
77336         * modules/wait-process: Likewise.
77337
77338 2006-04-23  Bruno Haible  <bruno@clisp.org>
77339
77340         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
77341         condition was already detected.
77342         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77343
77344 2006-04-23  Bruno Haible  <bruno@clisp.org>
77345
77346         * lib/copy-file.c: Include <unistd.h> unconditionally.
77347         * lib/execute.c: Likewise.
77348         * lib/fatal-signal.c: Likewise.
77349         * lib/findprog.c: Likewise.
77350         * lib/mkdtemp.c: Likewise.
77351         * lib/pipe.h: Likewise.
77352         * lib/pipe.c: Likewise.
77353         * lib/wait-process.h: Likewise.
77354
77355 2006-04-23  Bruno Haible  <bruno@clisp.org>
77356
77357         * gnulib-tool (func_usage): Fix --import description. Document
77358         --update.
77359         (func_import): Create temporary file in a temporary directory, if
77360         --dry-run is specified. Silence errors from 'grep' when there are no
77361         m4 files in $m4dir.
77362         (func_create_testdir): Silence errors from 'grep' when there are no
77363         m4 files in $m4dir.
77364         Reported by Karl Berry <karl@freefriends.org>.
77365
77366 2006-04-20  Bruno Haible  <bruno@clisp.org>
77367
77368         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
77369         one argument, so that the code will be portable to Autoconf 2.60.
77370         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
77371         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
77372         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
77373
77374 2006-04-19  Derek Price  <derek@ximbiot.com>
77375             Eric Blake  <ebb9@byu.net>
77376
77377         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
77378         rather than "/full/path.h".  Update comment to match.  Shorten &
77379         generalize m4_translit call via AS_TR_CPP.
77380
77381 2006-04-19  Derek Price  <derek@ximbiot.com>
77382             Eric Blake  <ebb9@byu.net>
77383
77384         * lib/inttypes.h: Correct grammar in comment.
77385
77386 2006-04-18  Derek Price  <derek@ximbiot.com>
77387             Paul Eggert  <eggert@cs.ucla.edu>
77388
77389         * modules/inttypes: New file.
77390         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
77391
77392 2006-04-18  Derek Price  <derek@ximbiot.com>
77393             Paul Eggert  <eggert@cs.ucla.edu>
77394
77395         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
77396         New files.
77397
77398 2006-04-18  Derek Price  <derek@ximbiot.com>
77399             Paul Eggert  <eggert@cs.ucla.edu>
77400
77401         * lib/inttypes.h: New file.
77402         * lib/strtoimax.c: Assume <inttypes.h>.
77403
77404 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
77405
77406         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
77407         isn't mounted.  Problem reported by Kir Kolyshkin.
77408
77409 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
77410
77411         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
77412         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
77413         Derek R. Price.
77414         * lib/regex.h (RE_DUP_MAX): Update comment to match current
77415         implementation.
77416
77417 2006-04-12  Eric Blake  <ebb9@byu.net>
77418
77419         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
77420         is now done automatically by the corresponding Autoconf macro.
77421
77422 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
77423
77424         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
77425         time_r.h.
77426
77427 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77428
77429         Merge regex changes from libc, removing some of our
77430         POSIX-conformance changes that were rejected and redoing them in a
77431         less-intrusive way.
77432
77433         * lib/regcomp.c (re_compile_internal, init_dfa):
77434         Length arg is now size_t, not Idx.  All uses changed.
77435         (peek_token): Forward decl now says internal_function.
77436         (__re_error_msgid, __re_error_msgid_idx):
77437         Now static rather than extern with attribute_hidden.
77438         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
77439         For some reason libc prefers K&R style defns for external functions.
77440         (regerror) [!defined _LIBC]: Likewise.
77441         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
77442         (seek_collating_symbol_entry, lookup_collation_sequence_value):
77443         (build_range_exp, build_collating_symbol):
77444         Use K&R-style defn.
77445         (re_compile_fastmap): Use '\0' to memset, not 0.
77446         (utf8_sb_map): Make the calculations more obvious.
77447         (init_dfa, parse_bracket_exp, build_charclass_op):
77448         Call calloc and cast result, as glibc does.
77449         (init_word_char, fetch_token, peek_token, peek_token_bracket):
77450         (build_range_exp, build_collating_symbol):
77451         Now internal functions.
77452
77453         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
77454
77455         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
77456         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
77457         Don't depend on VMS; depend on __VMS instead, for POSIX
77458         namespace cleanness.
77459         (regoff_t): Define to ssize_t, not long int.
77460
77461         Remove the REG_ macros named below.  Instead, make the old names
77462         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
77463         __USE_GNU_REGEX.
77464         (REG_BACKSLASH_ESCAPE_IN_LISTS):
77465         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
77466         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
77467         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
77468         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
77469         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
77470         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
77471         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
77472         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
77473         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
77474         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
77475         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
77476         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
77477         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
77478         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
77479         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
77480         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
77481         (REG_NREGS):
77482         Remove.  All uses replaced by the old RE_* names.
77483         (RE_BACKSLASH_ESCAPE_IN_LISTS):
77484         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
77485         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
77486         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
77487         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
77488         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
77489         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
77490         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
77491         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
77492         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
77493         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
77494         Don't bother having these macros be independent of each others'
77495         values, since they no longer exist in the POSIX name space.
77496
77497         Rename the following member names back to their old names,
77498         unless !__USE_GNU_REGEX.  All uses changed back.
77499         (buffer): Renamed from re_buffer.
77500         (allocated): Renamed from re_allocated.
77501         (used): Renamed from re_used.
77502         (syntax): Renamed from re_syntax.
77503         (fastmap): Renamed from re_fastmap.
77504         (translate): Renamed from re_translate.
77505         (can_be_null): Renamed from re_can_be_null.
77506         (regs_allocated): Renamed from re_regs_allocated.
77507         (fastmap_accurate): Renamed from re_fastmap_accurate.
77508         (no_sub): Renamed from re_no_sub.
77509         (not_bol): Renamed from re_not_bol.
77510         (not_eol): Renamed from re_not_eol.
77511         (newline_anchor): Renamed from re_newline_anchor.
77512         (num_regs): Renamed from rm_num_regs.
77513         (start): Renamed from rm_start.
77514         (end): Renamed from rm_end.
77515
77516         (free_state): Move up a bit.
77517
77518         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
77519         #define to be empty.
77520         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
77521         when that is what is intended.
77522         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
77523         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
77524         (MAX): New macro.
77525         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
77526         All uses changed back to re_malloc, etc.  It's now the caller's
77527         responsibility to check for overflow; all callers changed.
77528         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
77529         (re_x2nrealloc): Remove.
77530         (free_state): Remove decl.
77531
77532         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
77533         (re_set_registers, re_exec):
77534         Use K&R-style defn.
77535
77536         2006-01-31  Roland McGrath  <roland@redhat.com>
77537
77538         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
77539         Reported by Mike Frysinger <vapier@gentoo.org>.
77540
77541         2006-01-15  Andreas Jaeger  <aj@suse.de>
77542
77543         [BZ #1950]
77544         * lib/regex_internal.c (re_string_reconstruct): Adjust for
77545         build_wcs_upper_buffer change.
77546         (build_wcs_upper_buffer): Change return type.
77547
77548         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
77549
77550         * lib/regex_internal.h: Include <stdint.h> if available.
77551
77552         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
77553
77554         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
77555
77556         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
77557
77558         * lib/regcomp.c: Adjust for changed secondary hash function.
77559
77560         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
77561
77562         * lib/regex.h: Pretty printing.
77563         Clean up namespace a bit.
77564
77565         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
77566
77567         * lib/regexec.c (update_cur_sifted_state, check_arrival,
77568         check_arrival_add_next_nodes): Avoid using uninitialized variable.
77569
77570         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
77571                     Ulrich Drepper  <drepper@redhat.com>
77572
77573         [BZ #1302]
77574         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
77575         changed.
77576         (bitset_word_t): Renamed from bitset_word.  All uses changed.
77577
77578         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
77579
77580         [BZ #281]
77581         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
77582         * lib/regcomp.c: Remove unnecessary uses of
77583         unsigned RE_TRANSLATE_TYPE.
77584         * lib/regex_internal.h: Likewise.
77585         * lib/regex_internal.c: Likewise.
77586         * lib/regexec.c: Likewise.
77587         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
77588
77589         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
77590
77591         * lib/regexec.c (find_recover_state): Remove unnecessary
77592         initialization.
77593         (transit_state_bkref): Make DFA a const pointer.
77594         (get_subexp): Likewise.
77595         (check_arrival): Likewise.
77596         (update_cur_sifted_state): Likewise.
77597         (re_search_internal): Likewise.
77598         (prune_impossible_nodes): Likewise.
77599         (acquire_init_state_context): Likewise.
77600         (proceed_next_node): Likewise.
77601         (set_regs): Likewise.
77602         (free_fail_stack_return): Likewise.
77603         (check_arrival_expand_ecl): Mark DFA parameter as const.
77604         (check_arrival_expand_ecl_sub): Likewise.
77605         (check_subexp_limits): Likewise.
77606         (sub_epsilon_src_nodes):  Likewise.
77607         (add_epsilon_src_nodes):  Likewise.
77608         (merge_state_array): Likewise.
77609         (update_regs): Likewise.
77610         (build_trtable): Likewise.
77611         (sift_states_backward): Mark MCTX parameter as const.
77612         (build_sifted_states): Likewise.
77613         (update_cur_sifted_state): Likewise.
77614         (sift_states_mkref): Likewise.
77615         (check_arrival_expand_ecl): Mark eclosure as const.
77616         (check_dst_limits_calc_pos_1): Likewise.
77617         * lib/regex_internal.h (re_match_context_t): Make dfa a const
77618         pointer.
77619
77620         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
77621
77622         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
77623         (transit_state_sb): Likewise.
77624         (transit_state_mb): Likewise.
77625         (sift_states_iter_mb): Likewise.
77626         (check_arrival_add_next_nodes): Likewise.
77627         (check_node_accept_bytes): Change first parameter to pointer-to-const.
77628         [_LIBC] (re_search_2_stub): Use mempcpy.
77629
77630         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
77631         mbrtowc for very simple UTF-8 case.
77632
77633         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
77634         a pointer-to-const.
77635         (re_acquire_state_context): Likewise.
77636         * lib/regex_internal.h: Adjust prototypes.
77637
77638         * lib/regex.c: Prevent using C++ compilers.
77639
77640         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
77641         (re_acquire_state_context): Likewise.
77642
77643 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77644
77645         * modules/regex (Depends-on): Add ssize_t.
77646
77647 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77648
77649         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
77650         translation table.
77651
77652 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77653
77654         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
77655
77656 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
77657             Bruno Haible  <bruno@clisp.org>
77658
77659         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
77660         <sys/types.h> and <inttypes.h>.
77661
77662 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77663
77664         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
77665         `__error_t_defined', so argp.h will not typedef the former.
77666
77667 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
77668
77669         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
77670         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
77671         glibc names.  Even if glibc is changed to conform to POSIX, the
77672         traditional names will be available anyway, since regex depends on
77673         the extensions module.  Also, fix a longstanding typo in the
77674         implementation of Spencer ERE test #75 from grep 2.3.  Problems
77675         reported by Emanuele Giaquinta.  Also, change sense of cached
77676         variable, so that the message makes sense.
77677
77678 2006-03-24  Simon Josefsson  <jas@extundo.com>
77679
77680         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
77681         including some doc fixes.
77682         (base64_encode_alloc): Fix +1 bug on allocation failures.
77683
77684 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77685
77686         * lib/base64.c (base64_encode): Do not read past end of array with
77687         unsanitized input on systems with CHAR_BIT > 8.
77688
77689 2006-03-24  Eric Blake  <ebb9@byu.net>
77690
77691         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
77692
77693 2006-03-22  Karl Berry  <karl@gnu.org>
77694
77695         * config/srclist.txt (*setenv.[ch]): get from coreutils.
77696         * config/srclistvars.sh (COREUTILS): new var.
77697
77698 2006-03-17  Jim Meyering  <jim@meyering.net>
77699
77700         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
77701         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
77702
77703 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
77704
77705         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
77706         no longer needs it.  Instead, check that regoff_t is as least
77707         as wide as ptrdiff_t.
77708
77709         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
77710         so that our regex.h stays compatible with the installed regex.
77711         This is helpful for installers who configure --without-included-regex.
77712         Problem reported by Emanuele Giaquinta.
77713
77714 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
77715
77716         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
77717         Typedef to long int, not to off_, as POSIX will likely change
77718         in that direction.
77719
77720 2006-03-15  Eric Blake  <ebb9@byu.net>
77721
77722         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
77723
77724 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
77725
77726         * lib/argp-help.c (validate_uparams): Fix typo
77727         * lib/argp-parse.c (argp_default_options): Consistently begin help
77728         messages with a lowercase letter.
77729
77730 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
77731
77732         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
77733         overrun buffers and shouldn't be used (much as gets shouldn't be
77734         used).
77735         * lib/time_r.c (asctime_r, ctime_r): Likewise.
77736
77737 2006-03-08  Simon Josefsson  <jas@extundo.com>
77738
77739         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
77740         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77741
77742 2006-03-08  Simon Josefsson  <jas@extundo.com>
77743
77744         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
77745         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77746
77747 2006-03-08  Simon Josefsson  <jas@extundo.com>
77748
77749         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
77750         signal that configure disabled the device.
77751
77752 2006-03-08  Simon Josefsson  <jas@extundo.com>
77753
77754         * build-aux/maint.mk: Fix refresh-po, to handle no translated
77755         languages.
77756
77757 2006-03-07  Simon Josefsson  <jas@extundo.com>
77758
77759         * modules/getopt (Depends-on): Add unistd.
77760
77761         * modules/unistd: New file.
77762
77763 2006-03-07  Simon Josefsson  <jas@extundo.com>
77764
77765         * modules/gc-random: New file.
77766
77767 2006-03-07  Simon Josefsson  <jas@extundo.com>
77768
77769         * m4/unistd_h.m4: New file.
77770
77771 2006-03-07  Simon Josefsson  <jas@extundo.com>
77772
77773         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
77774         test to be side-effect free by storing the result in the cache
77775         variable gl_cv_lib_readline, and moving the assignment of
77776         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
77777         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77778
77779 2006-03-07  Simon Josefsson  <jas@extundo.com>
77780
77781         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
77782         error on missing devices (the functions will return an error).
77783
77784         * m4/gc.m4: Move random stuff to gc-random.m4
77785
77786 2006-03-07  Simon Josefsson  <jas@extundo.com>
77787
77788         * lib/unistd_.h: New file.
77789
77790 2006-03-07  Simon Josefsson  <jas@extundo.com>
77791
77792         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
77793
77794 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
77795
77796         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
77797         Problem reported by Juan Manuel Guerrero.
77798
77799 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
77800
77801         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
77802         the unistd module.
77803         * lib/getlogin_r.c: Likewise.
77804         * lib/getlogin_r.h: Likewise.
77805         * lib/glob.c: Likewise.
77806         * lib/pagealign_alloc.c: Likewise.
77807         * lib/unistd_.h: Remove; no longer needed.
77808
77809 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
77810
77811         * MODULES.html.sh (Support for systems lacking POSIX:2001):
77812         Add unistd.
77813         * modules/c-stack (Depends-on): Add unistd.
77814         * modules/getlogin_r: Likewise.
77815         * modules/glob: Likewise.
77816         * modules/pagealign_alloc: Likewise.
77817         * modules/unistd (Files): Remove lib/unistd_.h.
77818         (EXTRA_DIST): Remove.
77819         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
77820         need unistd_.h.
77821         (MOSTLYCLEANFILES): Remove unistd.h-t.
77822
77823 2006-03-03  Simon Josefsson  <jas@extundo.com>
77824
77825         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
77826
77827 2006-03-03  Simon Josefsson  <jas@extundo.com>
77828
77829         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
77830         libidn and bison.
77831
77832 2006-03-03  Simon Josefsson  <jas@extundo.com>
77833
77834         * build-aux/maint.mk: Add indent target.
77835
77836 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
77837
77838         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
77839         our replacement poll.h in any case, to avoid a differing
77840         declaration from a system header.  Seen on AIX.
77841
77842 2006-03-01  Simon Josefsson  <jas@extundo.com>
77843
77844         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
77845         <kasal@ucw.cz>.
77846
77847 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77848
77849         * modules/gettime (Depends-on): Add extensions module.
77850         * modules/nanosleep (Depends-on): Likewise.
77851         * modules/settime (Depends-on): Likewise.
77852
77853 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77854
77855         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
77856         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
77857         pedantically.
77858         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
77859         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
77860
77861         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
77862         not "==".  Reported by Ralf Wildenhues.
77863
77864 2006-03-01  Karl Berry  <karl@gnu.org>
77865
77866         * doc/Copyright/request-*: new files, synced from gnuorg.
77867
77868 2006-03-01  Karl Berry  <karl@gnu.org>
77869
77870         * config/srclist.txt (Copyright/*): new entries.
77871
77872 2006-02-28  Simon Josefsson  <jas@extundo.com>
77873
77874         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
77875
77876 2006-02-27  Simon Josefsson  <jas@extundo.com>
77877
77878         * lib/base64.h: Indent #define's.  From Jim Meyering
77879         <jim@meyering.net>.
77880
77881 2006-02-27  Jim Meyering  <jim@meyering.net>
77882
77883         Revert the change of 2006-02-24, so these files can continue
77884         to be sync'd from gettext.
77885         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
77886         of `config.h'.
77887
77888 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
77889
77890         * modules/intprops: New file.
77891         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
77892         Add intprops.
77893         * modules/getloadavg (Files): Remove lib/intprops.h.
77894         (Depends-on): Add intprops.
77895         * modules/human: Likewise.
77896         * modules/inttostr: Likewise.
77897         * modules/openat: Likewise.
77898         * modules/sig2str: Likewise.
77899         * modules/userspec: Likewise.
77900         * modules/utimecmp: Likewise.
77901         * modules/xnanosleep: Likewise.
77902         * modules/xstrtol: Likewise.
77903
77904 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
77905
77906         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
77907         * modules/lock-tests (TESTS): Use $(EXEEXT).
77908         * modules/tls-tests: Likewise.
77909         * modules/argp-tests: Likewise.
77910         (check_PROGRAMS): New var, replacing...
77911         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
77912
77913 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77914
77915         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
77916         `config.h'.
77917
77918 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
77919
77920         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
77921
77922 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77923
77924         Sync from coreutils.
77925         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
77926         gl_CHDIR_SAFER.
77927
77928 2006-02-22  Jim Meyering  <jim@meyering.net>
77929
77930         Sync from coreutils.
77931         * m4/chdir-safer.m4: New file.
77932
77933 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
77934
77935         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
77936         AT_FDCWD exceeds INT_MAX.
77937         * lib/openat.h (AT_FDCWD): Likewise.
77938
77939 2006-02-17  Eric Blake  <address@hidden>
77940
77941         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
77942
77943 2006-02-16  Simon Josefsson  <jas@extundo.com>
77944
77945         * modules/getaddrinfo (Depends-on): Add sys_socket.
77946
77947 2006-02-15  Simon Josefsson  <jas@extundo.com>
77948
77949         * build-aux/maint.mk: Add dsyntax-check rule.
77950
77951 2006-02-15  Eric Blake  <ebb9@byu.net>
77952
77953         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
77954         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
77955         'present but cannot compile' warnings on cygwin.
77956         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
77957         use ws2tcpip.h if sys/socket.h works.
77958         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
77959         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
77960
77961 2006-02-14  Simon Josefsson  <jas@extundo.com>
77962
77963         * modules/maintainer-makefile (Files): Rename.
77964
77965         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
77966         and (the local) Makefile.cfg to maint-cfg.mk.
77967
77968         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
77969         to the latter.
77970
77971         * modules/maintainer-makefile: New module.
77972
77973         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
77974         severaly stripped to make it possible to build it up from scratch
77975         with reliable tests.
77976
77977         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
77978         fixes to permit overriding the default actions when configure and
77979         makefile are not available.
77980
77981 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
77982
77983         Sync from coreutils.
77984         * modules/lstat (Depends-on): Don't depend on xalloc.
77985         (License): Change from GPL to LGPL, since this is now simply a
77986         replacement for a libc function.
77987
77988 2006-02-14  Jim Meyering  <jim@meyering.net>
77989
77990         Sync from coreutils.
77991
77992         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
77993         failure on deficient systems, and simplify gnulib lgpl dependencies.
77994         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
77995         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
77996
77997         * lib/xalloc-die.c: Remove unused definition of N_.
77998
77999 2006-02-14  Jim Meyering  <jim@meyering.net>
78000
78001         Sync from coreutils.
78002         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
78003         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
78004         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
78005         double-quote uses of that variable, to accommodate the rare case in
78006         which getmntent is available in none of the libraries checked.  This
78007         happens at least on FreeBSD 5.0.
78008
78009 2006-02-13  Simon Josefsson  <jas@extundo.com>
78010
78011         * gnulib-tool (Usage): Fix --import, from
78012         karl@freefriends.org (Karl Berry).
78013
78014 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
78015
78016         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
78017
78018 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
78019
78020         * lib/argp-namefrob.h: Restore changes accidentally lost during the
78021         "autoupdate" on 2005-12-12.
78022
78023 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
78024
78025         * modules/closeout (Depends-on): Remove atexit.
78026
78027 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
78028
78029         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
78030         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
78031
78032 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
78033
78034         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
78035         __EXTENSIONS__ if this causes compilation to fail.  Problem
78036         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
78037         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
78038
78039 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
78040
78041         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
78042         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
78043         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
78044         All uses changed.
78045
78046 2006-01-26  Simon Josefsson  <jas@extundo.com>
78047
78048         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
78049         prototype is visible on mingw32.
78050
78051         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
78052         for mingw32.
78053
78054         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
78055         mingw32).
78056
78057 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
78058
78059         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
78060         attempt to open for write; this always fails, at least on POSIX
78061         hosts.  This reinstates the 2006-01-09 change, which was
78062         inadvertently removed.
78063
78064 2006-01-26  Bruno Haible  <bruno@clisp.org>
78065
78066         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
78067         Reported by Paul Eggert.
78068
78069 2006-01-26  Bruno Haible  <bruno@clisp.org>
78070             Paul Eggert  <eggert@cs.ucla.edu>
78071
78072         * lib/stdbool_.h (_Bool)
78073         [(! (defined __cplusplus || defined __BEOS__)
78074           && !defined __GNUC__
78075           && !(defined __HP_cc || defined __xlc__
78076                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
78077                || defined __sgi))]:
78078         #define to signed char in these cases too; this simplifies
78079         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
78080         etc., separately) and makes it more conservative.
78081
78082 2006-01-25  Simon Josefsson  <jas@extundo.com>
78083
78084         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
78085         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
78086         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
78087
78088 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
78089
78090         * lib/argp-namefrob.h: Bugfix. Remove stray #
78091
78092 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
78093
78094         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
78095         so that we test the test.
78096         Check for yet another HP-UX cc bug involving *bool |= bool.
78097
78098 2006-01-25  Karl Berry  <karl@gnu.org>
78099
78100         * config/srclist.txt (vasnprintf.c): sync lost.
78101
78102 2006-01-25  Jim Meyering  <jim@meyering.net>
78103
78104         Sync from the stable (b5) branch of coreutils:
78105
78106         * lib/fts.c (fts_children): Don't let close() clobber errno from
78107         failed fchdir().
78108
78109         * lib/fts.c (fts_stat): When following a symlink-to-directory,
78110         don't necessarily interpret stat-fails+lstat-succeeds as indicating
78111         a dangling symlink.  That can also happen at least for ELOOP.
78112         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
78113         FYI, this bug predates the inclusion of fts.c in coreutils.
78114
78115         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
78116         in their own block, so pre-c99 compilers don't object.
78117
78118         Avoid the double-free (first in fts_read, second in fts_close) that
78119         would occur when an `active' directory is made inaccessible (e.g.,
78120         via chmod a-x) during a traversal.
78121         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
78122         before returning.  Reproduce this failure by
78123         mkdir -p a/b; cd a; chmod a-x . b
78124         Reported by Stavros Passas.
78125
78126 2006-01-25  Jim Meyering  <jim@meyering.net>
78127
78128         * lib/fileblocks.c: Remove more useless parentheses.
78129         * lib/readutmp.h: Likewise.
78130
78131 2006-01-25  Bruno Haible  <bruno@clisp.org>
78132
78133         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
78134         warnings.
78135         Reported by Paul Eggert.
78136
78137 2006-01-25  Bruno Haible  <bruno@clisp.org>
78138
78139         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
78140         rid of a trap command. For Solaris sh.
78141         Reported by Mark D. Baushke <mdb@gnu.org>.
78142
78143 2006-01-24  Simon Josefsson  <jas@extundo.com>
78144
78145         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
78146         Bruno.
78147
78148 2006-01-24  Karl Berry  <karl@gnu.org>
78149
78150         * config/srclist.txt (argp-namefrob.h): sync lost.
78151
78152 2006-01-24  Jim Meyering  <jim@meyering.net>
78153
78154         * modules/openat (Files): Add lib/intprops.h.
78155         From Mark D. Baushke.
78156
78157 2006-01-24  Jim Meyering  <jim@meyering.net>
78158
78159         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
78160         Reported by Mark D. Baushke.
78161
78162 2006-01-24  Jim Meyering  <jim@meyering.net>
78163
78164         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
78165
78166 2006-01-24  Bruno Haible  <bruno@clisp.org>
78167
78168         * modules/strnlen (Maintainer): Change from glibc to all.
78169
78170 2006-01-24  Bruno Haible  <bruno@clisp.org>
78171
78172         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
78173         Patch by Paul Eggert.
78174
78175 2006-01-24  Bruno Haible  <bruno@clisp.org>
78176
78177         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
78178         already has it.
78179         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
78180         2005-11-26.
78181
78182         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
78183         'signed char' to avoid problems with the built-in _Bool type.
78184         Reported by Paul Eggert on 2005-11-26.
78185
78186 2006-01-24  Bruno Haible  <bruno@clisp.org>
78187
78188         * gnulib-tool (func_import): Avoid constructing complicated sed
78189         expressions inside backquote.
78190         Report and solution by Mark D. Baushke <mdb@gnu.org>.
78191
78192 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
78193
78194         These changes imported from libc.
78195         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
78196         test and two separate function calls.
78197         * lib/strndup.c (__strndup): Add libc_hidden_def.
78198
78199 2006-01-23  Simon Josefsson  <jas@extundo.com>
78200
78201         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
78202         Remove the test_*_SOURCES variable: automake infers it by default.
78203         * modules/tls-tests: Likewise.
78204
78205 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78206
78207         Work around porting bugs reported by Dieter in
78208         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
78209         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
78210         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
78211         Include "getopt.h" first, to check interface.
78212         (getenv): Declare only if defined HAVE_DECL_GETENV &&
78213         !HAVE_DECL_GETENV.
78214         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
78215         (__strndup): Revert to K&R-style function dfns, the glibc style.
78216         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
78217         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
78218         Include strnlen.h first, to get prototype properly.
78219         (strnlen): Renamed from __strnlen.
78220         Remove weak alias.
78221
78222 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78223
78224         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
78225
78226 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78227
78228         * config/srclist.txt: Adjust to reflect glibc reorganization.
78229         This affects only comments.
78230
78231 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
78232
78233          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
78234          Reported by Bruce Korb <bkorb@gnu.org>.
78235
78236 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
78237
78238         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
78239         to pacify gcc -Wswitch-default.
78240
78241 2006-01-22  Bruno Haible  <bruno@clisp.org>
78242
78243         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
78244         temporary buffer for sprintf, take into account the precision also
78245         for 'd', 'i', 'u', 'o', 'x', 'X'.
78246
78247 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
78248
78249         * modules/argp-tests: New module
78250         * tests/test-argp.c: New file
78251         * tests/test-argp-2.sh: New file
78252
78253 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
78254
78255         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
78256         (__argp_base_name): Removed
78257         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
78258         typo.
78259         (__argp_base_name): Provide macro definition or extern declaration
78260         depending on the configuration
78261
78262 2006-01-20  Simon Josefsson  <jas@extundo.com>
78263
78264         * modules/inet_ntop (Depends-on): Depend on sys_socket.
78265
78266 2006-01-20  Simon Josefsson  <jas@extundo.com>
78267
78268         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
78269
78270 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78271
78272         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
78273         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
78274         Suggested by Bruno Haible.
78275
78276 2006-01-20  Karl Berry  <karl@gnu.org>
78277
78278         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
78279         until changes propagate, I guess.
78280
78281 2006-01-19  Simon Josefsson  <jas@extundo.com>
78282
78283         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
78284
78285 2006-01-19  Simon Josefsson  <jas@extundo.com>
78286
78287         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
78288
78289 2006-01-19  Simon Josefsson  <jas@extundo.com>
78290
78291         * gnulib-tool: Set check_PROGRAMS.
78292
78293         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
78294         modules/des-tests, modules/gc-arcfour-tests,
78295         modules/gc-arctwo-tests, modules/gc-des-tests,
78296         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
78297         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
78298         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
78299         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
78300         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
78301         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
78302         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
78303         test_*_SOURCES.
78304
78305 2006-01-18  Simon Josefsson  <jas@extundo.com>
78306
78307         * modules/socklen (Depends-on): Depend on sys_socket.
78308
78309 2006-01-18  Simon Josefsson  <jas@extundo.com>
78310
78311         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
78312         modules/des-tests, modules/gc-arcfour-tests,
78313         modules/gc-arctwo-tests, modules/gc-des-tests,
78314         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
78315         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
78316         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
78317         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
78318         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
78319         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
78320         $(EXEEXT) to automake TESTS variable, for mingw32.
78321
78322 2006-01-17  Simon Josefsson  <jas@extundo.com>
78323
78324         * modules/socklen (Include): Need sys/socket.h.
78325
78326 2006-01-17  Bruno Haible  <bruno@clisp.org>
78327
78328         * modules/ssize_t (Include): Add <sys/types.h>.
78329
78330 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
78331
78332         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
78333         it's not portable and it doesn't work with cross-compiles.
78334         Problem reported by Bruno Haible.  Fix missing-$ typo in
78335         'test "gl_cv_ignore_unused_libraries" ...' that prevented
78336         -zignore from being used with Sun's C compiler.
78337
78338 2006-01-12  Simon Josefsson  <jas@extundo.com>
78339
78340         * lib/base64.c: Fix warning, reported by Bruno Haible
78341         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
78342
78343 2006-01-12  Bruno Haible  <bruno@clisp.org>
78344
78345         * modules/ldd: New file.
78346         * build-aux/ldd.sh.in: New file.
78347         * MODULES.html.sh (Support for building libraries and executables): Add
78348         ldd.
78349
78350 2006-01-12  Bruno Haible  <bruno@clisp.org>
78351
78352         * m4/ldd.m4: New file.
78353
78354 2006-01-12  Bruno Haible  <bruno@clisp.org>
78355
78356         * gnulib-tool (func_import, func_create_testdir): Don't go into an
78357         endless loop while replacing $auxdir with build-aux.
78358
78359 2006-01-11  Simon Josefsson  <jas@extundo.com>
78360
78361         * lib/stdint_.h (SIZE_MAX): Add missing (.
78362
78363 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
78364
78365         Sync from coreutils.
78366         * lib/md5.c: Fix commentary typos.
78367         (alignof, UNALIGNED_P): No need for a GCC-specific version.
78368         * lib/md5.h (__attribute__): Remove; unused.
78369         * lib/sha1.c: Fix commentary to match md5 better.
78370         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
78371         so that we don't need to worry about alignment.  All uses changed.
78372         This merges the 2005-10-28 md5 change into sha1.
78373
78374 2006-01-11  Jim Meyering  <jim@meyering.net>
78375
78376         Sync from coreutils.
78377         * lib/md5.c (OP): Fix spacing.
78378
78379 2006-01-11  Bruno Haible  <bruno@clisp.org>
78380
78381         Ensure automatic ordering between gl_LOCK and gl_ARGP.
78382         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
78383         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
78384
78385 2006-01-11  Bruno Haible  <bruno@clisp.org>
78386
78387         Ensure automatic ordering between gl_LOCK and gl_ARGP.
78388         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
78389         the "early" section as well.
78390
78391 2006-01-11  Bruno Haible  <bruno@clisp.org>
78392
78393         Avoid "ar: no archive members specified" error on MacOS X.
78394         * gnulib-tool (func_modules_add_dummy): New function.
78395         (func_import, func_create_testdir): Invoke it.
78396
78397 2006-01-11  Bruno Haible  <bruno@clisp.org>
78398
78399         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
78400         with $auxdir in AC_CONFIG_FILES statements.
78401
78402 2006-01-11  Bruno Haible  <bruno@clisp.org>
78403
78404         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78405         Initialize also noinst_HEADERS to empty.
78406
78407 2006-01-11  Bruno Haible  <bruno@clisp.org>
78408
78409         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
78410         variables.
78411         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
78412         autoreconf.
78413
78414 2006-01-11  Bruno Haible  <bruno@clisp.org>
78415
78416         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
78417         overridable by the user.
78418         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78419
78420 2006-01-10  Simon Josefsson  <jas@extundo.com>
78421
78422         * modules/sys_socket: New file.
78423
78424 2006-01-10  Simon Josefsson  <jas@extundo.com>
78425
78426         * m4/sys_socket_h.m4: New file.
78427
78428 2006-01-10  Simon Josefsson  <jas@extundo.com>
78429
78430         * lib/socket_.h: New file.
78431
78432 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78433
78434         * modules/readutmp (Maintainer): Add myself.
78435
78436 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78437
78438         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
78439         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
78440         People who are still concerned with buggy memcmp implementations
78441         can invoke gl_FUNC_MEMCMP themselves.
78442
78443 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78444
78445         * lib/regex_internal.h (BITSET_WORD_BITS):
78446         Work around a bug in 64-bit PGC (before version 6.1-2), where the
78447         preprocessor mishandles large unsigned values as if they were signed.
78448         Problem reported by Claudio Fontana in
78449         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
78450
78451 2006-01-10  Jim Meyering  <jim@meyering.net>
78452
78453         Avoid the double-free (first in fts_read, second in fts_close) that
78454         would occur when an `active' directory is made inaccessible (e.g.,
78455         via chmod a-x) during a traversal.
78456         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
78457         before returning.  Reproduce this failure by
78458         mkdir -p a/b; cd a; chmod a-x . b
78459         Reported by Stavros Passas.
78460
78461         Sync from coreutils.
78462         * lib/sha1.c: Tweak grammar in a comment.
78463
78464 2006-01-10  Jim Meyering  <jim@meyering.net>
78465
78466         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
78467         Patch by Joerg Sonnenberger.
78468
78469 2006-01-10  Bruno Haible  <bruno@clisp.org>
78470
78471         * modules/readutmp: Depend on module free.
78472         * modules/strtok_r: Depend on module restrict.
78473
78474 2006-01-10  Bruno Haible  <bruno@clisp.org>
78475
78476         * modules/gettext (configure.ac): Add an invocation of
78477         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
78478
78479 2006-01-10  Bruno Haible  <bruno@clisp.org>
78480
78481         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
78482         Reported by Werner Lemberg <wl@gnu.org>.
78483
78484 2006-01-10  Bruno Haible  <bruno@clisp.org>
78485
78486         * lib/localcharset.c: Update from GNU gettext.
78487
78488 2006-01-10  Bruno Haible  <bruno@clisp.org>
78489
78490         * lib/argp.h (__const): Remove macro. Use const instead.
78491         * lib/argp-fmtstream.h (__const): Likewise.
78492         * lib/glob_.h (__const): Remove macro.
78493         * lib/glob-libc.h: Use const instead of __const.
78494
78495 2006-01-10  Bruno Haible  <bruno@clisp.org>
78496
78497         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
78498         variable.
78499         Needed to avoid an automake error regarding the 'gettext' module.
78500
78501 2006-01-09  Simon Josefsson  <jas@extundo.com>
78502
78503         * modules/inet_ntop (Depends-on): Add restrict.
78504
78505 2006-01-09  Simon Josefsson  <jas@extundo.com>
78506
78507         * modules/gc-rijndael-tests (License): Put under LGPL.
78508
78509         * modules/gc-des-tests (License): Likewise.
78510
78511         * modules/gc-arcfour-tests (License): Likewise.
78512
78513         * modules/gc-arctwo-tests (License): Likewise.
78514
78515         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
78516
78517         * modules/gc-hmac-sha1-tests (Files): Likewise.
78518
78519         * modules/gc-hmac-md5-tests (License): Likewise.
78520
78521         * modules/gc-sha1-tests (License): Likewise.
78522
78523         * modules/gc-md5-tests (License): Likewise.
78524
78525         * modules/gc-md4-tests (License): Likewise.
78526
78527         * modules/gc-md2-tests (License): Likewise.
78528
78529         * modules/gc-tests (License): Likewise.
78530
78531         * modules/des-tests (License): Likewise.
78532
78533         * modules/md4-tests (License): Likewise.
78534
78535         * modules/md2-tests (License): Likewise.
78536
78537 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78538
78539         Sync from coreutils:
78540
78541         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
78542         * modules/lib-ignore: New file.
78543         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
78544         chdir-safer.m4, lchmod.m4.
78545         * modules/openat: Add mkdirat.c, openat-priv.h.
78546
78547 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78548
78549         Sync from coreutils.
78550         * m4/lib-ignore.m4: New file.
78551         * m4/lchmod.m4: New file.
78552
78553 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78554
78555         Sync from coreutils.
78556         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
78557         for write access: POSIX says that must fail.
78558         * lib/fts.c (diropen): Likewise.
78559         * lib/save-cwd.c (save_cwd): Likewise.
78560         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
78561         well, for minor improvements on hosts that lack O_DIRECTORY.
78562         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
78563         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
78564         Fall back on chown if open failed with EACCES.
78565
78566         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
78567         Report an error at compile-time if only a 1-second nominal clock
78568         resolution is found.
78569
78570         * lib/lchmod.h: New file.
78571         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
78572         (make_dir_parents): Use lchown rather than chown, and
78573         lchmod rather than chmod.
78574
78575         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
78576         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
78577         "proc" reported by n0dalus.
78578
78579         * lib/mountlist.c: Include <limits.h>.
78580         (dev_from_mount_options)
78581         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
78582         New function.  It no longer assumes "dev=" has the System V meaning
78583         on Linux (since it doesn't).  It also parses "dev=" more carefully.
78584         (read_file_system_list)
78585         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
78586         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
78587         dev= in that case.
78588
78589         * lib/posixtm.h (PDS_PRE_2000): New macro.
78590         * lib/posixtm.c (year): Arg is now syntax_bits rather than
78591         allow_century.  All usages changed.  Reject dates outside the range
78592         1969-1999 if PDS_PRE_2000 is used.
78593
78594 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78595
78596         Sync from coreutils.
78597         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
78598         (Time of day items): Mention the possibility of leap seconds.
78599         Problem reported by Dr. David Alan Gilbert.
78600
78601 2006-01-09  Jim Meyering  <jim@meyering.net>
78602
78603         Sync from coreutils.
78604
78605         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
78606
78607         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
78608
78609         * lib/modechange.c (mode_compile): Reject an invalid mode string
78610         that starts with an octal digit.  From Andreas Gruenbacher.
78611
78612         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
78613         and dup to open_safer and dup_safer, respectively.
78614         (openat_permissive): Fix typo in comment.
78615
78616         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
78617         "gettext.h"; either no longer needed or are guaranteed by openat.h.
78618         (_): Remove; no longer needed.
78619         (openat): Renamed from rpl_openat; no need for rpl_openat
78620         since openat.h renames openat for us.
78621         Replace most of the body with a call to openat_permissive,
78622         to avoid duplicate code.
78623         Port to (probably hypothetical) environments were mode_t is
78624         wider than int.
78625         (openat_permissive): Require mode arg, so that we can check
78626         types better.  Put it just after flags.  Change cwd failure
78627         indicator from pointer-to-bool to pointer-to-errno-value.
78628         All callers changed.
78629         Invoke openat_save_fail and/or openat_restore_fail if
78630         cwd_errno is null, so that openat can call us.
78631         (openat_permissive, fdopendir, fstatat, unlinkat):
78632         Simplify errno handling to avoid some duplicate code,
78633         as it's OK to set errno on success.
78634         * lib/openat.h: Revamp code so that function macros depend on
78635         __OPENAT_PREFIX only, not also on AT_FDCWD.
78636         (openat_ro): Remove.  Caller changed to use openat_permissive.
78637         (openat_permissive): Now a macro, if not a function.
78638         (openat_restore_fail, openat_save_fail): Now always functions,
78639         since mkdirat needs them even if __OPENAT_PREFIX is defined.
78640
78641         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
78642         and openat.c.
78643         * lib/mkdirat.c: Include openat-priv.h.
78644         Remove definitions of macros defined therein.
78645         * lib/openat.c: Likewise.
78646
78647         * lib/mkdirat.c (mkdirat): New file and function.
78648         * lib/openat.h (mkdirat): Declare.
78649
78650         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
78651
78652         * lib/openat.h (openat_permissive): Declare.
78653         (openat_ro): Define.
78654
78655         * lib/openat.c (EXPECTED_ERRNO): New macro.
78656         (openat_permissive): New function -- used in remove.c rewrite.
78657         (all functions): Set errno just before returning, only if there
78658         was an actual failure.
78659         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
78660
78661         Emulate openat-family functions using Linux's procfs, if possible.
78662         Idea and some code based on Ulrich Drepper's glibc changes.
78663
78664         * lib/openat.c: (BUILD_PROC_NAME): New macro.
78665         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
78666         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
78667         before falling back on save_cwd and restore_cwd.
78668         (fdopendir, fstatat, unlinkat): Likewise.
78669
78670         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
78671         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
78672
78673         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
78674         as second argument to va_arg.  Otherwise, some versions of gcc
78675         warn that `if this code is reached, the program will abort'.
78676
78677 2006-01-09  Jim Meyering  <jim@meyering.net>
78678
78679         Sync from coreutils.
78680         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
78681         Require openat-priv.h.
78682
78683 2006-01-09  Bruno Haible  <bruno@clisp.org>
78684
78685         * modules/strnlen (Include): Use strnlen.h.
78686
78687 2006-01-09  Bruno Haible  <bruno@clisp.org>
78688
78689         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
78690
78691 2006-01-09  Bruno Haible  <bruno@clisp.org>
78692
78693         * lib/sysexit_.h (EX_OK): New macro.
78694         Suggested by Martin Lambers <marlam@marlam.de>.
78695
78696 2006-01-09  Bruno Haible  <bruno@clisp.org>
78697
78698         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
78699         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
78700
78701 2006-01-09  Bruno Haible  <bruno@clisp.org>
78702
78703         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
78704         numbers.
78705
78706 2006-01-09  Bruno Haible  <bruno@clisp.org>
78707
78708         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
78709         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
78710         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
78711         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
78712
78713 2006-01-09  Bruno Haible  <bruno@clisp.org>
78714
78715         * build-aux/javacomp.sh.in: New file, moved from lib/.
78716         * modules/javacomp-script (Files): Update.
78717         (configure.ac): Add AC_CONFIG_FILES invocation.
78718         (EXTRA_DIST): Remove variable.
78719
78720         * build-aux/javaexec.sh.in: New file, moved from lib/.
78721         * modules/javaexec (Files): Update.
78722         (configure.ac): Add AC_CONFIG_FILES invocation.
78723         (EXTRA_DIST): Remove javaexec.sh.in.
78724
78725         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
78726         * modules/csharpcomp-script (Files): Update.
78727         (configure.ac): Add AC_CONFIG_FILES invocation.
78728         (EXTRA_DIST): Remove variable.
78729
78730         * build-aux/csharpexec.sh.in: New file, moved from lib/.
78731         * modules/csharpexec (Files): Update.
78732         (configure.ac): Add AC_CONFIG_FILES invocation.
78733         (EXTRA_DIST): Remove csharpexec.sh.in.
78734
78735 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
78736
78737         Sync from coreutils.
78738
78739         Add POSIX ACL support
78740         * lib/acl.h (copy_acl, set_acl): Add declarations.
78741         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
78742         systems other than Linux.
78743         (chmod_or_fchmod): New function: use fchmod when possible,
78744         and chmod otherwise.
78745         (file_has_acl): Add a POSIX ACL implementation, with a
78746         Linux-specific subcase.
78747         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
78748         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
78749         acls are unsupported.
78750         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
78751         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
78752         are unsupported.
78753
78754 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
78755
78756         Sync from coreutils.
78757         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
78758
78759 2006-01-07  Bruno Haible  <bruno@clisp.org>
78760
78761         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
78762         gl_EARLY.
78763
78764 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78765
78766         * lib/strftime.c (tzname): Don't declare if it is already #defined.
78767         Problem reported for Mingw by Mark Junker.
78768
78769 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78770
78771         * README: Gnulib normally doesn't generate a tarball.
78772
78773 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
78774
78775         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
78776         long int, not int, for nanosecond counts, so that people who are
78777         used to POSIX struct timespec won't be surprised.  Reported by Jim
78778         Meyering.
78779
78780 2005-12-28  Bruno Haible  <bruno@clisp.org>
78781
78782         * build-aux/config.rpath: Update from GNU gettext.
78783
78784 2005-12-16  Jim Meyering  <jim@meyering.net>
78785
78786         * modules/fprintftime: New module.
78787         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
78788
78789 2005-12-16  Jim Meyering  <jim@meyering.net>
78790
78791         * m4/fprintftime.m4: New file.
78792
78793 2005-12-16  Jim Meyering  <jim@meyering.net>
78794
78795         * lib/fprintftime.c, lib/fprintftime.h: New files.
78796
78797 2005-12-15  Simon Josefsson  <jas@extundo.com>
78798
78799         * modules/socklen (configure.ac): Fix M4 macro name, to align with
78800         new m4/socklen.m4.
78801
78802 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
78803
78804         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
78805         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
78806
78807 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
78808
78809         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
78810         * lib/argp-help.c (fill_in_uparams): Check if the constructed
78811         struct uparams is valid. Fall back to the default values if it is
78812         not.
78813
78814 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78815
78816         * modules/argp (Files): Add argp-pin.c
78817         (Depends-on): dirname
78818         (lib_SOURCES): Add argp-pin.c
78819
78820 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78821
78822         * m4/argp.m4:  Check if program_invocation_name and
78823         program_invocation_short_name are declared and define appropriate
78824         macros if they are not.
78825
78826 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78827
78828         * lib/argp-help.c (__argp_base_name): New function
78829         (__argp_short_program_name): Rewrite using __argp_base_name
78830         * lib/argp-namefrob.h: Define program_invocation_name and
78831         program_invocation_short_name if requested
78832         (__argp_base_name): Add prototype
78833         * lib/argp-parse.c (argp_def): Use gettext wrappers
78834         (argp_default_parser): Use __argp_base_name
78835         * lib/argp-pin.c: New file. Defines program_invocation_name and
78836         program_invocation_short_name on systems that lack them.
78837
78838 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78839
78840         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
78841         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
78842         porting problem reported by Georg Schwarz in
78843         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
78844
78845 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78846
78847         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
78848         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
78849         porting problem reported by Georg Schwarz in
78850         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
78851
78852 2005-12-05  Bruno Haible  <bruno@clisp.org>
78853
78854         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
78855         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
78856         Reported by Mark Junker <mjscod@gmx.de>.
78857
78858 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
78859
78860         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
78861         Use implementation from Albert Chin, with some
78862         comments/corrections by Stepan Kasal and myself.
78863
78864 2005-12-02  Bruno Haible  <bruno@clisp.org>
78865
78866         * gnulib-tool (func_import): Accept GPLed build tool modules when
78867         --lgpl is given.
78868         * modules/csharpcomp-script: New file.
78869         * modules/csharpcomp: Depend on it.
78870         * modules/javacomp-script: New file.
78871         * modules/javacomp: Depend on it.
78872         Suggested by Simon Josefsson.
78873
78874 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
78875
78876         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
78877         statement, to work around an HP-UX 10.20 compiler bug reported by
78878         Peter O'Gorman.
78879
78880 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
78881
78882         * modules/savedir (Depends-on): Add openat.
78883
78884 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
78885
78886         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
78887         (uintmax_t) [defined uintmax_t]: Do not declare.
78888         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
78889         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
78890         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
78891         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
78892         sake of portability to weird hosts that C allows (though we don't
78893         know of any practical examples).
78894
78895         * lib/savedir.h (fdsavedir): New decl.
78896         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
78897         contains most of the former guts of savedir.
78898         (savedir): Use savedirstream.
78899         Include "openat.h".
78900
78901 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78902
78903         * modules/obstack (Files): Add m4/ulonglong.m4.
78904         Problem reported by Davide Angelocola.
78905
78906 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
78907
78908         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
78909         coreutils no longer futzes with rounding modes.
78910
78911 2005-11-14  Jim Meyering  <jim@meyering.net>
78912
78913         * lib/mkstemp-safer.c: Include <config.h>, required for possible
78914         replacement of mkstemp.
78915
78916 2005-11-10  Simon Josefsson  <jas@extundo.com>
78917
78918         * lib/readline.c: Remove EOL.
78919
78920 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78921
78922         * modules/gethrxtime (Depends-on): Add gettime.
78923
78924 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78925
78926         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
78927         or gettimeofday; no longer needed.
78928
78929 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78930
78931         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
78932         time business.
78933         (gethrxtime) [! (HAVE_NANOUPTIME
78934         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
78935         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
78936         our own approximation.
78937
78938 2005-11-08  Eric Blake  <ebb9@byu.net>
78939
78940         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
78941
78942 2005-11-08  Eric Blake  <ebb9@byu.net>
78943
78944         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
78945
78946 2005-11-04  Bruno Haible  <bruno@clisp.org>
78947
78948         * gnulib-tool: Implement --update mode.
78949
78950 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
78951
78952         Fix porting problem reported by Theodoros V. Kalamatianos.
78953         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
78954         Don't assume that futimes failing means we must fail.
78955
78956 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
78957
78958         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
78959         variables to suggest the intended function of the PATH_MAX check.
78960
78961 2005-10-30  Kean Johnston  <jkj@sco.com>
78962
78963         Trivial changes to support SCO systems.
78964         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
78965         as PATH_MAX.
78966         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
78967         where __ptr is null when no I/O is pending.
78968
78969 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78970
78971         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
78972         leave errno alone.  Problem reported by Dmitry V. Levin.
78973
78974 2005-10-28  Simon Josefsson  <jas@extundo.com>
78975
78976         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
78977         Test more.
78978
78979         * tests/test-gc-md2.c, tests/test-md2.c: New files.
78980
78981         * modules/md2, modules/md2-tests: New files.
78982
78983 2005-10-28  Simon Josefsson  <jas@extundo.com>
78984
78985         * m4/inet_ntop.m4: More tests.
78986
78987         * m4/gc-md2.m4, md2.m4: New file.
78988
78989 2005-10-28  Simon Josefsson  <jas@extundo.com>
78990
78991         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
78992         "restrict" keywords, as per POSIX.  Protect the function
78993         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
78994         Don't use K&R prototypes.  Check the sprintf return values.
78995         Re-define EAFNOSUPPORT if not present.  Indent.
78996
78997         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
78998         suggested by Bruno Haible <bruno@clisp.org>.
78999
79000         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
79001
79002         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
79003
79004         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
79005         libgcrypt).
79006
79007         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
79008
79009         * lib/md2.h, lib/md2.c: New files.
79010
79011 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
79012
79013         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
79014         errno alone.  Problem reported by Frederic Jolliton.
79015
79016 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
79017
79018         * modules/verify (License): Change from GPL to LGPL.  This is a
79019         tiny module and there are apparently near-equivalents that are
79020         under the BSD license.
79021
79022 2005-10-24  Simon Josefsson  <jas@extundo.com>
79023
79024         * modules/sha1: Relicense to LGPL.
79025
79026 2005-10-24  Simon Josefsson  <jas@extundo.com>
79027
79028         * lib/md4.h: Shrink buffer size, now that we changed the type.
79029
79030 2005-10-23  Simon Josefsson  <jas@extundo.com>
79031
79032         * gnulib-tool (func_import): Fix --tests-base.
79033
79034 2005-10-22  Simon Josefsson  <jas@extundo.com>
79035
79036         * modules/arcfour (Depends-on): Need stdint.
79037
79038 2005-10-22  Simon Josefsson  <jas@extundo.com>
79039
79040         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
79041         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
79042
79043 2005-10-22  Simon Josefsson  <jas@extundo.com>
79044
79045         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
79046         suggested by Bruno Haible <bruno@clisp.org>.
79047
79048 2005-10-22  Simon Josefsson  <jas@extundo.com>
79049
79050         * lib/crc.h: Include stddef.h, for size_t.
79051
79052 2005-10-22  Simon Josefsson  <jas@extundo.com>
79053
79054         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
79055         arcfour_context struct (simplify test vector testing in GNU
79056         Shishi).
79057
79058 2005-10-21  Simon Josefsson  <jas@extundo.com>
79059
79060         * modules/des, modules/des-tests: New files.
79061
79062         * modules/gc-des, modules/gc-des-tests: New files.
79063
79064         * tests/test-des.c, tests/test-gc-des.c: New file.
79065
79066 2005-10-21  Simon Josefsson  <jas@extundo.com>
79067
79068         * modules/arctwo, modules/arctwo-tests: New files.
79069
79070         * tests/test-arctwo.c: New file.
79071
79072         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
79073
79074         * tests/test-gc-arctwo.c: New file.
79075
79076 2005-10-21  Simon Josefsson  <jas@extundo.com>
79077
79078         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
79079         Bruno Haible <bruno@clisp.org>.
79080
79081         * m4/gc-des.m4: New file.
79082
79083 2005-10-21  Simon Josefsson  <jas@extundo.com>
79084
79085         * m4/arctwo.m4: New file.
79086
79087         * m4/gc-arctwo.m4: New file.
79088
79089 2005-10-21  Simon Josefsson  <jas@extundo.com>
79090
79091         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
79092         block.
79093
79094 2005-10-21  Simon Josefsson  <jas@extundo.com>
79095
79096         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
79097         <bruno@clisp.org>.
79098
79099         * lib/hmac-sha1.c (hmac_sha1): Likewise.
79100
79101         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
79102         Bruno Haible <bruno@clisp.org>.
79103
79104         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
79105         <bruno@clisp.org>.
79106
79107 2005-10-21  Simon Josefsson  <jas@extundo.com>
79108
79109         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
79110
79111 2005-10-21  Simon Josefsson  <jas@extundo.com>
79112
79113         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
79114
79115 2005-10-21  Simon Josefsson  <jas@extundo.com>
79116
79117         * lib/des.h, lib/des.c: New files.
79118
79119         * lib/gc-gnulib.c: Support DES.c
79120
79121 2005-10-21  Simon Josefsson  <jas@extundo.com>
79122
79123         * lib/arctwo.h, lib/arctwo.c: New files.
79124
79125         * lib/gc-gnulib.c: Support ARCTWO.
79126
79127 2005-10-21  Simon Josefsson  <jas@extundo.com>
79128
79129         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
79130         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79131
79132 2005-10-21  Simon Josefsson  <jas@extundo.com>
79133
79134         * gnulib-tool (func_import, func_create_testdir): Define automake
79135         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
79136         Makefile.am snippet),
79137         suggested by Bruno Haible <bruno@clisp.org>.
79138
79139         * modules/gc (Makefile.am): Use it.
79140
79141 2005-10-21  Bruno Haible  <bruno@clisp.org>
79142
79143         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
79144         patch.
79145
79146 2005-10-19  Simon Josefsson  <jas@extundo.com>
79147
79148         * tests/test-gc-rijndael.c: New file.
79149
79150         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
79151
79152 2005-10-19  Simon Josefsson  <jas@extundo.com>
79153
79154         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
79155         interface too.
79156
79157 2005-10-19  Simon Josefsson  <jas@extundo.com>
79158
79159         * tests/test-gc-arcfour.c: New file.
79160
79161         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
79162
79163 2005-10-19  Simon Josefsson  <jas@extundo.com>
79164
79165         * modules/gc-md4, modules/gc-md4-tests: New file.
79166
79167         * tests/test-gc-md4.c: New file.
79168
79169 2005-10-19  Simon Josefsson  <jas@extundo.com>
79170
79171         * m4/gc-md4.m4: New file.
79172
79173 2005-10-19  Simon Josefsson  <jas@extundo.com>
79174
79175         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
79176         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
79177         <kasal@ucw.cz>.
79178
79179 2005-10-19  Simon Josefsson  <jas@extundo.com>
79180
79181         * m4/gc-arcfour.m4: New file.
79182
79183         * m4/gc-rijndael.m4: New file.
79184
79185 2005-10-19  Simon Josefsson  <jas@extundo.com>
79186
79187         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
79188
79189 2005-10-19  Simon Josefsson  <jas@extundo.com>
79190
79191         * lib/gc-gnulib.c: Support ARCFOUR.
79192
79193 2005-10-19  Simon Josefsson  <jas@extundo.com>
79194
79195         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
79196         support.
79197
79198         * lib/gc.h: Add ECB enum type.
79199
79200         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
79201
79202 2005-10-18  Simon Josefsson  <jas@extundo.com>
79203
79204         * tests/test-md5.c: New file.
79205
79206         * modules/md5-tests: New file.
79207
79208 2005-10-18  Simon Josefsson  <jas@extundo.com>
79209
79210         * tests/test-md4.c: New file.
79211
79212         * modules/md4, modules/md4-tests: New files.
79213
79214 2005-10-18  Simon Josefsson  <jas@extundo.com>
79215
79216         * m4/md4.m4: New file.
79217
79218 2005-10-18  Simon Josefsson  <jas@extundo.com>
79219
79220         * lib/md4.h, lib/md4.c: New files, based on md5.?.
79221
79222 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
79223
79224         * gnulib-tool (func_create_testdir): Omit the second check whether
79225         BUILT_SOURCES in nonempty.
79226
79227 2005-10-17  Simon Josefsson  <jas@extundo.com>
79228
79229         * tests/test-rijndael.c: New file.
79230
79231 2005-10-17  Simon Josefsson  <jas@extundo.com>
79232
79233         * modules/sha1: Depend on stdint instead of md5.
79234
79235         * modules/md5: Depend on stdint, remove uint32_t.
79236
79237 2005-10-17  Simon Josefsson  <jas@extundo.com>
79238
79239         * modules/gc-sha1-tests: New file.
79240
79241         * tests/test-gc-sha1.c: New file.
79242
79243 2005-10-17  Simon Josefsson  <jas@extundo.com>
79244
79245         * m4/md5.m4: Remove call to uint32_t.m4.
79246
79247 2005-10-17  Simon Josefsson  <jas@extundo.com>
79248
79249         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
79250
79251         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
79252         md5.h.
79253
79254         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
79255
79256         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
79257
79258 2005-10-17  Simon Josefsson  <jas@extundo.com>
79259
79260         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
79261
79262 2005-10-17  Simon Josefsson  <jas@extundo.com>
79263
79264         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
79265
79266 2005-10-17  Simon Josefsson  <jas@extundo.com>
79267
79268         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
79269
79270         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
79271
79272 2005-10-17  Bruno Haible  <bruno@clisp.org>
79273
79274         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
79275         that it can also be used in a test.
79276
79277 2005-10-16  Bruno Haible  <bruno@clisp.org>
79278
79279         * gnulib-tool (func_emit_tests_Makefile_am): Also define
79280         TESTS_ENVIRONMENT, so that individual tests can augment it.
79281
79282         * gnulib-tool (func_create_testdir): Use an intermediate target for
79283         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
79284         macros, like $(ALLOCA_H), which cannot be passed through the command
79285         line.
79286
79287 2005-10-15  Simon Josefsson  <jas@extundo.com>
79288
79289         * modules/rijndael-tests: New file.
79290
79291         * modules/rijndael: New file.
79292
79293 2005-10-15  Simon Josefsson  <jas@extundo.com>
79294
79295         * m4/rijndael.m4: New file.
79296
79297 2005-10-15  Simon Josefsson  <jas@extundo.com>
79298
79299         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
79300
79301         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
79302
79303 2005-10-14  Simon Josefsson  <jas@extundo.com>
79304
79305         * tests/test-arcfour.c: New file.
79306
79307         * modules/arcfour, modules/arcfour-tests: New files.
79308
79309 2005-10-14  Simon Josefsson  <jas@extundo.com>
79310
79311         * m4/arcfour.m4: New file.
79312
79313 2005-10-14  Simon Josefsson  <jas@extundo.com>
79314
79315         * lib/arcfour.h, lib/arcfour.c: New files.
79316
79317 2005-10-14  Roland McGrath  <roland@redhat.com>
79318
79319         Import from libc.  [BZ #1331]
79320         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
79321         macro argument.
79322         Reported by Matej Vela <vela@debian.org>.
79323
79324 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
79325
79326         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
79327         include <wchar.h>; no longer needed.
79328
79329 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
79330
79331         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
79332
79333 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
79334         and  Ulrich Drepper  <drepper@redhat.com>
79335
79336         Import from libc.
79337         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
79338         instead of inline stream orientation test and two separate
79339         function calls.  Pay no attention to USE_IN_LIBIO.
79340
79341 2005-10-13  Simon Josefsson  <jas@extundo.com>
79342
79343         * modules/gc-hmac-md5-tests: New file.
79344
79345         * tests/test-gc-hmac-sha1.c: New file.
79346
79347         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
79348
79349         * modules/gc-hmac-md5-tests: New file.
79350
79351         * tests/test-gc-md5.c: New file.
79352
79353         * modules/gc-md5-tests: New file.
79354
79355 2005-10-13  Simon Josefsson  <jas@extundo.com>
79356
79357         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
79358         Move memory allocation outside of loop.
79359
79360 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
79361
79362         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
79363         intermediate directory is in a read-only file system.  Problem
79364         reported by Eric Blake.
79365
79366 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
79367
79368         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
79369
79370 2005-10-12  Simon Josefsson  <jas@extundo.com>
79371
79372         * tests/test-hmac-sha1.c: New file.
79373
79374         * modules/hmac-sha1-tests: New file.
79375
79376         * modules/hmac-sha1: New file.
79377
79378 2005-10-12  Simon Josefsson  <jas@extundo.com>
79379
79380         * modules/gc-sha1: New file.
79381
79382 2005-10-12  Simon Josefsson  <jas@extundo.com>
79383
79384         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
79385
79386         * tests/test-gc-pbkdf2-sha1.c: New file.
79387
79388 2005-10-12  Simon Josefsson  <jas@extundo.com>
79389
79390         * modules/gc-md5, modules/gc-hmac-md5: New files.
79391
79392         * modules/gc (Files): Remove md5, memxor and hmac files.
79393
79394 2005-10-12  Simon Josefsson  <jas@extundo.com>
79395
79396         * m4/gc-pbkdf2-sha1.m4: New file.
79397
79398         * m4/gc-hmac-sha1.m4: New file.
79399
79400         * m4/gc-sha1: New file.
79401
79402         * m4/hmac-sha1.m4: New file.
79403
79404 2005-10-12  Simon Josefsson  <jas@extundo.com>
79405
79406         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
79407
79408         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
79409
79410 2005-10-12  Simon Josefsson  <jas@extundo.com>
79411
79412         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
79413         suggested by Bruno Haible <bruno@clisp.org>.
79414
79415 2005-10-12  Simon Josefsson  <jas@extundo.com>
79416
79417         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
79418
79419 2005-10-12  Simon Josefsson  <jas@extundo.com>
79420
79421         * lib/gc-pbkdf2-sha1.c: New file.
79422
79423         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
79424
79425 2005-10-12  Simon Josefsson  <jas@extundo.com>
79426
79427         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
79428
79429         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
79430
79431 2005-10-12  Simon Josefsson  <jas@extundo.com>
79432
79433         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
79434         GC_USE_HMAC_MD5, respectively.
79435
79436         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
79437         (gc_md5): Fix typo.
79438
79439         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
79440
79441         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
79442
79443         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
79444
79445 2005-10-12  Bruno Haible  <bruno@clisp.org>
79446
79447         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
79448         Reported by Stepan Kasal <kasal@ucw.cz>.
79449
79450 2005-10-11  Simon Josefsson  <jas@extundo.com>
79451
79452         * tests/test-crc.c: New file.
79453
79454         * modules/crc, modules/crc-tests: New files.
79455
79456 2005-10-11  Simon Josefsson  <jas@extundo.com>
79457
79458         * m4/crc.m4: New file.
79459
79460 2005-10-11  Simon Josefsson  <jas@extundo.com>
79461
79462         * lib/gc.h: Add gc_hash and gc_hash_buffer.
79463
79464         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
79465
79466         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
79467
79468 2005-10-11  Simon Josefsson  <jas@extundo.com>
79469
79470         * lib/crc.h, lib/crc.c: New files.
79471
79472         * lib/gc.h (gc_hash_buffer): Add doc.
79473
79474 2005-10-11  Bruno Haible  <bruno@clisp.org>
79475
79476         * modules/c-strcasestr: New file.
79477         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
79478
79479 2005-10-11  Bruno Haible  <bruno@clisp.org>
79480
79481         * modules/c-strcase: New file.
79482         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
79483
79484 2005-10-11  Bruno Haible  <bruno@clisp.org>
79485
79486         * lib/strcasecmp.c: Include limits.h.
79487         (strcasecmp): Avoid integer overflow on exotic platforms.
79488         * lib/strncasecmp.c: Include limits.h.
79489         (strncasecmp): Avoid integer overflow on exotic platforms.
79490         Reported by Paul Eggert.
79491
79492 2005-10-11  Bruno Haible  <bruno@clisp.org>
79493
79494         * lib/c-strcasestr.h: New file, from GNU gettext.
79495         * lib/c-strcasestr.c: New file, from GNU gettext.
79496
79497 2005-10-11  Bruno Haible  <bruno@clisp.org>
79498
79499         * lib/c-strcase.h: New file, from GNU gettext.
79500         * lib/c-strcasecmp.c: New file, from GNU gettext.
79501         * lib/c-strncasecmp.c: New file, from GNU gettext.
79502
79503 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
79504
79505         * modules/mempcpy (License): GPL -> LGPL.
79506         * modules/strchrnul (License): Likewise.
79507         * modules/sysexits (License): Likewise.
79508
79509 2005-10-08  Simon Josefsson  <jas@extundo.com>
79510
79511         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
79512
79513 2005-10-07  Simon Josefsson  <jas@extundo.com>
79514
79515         * m4/memxor.m4: Remove gl_C_RESTRICT call.
79516
79517 2005-10-06  Simon Josefsson  <jas@extundo.com>
79518
79519         * tests/test-hmac-md5.c: New file.
79520
79521         * modules/hmac-md5-tests: New file.
79522
79523         * modules/hmac-md5: New file.
79524
79525 2005-10-06  Simon Josefsson  <jas@extundo.com>
79526
79527         * m4/hmac-md5.m4: New file.
79528
79529         * m4/memxor.m4: Require gl_C_RESTRICT.
79530
79531 2005-10-06  Simon Josefsson  <jas@extundo.com>
79532
79533         * lib/memxor.c (memxor): Avoid casts and warnings.
79534
79535 2005-10-06  Simon Josefsson  <jas@extundo.com>
79536
79537         * lib/hmac-md5.c: New file.
79538
79539         * lib/hmac.h: New file.
79540
79541 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
79542
79543         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
79544         promotes to int, not unsigned int, to catch the AIX 5.3
79545         compiler bug.
79546
79547 2005-10-05  Simon Josefsson  <jas@extundo.com>
79548
79549         * modules/memxor: New file.
79550
79551         * modules/iconv (Files): Move config.rpath to havelib, it is used
79552         there.
79553
79554         * modules/havelib (Files): Add config.rpath.
79555
79556 2005-10-05  Simon Josefsson  <jas@extundo.com>
79557
79558         * m4/memxor.m4: New file.
79559
79560 2005-10-05  Simon Josefsson  <jas@extundo.com>
79561
79562         * lib/memxor.c (memxor): Fix compiler error.
79563
79564         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
79565         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
79566
79567         * lib/memxor.h, lib/memxor.c: New files.
79568
79569         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
79570         we assume all systems have it, suggested by Jim Meyering
79571         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
79572         any systems lack sys/socket.h; mingw32 is known to lack it, but we
79573         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
79574         same reasons.
79575
79576 2005-10-05  Simon Josefsson  <jas@extundo.com>
79577
79578         * config/srclist.txt: Add glibc bug 1423 for md5.h.
79579
79580 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
79581
79582         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
79583         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
79584         needed, since the source code now assumes these .h files.
79585
79586 2005-10-05  Derek Price  <derek@ximbiot.com>
79587
79588         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
79589
79590 2005-10-05  Bruno Haible  <bruno@clisp.org>
79591
79592         * modules/stdint (License): Change to LGPL.
79593
79594 2005-10-04  Simon Josefsson  <jas@extundo.com>
79595
79596         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
79597         D. Baushke" <mdb@gnu.org>.
79598
79599 2005-10-04  Bruno Haible  <bruno@clisp.org>
79600
79601         * lib/verify.h (verify_true): Provide alternative definition for C++.
79602
79603 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
79604
79605         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
79606         (SSIZE_MAX): New macro, if not already defined.
79607         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
79608         than 2 GiB.
79609
79610 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79611
79612         Sync from coreutils.
79613         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
79614         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
79615         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
79616         ULLONG_MAX doesn't work with 2.7.2.1.
79617
79618 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79619
79620         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
79621         From Ben Pfaff.
79622
79623         * modules/exclude (Depends-on): Depend on verify.
79624         * modules/strtoimax (Depends-on): Likewise.
79625         * modules/utimecmp (Depends-on): Likewise.
79626
79627 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79628
79629         * lib/exclude.c: Include verify.h.
79630         (verify): Remove.  All callers changed to use verify.h's version.
79631         * lib/strtoimax.c: Likewise.
79632         * lib/utimecmp.c: Likewis.e
79633
79634         Sync from coreutils.
79635         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
79636         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
79637         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
79638         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
79639         bother returning ENOSYS if settimeofday or stime fails; just let
79640         them return whatever errno they want to return.
79641         * lib/utimens.c: Include unistd.h, for dup2.
79642         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
79643         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
79644
79645 2005-10-02  Jim Meyering  <jim@meyering.net>
79646
79647         Sync from coreutils.
79648         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
79649         from glibc-2.2.5 that fails for read-only files.
79650
79651 2005-10-02  Jim Meyering  <jim@meyering.net>
79652
79653         Sync from coreutils.
79654         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
79655         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
79656         `#if HAVE_CONFIG_H'.
79657         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
79658         Remove AT_FDCWD test.
79659         Do not consume the fd unless successful.
79660         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
79661         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
79662         block, so that we don't even try to compile it if settimeofday is
79663         available.  This works around a compilation failure on OSF1 V5.1,
79664         due to stime requiring a `long int*' while tv_sec is `int'.
79665
79666 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
79667
79668         Sync from coreutils.
79669         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
79670         against `yes', rather than just testing for nonempty.
79671
79672 2005-10-01  Simon Josefsson  <jas@extundo.com>
79673
79674         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
79675         and Darwin.
79676
79677         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
79678         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
79679         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
79680         freeaddrinfo and gai_strerror are declared by the POSIX headers.
79681         Check if struct addrinfo is declared.
79682
79683 2005-10-01  Simon Josefsson  <jas@extundo.com>
79684
79685         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
79686         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
79687         AI_* and EAI_* definitions.  Protect function declarations.
79688
79689 2005-10-01  Jim Meyering  <jim@meyering.net>
79690
79691         Sync from coreutils.
79692
79693         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
79694         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
79695         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
79696         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
79697         in the inet and nsl libraries.  Required on Solaris 5.7.
79698
79699 2005-10-01  Jim Meyering  <jim@meyering.net>
79700
79701         Sync from coreutils.
79702         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
79703         in the inet and nsl libraries.  Required on Solaris 5.7.
79704
79705 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
79706
79707         * lib/getdelim.c (getdelim): Remove unused variables.
79708
79709 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
79710
79711         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
79712         so that the code works even with ancient cpp.  Portability problem
79713         with GCC 2.7.2.1 reported by Thomas M.Ott.
79714
79715 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
79716
79717         * modules/regex (Depends-on): Add strcase.
79718
79719         * modules/gethostname (Licence): Change from GPL to LGPL, since
79720         gethostname.c is a trivial implementation of a standard library
79721         function.
79722         * modules/poll (License): Change from GPL to LGPL, since it's
79723         derived from LGPL code.
79724
79725 2005-09-27  Jim Meyering  <jim@meyering.net>
79726
79727         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
79728         HAVE_CONFIG_H.
79729
79730         * lib/intprops.h (signed_type_or_expr__): Define.
79731         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
79732         for unsigned types.
79733
79734 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
79735
79736         * lib/verify.h (verify_expr): Remove, replacing with:
79737         (verify_true): New macro that returns true instead of void.
79738         (verify_type__): Remove.
79739         (verify): Use verify_true rather than verify_type__.
79740
79741 2005-09-26  Bruno Haible  <bruno@clisp.org>
79742
79743         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
79744         is necessary.
79745         (lib_SOURCES): Remove mbchar.c.
79746         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
79747         (Files): Add m4/mbrtowc.m4.
79748         * modules/mbiter: Likewise.
79749         * modules/mbuiter: Likewise.
79750
79751 2005-09-26  Bruno Haible  <bruno@clisp.org>
79752
79753         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
79754         compile mbchar.c if they are not both present.
79755         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
79756         * m4/mbiter.m4 (gl_MBITER): Likewise.
79757         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
79758         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
79759         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
79760
79761 2005-09-25  Jim Meyering  <jim@meyering.net>
79762
79763         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
79764         also uses socklen_t.
79765
79766 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
79767
79768         * lib/utimens.c (ENOSYS): Define if not already defined.
79769         (futimens): Support having a null PATH if the file descriptor
79770         is nonnegative.
79771
79772         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
79773         Remove.
79774         (__attribute): Define to empty unless GCC 3.1 or later.
79775         This works around a core dump on OpenBSD 3.4, which has GCC
79776         2.95.3, which dumps core when given __attribute__(()).  It also
79777         simplifies other tests, since we really don't want to bother with
79778         worrying about which ancient version of GCC supported what.
79779         Original problem reported by Yoann Vandoorselaere, with part of
79780         the fix suggested by Derek Price.
79781
79782 2005-09-24  Jim Meyering  <jim@meyering.net>
79783
79784         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
79785         so we can once again use a positive bitfield width of 1 -- now we
79786         don't have to explain why we were using a bitfield width of 2.
79787
79788 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
79789
79790         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
79791         and similarly for the other external symbols.  Problem reported
79792         by James Gallager.
79793
79794         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
79795         bug reported by Jim Meyering.
79796
79797         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
79798         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
79799         not needed, since socklen is a prerequisite module.
79800
79801 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
79802
79803         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
79804         Problem reported by Eric Blake.
79805         (getaddrinfo): Initialize se so that it's not garbage.
79806         Redo internal storage allocation so that it doesn't make unportable
79807         assumptions about alignment.
79808         Fix a memory leak.
79809
79810         * lib/utimens.c (futimens): Use futimesat if available.
79811         Prefer it to futimes since it doesn't have the futimes bug.
79812
79813         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
79814         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
79815         Instead, declare a function that returns a pointer to an array,
79816         and use verify_type__ to declare the size of the array.
79817         Problem and germ of a solution reported by Bruno Haible.
79818         (verify_type__): Use 2, not 1, for bitfield size, to avoid
79819         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
79820
79821 2005-09-23  Jim Meyering  <jim@meyering.net>
79822
79823         Sync from coreutils.
79824         Correct build failure (socklen_t not defined) on at least
79825         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
79826         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
79827
79828 2005-09-23  Jim Meyering  <jim@meyering.net>
79829
79830         * modules/getaddrinfo (Depends-on): Add socklen.
79831
79832 2005-09-23  Bruno Haible  <bruno@clisp.org>
79833
79834         * tests/test-verify.c: New file.
79835
79836 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79837
79838         Sync from coreutils.
79839
79840         * modules/argmatch (Depends-on): Add verify.
79841         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
79842         unistd-safer.
79843         * modules/save-cwd (Depends-on): Likewise.
79844
79845         * modules/openat (Files): Add lib/openat-die.c.
79846         (Depends-on): Remove error, exitfail.
79847         Add dirname.
79848
79849         * modules/verify: New file.
79850         * MODULES.html.sh (Diagnostics <assert.h>): New section,
79851         with "verify" module.
79852
79853 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79854
79855         Sync from coreutils.
79856
79857         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
79858         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
79859         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
79860         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
79861         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
79862         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
79863         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
79864         Don't bother checking for string.h, stdlib.h, unistd.h.
79865         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
79866         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
79867         module's job.
79868         * m4/jm-macros.m4 (gl_MACROS): Likewise.
79869         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
79870
79871         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
79872         (gl_GETDATE): Use it.
79873
79874         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
79875
79876 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79877
79878         Sync from coreutils.
79879
79880         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
79881         stat-time.h.
79882         * lib/argmatch.h: Include verify.h
79883         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
79884         (ARGMATCH_ASSERT): Remove; unused.
79885         * lib/canonicalize.c: Assume STDC_HEADERS.
79886         * lib/exclude.c: Include "strcase.h".
79887         * lib/regex_internal.h [!defined _LIBC]: Likewise.
79888         * lib/getusershell.c: Include stdio--.h rather than stdio.h
79889         and stdio-safer.h.
79890         (getusershell): Call fopen, not fopen_safer.
79891         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
79892         Do not include unistd-safer.h.
79893         (save_cwd): Don't call fd_safer; no longer needed
79894         now that we include fcntl--.h.
79895
79896         * lib/getdate.y (relative_time): New type.
79897         (RELATIVE_TIME_0): New constant.
79898         (parser_control): Use relative_time instead of doing it ourselves.
79899         (%union): Add new relative_time rel member.
79900         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
79901         Now typeless.
79902         (relunit, relunit_snumber): Now of type rel.
79903         (zone, rel, relunit, get_date): Adjust to above changes.
79904
79905         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
79906         Do not include unistd-safer.h.
79907         (getloadavg): Don't call fd_safer; no longer needed
79908         now that we include fcntl--.h.
79909
79910         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
79911         (make_dir_parents): Treat ENOSYS like EEXIST.
79912
79913         Improve quality of diagnostics on restore_cwd failure.
79914         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
79915         (make_dir_parents): Last arg is now int * (for errno), not bool *.
79916         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
79917         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
79918         each time through the loop.  Do not diagnose restore_cwd failure;
79919         that is the caller's job (and perhaps the caller does not care).
79920
79921         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
79922         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
79923         If the file already exists but is not a directory, don't bother
79924         to try to make its parents.
79925         Close potential file descriptor leak if we can't chdir("/") (!).
79926         Don't always return true if chdir($PWD) fails; return true only
79927         if the requested action was done successfully (except for the
79928         chdir($PWD)).
79929         Don't log final directory unless we actually made it.
79930         Refactor to avoid duplicate code to fix up permissions.
79931         Don't attempt to fix up parent permissions if chdir($PWD) fails.
79932
79933         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
79934         to make it a bit faster and (I hope) clearer.
79935         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
79936         Fix bug in formats like %2N.
79937
79938         * lib/verify.h: New file.
79939
79940 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79941
79942         Sync from coreutils.
79943         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
79944
79945 2005-09-22  Jim Meyering  <jim@meyering.net>
79946
79947         Sync from coreutils.
79948
79949         * m4/lstat.m4 (gl_FUNC_LSTAT):
79950         Use AC_LIBSOURCES to require lstat.c and lstat.h.
79951         Remove obsolete comment.
79952         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
79953         * m4/xstrtod.m4: Likewise.
79954
79955         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
79956
79957 2005-09-22  Jim Meyering  <jim@meyering.net>
79958
79959         Sync from coreutils.
79960
79961         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
79962
79963         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
79964         the .tm_year member, since otherwise gcc-4.0 would now warn about
79965         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
79966
79967         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
79968         order to avoid an unsuppressible warning from gcc on 64-bit systems.
79969
79970         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
79971         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
79972         when run in a time zone for which daylight savings time is in effect
79973         for the starting date.
79974
79975         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
79976         stop us from restricting permissions of just-created absolute-named
79977         directories.
79978         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
79979         to restore initial working directory.
79980         * lib/mkdir-p.c (make_dir_parents): New parameter:
79981         different_working_dir, to tell caller if/when we change the working
79982         directory and are unable to return to the initial one.
79983         * lib/mkdir-p.h (make_dir_parents): Update prototype.
79984         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
79985         `return false'.  This fixes a bug introduced on 2004-07-30.
79986
79987         * lib/openat.c (fdopendir): Be sure to close the supplied
79988         file descriptor before returning.  This makes our replacement
79989         implementation a little closer to Solaris's, where fdopendir
79990         ties the file descriptor to the returned DIR* pointer.
79991         * lib/openat.c (unlinkat): New function.
79992         * lib/openat.h (unlinkat): Add prototype.
79993         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
79994         (openat_restore_fail): Rename from openat_restore_die.
79995         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
79996
79997         Provide an alternative to exiting immediately upon save_cwd or
79998         restore_cwd failure.  Now, an application can arrange e.g.,
79999         to perform a longjump in that case.
80000         * lib/openat.c: Include dirname.h.
80001         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
80002         (rpl_openat, fdopendir, fstatat): Call openat_save_die
80003         and openat_restore_die rather than calling error directly.
80004         Don't include "error.h" or "exitfail.h"; they're no longer needed.
80005
80006         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
80007         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
80008         define.
80009
80010         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
80011         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
80012                             int utc, int nanoseconds);
80013         Background:
80014         date should not have to allocate a megabyte of virtual memory to
80015         handle a format argument like +%1048575T.  When implemented with
80016         strftime, it must allocate such a buffer, use strftime to fill it
80017         in, print it, then free it.
80018         With fprintftime, it simply prints everything and exits.
80019         With no need for memory allocation, that's one fewer way to fail.
80020         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
80021         optional field width, not before, so we accept %9:z, not %:9z.
80022         (my_strftime): Be sure to use L_('x') for literals.
80023
80024         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
80025         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
80026         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
80027         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
80028         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
80029         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
80030         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
80031         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
80032         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
80033         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
80034         * lib/xgethostname.c, lib/xreadlink.c:
80035         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
80036
80037         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
80038         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
80039         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
80040         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
80041         and don't include <sys/file.h>).
80042
80043 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
80044
80045         Sync from coreutils.
80046
80047         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
80048         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
80049         [!LDAV_DONE]: Avoid unused variable warning.
80050
80051 2005-09-21  Bruno Haible  <bruno@clisp.org>
80052
80053         * lib/unicodeio.h (unicode_to_mb): New declaration.
80054
80055 2005-09-20  Derek Price  <derek@ximbiot.com>
80056
80057         * lib/getaddrinfo.c: Don't include <netdb.h> included from
80058         getaddrinfo.h.
80059
80060 2005-09-20  Bruno Haible  <bruno@clisp.org>
80061
80062         * gnulib-tool: Remove trailing slashes from the values specified for
80063         --source-base, --m4-base, --tests-base, --aux-dir.
80064         Suggested by Simon Josefsson <jas@extundo.com>.
80065
80066 2005-09-20  Bruno Haible  <bruno@clisp.org>
80067
80068         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
80069         func_modules_to_filelist, func_import, func_create_testdir): Make all
80070         sorting results locale-independent, so that gnulib-cache.m4 doesn't
80071         change when gnulib-tool is invoked in a different locale.
80072
80073 2005-09-19  Simon Josefsson  <jas@extundo.com>
80074
80075         * m4/socklen.m4: Fix typo.
80076
80077 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80078
80079         Use a consistent style for including <config.h>.
80080         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
80081         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
80082         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
80083         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
80084         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
80085         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
80086         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
80087         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
80088         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
80089         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
80090         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
80091         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
80092         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
80093         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
80094         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
80095         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
80096         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
80097         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
80098         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
80099         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
80100         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
80101         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
80102         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
80103         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
80104         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
80105         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
80106         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
80107         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
80108         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
80109         lib/xstrtoumax.c, lib/yesno.c:
80110         Standardize inclusion of config.h.
80111         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
80112         lib/inttostr.h:  Removed inclusion of config.h from header files.
80113         * lib/inttostr.c:  Adjusted in-tree users.
80114         * lib/timespec.h: Remove superfluous warning to include config.h.
80115         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
80116         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
80117         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
80118         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
80119         config.h with HAVE_CONFIG_H.
80120
80121 2005-09-19  Jim Meyering  <jim@meyering.net>
80122
80123         * modules/pathmax (License): Change to LGPL.
80124
80125 2005-09-19  Derek Price  <derek@ximbiot.com>
80126
80127         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
80128
80129 2005-09-19  Bruno Haible  <bruno@clisp.org>
80130
80131         * gnulib-tool (import): Provide default for --tests-base.
80132
80133 2005-09-19  Bruno Haible  <bruno@clisp.org>
80134
80135         * doc/quote.texi: New file, extracted from gnulib.texi.
80136         * doc/ctime.texi: New file, extracted from gnulib.texi.
80137         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
80138         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
80139         * doc/gnulib.texi: Include them.
80140
80141 2005-09-18  Bruno Haible  <bruno@clisp.org>
80142
80143         Portability fix.
80144         * gnulib-tool (func_readlink): New function.
80145         (func_ln_if_changed): Use it.
80146
80147 2005-09-18  Bruno Haible  <bruno@clisp.org>
80148
80149         * gnulib-tool: Support --with-tests also with --import.
80150         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
80151         (func_import): Use variables $testsbase and $inctests. Emit a
80152         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
80153         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
80154         SUBDIRS += $testsdir.
80155         (func_create_testdir): Update.
80156
80157 2005-09-18  Bruno Haible  <bruno@clisp.org>
80158
80159         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
80160         instead of $dry_run.
80161         (func_cp_if_changed, func_mv_if_changed): Remove functions.
80162         (func_ln_if_changed): Don't handle dry-run here.
80163         (func_import): In dry-run mode, detect more precisely which actions
80164         would be performed, and don't use "...ing" verbs.
80165
80166 2005-09-18  Bruno Haible  <bruno@clisp.org>
80167
80168         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
80169         (func_import): Use join on two temporary files instead of three nested
80170         loops, in order to determine which files are new or old.
80171
80172 2005-09-18  Bruno Haible  <bruno@clisp.org>
80173
80174         * gnulib-tool (func_import): Comment out code that spits out the
80175         new files with --dry-run.
80176
80177 2005-09-18  Bruno Haible  <bruno@clisp.org>
80178
80179         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
80180
80181 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80182
80183         * lib/stat-time.h: New file.
80184         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
80185         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
80186         in a different way.
80187         (timespec_cmp): New function.
80188         * lib/utimecmp.c: Include stat-time.h.
80189         (SYSCALL_RESOLUTION): Depend on whether various struct stat
80190         members exist, not on the obsolescent ST_MTIM_NSEC.
80191         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
80192
80193 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80194
80195         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
80196
80197 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80198
80199         * MODULES.html.sh (File system functions): Add stat-time.
80200         * modules/stat-time: New file.
80201         * modules/timespec (Files): Remove m4/st_mtim.m4; this
80202         is now done in a different way, by the stat-time module.
80203         * modules/utimecmp (Depends-on): Add stat-time.
80204
80205 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
80206
80207         * m4/st_mtim.m4: Remove.  Superseded by...
80208         * m4/stat-time.m4: New file.
80209         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
80210         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
80211
80212 2005-09-15  Derek Price  <derek@ximbiot.com>
80213
80214         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
80215
80216 2005-09-15  Derek Price  <derek@ximbiot.com>
80217
80218         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
80219         * lib/regex_internal.c: Ditto, using this...
80220         (__GNUC_PREREQ): ...new macro.
80221         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
80222         using...
80223         (__GNUC_PREREQ): ...this new macro.
80224
80225         * lib/strstr.h: Include string.h. Define strstr as a macro here.
80226
80227 2005-09-15  Derek Price  <derek@ximbiot.com>
80228             Paul Eggert  <eggert@cs.ucla.edu>
80229
80230         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
80231         changes, consolidating in...
80232         * lib/regex_internal.h: ...this file.
80233
80234 2005-09-13  Jim Meyering  <jim@meyering.net>
80235
80236         * lib/canon-host.c: Filter through gnu indent and reword comments
80237         slightly.
80238         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
80239
80240 2005-09-13  Derek Price  <derek@ximbiot.com>
80241
80242         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
80243         failure.
80244         Reported by Jim Meyering  <jim@meyering.net>.
80245
80246 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
80247
80248         * lib/base64.c: Typo.
80249         (base64_encode): Put b64str in initialized data section.
80250
80251 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
80252
80253         Merge glibc and coreutils changes into gnulib, plus a few
80254         extra fixes.
80255         * lib/md5.c: Use #error rather than a string.
80256         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
80257         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
80258         (__attribute__): Define to empty for non recent-GCC.
80259         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
80260         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
80261         Renamed from their non-__ counterparts, with new macros replacing
80262         them if not _LIBC.  Add __THROW attribute.
80263         (rol): Remove.
80264         (struct md5_ctx): Align buffer if using GCC.
80265         * lib/sha1.h (struct sha1_ctx): Likewise.
80266         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
80267         The old name was backwards.
80268         (NOTSWAP): Remove; not used.
80269         (rol): New macro, moved here from md5.h.
80270         (sha1_process_block): Remove a FIXME that doesn't make sense.
80271
80272 2005-09-12  Derek Price  <derek@ximbiot.com>
80273
80274         Return usable errors from canon-host.
80275         * lib/canon-host.h: New file.
80276         * lib/canon-host.c (canon_host): Wrap...
80277         (canon_host_r): ...this new function, which now relies exclusively on
80278         getaddrinfo.
80279         (ch_strerror): New function.
80280         (last_cherror): New global.
80281         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
80282         interface.
80283         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
80284         void *.
80285         (freeaddrinfo): Free ai->ai_canonname when set.
80286
80287 2005-09-12  Derek Price  <derek@ximbiot.com>
80288
80289         Make canon-host require getaddrinfo.
80290         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
80291         AC_LIBSOURCE canon-host.h.  Call...
80292         (gl_PREREQ_CANON_HOST): ...this new function, which requires
80293         gl_GETADDRINFO.
80294         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
80295
80296 2005-09-12  Derek Price  <derek@ximbiot.com>
80297
80298         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
80299         LGPL.
80300         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
80301
80302 2005-09-12  Derek Price  <derek@ximbiot.com>
80303
80304         * lib/gai_strerror.c: Include config.h when available.  Include
80305         getaddrinfo.h before other headers to test interface.
80306         Reported by Larry Jones <lawrence.jones@ugs.com>.
80307
80308 2005-09-12  Derek Price  <derek@ximbiot.com>
80309             Paul Eggert  <eggert@cs.ucla.edu>
80310
80311         * modules/glob (Files): Add glob-libc.h.
80312
80313 2005-09-12  Derek Price  <derek@ximbiot.com>
80314             Paul Eggert  <eggert@cs.ucla.edu>
80315
80316         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
80317         glob_.h, glob-libc.h.
80318         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
80319
80320 2005-09-12  Derek Price  <derek@ximbiot.com>
80321             Paul Eggert  <eggert@cs.ucla.edu>
80322
80323         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
80324         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
80325         protecting things that should be done only in gnulib contexts.
80326         * lib/glob_.h: New file, containing only the glob things needed for
80327         gnulib.
80328         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
80329         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
80330         (glob, globfree, glob_pattern_p): Now defined simply in terms of
80331         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
80332         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
80333         and to respect the namespace rules better.
80334
80335 2005-09-08  Simon Josefsson  <jas@extundo.com>
80336
80337         * modules/socklen: New file.
80338
80339 2005-09-08  Simon Josefsson  <jas@extundo.com>
80340
80341         * m4/socklen.m4: New file.
80342
80343 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80344
80345         * modules/utimens (Files): Add m4/utimbuf.m4, since
80346         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
80347         Reported by Sergey Poznyakoff.
80348
80349 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80350
80351         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
80352         definitions, since that's the preferred style in glibc.
80353         Fix a minor spacing issue, and update copyright notice to match
80354         glibc's.
80355
80356 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80357
80358         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
80359
80360 2005-09-06  Simon Josefsson  <jas@extundo.com>
80361
80362         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
80363         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
80364
80365 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80366
80367         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
80368         warning.
80369
80370 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80371
80372         * config/srclist.txt: Add glibc bug 1302.
80373
80374 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
80375
80376         Change bitset word type from unsigned int to unsigned long int,
80377         as this has better performance on typical 64-bit hosts.
80378         Port bitset code to hosts with unusual word sizes.
80379         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
80380         (build_collating_symbol):
80381         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
80382         argument is a bitset.  This is merely a style issue, but it makes
80383         it clearer that an entire array is expected.
80384         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
80385         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
80386         Port to the case where bitset_word is not the same as unsigned int.
80387         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
80388         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
80389         Likewise.
80390         * lib/regexec.c (check_dst_limits_calc_pos_1,
80391         check_subexp_matching_top):
80392         (build_trtable, group_nodes_into_DFAstates):
80393         Likewise.
80394         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
80395         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
80396         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
80397         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
80398         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
80399         * lib/regcomp.c (optimize_subexps, lower_subexp):
80400         Work even if bitset_word has holes in its bitwise representation.
80401         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
80402         * lib/regexec.c (check_dst_limits_calc_pos_1,
80403         check_subexp_matching_top):
80404         Likewise.
80405         * lib/regex_internal.c (re_string_reconstruct):
80406         Don't assume UCHAR_MAX == 255.
80407         * lib/regex_internal.h (bitset_set_all): Likewise.
80408         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
80409         All uses changed.
80410         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
80411         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
80412         All uses changed.
80413         (BITSET_WORD_MAX): New macro.
80414         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
80415         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
80416         (bitset_empty, bitset_copy):
80417         Prefer sizeof (bitset) to multiplying it out ourselves.
80418         (bitset_not_merge): Remove; unused.
80419         (bitset_contain): Return bool, not unsigned int with one bit on.
80420         All callers changed.
80421         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
80422         alignment than re_node_set; do this by defining a new internal
80423         type struct dests_alloc and using it to allocate memory.
80424
80425 2005-09-05  Bruno Haible  <bruno@clisp.org>
80426
80427         * gnulib-tool (func_import): Fix comparison in handling of symbolic
80428         links.
80429
80430 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
80431
80432         * modules/size_max (Makefile.am): Add size_max.h
80433
80434 2005-09-04  Derek Price  <derek@ximbiot.com>
80435
80436         * gnulib-tool (func_import): Fix reversed $symbolic logic.
80437
80438 2005-09-03  Simon Josefsson  <jas@extundo.com>
80439
80440         * gnulib-tool: Fix typo.
80441
80442 2005-09-03  Simon Josefsson  <jas@extundo.com>
80443
80444         * config/srclist.txt: Add glibc bug 1293.
80445
80446 2005-09-03  Derek Price  <derek@ximbiot.com>
80447
80448         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
80449         From Larry Jones <lawrence.jones@ugs.com>.
80450
80451 2005-09-02  Simon Josefsson  <jas@extundo.com>
80452
80453         * modules/socklen: New file.
80454
80455 2005-09-02  Simon Josefsson  <jas@extundo.com>
80456
80457         * modules/havelib: New module.
80458
80459         * modules/gettext, modules/iconv, modules/lock, modules/readline:
80460         Use havelib.
80461
80462 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
80463
80464         Check for arithmetic overflow when calculating sizes, to prevent
80465         some buffer-overflow issues.  These patches are conservative, in the
80466         sense that when I couldn't determine whether an overflow was possible,
80467         I inserted a run-time check.
80468         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
80469         macros.
80470         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
80471         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
80472         (re_xnrealloc, re_x2nrealloc): New inline functions.
80473         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
80474         parse_bracket_exp):
80475         (build_equiv_class, build_charclass): Check for arithmetic overflow
80476         in size expression calculations.
80477         * lib/regex_internal.c (re_string_realloc_buffers):
80478         (build_wcs_upper_buffer, re_node_set_add_intersect):
80479         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
80480         (re_dfa_add_node, register_state): Likewise.
80481         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
80482         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
80483         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
80484         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
80485
80486 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
80487
80488         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
80489         m4/ulonglong.m4.  Problem reported by Martin Lambers.
80490
80491 2005-09-02  Bruno Haible  <bruno@clisp.org>
80492
80493         Support for lib vs. lib64 distinction on biarch platforms.
80494         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
80495         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
80496         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
80497
80498 2005-09-02  Bruno Haible  <bruno@clisp.org>
80499
80500         * gnulib-tool (import): In the other first-use case, provide defaults
80501         as well.
80502
80503 2005-09-02  Bruno Haible  <bruno@clisp.org>
80504
80505         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
80506         patches not yet found in the latest gettext release.
80507
80508 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
80509
80510         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
80511         to avoid a collision with bits/local_lim.h in glibc.
80512         All uses changed.  Problem reported by Dmitry V. Levin in
80513         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
80514
80515         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
80516         bugs in int versus size_t comparisons.
80517         (re_string_context_at): Fix bug where the code assumed that
80518         Idx is signed.
80519
80520         Use bool where appropriate.
80521         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
80522         All callers changed.
80523         (calc_eclosure_iter): Likewise, for ROOT arg.
80524         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
80525         (build_charclass_op): Likewise, for NON_MATCH arg.
80526         * lib/regex_internal.c (re_string_allocate, re_string_construct):
80527         (re_string_construct_common): Likewise, for ICASE arg.
80528         * lib/regexec.c (re_search_2_stub, re_search_stub):
80529         Likewise, for RET_LEN arg.
80530         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
80531         (set_regs): Likewise, for FL_BACKTRACK arg.
80532         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
80533         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
80534         (calc_eclosure_iter, parse_bracket_exp):
80535         Use bool for internal variables that are booleans.
80536         * lib/regexec.c (re_search_internal, check_matching,
80537         proceed_next_node):
80538         (set_regs, build_sifted_states, sift_states_bkref):
80539         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
80540         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
80541         (find_collation_sequence_value):
80542         Likewise.
80543         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
80544         (re_node_set_compare):
80545         Return bool, not int. All callers changed.
80546         * lib/regexec.c (check_halt_node_context, check_dst_limits):
80547         (build_trtable, check_node_accept): Likewise.
80548         * lib/regex_internal.h: Include stdbool.h.
80549
80550         Fix bugs uncovered when converting to bool.
80551         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
80552         failure instead of charging ahead blindly.
80553         * lib/regex_internal.c (register_state): Likewise.
80554         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
80555         for freeing internal storage.
80556         (group_nodes_into_DFA_states): Use unsigned int, not int, for
80557         bitset pieces used as boolean, to avoid undefined behavior
80558         on hosts that do int overflow checking.
80559
80560 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
80561
80562         * config/srclist.txt: Add glibc bugs 1285-1287.
80563
80564 2005-09-01  Jim Meyering  <jim@meyering.net>
80565
80566         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
80567         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
80568         Require gl_STAT_MACROS, too.
80569
80570 2005-09-01  Bruno Haible  <bruno@clisp.org>
80571
80572         * gnulib-tool (import): In the first-use case, provide defaults.
80573
80574 2005-09-01  Bruno Haible  <bruno@clisp.org>
80575
80576         * gnulib-tool (func_import): Remove the .tmp files.
80577
80578 2005-09-01  Bruno Haible  <bruno@clisp.org>
80579
80580         * gnulib-tool (func_import): Fix handling of symbolic links.
80581
80582 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80583
80584         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
80585         old glibc regex code mishandles strings longer than 2**31 bytes.
80586         This patch fixes this when the regex code is used in gnulib
80587         (i.e., outside glibc).
80588
80589         This patch should not affect the use of the regex code inside
80590         glibc.  No doubt this problem also needs to be handled for glibc
80591         as well, but the result will be an incompatible change to the
80592         glibc ABI, and the old ABI will have to be supported too.  That
80593         can be the the subject for another patch.
80594
80595         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
80596         governing whether the rest of this patch is active.  By default,
80597         the macro is disabled and the patch has no effect.
80598         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
80599         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
80600         (struct re_pattern_buffer, re_search, re_search_2, re_match):
80601         (re_match_2, re_set_registers): Use the new types.
80602         * lib/regex_internal.h (Idx, re_hashval_t): New types.
80603         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
80604         New macros.
80605         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
80606         (re_string_context_at, bin_tree_t, re_dfastate_t):
80607         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
80608         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
80609         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
80610         (re_string_char_size_at, re_string_wchar_at):
80611         (re_string_elem_size_at):
80612         Use the new types and macros to port to 64-bit hosts.
80613         Use unsigned types for internal values, so that the code
80614         mostly works even for arrays larger than SSIZE_MAX.
80615         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
80616         (search_duplicated_node, calc_eclosure_iter, fetch_number):
80617         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
80618         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
80619         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
80620         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
80621         (calc_inveclosure, parse_dup_op, build_range_exp):
80622         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
80623         (fetch_number, create_token_tree, mark_opt_subexp):
80624         Likewise.
80625         * lib/regex_internal.c (re_string_construct_common,
80626         create_ci_newstate):
80627         (create_cd_newstate, re_string_allocate, re_string_construct):
80628         (re_string_realloc_buffers, build_wcs_upper_buffer):
80629         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
80630         (re_string_reconstruct, re_string_peek_byte_case):
80631         (re_string_fetch_byte_case, re_string_context_at):
80632         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
80633         (re_node_set_init_copy, re_node_set_add_intersect):
80634         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
80635         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
80636         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
80637         (re_acquire_state, re_acquire_state_context, register_state):
80638         Likewise.
80639         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
80640         search_cur_bkref_entry):
80641         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
80642         (re_search_internal, re_search_2_stub, re_search_stub)
80643         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
80644         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
80645         (update_cur_sifted_state, check_dst_limits):
80646         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
80647         (check_subexp_limits, sift_states_bkref, merge_state_array):
80648         (check_subexp_matching_top, get_subexp, get_subexp_sub):
80649         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
80650         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
80651         (expand_bkref_cache, check_node_accept_bytes):
80652         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
80653         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
80654         (acquire_init_state_context, check_halt_node_context):
80655         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
80656         (sift_states_backward, clean_state_log_if_needed):
80657         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
80658         (find_recover_state, transit_state_sb, transit_state_mb):
80659         (transit_state_bkref, build_trtable, match_ctx_clean):
80660         Likewise.
80661         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
80662         to work around an assumption that REG_MISSING is negative.
80663
80664         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
80665         (seek_collating_symbol_entry) [defined _LIBC]:
80666         (lookup_collation_sequence_value) [defined _LIBC]:
80667         (build_range_exp, build_collating_symbol) [defined _LIBC]:
80668         Use prototypes rather than old-style function definitions.
80669         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
80670         (transit_state_sb) [0]:
80671         (find_collation_sequence_value) [defined _LIBC]: Likewise.
80672
80673         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
80674         rm_eo.
80675
80676         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
80677         (optimize_subexps, lower_subexp):
80678         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
80679         since the signed shift might overflow.  Use 1u<<31 instead.
80680         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
80681         Likewise.
80682         * lib/regexec.c (check_dst_limits_calc_pos_1,
80683         check_subexp_matching_top): Likewise.
80684
80685         * lib/regcomp.c (optimize_subexps, lower_subexp):
80686         Use CHAR_BIT rather than 8, for clarity.
80687         * lib/regexec.c (check_dst_limits_calc_pos_1):
80688         (check_subexp_matching_top): Likewise.
80689         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
80690         have to worry about portability issues when shifting it left.
80691         Remove no-longer-needed test for table_size > 0.
80692         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
80693         in a word, as the resulting behavior is undefined.
80694         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
80695         in one case, a <= should have been an <, and in another case the
80696         whole test was missing.
80697         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
80698         the standard name CHAR_BIT.
80699         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
80700         this is not true on one's complement and signed-magnitude hosts.
80701
80702         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
80703         next_last_offset.
80704         (struct re_dfa_t): Remove unused member states_alloc.
80705         * lib/regcomp.c (init_dfa): Don't initialize unused members.
80706
80707 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80708
80709         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
80710         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
80711         and large-file glibc and in 32-bit large-file Solaris.
80712
80713 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80714
80715         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
80716         lengths fit in regoff_t; this isn't true if regoff_t is the same
80717         width as size_t.
80718         * lib/regex.c (re_search_internal): 5th arg is LAST_START
80719         (= START + RANGE) instead of RANGE.  This avoids overflow
80720         problems when regoff_t is the same width as size_t.
80721         All callers changed.
80722         (re_search_2_stub): Check for overflow when adding the
80723         sizes of the two strings.
80724         (re_search_stub): Check for overflow when adding START
80725         to RANGE; if it occurs, substitute the extreme value.
80726
80727 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80728
80729         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
80730
80731 2005-08-31  Jim Meyering  <jim@meyering.net>
80732
80733         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
80734         a pointer-to-const.
80735         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
80736         (register_state): Likewise.
80737         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
80738         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
80739         (group_nodes_into_DFAstates): Likewise.
80740
80741 2005-08-31  Jim Meyering  <jim@meyering.net>
80742
80743         * check-module: Add a FIXME comment.
80744
80745 2005-08-31  Eric Blake  <ebb9@byu.net>
80746
80747         * modules/unistd-safer (Files): Add unistd--.h.
80748         * modules/stdio-safer (Files): Add stdio--.h.
80749
80750 2005-08-31  Derek Price  <derek@ximbiot.com>
80751
80752         * lib/getdelim.c (getdelim): Return EOF on EOF.
80753         Reported by Larry Jones <lawrence.jones@ugs.com>.
80754
80755 2005-08-31  Bruno Haible  <bruno@clisp.org>
80756
80757         Avoid unnecessary diffs in the generated lib/Makefile.am.
80758         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
80759         the generated files.
80760         (func_import): Don't set cmd.
80761
80762 2005-08-31  Bruno Haible  <bruno@clisp.org>
80763
80764         * lib/strstr.c: Include <stddef.h>, for NULL.
80765         * lib/strcasestr.c: Likewise.
80766         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
80767
80768 2005-08-31  Bruno Haible  <bruno@clisp.org>
80769
80770         * gnulib-tool: New option --macro-prefix.
80771         (func_import): Use macro_prefix.
80772         (import): Handle option --macro-prefix.
80773
80774 2005-08-31  Bruno Haible  <bruno@clisp.org>
80775
80776         * gnulib-tool (import): Rename most ac_* variables to cached_*.
80777         Also use new variables cached_lgpl, cached_libtool.
80778
80779 2005-08-31  Bruno Haible  <bruno@clisp.org>
80780
80781         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
80782         always instantiating them.
80783
80784 2005-08-31  Bruno Haible  <bruno@clisp.org>
80785
80786         * gnulib-tool (func_import): Read the previous cached settings
80787         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
80788         earlier added by gnulib but are now dropped. Warn when a gnulib file
80789         overwrites a non-gnulib file.
80790
80791 2005-08-31  Bruno Haible  <bruno@clisp.org>
80792
80793         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
80794         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
80795         projects that don't keep autogenerated files in CVS. Put into
80796         actioncmd only the specified modules, not the transitive closure.
80797
80798 2005-08-31  Bruno Haible  <bruno@clisp.org>
80799
80800         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
80801         Create directories that shall be filled.
80802         (import): Don't look for gl_* macros in configure.ac. Recurse across
80803         all directories containing a gnulib-cache.m4 files, if meaningful.
80804
80805 2005-08-31  Bruno Haible  <bruno@clisp.org>
80806
80807         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
80808         (import): Set seen_libtool when we see gl_LIBTOOL.
80809
80810 2005-08-31  Bruno Haible  <bruno@clisp.org>
80811
80812         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
80813         declaration macro definitions from generated gnulib.m4.
80814
80815 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
80816
80817         * lib/iconvme.h: Add prototype for iconv_alloc.
80818
80819 2005-08-29  Simon Josefsson  <jas@extundo.com>
80820
80821         * lib/iconvme.c: Fix errno.
80822
80823 2005-08-29  Bruno Haible  <bruno@clisp.org>
80824
80825         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
80826         that it works when the directory contains spaces.
80827
80828 2005-08-29  Bruno Haible  <bruno@clisp.org>
80829
80830         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
80831
80832 2005-08-29  Bruno Haible  <bruno@clisp.org>
80833
80834         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
80835         Emit more advice.
80836
80837 2005-08-29  Bruno Haible  <bruno@clisp.org>
80838         and Stepan Kasal  <kasal@ucw.cz>
80839
80840         * check-module: If more parameters are given, check each of them
80841         separately; add more exceptions, as noted by Jim Meyering.
80842         (check_module): New procedure.
80843         (%exempt_header): Now contains all exceptions.
80844
80845 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
80846
80847         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
80848
80849 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
80850
80851         * lib/iconvme.c: Split iconv_string into iconv_alloc.
80852
80853 2005-08-28  Bruno Haible  <bruno@clisp.org>
80854
80855         * m4/gnulib-tool.m4: New file.
80856
80857 2005-08-27  Jim Meyering  <jim@meyering.net>
80858
80859         * modules/unistd-safer (Files): Add pipe-safer.c.
80860         * modules/fcntl-safer (Files): Add creat-safer.c.
80861
80862 2005-08-27  Jim Meyering  <jim@meyering.net>
80863
80864         * m4/stdlib-safer.m4: New file.  From coreutils.
80865         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
80866         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
80867         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
80868         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
80869         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
80870
80871 2005-08-27  Jim Meyering  <jim@meyering.net>
80872
80873         * lib/fopen-safer.c: Merge minor changes from coreutils.
80874         * lib/dup-safer.c: Likewise.
80875         * lib/fd-safer.c: Likewise.
80876
80877         Merge from coreutils.
80878         * lib/stdio--.h: New file.
80879         * lib/stdlib--.h: New file.
80880         * lib/mkstemp-safer.c: New file.
80881
80882         GNU tar needs these.
80883         * lib/pipe-safer.c: New file.
80884         * lib/creat-safer.c: New file.
80885         * lib/fcntl--.h (creat): Define to creat_safer.
80886         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
80887         * lib/unistd--.h (pipe): Define to pipe_safer.
80888         * lib/unistd-safer.h: Declare pipe_safer.
80889
80890 2005-08-26  Simon Josefsson  <jas@extundo.com>
80891
80892         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
80893         Haible <bruno@clisp.org>.
80894
80895 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
80896
80897         * lib/regex_internal.h: Remove all references to
80898         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
80899         or better.
80900         (bitset_not, bitset_merge, bitset_not_merge):
80901         (bitset_mask, re_string_allocate, re_string_construct):
80902         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
80903         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
80904         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
80905         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
80906         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
80907         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
80908         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
80909         (re_acquire_state_context):
80910         Remove unnecessary forward decls.
80911         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
80912         Put __attribute at function definition,
80913         now that the function decl has been removed.
80914         * lib/regex_internal.c (re_string_peek_byte_case):
80915         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
80916         Likewise.
80917
80918 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
80919
80920         * m4/regex.m4: Add AC_PREREQ(2.50).
80921         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
80922
80923 2005-08-25  Simon Josefsson  <jas@extundo.com>
80924
80925         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
80926         __fsetlocking.
80927
80928 2005-08-25  Simon Josefsson  <jas@extundo.com>
80929
80930         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
80931         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
80932         GLIBC specific code.
80933
80934 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80935
80936         Make regex safe for g++.  This fixes one real bug (an "err"
80937         that should have been "*err").  g++ problem reported by
80938         Sam Steingold.
80939         * lib/regex_internal.h (re_calloc): New macro, consistent with
80940         re_malloc etc.  All callers of calloc changed to use re_calloc.
80941         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
80942         not int.  All callers changed.
80943         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
80944         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
80945         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
80946         (find_recover_state): Change "err" to "*err"; this fixes what
80947         appears to be a real bug.
80948         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
80949         versus int.
80950
80951 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80952
80953         * modules/regex (Depends-on): Add malloc, since the code
80954         assumes that !malloc(0) means failure.
80955
80956 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80957
80958         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
80959
80960         alloca modernization/simplification for regex.
80961         * lib/regex.c: Remove portability cruft for alloca.  This no longer
80962         needs to be at the start of the file, and can be moved into
80963         regex_internal.h and simplified.
80964         * lib/regex_internal.h: Include <alloca.h>.
80965         (__libc_use_alloca) [!defined _LIBC]: New macro.
80966         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
80967         now works outside glibc.
80968
80969 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80970
80971         * config/srclist.txt: Add glibc bugs 1241, 1245.
80972
80973 2005-08-25  Jim Meyering  <jim@meyering.net>
80974
80975         * lib/open-safer.c: Include <config.h>.
80976         Otherwise, we'd lose LARGEFILE support in any file using
80977         e.g. "fcntl--.h"
80978
80979 2005-08-25  Bruno Haible  <bruno@clisp.org>
80980
80981         * m4/minmax.m4: Require autoconf 2.52.
80982         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
80983         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
80984         alternatives of translit over the alphabet.
80985         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
80986
80987 2005-08-24  Simon Josefsson  <jas@extundo.com>
80988
80989         * tests/test-getpass.c: New file.
80990
80991 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80992
80993         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
80994         for GNU regex features.
80995
80996 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80997
80998         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
80999         * lib/regex.h (regerror): Likewise.
81000
81001         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
81002         requires this.  (The code never needed it.)
81003
81004         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
81005         All uses of recently-renamed identifiers changed to use the new,
81006         POSIX-compliant names.  The code will build and run just fine
81007         without these changes, but it's better to eat our own dog food
81008         and use the standard-conforming names.
81009
81010         * lib/regex.h: Fix a multitude of POSIX name space violations.
81011         These changes have an effect only for programs that define
81012         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
81013         do not change anything for programs compiled in the normal way.
81014         Also, there is no effect on the ABI.
81015
81016         (_REGEX_SOURCE): New macro.
81017         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
81018         defined and _GNU_SOURCE is not; this fixes a name space violation.
81019
81020         Rename the following macros to obey POSIX requirements.
81021         The old names are still visible as macros if _REGEX_SOURCE is defined.
81022         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
81023         RE_BACKSLASH_ESCAPE_IN_LISTS.
81024         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
81025         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
81026         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
81027         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
81028         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
81029         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
81030         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
81031         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
81032         (REG_INTERVALS): renamed from RE_INTERVALS.
81033         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
81034         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
81035         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
81036         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
81037         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
81038         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
81039         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
81040         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
81041         RE_UNMATCHED_RIGHT_PAREN_ORD.
81042         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
81043         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
81044         (REG_DEBUG): renamed from RE_DEBUG.
81045         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
81046         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
81047         unusual, since we can't clash with the POSIX REG_ICASE.
81048         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
81049         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
81050         (REG_NO_SUB): renamed from RE_NO_SUB.
81051         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
81052         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
81053         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
81054         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
81055         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
81056         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
81057         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
81058         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
81059         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
81060         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
81061         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
81062         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
81063         RE_SYNTAX_POSIX_MINIMAL_BASIC.
81064         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
81065         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
81066         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
81067         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
81068         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
81069         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
81070         (REG_FIXED): Renamed from REGS_FIXED.
81071         (REG_NREGS): Renamed from RE_NREGS.
81072
81073         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
81074         of other REG_* macros, since POSIX says the user is allowed to
81075         #undef these macros selectively.
81076
81077         (reg_errcode_t): Update comment stating what other tables need
81078         to be consistent.
81079
81080         Rename the following enum values to obey POSIX requirements.
81081         The old names are still visible as macros.
81082         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
81083         is not defined, since GNU is supposed to be a superset of POSIX as
81084         much as possible, and since we want reg_errcode_t to be a signed
81085         type for implementation consistency.
81086         (_REG_NOERROR): Renamed from REG_NOERROR.
81087         (_REG_NOMATCH): Renamed from REG_NOMATCH.
81088         (_REG_BADPAT): Renamed from REG_BADPAT.
81089         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
81090         (_REG_ECTYPE): Renamed from REG_ECTYPE.
81091         (_REG_EESCAPE): Renamed from REG_EESCAPE.
81092         (_REG_ESUBREG): Renamed from REG_ESUBREG.
81093         (_REG_EBRACK): Renamed from REG_EBRACK.
81094         (_REG_EPAREN): Renamed from REG_EPAREN.
81095         (_REG_EBRACE): Renamed from REG_EBRACE.
81096         (_REG_BADBR): Renamed from REG_BADBR.
81097         (_REG_ERANGE): Renamed from REG_ERANGE.
81098         (_REG_ESPACE): Renamed from REG_ESPACE.
81099         (_REG_BADRPT): Renamed from REG_BADRPT.
81100         (_REG_EEND): Renamed from REG_EEND.
81101         (_REG_ESIZE): Renamed from REG_ESIZE.
81102         (_REG_ERPAREN): Renamed from REG_ERPAREN.
81103         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
81104         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
81105         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
81106         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
81107
81108         (_REG_RE_NAME, _REG_RM_NAME): New macros.
81109         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
81110         changed.  But support the old name if the new one is not defined
81111         and if _REGEX_SOURCE.
81112
81113         Change the following member names in struct re_pattern_buffer.
81114         The old names are still supported if !_REGEX_SOURCE.
81115         The new names are always supported, regardless of _REGEX_SOURCE.
81116         (re_buffer): Renamed from buffer.
81117         (re_allocated): Renamed from allocated.
81118         (re_used): Renamed from used.
81119         (re_syntax): Renamed from syntax.
81120         (re_fastmap): Renamed from fastmap.
81121         (re_translate): Renamed from translate.
81122         (re_can_be_null): Renamed from can_be_null.
81123         (re_regs_allocated): Renamed from regs_allocated.
81124         (re_fastmap_accurate): Renamed from fastmap_accurate.
81125         (re_no_sub): Renamed from no_sub.
81126         (re_not_bol): Renamed from not_bol.
81127         (re_not_eol): Renamed from not_eol.
81128         (re_newline_anchor): Renamed from newline_anchor.
81129
81130         Change the following member names in struct re_registers.
81131         The old names are still supported if !_REGEX_SOURCE.
81132         The new names are always supported, regardless of _REGEX_SOURCE.
81133         (rm_num_regs): Renamed from num_regs.
81134         (rm_start): Renamed from start.
81135         (rm_end): Renamed from end.
81136
81137         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
81138         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
81139         Prepend __ to parameter names.
81140
81141         Undo yesterday's changes.
81142
81143 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81144
81145         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
81146         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
81147         lib/regex.c.
81148
81149 2005-08-24  Jim Meyering  <jim@meyering.net>
81150
81151         Sync from coreutils.
81152         * m4/fcntl-safer.m4: New file.
81153
81154         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
81155         and object files for this module.
81156
81157 2005-08-24  Jim Meyering  <jim@meyering.net>
81158
81159         Sync from coreutils.
81160         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
81161
81162 2005-08-24  Jim Meyering  <jim@meyering.net>
81163
81164         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
81165         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
81166
81167 2005-08-24  Jim Meyering  <jim@meyering.net>
81168
81169         * modules/fcntl-safer: New module.
81170         * modules/fts (Depends-on): Add fcntl-safer.
81171         * MODULES.html.sh (File descriptor based Input/Output):
81172         Add fcntl-safer.
81173
81174 2005-08-24  Bruno Haible  <bruno@clisp.org>
81175
81176         Support for unit test modules.
81177         * modules/README: Mention tests modules.
81178         * modules/TEMPLATE-TESTS: New file.
81179         * gnulib-tool: New options --extract-tests-module, --with-tests and
81180         --tests-base (unused for the moment).
81181         (testsbase, inctests): New variables.
81182         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
81183         (func_verify_module): Exclude TEMPLATE-TESTS.
81184         (func_verify_nontests_module, func_verify_tests_module): New functions.
81185         (func_get_dependencies): Add implicit dependency for tests modules.
81186         (func_get_tests_module): New function.
81187         (func_modules_transitive_closure): When --with-tests was specified,
81188         include the unit tests as well, unless explicitly avoided.
81189         (func_emit_lib_Makefile_am): Ignore the tests modules here.
81190         (func_emit_tests_Makefile_am): New function.
81191         (func_create_testdir): When --with-tests was specified, emit a
81192         tests/ directory.
81193         * MODULES.html.sh (Future developments): Update.
81194
81195 2005-08-24  Bruno Haible  <bruno@clisp.org>
81196
81197         * modules/tls-tests: New file.
81198         * tests/test-tls.c: New file, from GNU gettext.
81199
81200 2005-08-24  Bruno Haible  <bruno@clisp.org>
81201
81202         * modules/lock-tests: New file.
81203         * tests/test-lock.c: New file, from GNU gettext.
81204
81205 2005-08-24  Bruno Haible  <bruno@clisp.org>
81206
81207         * lib/lock.h: Add multiple inclusion guard.
81208         * lib/tls.h: Add multiple inclusion guard.
81209
81210 2005-08-24  Bruno Haible  <bruno@clisp.org>
81211
81212         * gnulib-tool: Add support for the --aux-dir option to
81213         --create-testdir, --create-megatestdir, --test, --megatest.
81214         (func_create_testdir, func_create_megatestdir): Optionally emit a
81215         AC_CONFIG_AUX_DIR directive.
81216         (create-testdir, create-megatestdir, test, megatest): Provide a
81217         default value for $auxdir.
81218
81219 2005-08-24  Bruno Haible  <bruno@clisp.org>
81220
81221         * gnulib-tool (import): Use compound statement instead of subshell
81222         where possible.
81223
81224 2005-08-24  Bruno Haible  <bruno@clisp.org>
81225
81226         * gnulib-tool (import): Change --aux-dir default to "build-aux".
81227
81228 2005-08-24  Bruno Haible  <bruno@clisp.org>
81229
81230         * gnulib-tool (func_version): Update.
81231
81232 2005-08-24  Bruno Haible  <bruno@clisp.org>
81233
81234         * gnulib-tool (func_import, func_create_testdir,
81235         func_create_megatestdir): Quote all autoconf macro arguments.
81236
81237 2005-08-24  Bruno Haible  <bruno@clisp.org>
81238
81239         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
81240         option --force, because --force causes the aclocal.m4 of each
81241         subdirectory to be newer than the corresponding config.h.in.
81242
81243 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81244
81245         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
81246         All contents moved to gl_REGEX.
81247         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
81248         assume that it does.
81249
81250 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81251
81252         * lib/regex.h (REG_NOSYS)
81253         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
81254         Define, since POSIX requires it as of 2001.
81255         (_REG_ENOSYS)
81256         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
81257         New private symbol, used to keep the enum signed in all cases.
81258         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
81259         Youngman in
81260         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
81261
81262         * lib/regex_internal.c (re_string_skip_chars, register_state):
81263         (calc_state_hash):
81264         Remove forward decls; no longer needed now that we use prototypes.
81265         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
81266         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
81267         (clean_state_log_if_needed): Likewise.
81268
81269 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81270
81271         * config/srclist.txt: Add glibc bugs 1231-1233.
81272
81273 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81274
81275         Fix problems reported by Sam Steingold in
81276         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
81277         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
81278         assumed that reg_errcode_t is a signed type, which is not
81279         necessarily true if _XOPEN_SOURCE is not defined.
81280         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
81281         since some compilers warn about it otherwise.
81282
81283 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81284
81285         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
81286         (init_word_char, create_initial_state, duplicate_node_closure):
81287         (fetch_token, peek_token_bracket, build_range_exp):
81288         (build_collating_symbol): Remove forward decls; no longer needed
81289         now that we use prototypes.
81290
81291         * lib/regcomp.c:
81292         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
81293         (re_compile_fastmap_iter, regcomp, regerror, regfree):
81294         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
81295         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
81296         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
81297         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
81298         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
81299         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
81300         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
81301         (build_range_exp, build_collating_symbol, parse_bracket_exp):
81302         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
81303         (build_charclass, build_charclass_op, fetch_number, create_tree):
81304         (create_token_tree, mark_opt_subexp, duplicate_tree):
81305         Use prototypes rather than old-style definitions.
81306
81307         * lib/regex_internal.c:
81308         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
81309         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
81310         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
81311         (re_string_reconstruct, re_string_peek_byte_case):
81312         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
81313         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
81314         (re_node_set_init_copy, re_node_set_add_intersect):
81315         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81316         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81317         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
81318         (re_acquire_state, re_acquire_state_context, register_state):
81319         (create_ci_newstate, create_cd_newstate, free_state):
81320         Likewise.
81321         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
81322         re_search_2):
81323         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
81324         (re_search_internal, prune_impossible_nodes):
81325         (acquire_init_state_context, check_matching, static):
81326         (check_halt_node_context, check_halt_state_context, proceed_next_node):
81327         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
81328         (update_regs, sift_states_backward, build_sifted_states):
81329         (clean_state_log_if_needed, merge_state_array):
81330         (update_cur_sifted_state, add_epsilon_src_nodes):
81331         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
81332         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
81333         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
81334         (find_recover_state, check_subexp_matching_top, transit_state_mb):
81335         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
81336         (check_arrival, check_arrival_add_next_nodes):
81337         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
81338         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
81339         (check_node_accept_bytes, check_node_accept, extend_buffers):
81340         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
81341         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
81342         (sift_ctx_init):
81343         Likewise.
81344
81345         * lib/regex_internal.h:
81346         (re_string_allocate, re_string_construct, re_string_reconstruct):
81347         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
81348         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
81349         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
81350         (re_string_context_at, re_string_peek_byte_case):
81351         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
81352         is defined, since we now use prototypes always.
81353
81354         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
81355         C89 or better.  All uses removed.
81356
81357 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81358
81359         * config/srclist.txt: Add glibc bugs 1220-1227.
81360
81361 2005-08-20  Jim Meyering  <jim@meyering.net>
81362
81363         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
81364         of unused local, dfa.
81365
81366 2005-08-20  Bruno Haible  <bruno@clisp.org>
81367
81368         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
81369
81370 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81371
81372         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
81373         (re_node_set_insert_last, re_dfa_add_node):
81374         Rename local variables to avoid GCC shadowing warnings.
81375
81376 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81377
81378         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
81379         [defined lint]: Suppress bogus uninitialized-variable warnings.
81380
81381         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
81382         and let the caller return REG_ESPACE if out of space.  This
81383         removes an uninitialied-variable warning with GCC 4.0.1, and also
81384         avoids taking the address of a local variable.  All callers
81385         changed.
81386
81387 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81388
81389         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
81390         $LIBCSRC/posix/regexec.c.
81391         Add glibc bug 1217 for regcomp.c.
81392
81393 2005-08-19  Jim Meyering  <jim@meyering.net>
81394
81395         * lib/regexec.c (proceed_next_node): Redo local variables to
81396         avoid GCC shadowing warnings.
81397
81398 2005-08-18  Bruno Haible  <bruno@clisp.org>
81399
81400         * lib/strstr.c (strstr): Fix return value in multibyte case.
81401         * lib/strcasestr.c (strcasestr): Likewise.
81402
81403 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
81404
81405         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
81406
81407 2005-08-17  Jim Meyering  <jim@meyering.net>
81408
81409         Make the %s format (seconds since the epoch) work for a negative
81410         number and when used with a zero-padded field width, e.g. %015s.
81411
81412         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
81413         label so that it precedes the code to set `digits'.  Otherwise,
81414         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
81415         print `00-22'.  Now, it prints `-0022', as it should.
81416
81417 2005-08-17  Bruno Haible  <bruno@clisp.org>
81418
81419         * modules/strstr (Files): Add m4/mbrtowc.m4.
81420         (Depends-on): Add mbuiter.
81421
81422 2005-08-17  Bruno Haible  <bruno@clisp.org>
81423
81424         * modules/strcasestr: New file.
81425         * MODULES.html.sh (String handling, based on ANSI C 89): Add
81426         strcasestr.
81427
81428 2005-08-17  Bruno Haible  <bruno@clisp.org>
81429
81430         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
81431
81432 2005-08-17  Bruno Haible  <bruno@clisp.org>
81433
81434         * modules/mbuiter: New file.
81435         * MODULES.html.sh (Extended multibyte and wide character utilities):
81436         Add mbuiter.
81437
81438 2005-08-17  Bruno Haible  <bruno@clisp.org>
81439
81440         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
81441         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
81442
81443 2005-08-17  Bruno Haible  <bruno@clisp.org>
81444
81445         * m4/strcasestr.m4: New file.
81446
81447 2005-08-17  Bruno Haible  <bruno@clisp.org>
81448
81449         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
81450         * lib/strstr.c: Completely rewritten, with multibyte locale support.
81451
81452 2005-08-17  Bruno Haible  <bruno@clisp.org>
81453
81454         * lib/strcasestr.h: New file.
81455         * lib/strcasestr.c: New file.
81456
81457 2005-08-17  Bruno Haible  <bruno@clisp.org>
81458
81459         * lib/strcasecmp.c: Use mbuiter.h.
81460
81461 2005-08-17  Bruno Haible  <bruno@clisp.org>
81462
81463         * lib/mbuiter.h: New file.
81464
81465 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
81466
81467         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
81468         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
81469         and gl_GETOPT are both invoked via different paths (as happens
81470         with GNU tar CVS because it uses both argp and getopt), the former
81471         wins.
81472
81473 2005-08-16  Bruno Haible  <bruno@clisp.org>
81474
81475         * modules/tls: New file.
81476         * MODULES.html.sh (Multithreading): Add tls.
81477
81478 2005-08-16  Bruno Haible  <bruno@clisp.org>
81479
81480         * modules/strnlen1: New file.
81481         * MODULES.html.sh (String handling): Add strnlen1.
81482
81483 2005-08-16  Bruno Haible  <bruno@clisp.org>
81484
81485         * modules/strcase (Files): Add m4/mbrtowc.m4.
81486         (Depends-on): Add strnlen1, mbchar.
81487
81488 2005-08-16  Bruno Haible  <bruno@clisp.org>
81489
81490         * modules/mbiter: New file.
81491         * MODULES.html.sh (Extended multibyte and wide character utilities):
81492         Add mbiter.
81493
81494 2005-08-16  Bruno Haible  <bruno@clisp.org>
81495
81496         * modules/mbfile: New file.
81497         * MODULES.html.sh (Extended multibyte and wide character utilities):
81498         Add mbfile.
81499
81500 2005-08-16  Bruno Haible  <bruno@clisp.org>
81501
81502         * modules/mbchar: New file.
81503         * MODULES.html.sh (Extended multibyte and wide character utilities):
81504         New section.
81505
81506 2005-08-16  Bruno Haible  <bruno@clisp.org>
81507
81508         * m4/tls.m4: New file, from GNU gettext.
81509
81510 2005-08-16  Bruno Haible  <bruno@clisp.org>
81511
81512         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
81513         always.
81514         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
81515
81516 2005-08-16  Bruno Haible  <bruno@clisp.org>
81517
81518         * m4/mbiter.m4: New file.
81519
81520 2005-08-16  Bruno Haible  <bruno@clisp.org>
81521
81522         * m4/mbfile.m4: New file.
81523
81524 2005-08-16  Bruno Haible  <bruno@clisp.org>
81525
81526         * m4/mbchar.m4: New file.
81527
81528 2005-08-16  Bruno Haible  <bruno@clisp.org>
81529
81530         * lib/tls.h: New file, from GNU gettext.
81531         * lib/tls.c: New file, from GNU gettext.
81532
81533 2005-08-16  Bruno Haible  <bruno@clisp.org>
81534
81535         * lib/strnlen1.h: New file.
81536         * lib/strnlen1.c: New file.
81537
81538 2005-08-16  Bruno Haible  <bruno@clisp.org>
81539
81540         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
81541         (mbi_init): Update.
81542         (mbi_avail, mbi_advance): Let the iteration end before the terminating
81543         NUL byte, not after it.
81544
81545 2005-08-16  Bruno Haible  <bruno@clisp.org>
81546
81547         * lib/strcase.h (strcasecmp): Add note in comments.
81548         * lib/strncasecmp.c: Use code from strcasecmp.c.
81549         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
81550         (strcasecmp): Work correctly in multibyte locales.
81551
81552 2005-08-16  Bruno Haible  <bruno@clisp.org>
81553
81554         * lib/mbiter.h: New file.
81555
81556 2005-08-16  Bruno Haible  <bruno@clisp.org>
81557
81558         * lib/mbfile.h: New file.
81559
81560 2005-08-16  Bruno Haible  <bruno@clisp.org>
81561
81562         * lib/mbchar.h: New file.
81563         * lib/mbchar.c: New file.
81564
81565 2005-08-16  Bruno Haible  <bruno@clisp.org>
81566
81567         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
81568         the valid ones. Makes the comparison operations transitive:
81569         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
81570         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
81571
81572 2005-08-15  Simon Josefsson  <jas@extundo.com>
81573
81574         * modules/ssize_t (License): Change to 'unlimited'.
81575
81576         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
81577
81578 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
81579
81580         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
81581         Add comments for each pending glibc patch.
81582
81583 2005-08-15  Bruno Haible  <bruno@clisp.org>
81584
81585         * lib/regex.h (__restrict_arr): Don't define to __restrict if
81586         __cplusplus is defined.
81587
81588 2005-08-14  Jim Meyering  <jim@meyering.net>
81589
81590         Sync from coreutils.
81591
81592         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
81593         Use the hash-table-based cycle-detection code not just when
81594         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
81595         Reported by James Youngman in
81596         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
81597         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
81598         FTS_TIGHT_CYCLE_CHECK.
81599         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
81600         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
81601         once again.
81602         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
81603         * lib/fts.c (fd_safer): Remove decl.
81604         Include fcntl--.h rather than unistd-safer.h
81605         (fts_safe_changedir): Don't call fd_safer; no longer needed
81606         now that we include fcntl--.h.
81607
81608 2005-08-12  Simon Josefsson  <jas@extundo.com>
81609
81610         * modules/getndelim2: Use ssize_t module.
81611         * modules/getnline: Likewise.
81612         * modules/safe-read: Likewise.
81613         * modules/xreadlink: Likewise.
81614
81615         * modules/ssize_t: New file.
81616
81617 2005-08-12  Simon Josefsson  <jas@extundo.com>
81618
81619         * m4/readline.m4: Look for termcap, curses or ncurses if required.
81620
81621 2005-08-12  Simon Josefsson  <jas@extundo.com>
81622
81623         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81624         ssize_t.
81625
81626 2005-08-12  Simon Josefsson  <jas@extundo.com>
81627
81628         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
81629         readline, getdelim and check_version.
81630         (Support for systems lacking ISO C 99: Sizes of integer types):
81631         Add size_max.
81632
81633 2005-08-12  Bruno Haible  <bruno@clisp.org>
81634
81635         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
81636
81637 2005-08-11  Simon Josefsson  <jas@extundo.com>
81638
81639         * modules/readline: New file.
81640
81641         * modules/strnlen (Files): Add strnlen.h.
81642
81643 2005-08-11  Simon Josefsson  <jas@extundo.com>
81644
81645         * m4/readline.m4: New file.
81646
81647 2005-08-11  Simon Josefsson  <jas@extundo.com>
81648
81649         * lib/readline.h, readline.c: New file.
81650
81651 2005-08-11  Simon Josefsson  <jas@extundo.com>
81652
81653         * doc/gnulib.texi (Initial import, Finishing touches): Mention
81654         gl_AVOID.
81655
81656 2005-08-11  Bruno Haible  <bruno@clisp.org>
81657
81658         * lib/strnlen.h (strnlen): Change parameter name to match comment.
81659
81660 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
81661
81662         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
81663
81664 2005-08-10  Simon Josefsson  <jas@extundo.com>
81665
81666         * tests/test-iconvme.c: New file.
81667
81668 2005-08-10  Simon Josefsson  <jas@extundo.com>
81669
81670         * m4/strnlen.m4: New file.
81671
81672         * m4/strndup.m4: Don't check for strnlen declaration, done in
81673         strnlen.m4.
81674
81675 2005-08-10  Simon Josefsson  <jas@extundo.com>
81676
81677         * lib/strndup.c: Use strnlen.h.
81678
81679         * lib/strnlen.h: New file.
81680
81681 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81682
81683         * README: Typos.
81684
81685 2005-08-02  Simon Josefsson  <jas@extundo.com>
81686
81687         * modules/readline: New file.
81688
81689 2005-08-02  Simon Josefsson  <jas@extundo.com>
81690
81691         * modules/getdelim: New file.
81692
81693         * modules/getline: Rewrite, don't use getndelim2.
81694
81695 2005-08-02  Simon Josefsson  <jas@extundo.com>
81696
81697         * m4/getline.m4: Separate out getdelim stuff into separate module.
81698
81699         * m4/getdelim.m4: New file.
81700
81701 2005-08-02  Simon Josefsson  <jas@extundo.com>
81702
81703         * lib/getline.h, getline.c: Rewrite.
81704
81705         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
81706
81707 2005-07-31  Bruno Haible  <bruno@clisp.org>
81708
81709         * lib/lock.h (gl_lock_initializer): New macro.
81710         (gl_lock_define_initialized): Use it.
81711         (gl_rwlock_initializer): New macro.
81712         (gl_rwlock_define_initialized): Use it.
81713         (gl_recursive_lock_initializer): New macro.
81714         (gl_recursive_lock_define_initialized): Use it.
81715
81716 2005-07-30  Karl Berry  <karl@gnu.org>
81717
81718         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
81719         Report from Ben Pfaff, regarding getopt.
81720
81721 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
81722
81723         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
81724         normal way.
81725         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
81726         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
81727         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
81728         (gl_GETOPT): Use the new macros.  Most of the implementation
81729         is moved to the new macros.  This is for programs like Emacs
81730         that don't want all the functionality of gl_GETOPT.
81731
81732 2005-07-26  Bruno Haible  <bruno@clisp.org>
81733
81734         * m4/lock.m4: Update from GNU gettext.
81735
81736 2005-07-26  Bruno Haible  <bruno@clisp.org>
81737
81738         * lib/lock.h: Update from GNU gettext.
81739         * lib/lock.c: Update from GNU gettext.
81740
81741 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
81742
81743         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
81744         obsolescent AC_TRY_RUN.  Include the default includes files, for
81745         'exit'.
81746
81747 2005-07-24  Bruno Haible  <bruno@clisp.org>
81748
81749         * modules/visibility: New file.
81750         * MODULES.html.sh (Misc): Add visibility.
81751
81752 2005-07-24  Bruno Haible  <bruno@clisp.org>
81753
81754         * m4/visibility.m4: New file.
81755
81756 2005-07-24  Bruno Haible  <bruno@clisp.org>
81757
81758         * doc/visibility.texi: New file.
81759
81760 2005-07-22  Bruno Haible  <bruno@clisp.org>
81761
81762         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
81763         $(ALLOCA_H), redundant through BUILT_SOURCES.
81764         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
81765         redundant through BUILT_SOURCES.
81766         * modules/byteswap (Makefile.am): Remove explicit dependency on
81767         $(BYTESWAP_H), redundant through BUILT_SOURCES.
81768         * modules/fnmatch (Makefile.am): Remove explicit dependency on
81769         $(FNMATCH_H), redundant through BUILT_SOURCES.
81770         * modules/getopt (Makefile.am): Remove explicit dependency on
81771         $(GETOPT_H), redundant through BUILT_SOURCES.
81772         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
81773         redundant through BUILT_SOURCES.
81774         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
81775         redundant through BUILT_SOURCES.
81776         * modules/stdbool (Makefile.am): Remove explicit dependency on
81777         $(STDBOOL_H), redundant through BUILT_SOURCES.
81778         * modules/stdint (Makefile.am): Remove explicit dependency on
81779         $(STDINT_H), redundant through BUILT_SOURCES.
81780         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
81781         Remove explicit dependency on $(SYSEXITS_H).
81782         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
81783
81784 2005-07-18  Simon Josefsson  <jas@extundo.com>
81785
81786         * lib/check-version.c (check_version): Accept identical versions too.
81787
81788 2005-07-18  Bruno Haible  <bruno@clisp.org>
81789
81790         * modules/lock: New file.
81791         * MODULES.html.sh (Multithreading): New section.
81792
81793 2005-07-18  Bruno Haible  <bruno@clisp.org>
81794
81795         * m4/lock.m4: New file, from GNU gettext.
81796
81797 2005-07-18  Bruno Haible  <bruno@clisp.org>
81798
81799         * lib/lock.h: New file, from GNU gettext.
81800         * lib/lock.c: New file, from GNU gettext.
81801
81802 2005-07-18  Bruno Haible  <bruno@clisp.org>
81803
81804         * lib/lock.h (gl_once_t): New type.
81805         (gl_once_define, gl_once): New macros.
81806         * lib/lock.c (fresh_once): New variable.
81807         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
81808         functions.
81809
81810 2005-07-16  Simon Josefsson  <jas@extundo.com>
81811
81812         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
81813         workaround, suggested by Bruno.
81814
81815 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
81816
81817         * modules/xalloc (Depends-on): Add xalloc-die.
81818         * modules/xvasprintf (Depends-on): Add xalloc-die.
81819
81820 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
81821
81822         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
81823         with a minor change.
81824
81825 2005-07-15  Bruno Haible  <bruno@clisp.org>
81826
81827         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
81828         When using lib/poll.c, define poll as rpl_poll.
81829
81830 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
81831
81832         * modules/argp (Depends-on): Remove unlocked-io.
81833
81834 2005-07-14  Derek Price  <derek@ximbiot.com>
81835
81836         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
81837         for glob symlink bug.
81838
81839 2005-07-14  Bruno Haible  <bruno@clisp.org>
81840
81841         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
81842         Instead, test for *_unlocked function declarations directly.
81843
81844 2005-07-11  Simon Josefsson  <jas@extundo.com>
81845
81846         * modules/size_max: New file.
81847
81848         * modules/xsize: Depend on size_max module for size_max.m4.
81849
81850 2005-07-11  Simon Josefsson  <jas@extundo.com>
81851
81852         * lib/size_max.h: New file.
81853
81854 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
81855
81856         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
81857         copyright symbol and the year.
81858         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
81859         (version_etc_va): Use parameterized copyright notice.
81860         Reword to conform to the current GNU coding standards.
81861
81862 2005-07-11  Karl Berry  <karl@gnu.org>
81863
81864         * doc/gnulib.texi (Quoting): new node.
81865         (Initial import): more info, from Patrice.
81866
81867 2005-07-11  Bruno Haible  <bruno@clisp.org>
81868
81869         * gnulib-tool (func_usage): Document option --avoid.
81870         (Command line options): Handle --avoid.
81871         (func_acceptable): New function.
81872         (func_modules_transitive_closure): Use it.
81873
81874 2005-07-11  Bruno Haible  <bruno@clisp.org>
81875
81876         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
81877         Reported by Jim Meyering.
81878
81879 2005-07-10  Bruno Haible  <bruno@clisp.org>
81880
81881         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
81882         Needed when size_t is smaller than 'unsigned int'.
81883         Reported by Paul Eggert.
81884
81885 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81886
81887         * modules/argp (Depends-on): Add unlocked-io
81888
81889 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81890
81891         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
81892         block of defines.
81893
81894 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
81895
81896         * config/srclist.txt: Comment out regcomp.c, since we have a porting
81897         fix now.
81898
81899 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
81900         and Paul Eggert  <eggert@cs.ucla.edu>
81901
81902         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
81903         in wint_t, not wchar_t.  Remove now-unnecessary cast.
81904
81905 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81906
81907         * modules/regex (Files): Add lib/regex_internal.c,
81908         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
81909         (Depends-on): Add extensions.
81910         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
81911
81912 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81913
81914         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
81915         pathconf.
81916         * m4/same.m4 (gl_SAME): Likewise.
81917         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
81918
81919         * m4/regex.m4: Adjust to new libc regex implementation.
81920         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
81921         all the .c and .h parts of (the new) regex.
81922         Quote the m4 stuff better.
81923         Check for RE_ICASE bug of old gnulib.
81924         Check for REG_STARTEND of recent libc.
81925         Rename local variables from jm_* to gl_*.
81926         Quote operand of "test -f".
81927         Say "recent enough" version of libc, not "version 2".
81928         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
81929         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
81930         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
81931         Remove check for btowc, isascii.
81932         Require AM_LANGINFO_CODESET.
81933
81934 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81935
81936         * lib/regex.c, regex.h: Sync from libc.
81937         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
81938         * lib/regexec.c:
81939         New files, synced from libc, except that regex_internal.h
81940         currently has a small porting fix.
81941
81942 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81943
81944         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
81945         regex_internal.c, regexec.c.
81946         Add regex_internal.h too, but as a comment, since the libc version
81947         is currently broken in gnulib mode.
81948
81949 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81950
81951         Support programs like Emacs that use gnulib but not gettext.
81952         * MODULES.html.sh (Internationalization functions): Add gettext-h.
81953         * modules/gettext-h: New file.
81954         * modules/gettext (Files): Remove lib/gettext.h.
81955         (Depends-on): Add gettext-h.
81956         (Makefile.am): Remove lib_SOURCES.
81957         * modules/argmatch, modules/c-stack, modules/closeout:
81958         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
81959         * modules/execute, modules/file-type, modules/getaddrinfo:
81960         * modules/getopt, modules/human, modules/javacomp:
81961         * modules/javaexec, modules/mkdir-p, modules/obstack:
81962         * modules/openat, modules/pagealign_alloc, modules/pipe:
81963         * modules/quotearg, modules/regex, modules/rpmatch:
81964         * modules/unicodeio, modules/userspec, modules/version-etc:
81965         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
81966         * modules/xsetenv:
81967         Depend on gettext-h, not gettext.
81968
81969 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
81970
81971         * gnulib-tool (func_import): Add support for 'public domain' license.
81972         * modules/alloca, modules/atexit, modules/memmove:
81973         Now public domain, not GPL.
81974         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
81975         * modules/realloc, modules/strerror, modules/strtod:
81976         Now LGPL, not GPL.
81977
81978 2005-07-05  Bruno Haible  <bruno@clisp.org>
81979
81980         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
81981         autoconf CVS. Needed for mingw.
81982
81983 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81984
81985         Remove the dependency of the strftime module on the tzset module.
81986         * modules/strftime (Depends-on): Remove dependency on tzset.
81987
81988 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81989
81990         Remove the dependency of the strftime module on the tzset module.
81991         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
81992         gl_FUNC_TZSET_CLOBBER.
81993
81994 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81995
81996         Remove the dependency of the strftime module on the tzset module.
81997         * lib/strftime.c (my_strftime)
81998         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
81999         Copy the input structure, to work around some of the bug with
82000         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
82001         Solaris releases, you should also use the tzset module, but we won't
82002         require it as a dependency any more since we don't want LGPLed code
82003         to depend on GPLed code.
82004
82005 2005-07-02  Jim Meyering  <jim@meyering.net>
82006
82007         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
82008         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
82009         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
82010         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
82011
82012 2005-07-02  Jim Meyering  <jim@meyering.net>
82013
82014         * lib/backupfile.c (backup_args): Change a `0' to NULL.
82015
82016 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
82017
82018         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
82019         declares only 'struct timespec;' (!).
82020
82021 2005-07-01  Jim Meyering  <jim@meyering.net>
82022
82023         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
82024         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
82025         * lib/save-cwd.c, tempname.c:
82026         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
82027         and don't include <sys/file.h>).
82028
82029 2005-06-29  Jim Meyering  <jim@meyering.net>
82030
82031         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
82032         type name.  Use the variable name instead.
82033         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
82034         Likewise.
82035
82036 2005-06-28  Simon Josefsson  <jas@extundo.com>
82037
82038         * modules/check-version (Files): Add check-version.m4.
82039
82040 2005-06-28  Simon Josefsson  <jas@extundo.com>
82041
82042         * m4/check-version.m4: New file, suggested by Jim Meyering
82043         <jim@meyering.net>.
82044
82045 2005-06-28  Simon Josefsson  <jas@extundo.com>
82046
82047         * lib/check-version.h, lib/check-version.c: New files.
82048
82049 2005-06-28  Simon Josefsson  <jas@extundo.com>
82050
82051         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
82052         collision with global variable.  Better indentation.  Don't
82053         increment buffer pointer beyond buffer end.  Based on comments
82054         from Paul Eggert <eggert@cs.ucla.edu>.
82055
82056         * lib/base64.h: Indent.
82057
82058 2005-06-28  Simon Josefsson  <jas@extundo.com>
82059
82060         * doc/gnulib.texi (Library version handling): New section.
82061
82062 2005-06-28  Jim Meyering  <jim@meyering.net>
82063
82064         * check-module (find_included_lib_files): Hard-code another
82065         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
82066         but modules/fts-lgpl (correctly) does not list those files.
82067
82068         * modules/canonicalize (Files): Add lib/pathmax.h.
82069
82070 2005-06-25  Simon Josefsson  <jas@extundo.com>
82071
82072         * modules/check-version: New file.
82073
82074 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
82075
82076         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
82077         initializer of struct addrinfo, as an indication that we don't
82078         care how many members the structure has.
82079
82080 2005-06-24  Derek Price  <derek@ximbiot.com>
82081         and Bruno Haible  <bruno@clisp.org>
82082
82083         Remove stat module & update lstat.
82084         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
82085         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
82086         * m4/stat.m4: Remove this file.
82087
82088 2005-06-24  Derek Price  <derek@ximbiot.com>
82089         and Bruno Haible  <bruno@clisp.org>
82090
82091         Remove stat module & update lstat.
82092         * lib/stat.c: Remove this file...
82093         (slash_aware_lstat): ...moving this content and its support...
82094         * lib/lstat.c (rpl_lstat): ...into here.
82095         * lib/lstat.h: New file.
82096
82097 2005-06-24  Derek Price  <derek@ximbiot.com>
82098         and Bruno Haible  <bruno@clisp.org>
82099
82100         Remove stat module & update lstat.
82101         * config/srclist.txt (libc sources): Remove stat.
82102
82103 2005-06-24  Derek Price  <derek@ximbiot.com>
82104         and Bruno Haible  <bruno@clisp.org>
82105
82106         Remove stat module & update lstat.
82107         * MODULES.html.sh (stat): Remove.
82108         * MODULES.html: Regenerated.
82109         * modules/lstat (Description): Correct function name.
82110         (Files): Add "lstat.h".
82111         (Depends-on): Remove stat, add xalloc, stat-macros.
82112         * modules/stat: Remove this file.
82113         (Include): Add "lstat.h", remove <sys/stat.h>.
82114
82115 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
82116
82117         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
82118         (ranged_convert): Don't save conversion in a temporary struct.
82119         This causes a warning with GCC 4.0.0, and anyway in the typical
82120         case it's not worth the extra 100 bytes or so of code.
82121         (ranged_convert, __mktime_internal): When calling a function via a
82122         pointer P, use P () rather than (*P) (), as we now assume C89 or
82123         better.
82124
82125 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82126
82127         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
82128         "who -r" failed to give output.  Problem reported by Tim Waugh.
82129
82130         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
82131         (xcalloc): Use it to avoid needless tests.
82132         Problem reported by Jim Meyering.
82133
82134 2005-06-20  Derek Price  <derek@ximbiot.com>
82135
82136         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
82137         unnecessary for Autoconfs > 2.59c.
82138
82139 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82140
82141         * lib/argp.h (__option_is_short): Check upper limit of
82142         __key. Isprint() requires its argument to have the value
82143         of an unsigned char or EOF.
82144
82145 2005-06-16  Jim Meyering  <jim@meyering.net>
82146
82147         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
82148         when either N or S is zero.
82149
82150 2005-06-16  Derek Price  <derek@ximbiot.com>
82151
82152         * m4/bison.m4: Declare YACC & YFLAGS precious.
82153
82154 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
82155
82156         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
82157         multibyte string or pattern, fall back on unibyte matching.
82158         Problem reported by James Youngman.
82159
82160 2005-06-08  Bruno Haible  <bruno@clisp.org>
82161
82162         * modules/csharpcomp: New file.
82163         * MODULES.html.sh (C#): Add csharpcomp.
82164
82165 2005-06-08  Bruno Haible  <bruno@clisp.org>
82166
82167         * m4/csharpcomp.m4: New file, from GNU gettext.
82168
82169 2005-06-08  Bruno Haible  <bruno@clisp.org>
82170
82171         * lib/csharpcomp.h: New file, from GNU gettext.
82172         * lib/csharpcomp.c: New file, from GNU gettext.
82173         * lib/csharpcomp.sh.in: New file, from GNU gettext.
82174
82175 2005-06-08  Bruno Haible  <bruno@clisp.org>
82176
82177         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
82178         warning on mingw.
82179
82180 2005-06-07  Derek Price  <derek@ximbiot.com>
82181
82182         Sync from CVS.
82183         * lib/glob_.h: Indent nested #ifdef.
82184
82185 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82186
82187         Sync from coreutils.
82188         Use "file name" when talking about file names, instead of "filename"
82189         or "path", as per the GNU coding standards.
82190         * lib/mkdir-p.c: Renamed from makepath.c.
82191         (make_dir_parents): Renamed from make_path.  All callers changed.
82192         * lib/mkdir-p.h: Likewise.  All includers changed.
82193         * lib/filenamecat.c: Renamed from path-concat.c.
82194         (file_name_concat): Renamed from path_concat.  All callers changed.
82195         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
82196         * lib/filenamecat.h: Likewise.  All includers changed.
82197         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
82198         in comments or local variable names.
82199         * lib/basename.c: Likewise.
82200         * lib/canonicalize.c, canonicalize.h: Likewise.
82201         * lib/dirname.c, dirname.h: Likewise.
82202         * lib/euidaccess.c: Likewise.
82203         * lib/exclude.c: Likewise
82204         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
82205         * lib/fsusage.c, fsuage.h: Likewise.
82206         * lib/fts.c, fts_.h: Likewise.
82207         * lib/getcwd.c: Likewise.
82208         * lib/getloadavg.c: Likewise.
82209         * lib/mkstemp.c: Likewise.
82210         * lib/mountlist.c, mountlist.h: Likewise.
82211         * lib/openat.c, openat.h: Likewise.
82212         * lib/readlink-stub.c: Likewise.
82213         * lib/readutmp.c, readutmp.h: Likewise.
82214         * lib/rename.c: Likewise.
82215         * lib/rmdir.c: Likewise.
82216         * lib/same.c: Likewise.
82217         * lib/savedir.c: Likewise.
82218         * lib/stripslash.c: Likewise.
82219         * lib/tempname.c: Likewise.
82220         * lib/xreadlink.c: Likewise.
82221         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
82222         All uses changed.
82223         * lib/exclude.h: Likewise.
82224
82225         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
82226         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82227         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
82228         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82229         * lib/pathmax.h: Include <limits.h> unconditionally, since other
82230         files have been getting away with it for years (MORE/BSD 4.3
82231         is extinct now).
82232         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
82233         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82234
82235         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
82236         Define to 256, not 255, as per modern POSIX.
82237
82238 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82239
82240         Sync from coreutils.
82241         Use "file name" when talking about file names, instead of "filename"
82242         or "path", as per the GNU coding standards.
82243         * MODULES.html.sh: mkdir-p renamed from makepath.
82244         filenamecat renamed from path-concat.
82245         * modules/filenamecat: Renamed from modules/path-concat.
82246         (Files): filenamecat.h and filenamecat.c renamed from
82247         path-concat.h and path-concat.c.
82248         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
82249         (Include): filenamecat.h, not path-concat.h.
82250         * modules/mkdir-p: Renamed from modules/makepath.
82251         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
82252         makepath.c.
82253         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
82254         (Include): mkdir-p.h, not makepath.h.
82255
82256 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82257
82258         Sync from coreutils.
82259         * m4/mkdir-p.m4: Renamed from makepath.m4.
82260         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
82261         Rename files from makepath.c to mkdir-p.c, and from
82262         makepath.h to mkdir-p.h.
82263         * m4/filenamecat.m4: Renamed from path-concat.m4.
82264         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
82265         Rename files from path-concat.c to filenamecat.c,
82266         and from path-concat.h to filenamecat.h.
82267         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
82268         "file name" in local variables or comments.
82269         * m4/rename.m4: Likewise.
82270
82271 2005-06-01  Bruno Haible  <bruno@clisp.org>
82272
82273         * modules/csharpexec: New file.
82274         * MODULES.html.sh (C#): New section.
82275
82276 2005-06-01  Bruno Haible  <bruno@clisp.org>
82277
82278         * m4/csharp.m4: New file, from GNU gettext.
82279         * m4/csharpexec.m4: New file, from GNU gettext.
82280
82281 2005-06-01  Bruno Haible  <bruno@clisp.org>
82282
82283         * lib/csharpexec.h: New file, from GNU gettext.
82284         * lib/csharpexec.c: New file, from GNU gettext.
82285         * lib/csharpexec.sh.in: New file, from GNU gettext.
82286
82287 2005-05-31  Derek Price  <derek@ximbiot.com>
82288             Paul Eggert  <eggert@cs.ucla.edu>
82289
82290         Sync from cvs.
82291         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
82292
82293 2005-05-31  Derek Price  <derek@ximbiot.com>
82294             Paul Eggert  <eggert@cs.ucla.edu>
82295
82296         Sync from cvs.
82297         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
82298
82299 2005-05-29  Derek Price  <derek@ximbiot.com>
82300
82301         * config/srclist.txt (glob_.h, glob.c): Add these files.
82302
82303 2005-05-29  Derek Price  <derek@ximbiot.com>
82304
82305         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
82306         * modules/glob: New file.
82307         * modules/getlogin_r: Add link to POSIX spec in description.
82308
82309 2005-05-29  Derek Price  <derek@ximbiot.com>
82310             Paul Eggert  <eggert@cs.ucla.edu>
82311
82312         * m4/glob.m4: New file.
82313
82314 2005-05-29  Derek Price  <derek@ximbiot.com>
82315             Paul Eggert  <eggert@cs.ucla.edu>
82316
82317         * lib/glob_.h, lib/glob.c: New files.
82318
82319 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82320
82321         * modules/fts (Files): Remove m4/inttypes-pri.m4.
82322         * modules/fts-lgpl (Depends-on): Remove gettext.
82323
82324 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82325
82326         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
82327         and don't require gt_INTTYPES_PRI.
82328
82329 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82330
82331         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
82332
82333         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
82334         the configuration hassle isn't worth it.
82335         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
82336         (LONGEST_MODIFIER, PRIuMAX): Remove.
82337
82338 2005-05-27  Bruno Haible  <bruno@clisp.org>
82339
82340         * lib/getlogin_r.h: Remove second include of <stddef.h>.
82341
82342 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
82343
82344         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
82345         _POSIX_PTHREAD_SEMANTICS for Solaris.
82346
82347 2005-05-25  Derek Price  <derek@ximbiot.com>
82348
82349         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
82350
82351 2005-05-25  Derek Price  <derek@ximbiot.com>
82352             Paul Eggert  <eggert@cs.ucla.edu>
82353
82354         * modules/getlogin_r, m4/getlogin_r.m4: New files.
82355         * lib/getlogin_r.c, getlogin_r.h: New files.
82356
82357 2005-05-25  Bruno Haible  <bruno@clisp.org>
82358             Derek Price  <derek@ximbiot.com>
82359
82360         * lib/getlogin_r.h: Simplify API documentation.
82361
82362 2005-05-23  Derek Price  <derek@ximbiot.com>
82363
82364         * modules/minmax (Files): Add m4/minmax.m4.
82365         (configure.ac): Add gl_MINMAX.
82366
82367 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
82368
82369         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
82370         so that unistd-safer.h (GPL'ed code) need not be included.
82371
82372 2005-05-22  Bruno Haible  <bruno@clisp.org>
82373
82374         * m4/minmax.m4: New file.
82375         Based on a patch by Derek Price <derek@ximbiot.com>.
82376
82377 2005-05-22  Bruno Haible  <bruno@clisp.org>
82378
82379         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
82380         (INT64_MIN): Fix definition.
82381         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
82382
82383         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
82384         NEED_SIGNED_INT_TYPES.
82385
82386         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
82387         HAVE_SYSTEM_INTTYPES.
82388
82389 2005-05-22  Bruno Haible  <bruno@clisp.org>
82390
82391         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
82392         Also include <sys/param.h> if it defines MIN, MAX.
82393         Based on a patch by Derek Price <derek@ximbiot.com>.
82394
82395 2005-05-21  Jim Meyering  <jim@meyering.net>
82396
82397         * modules/fts (Files): Add m4/inttypes-pri.m4.
82398         (Depends-on): Add lstat and remove gettext.  Alphabetize.
82399
82400 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82401
82402         New fts module.
82403         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
82404         (setup_dir, free_dir): New functions.
82405         (enter_dir, leave_dir): Define trivial
82406         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
82407         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
82408         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
82409         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
82410         Move to fts-cycle.c.
82411         (fts_open): Use setup_dir.
82412         (fts_close): Use free_dir.
82413         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
82414         This adds a label and some gotos, but the alternatives were messier.
82415         Check for memory allocation failure when entering a dir.
82416         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
82417         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
82418         (FTS): New member fts_cycle, that is a union that contains the
82419         old active_dir_ht and cycle_state.  All uses changed to mention
82420         fts_cycle.ht and fts_cycle.state.
82421         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
82422         fts.c, with the following changes:
82423         (setup_dir, free_dir): New functions.
82424         (enter_dir): Now returns bool.  Return true if successful, false
82425         if memory exhausted.  All callers changed.
82426         Do not bother partly cleaning up on
82427         memory allocation failure; that is free_dir's job.
82428         However, free ad if hash_insert fails, to avoid memory leak.
82429         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
82430         fts->fts_options to see which union member to use.
82431
82432 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82433
82434         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
82435         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
82436
82437 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82438
82439         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
82440
82441 2005-05-20  Jim Meyering  <jim@meyering.net>
82442
82443         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
82444         Now a macro, to pacify GCC.
82445
82446 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
82447
82448         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
82449         of -1.
82450
82451 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
82452
82453         * lib/chown.c (rpl_chown): Return -1 on failure.
82454
82455 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
82456
82457         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
82458         Don't check for stddef.h.
82459         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
82460         don't use its results.
82461         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
82462         since we include them unconditionally.  Don't require
82463         AM_STDBOOL_H, since stdbool is a prerequisite.
82464         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
82465         since we assume C89 or better.
82466         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
82467         as we don't use their results.
82468         Don't check for fchdir, memmove, memset, strrchr, as we use
82469         them unconditionally.
82470         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
82471         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
82472
82473 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
82474
82475         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
82476         Include <stddef.h> unconditionally, since we assume C89 now.
82477         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
82478         * lib/fts.c: Include fts_.h first, to check interface.
82479         Do not include intprops.h; no longer needed.
82480         Include cycle-check.h and hash.h, since fts_.h no longer does.
82481         Remove unnecessary casts of closedir to void.
82482         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
82483         decide whether to decrement nlinks.
82484         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
82485         (FTS): Use struct hash_table * instead of Hash_table, so that
82486         we no longer need to include hash.h here.
82487
82488 2005-05-18  Jim Meyering  <jim@meyering.net>
82489
82490         * modules/dirfd (License): Change to LGPL.  Most of the code
82491         is already in the public domain.
82492
82493 2005-05-18  Jim Meyering  <jim@meyering.net>
82494
82495         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
82496         Reported by Yoann Vandoorselaere.
82497
82498 2005-05-17  Jim Meyering  <jim@meyering.net>
82499
82500         * m4/fts.m4: New file, from coreutils.
82501
82502 2005-05-17  Jim Meyering  <jim@meyering.net>
82503
82504         * lib/fts.c, lib/fts_.h: New files, from coreutils.
82505
82506 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82507
82508         Sync from coreutils.
82509         * m4/unlinkdir.m4: New file.
82510
82511 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82512
82513         Sync from coreutils.
82514         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
82515         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
82516         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
82517         White space changes only.
82518         * lib/makepath.c (make_path): Port to hosts where leading "//" is
82519         special.
82520         * lib/yesno.c: Include getline.h, not ctype.h.
82521         (yesno): Don't remove leading white space; POSIX doesn't allow it.
82522         Use getline to remove arbitrary restriction on response length.
82523
82524 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82525
82526         * config/srclist-update: Spell out "Street" in FSF postal
82527         mail address; this is the style the FSF seems to prefer.
82528
82529         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
82530         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
82531         this updates FSF postal mail address.
82532
82533         Sync from coreutils.
82534         * modules/unlinkdir: New file.
82535         * modules/yesno (Depends-on): Add getline.
82536         * MODULES.html.sh (File system functions): Add unlinkdir.
82537
82538 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82539
82540         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
82541         lib/strsep.h:
82542         Change the initial comment to refer to GPL, not LGPL.
82543         gnulib-tool will change it to LGPL as needed.
82544
82545         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
82546         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
82547         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
82548         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
82549         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
82550         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
82551         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
82552         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
82553         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
82554         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
82555         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
82556         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
82557         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
82558         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
82559         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
82560         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
82561         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
82562         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
82563         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
82564         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
82565         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
82566         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
82567         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
82568         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
82569         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
82570         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
82571         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
82572         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
82573         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
82574         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
82575         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
82576         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
82577         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
82578         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
82579         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
82580         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
82581         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
82582         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
82583         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
82584         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
82585         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
82586         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
82587         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
82588         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
82589         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
82590         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
82591         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
82592         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
82593         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
82594         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
82595         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
82596         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
82597         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
82598         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
82599         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
82600         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
82601         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
82602         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
82603         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
82604         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
82605         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
82606         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
82607         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
82608         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
82609         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
82610         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
82611         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
82612         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
82613         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
82614         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
82615         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
82616         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
82617         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
82618         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
82619         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
82620         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
82621         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
82622         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
82623         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
82624         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
82625         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
82626         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
82627         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
82628         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
82629         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
82630         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
82631         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
82632         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
82633         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
82634         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
82635         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
82636         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
82637         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
82638         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
82639         lib/yesno.c, lib/yesno.h:
82640         Update FSF postal mail address.
82641
82642 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82643
82644         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
82645         tests/test-memmem.c, tests/test-stpncpy.c:
82646         Update FSF postal mail address.
82647
82648 2005-05-13  Bruno Haible  <bruno@clisp.org>
82649
82650         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
82651         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
82652         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
82653         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
82654         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
82655         Add support for 64-bit integers in the MSVC compiler.
82656
82657 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82658
82659         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
82660
82661 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
82662
82663         * gnulib-tool (func_import): Sort and uniquify recommended includes.
82664
82665 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
82666
82667         * doc/getdate.texi (General date syntax): Don't say that date
82668         date --iso-8601=ns generates acceptable dates; it doesn't yet.
82669         Problem reported by Nic Ferrier.
82670
82671 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82672
82673         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
82674         specified in ai_socktype. Fix invalid ai_protocol
82675         check. ai_protocol is usually set to 0 or depending on
82676         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
82677         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
82678         ai_socktype / ai_protocol in the returned addrinfo structure.
82679
82680 2005-05-10  Simon Josefsson  <jas@extundo.com>
82681
82682         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
82683         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
82684
82685 2005-05-10  Karl Berry  <karl@gnu.org>
82686
82687         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
82688         (from http://www.gnu.org/licenses).
82689         * doc/COPYING.LIB: also rename to COPYING.LESSER.
82690         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
82691         fdl.texi suffices.
82692
82693 2005-05-10  Karl Berry  <karl@gnu.org>
82694
82695         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
82696         (COPYING.DOC): remove.
82697
82698         * config/srclist-update: new FSF address.
82699
82700 2005-05-10  Derek Price  <derek@ximbiot.com>
82701
82702         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
82703         possible.
82704
82705 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82706             Bruno Haible  <bruno@clisp.org>
82707
82708         * modules/inet_ntop: New file.
82709         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82710         inet_ntop.
82711
82712 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82713             Bruno Haible  <bruno@clisp.org>
82714
82715         * m4/inet_ntop.m4: New file.
82716
82717 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82718             Bruno Haible  <bruno@clisp.org>
82719
82720         * lib/inet_ntop.h: New file.
82721         * lib/inet_ntop.c: New file, from glibc with modifications.
82722
82723 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
82724
82725         * modules/time_r (License): Change to LGPL.
82726         * modules/extensions (License): Change to LGPL.  Actually,
82727         the license is more permissive than that, but currently gnulib-tool
82728         doesn't know how to handle more-permissive licenses.
82729
82730         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
82731         Problem reported by Dave Love.
82732
82733 2005-05-08  Jim Meyering  <jim@meyering.net>
82734
82735         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
82736         blank.
82737
82738 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
82739
82740         * modules/argmatch (Depends-on): Add stdbool.
82741         * modules/backupfile (Depends-on): Likewise.
82742         * modules/chdir-long (Depends-on): Likewise.
82743         * modules/closeout (Depends-on): Likewise.
82744         * modules/cycle-check (Depends-on): Likewise.
82745         * modules/dirname (Depends-on): Likewise.
82746         * modules/fnmatch (Depends-on): Likewise.
82747         * modules/fsusage (Depends-on): Likewise.
82748         * modules/fwriteerror (Depends-on): Likewise.
82749         * modules/getcwd (Depends-on): Likewise.
82750         * modules/getloadavg (Depends-on): Likewise.
82751         * modules/hard-locale (Depends-on): Likewise.
82752         * modules/makepath (Depends-on): Likewise.
82753         * modules/mountlist (Depends-on): Likewise.
82754         * modules/nanosleep (Depends-on): Likewise.
82755         * modules/posixtm (Depends-on): Likewise.
82756         * modules/quotearg (Depends-on): Likewise.
82757         * modules/readtokens (Depends-on): Likewise.
82758         * modules/readtokens0 (Depends-on): Likewise.
82759         * modules/readutmp (Depends-on): Likewise.
82760         * modules/save-cwd (Depends-on): Likewise.
82761         * modules/strftime (Depends-on): Likewise.
82762         * modules/userspec (Depends-on): Likewise.
82763         * modules/utimecmp (Depends-on): Likewise.
82764         * modules/xgetcwd (Depends-on): Likewise.
82765         * modules/xnanosleep (Depends-on): Likewise.
82766         * modules/xstrtod (Depends-on): Likewise.
82767         * modules/yesno (Depends-on): Likewise.
82768
82769 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
82770
82771         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
82772         needless checks.
82773
82774 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82775
82776         Merge from coreutils.  Among other things,
82777         add bulletproofing for cases where stdin, stdout, or stderr are closed.
82778         * lib/fd-safer.c: New file.
82779         * lib/fcntl-safer.h, open-safer.c: Remove.
82780         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
82781         * lib/dup-safer.c: Include unistd-safer.h first.
82782         Don't include errno.h.
82783         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
82784         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
82785         * lib/file-type.c: Rely on file-type.h change.
82786         * lib/getloadavg.c: Include unistd-safer.h.
82787         (getloadavg): Use safer open.
82788         * lib/getusershell.c: Include "stdio-safer.h".
82789         (getusershell): Use safer fopen.
82790         * lib/long-options.c (long_options): Use NULL rather than 0.
82791         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
82792         'free'.
82793         * lib/modechange.c: Likewise.
82794         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
82795         (MODE_DONE): New constant.
82796         (struct mode_change): Remove 'next' member.
82797         (make_node_op_equals): New function; like the old one of the
82798         same name, except it allocates an array.
82799         (mode_compile, mode_create_from_ref): Use it.
82800         (mode_compile): Allocate result as an array, not a linked list.
82801         Parse octal string ourself, so that we catch mistakes like "+0".
82802         (mode_adjust): Arg is an array, not a linked list.
82803         * lib/modechange.c: Include stat-macros.h, xalloc.h.
82804         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
82805         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
82806         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
82807         Remove.  This is now stat-macros.h's job.
82808         (talloc): Remove.  All callers replaced by xalloc, so that
82809         our invokers don't have to worry about reporting memory failures.
82810         (make_node_op_equals): Remove.
82811         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
82812         New constants.
82813         (struct mode_change): Moved here from modechange.h.
82814         (mode_append_entry): Remove.
82815         (mode_compile): Remove MASKED_OPS arg, since it encouraged
82816         apps to have incorrect behavior.  Use simpler algorithm for head
82817         and tail.  Don't futz with umask; that's now the job of mode_adjust.
82818         Detect more invalid usages rather than having somewhat-random behavior.
82819         Don't insert an "a=" action, as that leads to incorrect behavior.
82820         (mode_compile, mode_create_from_ref): Return NULL on error instead
82821         of an enum, since now there's only one way to have an error.  All
82822         callers changed.
82823         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
82824         at the correct time.  Simplify calculation of "+u" and its ilk.
82825         Don't mishandle "+X".
82826         (mode_free): Remove "register" and localize decls.
82827         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
82828         (struct mode_change): Move to modechange.c; callers don't
82829         need to see this stuff.
82830         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
82831         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
82832         (mode_change, mode_adjust): Reflect the new signatures noted above.
82833         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
82834         that might redefine system include files.
82835         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
82836         (my_usleep): Use NULL rather than (void *) 0.
82837         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
82838         Use siginterrupt to specify that system calls should be interrupted.
82839         (rpl_nanosleep): Move initialization of suspended closer to call of
82840         my_usleep.
82841         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
82842         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
82843         (desirable_utmp_entry): New function.
82844         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
82845         using x2nrealloc, to simplify logic.
82846         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
82847         size calculation.  Do not assume utmp file is a regular file.
82848         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
82849         (READ_UTMP_CHECK_PIDS): New constant.
82850         * lib/save-cwd.c: Include unistd-safer.h.
82851         (save_cwd): Use fd_safer.
82852         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
82853         [!_LIBC] Include "stat-macros.h" instead.
82854         * lib/unistd-safer.h (fd_safer): New decl.
82855
82856 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82857
82858         * modules/getloadavg (Depends-on): Add unistd-safer.
82859         * modules/getusershell (Depends-on): Add stdio-safer.
82860         * modules/lstat (Depends-on): Remove xalloc.
82861         * modules/mkstemp (Depends-on): Add stat-macros.
82862         * modules/modechange (Depends-on): Remove xstrtol.
82863         Add stat-macros, xalloc.
82864         * modules/save-cwd (Depends-on): Add unistd-safer.
82865         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
82866         * modules/unistd-safer (Files): Add lib/fd-safer.c
82867         (Makefile.am): Remove lib_SOURCES.
82868
82869         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
82870         Remove fcntl-safer; unistd-safer supersedes it.
82871
82872 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82873
82874         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
82875         AC_HEADER_STAT.
82876         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
82877         (gl_PREREQ_CHOWN): Remove.
82878         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
82879         it.  Don't require AC_HEADER_STAT.
82880         (gl_PREREQ_LSTAT): Remove.
82881         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
82882         Don't require AC_HEADER_STAT.
82883         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
82884         (gl_PREREQ_RMDIR): Remove.
82885         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
82886         mention stat-macros.h or AC_HEADER_STAT, since we'll make
82887         the stat-macros module a prerequisite.
82888         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
82889         * m4/filemode.m4 (gl_FILEMODE): Likewise.
82890         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
82891         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
82892         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
82893         variable names.
82894         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
82895         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
82896         variable prefixes.
82897         * m4/fcntl-safer.m4: Remove.
82898         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
82899         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
82900         Invoke gl_PREREQ_FD_SAFER.
82901         (gl_PREREQ_FD_SAFER): New macro.
82902         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
82903         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
82904         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
82905         Remove duplicate call to AC_LIBOBJ(readutmp).
82906         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
82907
82908         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
82909         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
82910
82911 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82912
82913         * MODULES.html.sh (Misc): Add byteswap.
82914
82915 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82916
82917         * modules/getcwd (Depends-on): Add extensions.
82918         * modules/openat (Depends-on): Likewise.
82919
82920 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82921
82922         * modules/byteswap: New file.
82923
82924 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82925
82926         * m4/byteswap.m4: New file.
82927
82928 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82929
82930         * lib/byteswap_.h: New file.
82931
82932 2005-04-25  Karl Berry  <karl@gnu.org>
82933
82934         * m4/gettext.m4: Update from GNU gettext 0.14.4.
82935
82936 2005-04-25  Albert Chin  <china@thewrittenword.com>
82937
82938         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
82939         Toolkit C bug.
82940
82941 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
82942
82943         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
82944         (func_ln_if_changed): Remove forcibly for no error message
82945         in case file does not exist.
82946
82947 2005-04-19  Simon Josefsson  <jas@extundo.com>
82948
82949         * gnulib-tool (Options): Make --symlink mean --symbolic.
82950
82951 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
82952
82953         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
82954
82955 2005-04-16  Simon Josefsson  <jas@extundo.com>
82956
82957         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
82958
82959 2005-04-15  Simon Josefsson  <jas@extundo.com>
82960
82961         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
82962
82963 2005-04-15  Simon Josefsson  <jas@extundo.com>
82964
82965         * gnulib-tool: Rename --symlink to --symbolic.
82966
82967 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
82968
82969         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
82970         symbolic links to files instead of copying/moving.  Add --aux-dir,
82971         specifying directory relative --dir where auxiliary build tools
82972         are placed.
82973
82974 2005-04-14  Bruno Haible  <bruno@clisp.org>
82975
82976         * modules/allocsa (License): Change to LGPL.
82977         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
82978
82979 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
82980
82981         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
82982         that "UTC +1 second" continues to work.  Problem reported
82983         by Dmitry V. Levin.
82984         (relunit_snumber): New rule.
82985         (relunit): Use it.
82986
82987 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
82988
82989         * lib/getdate.y (universal_time_zone_table): New constant.
82990         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
82991         universal_time_zone_table.
82992         (lookup_zone): Prefer universal_time_zone_table to
82993         local_time_zone_table, so that "GMT" time stamps are allowed in
82994         London during the summer.  Problem reported by Ian Abbott.
82995
82996 2005-04-12  Jim Meyering  <jim@meyering.net>
82997
82998         * lib/human.c (humblock): Set *options even when returning due to
82999         xstrtoumax conversion failure.  Thanks to a used-uninitialized
83000         warning from gcc-4.
83001
83002 2005-04-09  Jim Meyering  <jim@meyering.net>
83003
83004         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
83005         -Wuninitialized: initialize tm0.tm_year.
83006
83007 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
83008
83009         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
83010         count, since there's no maximum.  All uses changed.
83011         Add member dsts_seen.
83012         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
83013         not being INT_MAX.
83014         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
83015         Use pc_rels_seen to decide whther a date is absolute.
83016
83017         * lib/getdate.y (number): Don't overwrite year.
83018         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
83019         check.
83020
83021 2005-04-02  Simon Josefsson  <jas@extundo.com>
83022
83023         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
83024         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
83025
83026 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
83027
83028         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
83029         where no absolute path name can be longer than PATH_MAX.
83030
83031 2005-03-27  Jim Meyering  <jim@meyering.net>
83032
83033         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
83034
83035 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
83036
83037         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
83038         "one's complement" -> "ones' complement" in comment, as per Knuth.
83039         "value of type" -> "type or expression" in comment.
83040         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
83041
83042 2005-03-26  Jim Meyering  <jim@meyering.net>
83043
83044         Comment nits.
83045         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
83046         Correct typos: s/or/of/.
83047
83048 2005-03-26  Jim Meyering  <jim@meyering.net>
83049
83050         * modules/check-include-files: Move to ../ and rename to...
83051         * check-module: ...this.
83052
83053 2005-03-25  Jim Meyering  <jim@meyering.net>
83054
83055         * modules/xvasprintf (Files): Add xalloc.h.
83056
83057 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
83058
83059         * modules/gettext (Files): config/config.rpath ->
83060         build-aux/config.rpath
83061         * modules/iconv (Files): Likewise.
83062         Problem reported by Oskar Liljeblad.
83063
83064 2005-03-23  Jim Meyering  <jim@meyering.net>
83065
83066         * modules/check-include-files: New script to check for
83067         missing dependencies, multiple includes, etc.
83068
83069         * modules/c-strtold (Depends-on): Add xalloc.
83070         * modules/c-strtod (Depends-on): Add xalloc.
83071         * modules/hash (Depends-on): Add xalloc.
83072         (Files): Remove lib/xalloc.h.
83073
83074         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
83075         * modules/userspec (Files): Add lib/inttostr.h.
83076
83077 2005-03-23  Jim Meyering  <jim@meyering.net>
83078
83079         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
83080
83081 2005-03-22  Jim Meyering  <jim@meyering.net>
83082
83083         * modules/stat-macros: New module.
83084         * modules/canonicalize, modules/euidaccess, modules/file-type,
83085         * modules/filemode, modules/lchown, modules/makepath,
83086         * modules/rmdir, modules/stat: Depend on new stat-macros module
83087         rather than listing lib/stat-macros.h manually.
83088         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
83089
83090 2005-03-22  Jim Meyering  <jim@meyering.net>
83091
83092         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
83093
83094 2005-03-22  Bruno Haible  <bruno@clisp.org>
83095
83096         * config/srclist.txt: Replace target directory 'config' with
83097         'build-aux'.
83098         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
83099         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
83100         ../build-aux/.
83101
83102 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
83103
83104         * modules/chdir-long (Depends-on): Add mempcpy.
83105
83106         * modules/acl, modules/backupfile, modules/c-strtod,
83107         modules/c-strtold, modules/canon-host, modules/canonicalize,
83108         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
83109         modules/exclude, modules/exitfail, modules/file-type,
83110         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
83111         modules/getdate, modules/getline, modules/getpagesize,
83112         modules/getpass, modules/getugroups, modules/group-member,
83113         modules/hard-locale, modules/hash, modules/human, modules/idcache,
83114         modules/inttostr, modules/long-options, modules/makepath,
83115         modules/md5, modules/memcasecmp, modules/memcoll,
83116         modules/modechange, modules/mountlist, modules/path-concat,
83117         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
83118         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
83119         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
83120         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
83121         modules/strftime, modules/strndup, modules/strverscmp,
83122         modules/timespec, modules/unlocked-io, modules/userspec,
83123         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
83124         modules/yesno:
83125         Remove lib_SOURCES line from Makefile.am section, as this is now
83126         done automatically by the corresponding Autoconf macro.
83127
83128 2005-03-21  Jim Meyering  <jim@meyering.net>
83129
83130         Changes imported from coreutils.
83131
83132         * lib/cycle-check.c: Don't include xalloc.h.
83133
83134         * lib/path-concat.c: Don't include assert.h.
83135         (path_concat): Remove assertion that would have triggered
83136         for ABASE starting with more than one slash.
83137         Reported by Andreas Schwab.
83138
83139         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
83140         properly when ABASE is an absolute file name.
83141         Correct the description of this function.
83142         Include <assert.h>.
83143         Add an assertion and a test driver.
83144         This fixes a bug introduced on 2004-07-02.
83145         Andreas Schwab reported the resulting failure of cp --parents:
83146         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
83147
83148 2005-03-21  Jim Meyering  <jim@meyering.net>
83149
83150         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
83151         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
83152
83153 2005-03-21  Jim Meyering  <jim@meyering.net>
83154         and  Paul Eggert  <eggert@cs.ucla.edu>
83155
83156         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
83157         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
83158         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
83159         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
83160         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
83161         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
83162         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
83163         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
83164         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
83165         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
83166         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
83167         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
83168         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
83169         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
83170         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
83171         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
83172         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
83173         for these modules.
83174
83175 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
83176
83177         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
83178         (which shouldn't happen), generate nothing instead of returning 0
83179         immediately, so that nstrftime (NULL, ...) doesn't return 0.
83180
83181 2005-03-16  Bruno Haible  <bruno@clisp.org>
83182
83183         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
83184         HAVE_LONGLONG_64BIT.
83185
83186 2005-03-16  Bruno Haible  <bruno@clisp.org>
83187
83188         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
83189         HAVE_LONGLONG_64BIT.
83190
83191 2005-03-16  Bruno Haible  <bruno@clisp.org>
83192
83193         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
83194         HAVE_LONGLONG_64BIT.
83195
83196 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
83197
83198         * lib/strftime.c (my_strftime): Prepend space to format so that we can
83199         reliably distinguish strftime failure from empty output on POSIX
83200         hosts.
83201
83202 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
83203
83204         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
83205         (iconv_string): Don't guess a size-zero buffer, as that might cause
83206         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
83207         result would be 'too large', where 'too large' is (heuristically)
83208         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
83209         overflow concerns.  This will prevent some unwanted malloc failures
83210         when the inputs are very large.
83211
83212 2005-03-15  Karl Berry  <karl@gnu.org>
83213
83214         * config/srclist.txt (config.rpath): from gettext.
83215         * config/config.rpath: update.
83216
83217 2005-03-15  Bruno Haible  <bruno@clisp.org>
83218
83219         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
83220         to 'negate'.
83221
83222         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
83223         variable.
83224
83225         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
83226         results.
83227
83228 2005-03-14  Simon Josefsson  <jas@extundo.com>
83229
83230         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
83231         <fx@gnu.org>.
83232
83233 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
83234
83235         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
83236         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
83237         intprops.h.
83238         * lib/strtol.c: Likewise.
83239
83240 2005-03-14  Jim Meyering  <jim@meyering.net>
83241
83242         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
83243         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
83244         to be nonzero so that we (and caller) can detect the difference
83245         between a valid zero-length expansion and an error return, even
83246         when the underlying strftime fails before writing anything into
83247         that location.
83248
83249 2005-03-14  Bruno Haible  <bruno@clisp.org>
83250
83251         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
83252         Update from GNU gettext 0.14.3.
83253
83254 2005-03-10  Jim Meyering  <jim@meyering.net>
83255
83256         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
83257
83258 2005-03-10  Jim Meyering  <jim@meyering.net>
83259
83260         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
83261         so that this module works on systems without fchdir.
83262
83263 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
83264
83265         Factor int-properties macros into a single file, except for
83266         glibc-related files.
83267         * lib/intprops.h: New file.
83268         * lib/getloadavg.c: Include it instead of limits.h.
83269         (INT_STRLEN_BOUND): Remove.
83270         * lib/human.c: Include intprops.h.
83271         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
83272         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
83273         302/1000.
83274         * lib/inttostr.h: Include intprops.h instead of limits.h.
83275         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
83276         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
83277         for consistency with intprops.h.
83278         (time_t_is_integer, twos_complement_arithmetic): Use them.
83279         * lib/sig2str.h: Include <signal.h>, intprops.h.
83280         (INT_STRLEN_BOUND): Remove.
83281         * lib/strftime.c (TYPE_SIGNED): Remove.
83282         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
83283         * lib/strtol.c: Adjust comments to match intprops.h.
83284         * lib/userspec.c: Include intprops.h.
83285         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
83286         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
83287         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
83288         instead of rolling our own expressions.
83289         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
83290
83291         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
83292         instead of int.
83293         (my_strftime): Do not mishandle years close to INT_MAX, by doing
83294         the right thing even if adding 1900 would overflow.  Similarly
83295         for tm_mon + 1 and tm_yday + 1.
83296         Make %Y always equivalent to %C%y, and similarly for %G and %g.
83297         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
83298         (DO_SIGNED_NUMBER): New macro.
83299         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
83300
83301 2005-03-07  Bruno Haible  <bruno@clisp.org>
83302
83303         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
83304
83305 2005-03-07  Bruno Haible  <bruno@clisp.org>
83306
83307         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
83308
83309 2005-03-04  Derek R. Price  <derek@ximbiot.com>
83310
83311         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
83312         (func_import): Only replace files via --import when they have actually
83313         changed.
83314
83315 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83316
83317         * m4/mmap-anon.m4: New file.
83318         * m4/pagealign_alloc.m4: New file.
83319
83320 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83321             Bruno Haible  <bruno@clisp.org>
83322
83323         * modules/pagealign_alloc: New file.
83324         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
83325
83326 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83327             Bruno Haible  <bruno@clisp.org>
83328
83329         * lib/pagealign_alloc.h: New file.
83330         * lib/pagealign_alloc.c: New file.
83331
83332 2005-03-03  Bruno Haible  <bruno@clisp.org>
83333
83334         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
83335         Use an all-permissive copyright notice, recommended by RMS.
83336
83337 2005-03-02  Bruno Haible  <bruno@clisp.org>
83338
83339         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
83340         of AIX, the replacement has to be done only after <string.h> is
83341         included, therefore not in config.h. stpncpy.h does the replacement,
83342         and stpncpy.c uses it.
83343
83344 2005-03-02  Bruno Haible  <bruno@clisp.org>
83345
83346         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
83347         stpncpy.c uses it.
83348
83349 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83350
83351         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
83352         The workaround isn't strictly needed for POSIX conformance, and
83353         it's too much of a pain to configure and maintain.  We'll ask
83354         people to fix their kernels instead.
83355         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
83356         (NANOSLEEP_BUG_WORKAROUND): Remove.
83357         (xnanosleep): Remove the workaround.
83358
83359 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83360
83361         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
83362         Reported by Derek Price.
83363         (Include): Add "timespec.h".
83364
83365         * modules/xnanosleep (Depends-on): Remove gethrxtime.
83366
83367 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83368
83369         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
83370         to detect nanosleep bug.
83371
83372 2005-03-01  Bruno Haible  <bruno@clisp.org>
83373
83374         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
83375
83376 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
83377
83378         * modules/gethrxtime: New file.
83379         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
83380         (Depends-on): Add gethrxtime.
83381         (configure.ac): Add gl_XNANOSLEEP.
83382         (Makefile.am): Remove lib_SOURCES line.
83383
83384 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
83385
83386         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
83387         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
83388
83389 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
83390
83391         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
83392         * lib/timespec.h (gettime): Return void, since it always
83393         succeeds now.  All uses changed.
83394         * lib/gettime.c (gettime): Likewise.
83395         [HAVE_NANOTIME]: Prefer nanotime.
83396         Assume gettimeofday succeeds, as POSIX requires.
83397         Assime time () succeeds, since other code already does.
83398         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
83399         (timespec_subtract): Remove.
83400         (NANOSLEEP_BUG_WORKAROUND): New constant.
83401         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
83402         things considerably.  Use it only on GNU/Linux hosts, since the
83403         workaround shouldn't be needed elsewhere.
83404
83405 2005-02-24  Bruno Haible  <bruno@clisp.org>
83406
83407         * modules/gettext (Files): Add m4/glibc2.m4.
83408
83409 2005-02-24  Bruno Haible  <bruno@clisp.org>
83410
83411         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
83412         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
83413         * m4/progtest.m4:
83414         Update from GNU gettext 0.14.2.
83415         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
83416
83417 2005-02-24  Bruno Haible  <bruno@clisp.org>
83418
83419         * lib/localcharset.c: Update from GNU gettext 0.14.2.
83420         * lib/config.charset: Update from GNU gettext 0.14.2.
83421
83422 2005-02-24  Bruno Haible  <bruno@clisp.org>
83423
83424         * lib/gettext.h: Update from GNU gettext 0.14.2.
83425
83426 2005-02-23  Simon Josefsson  <jas@extundo.com>
83427
83428         * m4/iconvme.m4: New file.
83429
83430 2005-02-23  Jim Meyering  <jim@meyering.net>
83431
83432         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
83433         change.
83434         Thanks to Bruno Haible for catching it.
83435
83436 2005-02-22  Simon Josefsson  <jas@extundo.com>
83437
83438         * modules/iconvme: New file.
83439
83440         * MODULES.html.sh: Add iconvme.
83441
83442 2005-02-22  Simon Josefsson  <jas@extundo.com>
83443
83444         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
83445
83446 2005-02-22  Simon Josefsson  <jas@extundo.com>
83447
83448         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
83449
83450 2005-02-22  Jim Meyering  <jim@meyering.net>
83451
83452         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
83453         s/ifndef/ifdef/.
83454
83455 2005-02-20  Neil Conway  <neilc@samurai.com>
83456
83457         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
83458         returned by OSX/Darwin if the specified buffer is not large
83459         enough for the hostname.
83460
83461 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83462
83463         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
83464         pass it to _help, otherwise the latter coredumps trying to
83465         dereference state.root_argp.
83466
83467 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83468
83469         * modules/chdir-long (Depends-on): Add memrchr.
83470         * modules/memrchr (Files): Add lib/memrchr.h.
83471         (Include): "memrchr.h".
83472
83473 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83474
83475         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
83476
83477 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83478
83479         * lib/memrchr.h: New file.
83480         * lib/chdir-long.c: Include it.
83481         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
83482         Don't bother including stddef.h.
83483
83484 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
83485
83486         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
83487         inclusion.
83488         Include <sys/types.h>, for dev_t.
83489         (ME_DUMMY, ME_REMOTE): Move from here....
83490         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
83491         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
83492         Dmitry V. Levin.
83493         Include mountlist.h first, to test the interface.
83494
83495 2005-01-29  Bruno Haible  <bruno@clisp.org>
83496
83497         * lib/progname.c (program_name): Initialize.
83498         Needed when linking statically on MacOS X.
83499
83500 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
83501
83502         Sync from coreutils.
83503         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
83504         (Depends-on): Add c-strtod.
83505         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
83506
83507 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
83508
83509         Sync from coreutils.
83510         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
83511
83512         Remove files that are specific to coreutils.
83513         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
83514
83515 2005-01-28  Bruno Haible  <bruno@clisp.org>
83516
83517         * modules/javacomp: New file.
83518         * MODULES.html.sh (Java): Add javacomp.
83519
83520 2005-01-28  Bruno Haible  <bruno@clisp.org>
83521
83522         * m4/javacomp.m4: New file, from GNU gettext.
83523
83524 2005-01-28  Bruno Haible  <bruno@clisp.org>
83525
83526         * lib/javacomp.sh.in: New file, from GNU gettext.
83527         * lib/javacomp.h: New file, from GNU gettext.
83528         * lib/javacomp.c: New file, from GNU gettext.
83529
83530 2005-01-26  Simon Josefsson  <jas@extundo.com>
83531
83532         * lib/gai_strerror.c: Use GPL in header.
83533
83534 2005-01-26  Bruno Haible  <bruno@clisp.org>
83535
83536         * modules/javaexec: New file.
83537         * MODULES.html.sh (Java): Add javaexec.
83538
83539 2005-01-26  Bruno Haible  <bruno@clisp.org>
83540
83541         * m4/javaexec.m4: New file, from GNU gettext.
83542
83543 2005-01-26  Bruno Haible  <bruno@clisp.org>
83544
83545         * lib/javaexec.sh.in: New file, from GNU gettext.
83546         * lib/javaexec.h: New file, from GNU gettext.
83547         * lib/javaexec.c: New file, from GNU gettext.
83548
83549 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83550
83551         * modules/lchown (Depends-on): Remove lchown.h
83552
83553 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83554
83555         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
83556         must be defined if the header file was not found, in order
83557         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
83558
83559 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83560
83561         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
83562         initializers for struct pentry_state.
83563         (__argp_error): Check return value of __asprintf
83564         (__argp_failure): Translate error message
83565
83566         * lib/argp-parse.c: Removed braces around the expansion of N_()
83567
83568 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83569
83570         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
83571         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
83572         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
83573         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
83574         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
83575         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
83576         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
83577         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
83578         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
83579         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
83580         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
83581         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
83582         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
83583         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
83584         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
83585         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
83586         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
83587         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
83588         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
83589         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
83590         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
83591         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
83592         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
83593         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
83594         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
83595         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
83596         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
83597         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
83598         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
83599         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
83600         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
83601         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
83602         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
83603         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
83604         xstrtol.m4, xstrtoumax.m4, yesno.m4:
83605         Use an all-permissive copyright notice, recommended by RMS.
83606
83607 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
83608
83609         * modules/chdir-long (Depends-on): Remove mempcpy.
83610
83611 2005-01-21  Jim Meyering  <jim@meyering.net>
83612
83613         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
83614         same value as for Solaris 9.
83615
83616         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
83617         component length.  This included changing the parameter to be
83618         of type `char *' rather than `char const *'.
83619         * lib/chdir-long.h (chdir_long): Update prototype.
83620
83621         * lib/openat.c (fdopendir, fstatat): New functions.
83622         * lib/openat.h: Include headers required for use of DIR and struct
83623         stat.
83624         [AT_SYMLINK_NOFOLLOW]: Define.
83625         (fdopendir, fstatat): Add prototypes.
83626
83627 2005-01-21  Bruno Haible  <bruno@clisp.org>
83628
83629         * modules/classpath: New file.
83630         * MODULES.html.sh (Java): Add classpath.
83631
83632 2005-01-21  Bruno Haible  <bruno@clisp.org>
83633
83634         * lib/classpath.h: New file, from GNU gettext.
83635         * lib/classpath.c: New file, from GNU gettext.
83636
83637 2005-01-20  Simon Josefsson  <jas@extundo.com>
83638
83639         * modules/version-etc-fsf: New file.
83640
83641 2005-01-20  Simon Josefsson  <jas@extundo.com>
83642
83643         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
83644         * lib/version-etc.c: Remove version_etc_copyright.
83645         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
83646         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
83647
83648 2005-01-20  Simon Josefsson  <jas@extundo.com>
83649
83650         * lib/base64.h (isbase64): Add.
83651
83652         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
83653         using a unsigned prototype, don't inline.
83654         (base64_decode): Use it.
83655
83656 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83657
83658         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
83659         it.
83660
83661 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83662
83663         * lib/save-cwd.c (save_cwd): Remove code to support the case
83664         where fchdir is missing or flaky.
83665
83666 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83667
83668         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
83669
83670 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
83671
83672         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
83673         AC_LIBSOURCES now does this.
83674         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
83675         with new ullong_max module.
83676
83677 2005-01-19  Bruno Haible  <bruno@clisp.org>
83678
83679         * modules/sh-quote: New file.
83680         * MODULES.html.sh (Executing programs): Add sh-quote.
83681
83682 2005-01-19  Bruno Haible  <bruno@clisp.org>
83683
83684         * lib/sh-quote.h: New file, from GNU gettext.
83685         * lib/sh-quote.c: New file, from GNU gettext.
83686
83687 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
83688
83689         Merge from coreutils.
83690         * m4/ullong_max.m4: New file.
83691         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
83692         (gl_MACROS): Assume localeconv exists.
83693
83694 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
83695
83696         Merge changes from coreutils, as described below in several
83697         changelogs dated today.
83698
83699         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
83700         (O_DIRECTORY): Remove; not needed here, since "." must be
83701         a directory.  All uses removed.
83702         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
83703         universal on Suns, and we also need to test for IRIX.
83704         Revamp code to use 'if' rather than '#if'.
83705         Avoid unnecessary comparison of cwd->desc to 0.
83706
83707         * lib/utimens.c (futimens): Robustify the previous patch, by checking
83708         for known valid error numbers rather than observed invalid ones.
83709
83710 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
83711
83712         * modules/ullong_max: New file.
83713
83714         * modules/chdir-long, modules/openat: New files.
83715         * modules/save-cwd (Depends-on): Depend on chdir-long.
83716         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
83717
83718 2005-01-18  Jim Meyering  <jim@meyering.net>
83719
83720         Merge from coreutils.
83721         * m4/chdir-long.m4, m4/openat.m4: New files.
83722         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
83723         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
83724         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
83725         is sane and DOES follow symlinks.  Besides, testing 20 different
83726         systems found no broken chown implementations.
83727         Prompted by a change in rsync's copy of this macro.
83728         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
83729
83730         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
83731
83732         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
83733         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
83734         NULL-means-set-to-current-time semantics.
83735         Remove temporary file immediately, rather than waiting
83736         for configure's at-exit trap code to do it.
83737
83738 2005-01-18  Jim Meyering  <jim@meyering.net>
83739
83740         * lib/version-etc.c (version_etc_copyright): Update copyright date.
83741
83742         * lib/utimens.c (futimens): Account for the fact that futimes
83743         can also fail with errno == ENOSYS or errno == ENOENT.
83744         Patch from Dmitry V. Levin.
83745
83746         Change the name of the robust chdir function from chdir to chdir_long.
83747         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
83748         (restore_cwd): Use chdir_long, not chdir.
83749         * lib/chdir-long.c: Renamed from chdir.c.
83750         * lib/chdir-long.h: Renamed from chdir.h.
83751         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
83752         Hurd.
83753
83754 2005-01-18  Bruno Haible  <bruno@clisp.org>
83755
83756         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
83757         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
83758         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
83759         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
83760         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
83761         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
83762         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
83763         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
83764         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
83765         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
83766         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
83767         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
83768         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
83769         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
83770         Use an all-permissive copyright notice, recommended by RMS.
83771
83772 2005-01-18  Bob Proulx  <bob@proulx.com>
83773
83774         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
83775         simplify offsetof() macro construct to avoid compile failure with
83776         native HP-UX 11.0 ANSI C compiler.
83777
83778 2005-01-17  Bruno Haible  <bruno@clisp.org>
83779
83780         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
83781         redundant because stpncpy.m4 takes care of it.
83782
83783 2005-01-17  Bruno Haible  <bruno@clisp.org>
83784
83785         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
83786
83787 2005-01-17  Bruno Haible  <bruno@clisp.org>
83788
83789         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
83790         used.
83791
83792 2005-01-17  Bruno Haible  <bruno@clisp.org>
83793
83794         * lib/fwriteerror.h (fwriteerror): Change specification to include
83795         fclose.
83796         * lib/fwriteerror.c: Include <stdbool.h>.
83797         (fwriteerror): At the end, close the file stream. Record whether
83798         stdout was already closed.
83799
83800 2005-01-17  Bruno Haible  <bruno@clisp.org>
83801
83802         * lib/execute.c (environ): Declare if needed.
83803         * lib/pipe.c (environ): Likewise.
83804         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
83805
83806 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83807
83808         * modules/argp: Depend on vsnprintf
83809
83810 2005-01-10  Jim Meyering  <jim@meyering.net>
83811
83812         * modules/closeout (Depends-on): Add atexit.
83813
83814 2005-01-06  Bruno Haible  <bruno@clisp.org>
83815
83816         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
83817
83818 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
83819
83820         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
83821         definitions to be after all include files, to avoid collisions.
83822         Problem reported by Bob Proulx.
83823
83824 2005-01-04  Jim Meyering  <jim@meyering.net>
83825
83826         Changes imported from coreutils.
83827         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
83828         as the mkstemp template, use a temporary directory and an
83829         8.3-friendly template to avoid trouble on systems like DJGPP.
83830         Reported by Juan M. Guerrero via Stepan Kasal.
83831         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
83832         close. Remove the temporary directory right away, rather than waiting
83833         for configure's at-exit trap code to do it.
83834         Suggestion from Stepan Kasal.
83835
83836 2005-01-01  Simon Josefsson  <jas@extundo.com>
83837
83838         * gnulib-tool: Print #include directives when --import'ing.
83839
83840 2004-12-28  Simon Josefsson  <jas@extundo.com>
83841
83842         * tests/test-base64.c: Include required header files.  Remove
83843         unused variables.
83844
83845 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
83846
83847         * modules/error (Depends-on): Remove gettext.
83848
83849 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
83850
83851         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
83852         not needed.  This removes a dependency on the gettext module.
83853         [defined _LIBC]: Do not include <libintl.h>; not needed.
83854
83855 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
83856
83857         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
83858         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
83859
83860 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
83861
83862         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
83863         HAVE_DECL_STRTOLD.
83864
83865 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
83866
83867         * modules/getdate (Depends-on): Remove alloca-opt.
83868
83869 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
83870
83871         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
83872
83873 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
83874
83875         * lib/argp-parse.c: Include <stddef.h>.
83876         (alignof, alignto): New macros.
83877         (parser_init): Don't assume that void * is aligned sufficiently
83878         for struct option.
83879
83880         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
83881         need to extend the stack.
83882         (YYINITDEPTH): New macro, so that the initial stack isn't overly
83883         large.
83884
83885 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83886
83887         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
83888
83889 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
83890
83891         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
83892         (2004-10-24) change.  Apparently this was a false alarm.
83893
83894         * modules/getdate: Depend on alloca-opt, not alloca.
83895
83896 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
83897
83898         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
83899         Remove now-obsolete comment about AIX.
83900         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
83901         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
83902         (YYMAXDEPTH): New macro.
83903
83904 2004-12-18  Simon Josefsson  <jas@extundo.com>
83905
83906         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
83907
83908 2004-12-18  Bruno Haible  <bruno@clisp.org>
83909
83910         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
83911
83912 2004-12-18  Bruno Haible  <bruno@clisp.org>
83913
83914         * lib/fatal-signal.c (fatal_signals): Make non-const.
83915         (init_fatal_signals): New function.
83916         (uninstall_handlers, install_handlers): Ignore signals that were set to
83917         SIG_IGN.
83918         (at_fatal_signal): Call init_fatal_signals.
83919         (init_fatal_signal_set): Likewise. Ignore signals that were set to
83920         SIG_IGN.
83921         Reported by Paul Eggert.
83922
83923 2004-12-18  Bruno Haible  <bruno@clisp.org>
83924
83925         * doc/alloca.texi: New file.
83926         * doc/alloca-opt.texi: New file.
83927
83928 2004-12-17  Jim Meyering  <jim@meyering.net>
83929
83930         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
83931         Otherwise, install-sh could exit with improper exit status when
83932         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
83933
83934 2004-12-16  Simon Josefsson  <jas@extundo.com>
83935
83936         * tests/test-base64.c: Add license.
83937
83938 2004-12-15  Stepan Kasal  <address@hidden>
83939
83940         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
83941
83942 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
83943
83944         * modules/getcwd (Files): Add m4/d-ino.m4.
83945         Suggested by Mark D. Baushke.
83946
83947 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
83948
83949         * lib/getdate.y (textint): New member "negative".
83950         (time_zone_hhmm): New function.
83951         Expect 14 shift-reduce conflicts, not 13.
83952         (o_colon_minutes): New rule.
83953         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
83954         (yylex): Set the "negative" member of signed numbers.
83955
83956 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
83957
83958         * doc/getdate.texi (Time of day items, Time zone items):
83959         Describe new formats +00:00, UTC+00:00.
83960
83961 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
83962
83963         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
83964         spurious "-l"s.  Problem reported by Stepan Kasal.
83965
83966 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
83967
83968         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
83969         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
83970
83971 2004-12-04  Simon Josefsson  <jas@extundo.com>
83972
83973         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
83974         Vandoorselaere <yoann@prelude-ids.org>.
83975
83976 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
83977
83978         Changes imported from coreutils.
83979         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
83980         exist.
83981         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
83982
83983 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
83984
83985         Changes imported from coreutils.
83986         * lib/hard-locale.c: Assume <locale.h> exists.
83987         Include "strdup.h".
83988         (GLIBC_VERSION): New macro.
83989         (hard_locale): Assume setlocale exists.
83990         Rewrite to avoid #ifdef.
83991         Use strdup rather than malloc + strcpy.
83992         * lib/human.c: Assume <locale.h> exists.
83993         (human_readable): Assume localeconv exists.
83994
83995 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
83996
83997         * modules/hard-locale (Depends-on): Add strdup.
83998
83999 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
84000
84001         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
84002         convert T2, not T.  (Imported from libc.)
84003
84004 2004-11-30  Simon Josefsson  <jas@extundo.com>
84005
84006         * modules/restrict (License): Change to LGPL.
84007
84008 2004-11-30  Simon Josefsson  <jas@extundo.com>
84009
84010         * m4/restrict.m4: Add copyright and copying conditions.
84011
84012 2004-11-30  Simon Josefsson  <jas@extundo.com>
84013
84014         * m4/base64.m4: New file.
84015
84016 2004-11-30  Simon Josefsson  <jas@extundo.com>
84017
84018         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
84019         base64.
84020
84021         * tests/test-base64.c: New file.
84022
84023         * modules/base64: New file.
84024
84025 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
84026
84027         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
84028         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
84029
84030         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
84031
84032 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
84033
84034         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
84035         (__getcwd.c): Don't restore errno; glibc doesn't.
84036         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
84037         first, falling back to our code only if its results look suspicious.
84038         Ensure that the resulting buffer is only as large as necessary.
84039
84040         * lib/readutmp.c: Include readutmp.h first.
84041         Include <errno.h>, since readutmp.h no longer does that.
84042         * lib/readutmp.h: Don't include <errno.h>,
84043         <sys/param.h>, <time.h>; not needed to establish interface.
84044         (errno): Remove decl.
84045         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
84046         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
84047         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
84048
84049 2004-11-28  Simon Josefsson  <jas@extundo.com>
84050
84051         * lib/base64.h, base64.c: New file.
84052
84053 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
84054
84055         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
84056
84057 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
84058
84059         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
84060         (Depends-on): Remove pathmax, same.  Add mempcpy.
84061         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
84062         (Makefile.am): Append getcwd.h to lib_SOURCES.
84063         (Include): Add getcwd.h.
84064         (Maintainer): Change from Jim Meyering to "all, glibc",
84065         since getdate now uses intended-for-glibc code.
84066         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
84067         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
84068
84069 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84070
84071         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
84072         HP's ANSI C compiler.
84073         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
84074         Declaring int functions causes warnings on some modern systems and
84075         shouldn't be needed to compile on ancient ones.
84076         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
84077         defined.
84078
84079         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
84080         with the following changes.
84081         (__set_errno): Parenthesize properly.
84082         Include <stdbool.h>.
84083         (MIN, MAX, MATCHING_INO): New macros.
84084         (__getcwd): Define with prototype, not K&R form.
84085         Use heuristics to allocate default buffer on stack if possible.
84086         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
84087         behavior, and to avoid the PATH_MAX limit when computing
84088         ../../../../...
84089         Use MATCHING_INO to compare inode number to file.
84090         Check for arithmetic overflow in size calculations.
84091         Fix bug in reallocation of dot array that caused getcwd to fail
84092         on directories nested deeper than 75.
84093         Be more careful about saving errno on error.
84094         Do not use realloc; use only free+malloc, as this is a bit
84095         more flexible and avoids a needless copy operation.
84096         Do not inspect st_dev and st_ino for symbolic links; POSIX
84097         doesn't specify the latter.
84098         Check for closedir errors.
84099         Avoid needless casts.
84100         Use "#ifdef weak_alias" around weak_alias, to be like other
84101         glibc code.
84102         The following changes to getcwd.c have effect only when used in
84103         gnulib; they have no effect inside glibc proper.
84104         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
84105         as alloca isn't used.
84106         (alloca, __alloca): Likewise.
84107         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
84108         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
84109         unconditionally, as gnulib assumes C89 or better.
84110         Do not include <sys/param.h>.
84111         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
84112         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
84113         better.
84114         (NULL) [!defined NULL]: Remove; we assume C89 or better.
84115         Include <dirent.h> in a way that is compatible with modern Autoconf.
84116         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
84117         New macros, if not already defined.
84118         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
84119         Use "_LIBC", not "defined _LIBC", for consistency.
84120         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
84121         a mempcpy module.
84122         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
84123         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
84124         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
84125         credit only to Jim Meyering and adjust the copyright dates.
84126         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
84127         <stdlib.h>, <unistd.h>, "pathmax.h".
84128         Instead, include "xgetcwd.h" (first) and "getcwd.h".
84129         (INITIAL_BUFFER_SIZE): Remove.
84130         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
84131
84132 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84133
84134         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
84135         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
84136         Use the _ONCE methods, for efficiency.
84137         Check for fcntl.h.  In test program, include <errno.h>
84138         and <fcntl.h> if available.  Remove old K&R cruft from
84139         test program.  Check for common errors in GNU/Linux,
84140         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
84141         don't do AC_LIBOBJ, as that's getcwd.m4's job.
84142         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
84143         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
84144         name accordingly.
84145         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
84146         accommodate new getcwd.c.
84147         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
84148         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
84149         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
84150         that's all we need now.
84151
84152 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84153
84154         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
84155         argp-parse.c depends on getopt internals, that means we should
84156         always use our getopt, to be on the safe side.
84157         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
84158         order not to spoil the result of an eventual previous invocation
84159         of gl_GETOPT_SUBSTITUTE.
84160
84161 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84162
84163         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
84164         redefinition warnings. To avoid them, include the defines
84165         in `#if !defined __need_getopt ... #endif'. The only place
84166         where __getopt_argv_const is used is in definitions
84167         of getopt_long and getopt_long_only below, which are as well
84168         protected by `#ifndef __need_getopt'.
84169         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
84170         __need_getopt after including <stdio.h> and <unistd.h> These
84171         headers might have defined it.
84172
84173 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
84174
84175         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
84176
84177 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
84178
84179         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
84180         (futimens): New function, which uses futimes if available.
84181         (futimens, utimens): Support timespec==NULL, with same semantics
84182         as utime and utimens.
84183         * lib/utimens.h (futimens): New decl.
84184
84185 2004-11-23  Jim Meyering  <jim@meyering.net>
84186
84187         * lib/getopt_.h: Remove trailing blanks.
84188
84189 2004-11-23  Jim Meyering  <jim@meyering.net>
84190
84191         * lib/__fpending.c: Add comment.
84192
84193 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
84194
84195         * modules/canonicalize (Depends-on): Add xreadlink.
84196         Problem reported by James Youngman.
84197
84198 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
84199
84200         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
84201         New macros.
84202         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
84203         optopt): Use them instead of invoking ## directly; otherwise, the
84204         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
84205
84206 2004-11-19  Bruno Haible  <bruno@clisp.org>
84207
84208         * lib/strtok_r.c: Move comments from here...
84209         * lib/strtok_r.h: ... to here.
84210
84211 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
84212
84213         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
84214         implementations that mishandle size_t overflow.
84215
84216 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
84217
84218         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
84219         might fail.  Problem reported by Yoann Vandoorselaere.
84220         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
84221         implementations that mishandle size_t overflow.
84222
84223 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84224
84225         * modules/canon-host (Depends-on): Add strdup.
84226
84227 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84228
84229         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
84230
84231 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84232
84233         * lib/canon-host.c: Include "strdup.h".
84234         (canon_host): Use getaddrinfo if available, so that IPv6 works.
84235         Use strdup instead of malloc/strcpy to duplicate strings.
84236
84237         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
84238         (human_space_before_unit): New constant.
84239         * lib/human.c (human_readable): Support it.
84240
84241         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
84242         (xgetcwd): Set errno correctly when failing.
84243         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
84244         the failure is actually due to a PATH_MAX problem.
84245
84246         Further getopt changes to make it more likely that glibc will
84247         buy the changes back.
84248         * lib/getopt.c (POSIXLY_CORRECT): New constant.
84249         (getopt): Use it, so to preserve glibc semantic
84250         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
84251         when compiling for libc.
84252         * lib/getopt_.h (__getopt_argv_const): Bring it back.
84253         (getopt_long, getopt_long_only): Use it.
84254
84255         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
84256         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
84257         (getopt): Argv is now char * const *, as per standard.
84258         (_getopt_internal_r, _getopt_internal): Argv is now char **,
84259         not char *__getopt_argv_const *.
84260         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
84261         _getopt_long_only_r): Likewise.
84262         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
84263         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
84264         _getopt_long_r, _getopt_long_only_r): Likewise.
84265         * lib/getopt_.h (__getopt_argv_const): Remove.
84266         (getopt): Argv is now char * const *, as per standard.
84267
84268         * lib/getdate.y (tORDINAL): New token.
84269         (day, relunit): Allow it for relative times.
84270         (relative_time_table): Use tORDINAL for ordinals.
84271
84272 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84273
84274         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
84275         Document that "second" isn't allowed as an ordinal number.
84276
84277 2004-11-16  Jim Meyering  <jim@meyering.net>
84278
84279         * modules/closeout (Depends-on): Add fpending.
84280
84281 2004-11-15  Jim Meyering  <jim@meyering.net>
84282
84283         * lib/closeout.c: Include "__fpending.h" once again.
84284         Include <stdbool.h>.
84285         (close_stdout): Don't fail just because stdout was closed initially,
84286         since some programs don't write to stdout in the normal course of
84287         operation (other than --version and --help), and we don't want this
84288         function to make e.g. `touch file >&-' fail.
84289         But do fail if it was closed and someone has tried to write to it.
84290         E.g., `printf foo >&-' must fail.
84291
84292 2004-11-13  Jim Meyering  <jim@meyering.net>
84293
84294         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
84295
84296 2004-11-12  Simon Josefsson  <jas@extundo.com>
84297
84298         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
84299         small doc fix is still pending.
84300
84301 2004-11-11  Simon Josefsson  <jas@extundo.com>
84302
84303         * modules/strtok_r: New file.
84304
84305         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84306         strtok_r.
84307
84308 2004-11-11  Simon Josefsson  <jas@extundo.com>
84309
84310         * m4/strtok_r.m4: New file.
84311
84312         * m4/getopt.m4: Replace opterr.
84313
84314 2004-11-11  Simon Josefsson  <jas@extundo.com>
84315
84316         * lib/strtok_r.h, strtok_r.c: New file.
84317
84318 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
84319
84320         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
84321         of replacing opterr, getopt, etc.  This should handle the
84322         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
84323
84324 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
84325
84326         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
84327         we can stop lying to compilers about the constness of argv when we
84328         are compiled outside glibc.
84329         (getopt, getopt_long, getopt_long_only): Use it.
84330         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
84331         _getopt_internal, getopt): Likewise.
84332         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
84333         _getopt_long_only_r): Likewise.
84334         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
84335         _getopt_long_r, _getopt_long_only_r): Likewise.
84336
84337         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
84338         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
84339         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
84340         the other external symbols.
84341         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
84342         declaration, since the above renaming now works around collisions.
84343
84344 2004-11-11  Jim Meyering  <jim@meyering.net>
84345
84346         * lib/linebreak.c: Remove trailing blanks.
84347         * lib/alloca_.h: Likewise.
84348         * lib/acosl.c: Likewise.
84349         * lib/euidaccess.c: Likewise.
84350         * lib/allocsa.h: Likewise.
84351
84352 2004-11-10  Simon Josefsson  <jas@extundo.com>
84353
84354         * m4/getaddrinfo.m4: New file.
84355
84356 2004-11-10  Simon Josefsson  <jas@extundo.com>
84357
84358         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
84359
84360 2004-11-10  Simon Josefsson  <jas@extundo.com>
84361
84362         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84363         getaddrinfo.
84364
84365         * modules/getaddrinfo: New file.
84366
84367 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84368
84369         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
84370
84371 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84372
84373         * lib/mktime.c (SHR): New macro, which is a portable
84374         substitute for >> that should work even on Crays.
84375         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
84376         Problem reported by Mark D. Baushke in
84377         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
84378         * lib/getdate.y (SHR): Likewise.
84379         (tm_diff): Use it.
84380         * lib/strftime.c (SHR): Likewise.
84381         (tm_diff): Use it.
84382         * lib/quotearg.c (struct quoting_options): Use unsigned int for
84383         quote_these_too, so that right shifts are well defined.  All uses
84384         changed.
84385
84386 2004-11-10  Jim Meyering  <jim@meyering.net>
84387
84388         Ensure that no close failure goes unreported.
84389         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
84390         return early when it seems there's nothing to flush.
84391         Don't include __fpending.h.
84392
84393 2004-11-10  Jim Meyering  <jim@meyering.net>
84394
84395         * modules/closeout (Depends-on): Remove fpending.
84396
84397 2004-11-10  Jim Meyering  <jim@meyering.net>
84398
84399         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
84400
84401 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
84402
84403         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
84404         gl_FUNC_STRFTIME.
84405         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
84406         and AC_REQUIRE when possible, to avoid duplicate checks.
84407         Check for <wchar.h>.
84408
84409 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
84410
84411         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
84412
84413 2004-11-09  Bruno Haible  <bruno@clisp.org>
84414
84415         * m4/sockpfaf.m4: New file.
84416
84417 2004-11-05  Bruno Haible  <bruno@clisp.org>
84418
84419         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
84420         Reported by Mark D. Baushke <mdb@cvshome.org>.
84421
84422 2004-11-04  Bruno Haible  <bruno@clisp.org>
84423
84424         2004-09-11  Bruno Haible  <bruno@clisp.org>
84425                 * allocsa.valgrind: New file.
84426         2004-02-06  Bruno Haible  <bruno@clisp.org>
84427                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
84428                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
84429                 Reported by Christopher Seip <chris.seip@hp.com>.
84430
84431 2004-11-04  Bruno Haible  <bruno@clisp.org>
84432
84433         * modules/allocsa (Files): Add lib/allocsa.valgrind.
84434         (Makefile.am): Distribute it.
84435
84436 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
84437
84438         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
84439         with errno == ERANGE if the buffer is too small.
84440         Problem reported by Mark D. Baushke.
84441
84442 2004-11-03  Albert Chin  <china@thewrittenword.com>
84443             Paul Eggert  <eggert@cs.ucla.edu>
84444
84445         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
84446         equivalent, substitute $ac_type for equivalent type rather than
84447         blindly using uint32_t *always* which won't work if uint32_t is not
84448         available.  Define _UINT32_T to work around typedef of uint32_t if
84449         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
84450         2.5.1.
84451
84452 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84453
84454         * m4/jm-macros.m4: Sync from coreutils.
84455         (gl_MACROS): Check for mbrlen, for pathchk.
84456         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
84457
84458 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84459
84460         * lib/xreadlink.c (MAXSIZE): New macro.
84461         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
84462         size does not exceed MAXSIZE.  Avoid cast.
84463         As suggested by Mark D. Baushke in
84464         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
84465         if readlink fails with buffer size just under MAXSIZE, try again
84466         with MAXSIZE.
84467
84468 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84469
84470         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
84471
84472 2004-11-02  Derek R. Price  <derek@ximbiot.com>
84473         and  Paul Eggert  <eggert@cs.ucla.edu>
84474
84475         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
84476         (get_date): Overparenthesize to avoid GCC warning.
84477
84478 2004-11-02  Bruno Haible  <bruno@clisp.org>
84479
84480         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
84481         returns void.
84482
84483 2004-11-02  Bruno Haible  <bruno@clisp.org>
84484
84485         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
84486         function returns void.
84487
84488 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
84489
84490         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
84491         fflush_unlocked, flockfile, funlockfile, funlockfile,
84492         fputs_unlocked, putc_unlocked.
84493
84494 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
84495
84496         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
84497         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
84498         already declared.
84499
84500 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84501
84502         * modules/getdate (Files): Add doc/getdate.texi.
84503         (Depends-on): Add setenv, xalloc.
84504
84505 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84506
84507         * lib/getdate.y: Add support for TZ="foo" within a date string.
84508         Fix some bugs near time_t boundaries.  Reject dates with
84509         out-of-range components, e.g., "Sept 31".
84510         Include <stdlib.h>, "setenv.h", "xalloc.h".
84511         (ISDIGIT_LOCALE): Remove; unused.
84512         Note that the TZ and time functions used here are not reentrant.
84513         (mktime_ok, get_tz): New functions.
84514         (TZBUFSIZE): New constant.
84515         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
84516         This requires that we sometimes generate our own TZ="XXX..." setting.
84517
84518 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84519
84520         * doc/getdate.texi: New file, from coreutils with modifications for
84521         the new TZ parsing.
84522
84523 2004-10-27  Derek R. Price  <derek@ximbiot.com>
84524
84525         * lib/mktime.c (not_equal_tm): Remove redundant check.
84526
84527 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
84528
84529         * modules/regex (lib_SOURCES): Add regex.c.
84530         Reported by James Youngman in
84531         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
84532
84533 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
84534
84535         * lib/getdate.y: Use Bison 1.875 features, and some minor
84536         code cleanups.  This change does not affect semantics.
84537         Don't include <stdlib.h>; no longer needed.
84538         Don't include unlocked-io.h; only the "#if TEST" code uses
84539         stdio, and performance isn't crucial there.
84540         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
84541         Bison 1.875 features as described below.
84542         All uses of "PC." replaced by "pc->".
84543         (YYSTYPE): Add a forward declaration.
84544         (yylex, yyerror): Use full prototypes in forward decls.
84545         Use "%pure-parser" rather than obsolescent "%pure_parser".
84546         Use %parse-param and %lex-param instead of obsolescent
84547         YYPARSE_PARAM and YYLEX_PARAM.
84548         (meridian_table, month_and_day_table, time_units_table,
84549         relative_time_table, time_zone_table, military_table,
84550         lookup_zone, lookup_word, get_date):
84551         Use NULL instead of 0 where appropriate.
84552         (to_hour): Avoid abort (), to avoid a dependency on
84553         stdlib.h.
84554         (yyerror, yylex): Now accepts parser_control * arg.
84555         (main) [TEST]: Use '\0' rather than 0 for char.
84556
84557 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
84558
84559         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
84560
84561 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
84562
84563         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
84564         It's now the caller's responsibility to handle the case where
84565         !HAVE_GETPAGESIZE && !defined getpagesize.
84566
84567         * lib/mktime.c (leapyear): Arg is long int, not int.
84568
84569 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
84570
84571         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
84572
84573 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
84574
84575         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
84576         missing.  Problem reported by James Youngman.
84577
84578 2004-10-16  Simon Josefsson  <jas@extundo.com>
84579
84580         * gnulib-tool: Fix comments.  Fix parse problem.
84581         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
84582
84583 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
84584
84585         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
84586         implementation of getopt_long.  Problem reported by Alexander Taler in:
84587         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
84588
84589 2004-10-15  Bruno Haible  <bruno@clisp.org>
84590
84591         * gnulib-tool: Untabify. Initialize supplied_libname.
84592         (func_usage): More homogenous output.
84593         (func_modules_transitive_closure, func_modules_to_filelist,
84594         func_emit_lib_Makefile_am): New functions.
84595         (func_import): New function, extracted from big case statement. Use
84596         func_get_license, func_modules_transitive_closure,
84597         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
84598         opt_lgpl. Don't use test -a, as it's not portable.
84599         (func_create_testdir): Use func_modules_transitive_closure,
84600         func_modules_to_filelist, func_emit_lib_Makefile_am.
84601
84602 2004-10-15  Bruno Haible  <bruno@clisp.org>
84603
84604         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
84605
84606 2004-10-15  Bruno Haible  <bruno@clisp.org>
84607
84608         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
84609         the portions belonging to each module.
84610         Suggested by Derek Robert Price <derek@ximbiot.com>.
84611
84612 2004-10-12  Simon Josefsson  <jas@extundo.com>
84613
84614         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
84615         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
84616         to real functions.
84617
84618 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84619
84620         * modules/vsnprintf: New file.
84621
84622 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84623
84624         * m4/vsnprintf.m4: New file.
84625
84626 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84627
84628         * lib/vsnprintf.h: New file.
84629         * lib/vsnprintf.c: New file.
84630
84631 2004-10-11  Bruno Haible  <bruno@clisp.org>
84632
84633         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
84634         vsnprintf.
84635
84636 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
84637
84638         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
84639
84640 2004-10-07  Bruno Haible  <bruno@clisp.org>
84641
84642         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
84643         fits into the provided buffer.
84644
84645 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
84646
84647         * lib/diacrit.c, diacrit.h: Add GPL notice.
84648
84649         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
84650         notice.
84651         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
84652         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
84653         This avoids a potential constant-folding bug.
84654
84655 2004-10-05  Bruno Haible  <bruno@clisp.org>
84656
84657         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
84658         for the declaration of strsep.
84659
84660 2004-10-05  Bruno Haible  <bruno@clisp.org>
84661
84662         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
84663
84664 2004-10-04  Simon Josefsson  <jas@extundo.com>
84665
84666         * modules/memmem: New file.
84667         * tests/test-memmem.c: New file.
84668         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
84669
84670 2004-10-04  Simon Josefsson  <jas@extundo.com>
84671
84672         * m4/memmem.m4: New file.
84673
84674 2004-10-04  Simon Josefsson  <jas@extundo.com>
84675
84676         * lib/memmem.h: New file.
84677         * lib/memmem.c: New file, taken from glibc.
84678
84679 2004-10-04  Simon Josefsson  <jas@extundo.com>
84680
84681         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
84682         '#ifdef USE_UNLOCKED_IO'.
84683
84684 2004-10-04  Simon Josefsson  <jas@extundo.com>
84685
84686         * config/srclist.txt: Add memmem from glibc.
84687
84688 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84689
84690         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
84691
84692         * modules/argmatch, modules/argp, modules/closeout, modules/error,
84693         modules/exclude, modules/getdate, modules/getline,
84694         modules/getndelim2, modules/getpass, modules/getpass-gnu,
84695         modules/getusershell, modules/linebuffer, modules/md5,
84696         modules/mountlist, modules/posixtm, modules/readtokens,
84697         modules/readutmp, modules/regex, modules/sha1,
84698         modules/version-etc, modules/yesno:
84699         Remove dependency on unlocked-io.
84700
84701 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84702
84703         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
84704
84705         * m4/unlocked-io.m4: Add copyright notice.
84706         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
84707
84708 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84709
84710         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
84711         * lib/xmalloc.c (xmemdup): Likewise.
84712         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
84713         XFREE): Remove these long-obsolescent macros.
84714         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
84715         * lib/xstrdup.c: Remove.
84716
84717         * lib/regex.c (re_comp): Cast gettext return value to char *,
84718         Problem reported by Martin Neitzel via Mark D. Baushke.
84719
84720 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84721
84722         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
84723         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
84724         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
84725         regex.c, sha1.c, version-etc.c, yesno.c:
84726         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
84727         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
84728         the includer's responsibility.
84729
84730         Sync from coreutils.
84731
84732         * lib/modechange.c (mode_compile): Don't decrement a pointer that
84733         points to the start of a string, as the C Standard says the
84734         resulting behavior is undefined.
84735
84736         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
84737         simple -> simple_backups, numbered_existing ->
84738         numbered_existing_backups, numbered -> numbered_backups
84739         to avoid shadowing problems.  All uses changed.
84740         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
84741         * lib/backupfile.c (check_extension, numbered_backup):
84742         Rename locals to avoid shadowing 'basename'.
84743         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
84744         once.
84745
84746         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
84747         * lib/.cvsignore: Add getopt.h.
84748
84749 2004-10-04  Bruno Haible  <bruno@clisp.org>
84750
84751         * modules/README: New file.
84752         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
84753         not a module.
84754
84755 2004-10-02  Jim Meyering  <jim@meyering.net>
84756
84757         * lib/dirfd.h, getpagesize.h: Add copyright notice.
84758
84759 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84760
84761         * modules/strsep: New file.
84762
84763 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84764
84765         * m4/strsep.m4: New file.
84766
84767 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84768
84769         * lib/strsep.h: New file.
84770         * lib/strsep.c: New file.
84771
84772 2004-10-01  Simon Josefsson  <jas@extundo.com>
84773
84774         * lib/snprintf.c (snprintf): Handle size==0.
84775
84776 2004-10-01  Simon Josefsson  <jas@extundo.com>
84777             Bruno Haible  <bruno@clisp.org>
84778
84779         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
84780         (snprintf): Declare 'args'.
84781
84782 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
84783
84784         * lib/snprintf.c: Remove comments as to why each header is needed.
84785
84786 2004-10-01  Bruno Haible  <bruno@clisp.org>
84787
84788         * MODULES.html.sh: Add strsep.
84789
84790 2004-09-30  Simon Josefsson  <jas@extundo.com>
84791
84792         * modules/snprintf: New file.
84793
84794 2004-09-30  Simon Josefsson  <jas@extundo.com>
84795
84796         * m4/snprintf.m4: New file.
84797
84798 2004-09-30  Simon Josefsson  <jas@extundo.com>
84799
84800         * lib/snprintf.h, lib/snprintf.c: New files.
84801
84802 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84803
84804         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
84805         (hol_entry_help): Never translate an empty string.
84806         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
84807         * lib/argp.h (OPTION_NO_TRANS): New option.
84808
84809 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
84810
84811         * modules/argp (Maintainer): Replace Simon Josefsson
84812         by Sergey Poznyakoff.
84813
84814 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
84815
84816         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
84817         changes merged back into glibc.
84818
84819 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
84820
84821         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
84822
84823 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
84824
84825         * lib/xvasprintf.c: Include xalloc.h.
84826         (xvasprintf): Use xalloc_die, not xmalloc_die.
84827
84828 2004-09-29  Bruno Haible  <bruno@clisp.org>
84829
84830         * modules/alloca-opt: New file, derived from modules/alloca.
84831         * modules/allocsa: Depend on alloca-opt instead of alloca.
84832         * modules/setenv: Likewise.
84833         * modules/vasnprintf: Likewise.
84834         * MODULES.html.sh: Add alloca-opt.
84835
84836 2004-09-28  Simon Josefsson  <jas@extundo.com>
84837
84838         * gnulib-tool: New parameter --lgpl, to asseert that modules are
84839         LGPL, and to replace license template from GPL to LGPL.
84840
84841 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
84842
84843         * modules/dummy: Change license to LGPL.
84844
84845 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
84846
84847         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
84848
84849 2004-09-24  Simon Josefsson  <jas@extundo.com>
84850
84851         * modules/minmax (License): Change from GPL to LGPL.
84852
84853 2004-09-23  Simon Josefsson  <jas@extundo.com>
84854
84855         * gnulib-tool (--import): Typo.
84856
84857 2004-09-23  Simon Josefsson  <jas@extundo.com>
84858
84859         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
84860
84861 2004-09-22  Bruno Haible  <bruno@clisp.org>
84862
84863         * modules/*: Add 'License' field.
84864         * gnulib-tool: Accept --extract-license option.
84865         (func_get_license): New function.
84866
84867 2004-09-21  Bruno Haible  <bruno@clisp.org>
84868
84869         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
84870         Reported by Simon Josefsson.
84871
84872 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
84873
84874         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
84875         gl_AC_TYPE_LONG_LONG.
84876
84877 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
84878
84879         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
84880
84881 2004-09-18  Simon Josefsson  <jas@extundo.com>
84882         and  Paul Eggert  <eggert@cs.ucla.edu>
84883
84884         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
84885         calls with autoreconf.  Define GL_LIB.
84886
84887 2004-09-14  Karl Berry  <karl@gnu.org>
84888
84889         * config/srclist.txt: unsync setenv.c, sigh.
84890
84891 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
84892
84893         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
84894         Problem reported by Bruno Haible in:
84895         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
84896
84897 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
84898
84899         * config/srclist.txt: Comment out argp-pvh.c.
84900
84901 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
84902
84903         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
84904         in case some system header has #define'd it.  Problem reported by
84905         Soeren D. Schulze in
84906         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
84907
84908 2004-09-09  Karl Berry  <karl@gnu.org>
84909
84910         * regex.[ch]: delete from the root.  These were supposed to be
84911                 synced with emacs cvs, but this has not happened for about
84912                 a year, and anyway nothing else uses emacs regex.[ch].
84913                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
84914                 lib/regex[.ch] is untouched.
84915
84916 2004-09-09  Bruno Haible  <bruno@clisp.org>
84917
84918         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
84919
84920 2004-09-09  Bruno Haible  <bruno@clisp.org>
84921
84922         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
84923         modifications.
84924         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
84925
84926 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
84927
84928         * modules/xvasprintf: New file.
84929         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
84930
84931 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
84932
84933         * lib/xvasprintf.h: New file.
84934         * lib/xvasprintf.c: New file.
84935         * lib/xasprintf.c: New file.
84936
84937 2004-09-08  Bruno Haible  <bruno@clisp.org>
84938
84939         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
84940
84941 2004-09-08  Bruno Haible  <bruno@clisp.org>
84942
84943         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
84944         length is > INT_MAX.
84945         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
84946         more.
84947
84948 2004-09-08  Bruno Haible  <bruno@clisp.org>
84949
84950         * lib/stdint_.h: New file, taken from GNU clisp.
84951
84952 2004-09-08  Bruno Haible  <bruno@clisp.org>
84953             Oskar Liljeblad  <oskar@osk.mine.nu>
84954
84955         * modules/stdint: New file.
84956         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
84957
84958 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84959
84960         Import from coreutils.
84961         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
84962         strings on unbounded length.  alloca's performance benefits aren't
84963         that important here.
84964         (V_STRDUP): Remove.
84965         (parse_with_separator): New function, with most of the internals
84966         of the old parse_user_spec.  Allow user to omit both user and group,
84967         for compatibility with FreeBSD.
84968         Clone only the user name, not the entire spec.
84969         Do not set *uid, *gid unless entirely successful.
84970         Avoid memory leak in some failing cases.
84971         Fix regression for USER.GROUP reported by Dmitry V. Levin in
84972         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
84973         (parse_user_spec): Rewrite to use parse_with_separator.
84974
84975 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84976
84977         * modules/userspec: Don't depend on alloca.
84978
84979 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84980
84981         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
84982
84983 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
84984
84985         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
84986         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
84987         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
84988
84989 2004-08-16  Simon Josefsson  <jas@extundo.com>
84990
84991         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
84992         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
84993         Add --dry-run for --import.
84994         Let user provided command line parameters override configure.ac
84995         settings.
84996
84997 2004-08-12  Simon Josefsson  <jas@extundo.com>
84998
84999         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
85000         as discussed with Paul Eggert in threads rooted at
85001         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
85002         and
85003         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
85004         Before, the test was empty, and relied on ELIDE_CODE in source
85005         code.)
85006         (gl_PREREQ_GETOPT): New macro.
85007         (gl_GETOPT): Use them.
85008
85009 2004-08-12  Simon Josefsson  <jas@extundo.com>
85010
85011         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
85012         * lib/getopt_.h: Renamed from getopt.h.
85013
85014 2004-08-12  Simon Josefsson  <jas@extundo.com>
85015
85016         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
85017         Change default library name from libfoo to libgnu.
85018         Now, if you have a configure.ac that says:
85019                 gl_SOURCE_BASE(gl)
85020                 gl_M4_BASE(gl/m4)
85021                 gl_MODULES(error getopt etcetera)
85022                 gl_INIT
85023         you can import all you need by running:
85024                 ../gnulib/gnulib-tool --import
85025
85026         * modules/getopt (Files): Rename getopt.h to getopt_.h.
85027         (Makefile.am): Rewrite, use logic from argz.
85028         (Include): Use <getopt.h> instead of "getopt.h".
85029
85030 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85031
85032         * modules/argp (Files): Add m4/unlocked-io.m4.
85033         (Depends-on): Add extensions.
85034
85035 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85036
85037         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
85038         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
85039         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
85040         Check for program_invocation_name, program_invocation_short_name,
85041         flockfile, funlockfile, features.h, _getopt_long_only_r.
85042
85043 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85044
85045         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
85046         its complicated substitute.
85047         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
85048         and program_invocation_name.
85049         (__argp_basename) [!_LIBC]: Remove; the only use was
85050         replaced by its body.
85051         (__argp_short_program_name): Change condition from
85052         !defined __argp_short_program_name to
85053         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
85054         to match argp-namefrob.h.
85055         (__argp_failure): Don't assume strerror_r returns char *.
85056         * lib/argp-parse.c (N_): Define unconditionally.
85057         (argp_default_options): Fill out initializers with 0 to avoid
85058         gcc warnings.
85059
85060 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85061
85062         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
85063         getopt1.c.
85064
85065 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85066
85067         Merge from coreutils.
85068
85069         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
85070
85071         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
85072         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
85073
85074 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85075
85076         Merge from coreutils.
85077
85078         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
85079         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
85080         for Reliant Unix 5.43.
85081
85082         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
85083         (union fooround): Use uintmax_t, not long int.
85084         The rest is a merge from libc:
85085         [defined _LIBC]: Include <shlib-compat.h>.
85086         (_obstack) [defined _LIBC]: Remove after 2.3.4.
85087
85088         * lib/settime.c (settime): Recode to avoid warning with
85089         Sun Forte C 6U2.
85090
85091         * lib/strverscmp.c: Convert to UTF-8.
85092
85093 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85094
85095         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
85096         m4/uintmax_t.m4.
85097
85098 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85099
85100         * modules/xalloc-die: New file.
85101         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
85102
85103         * modules/md5 (Files): Add m4/uint32_t.m4.
85104         * modules/sha1: Renamed from modules/sha.
85105         (Files):
85106         Rename lib/sha.h to lib/sha1.h.
85107         Rename lib/sha.c to lib/sha1.c.
85108         Rename m4/sha.m4 to m4/sha1.m4.
85109         (lib_SOURCES): Likewise.
85110         (configure.ac): Rename gl_SHA to gl_SHA1.
85111         (Include): sha.h -> sha1.h.
85112
85113 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85114
85115         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
85116         * m4/sha1.m4: Renamed from sha.m4.
85117         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
85118
85119 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85120
85121         * lib/obstack.h (obstack_empty_p):
85122         Don't assume that chunk->contents is suitably aligned.
85123         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
85124         Likewise. Problem reported by Benno in
85125         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
85126
85127         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
85128         readable.  This could be improved further but it'd take some work.
85129
85130 2004-08-08  Simon Josefsson  <jas@extundo.com>
85131
85132         * modules/xgethostname (Depends-on): Remove exit and error (not
85133         used).
85134
85135         * modules/getpass-gnu: Add getpass.h.
85136         (Depends-on): Add stdbool.
85137         * modules/getpass: Add getpass.h.
85138
85139 2004-08-08  Simon Josefsson  <jas@extundo.com>
85140
85141         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
85142         Check getpass declaration.
85143
85144 2004-08-08  Simon Josefsson  <jas@extundo.com>
85145
85146         * lib/xgethostname.c: Don't include error.h (not used).
85147
85148         * lib/getpass.h: Add.
85149         * lib/getpass.c: Include getpass.h first.
85150
85151 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
85152
85153         * lib/xalloc-die.c: New file.
85154         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
85155         All uses removed.
85156         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
85157         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
85158         xalloc-die.c.
85159         (_, N_, xalloc_die): Move to xalloc-die.c.
85160         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
85161         so that we needn't mess with xalloc_msg_memory_exhausted.
85162
85163         * lib/sha1.h: Renamed from sha.h.
85164         (SHA1_H): Renamed from _SHA_H.
85165         (sha1_ctx): Renamed from sha_ctx.
85166         (sha1_init_ctx): Renamed from sha_init_ctx.
85167         (sha1_process_block): Renamed from sha_process_block.
85168         (sha1_process_bytes): Renamed from sha_process_bytes.
85169         (sha1_finish_ctx): Renamed from sha_finish_ctx.
85170         (sha1_read_ctx): Renamed from sha_read_ctx.
85171         (sha1_stream): Renamed from sha_stream.
85172         (sha1_buffer): Renamed from sha_buffer.
85173         * lib/sha1.c: Likewise; renamed from sha.c.
85174         Do not include <sys/types.h>.
85175         Include <stddef.h> rather than <stdlib.h>.
85176
85177 2004-08-08  Bruno Haible  <bruno@clisp.org>
85178
85179         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
85180         FILESYSTEM_PREFIX_LEN.
85181         * lib/progreloc.c: Likewise.
85182         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
85183
85184 2004-08-06  Simon Josefsson  <jas@extundo.com>
85185
85186         * modules/progname (Depends-on): Don't depend on stdbool.
85187
85188 2004-08-06  Simon Josefsson  <jas@extundo.com>
85189
85190         * modules/getsubopt: New file.
85191         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85192         getsubopt.
85193
85194 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85195
85196         More merge from coreutils.
85197
85198         * m4/utimens.m4, m4/utimecmp.m4: New files.
85199         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
85200         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
85201         prereq.m4, sha.m4: Import changes from coreutils.
85202
85203 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85204
85205         More merge from coreutils.
85206         * modules/raise, modules/readtokens0, modules/utimens:
85207         * modules/utimecmp, module/xnanosleep: New files.
85208         * modules/strftime: Add lib/strftime.h.
85209         Change include from <time.h> to "strftime.h".
85210         * modules/yesno: Add lib/yesno.h.
85211         * modules/backupfile: Remove lib/addext.c.
85212         * modules/euidaccess: Add stat-macros.h.
85213         * modules/canonicalize, modules/euidaccess,
85214         modules/filemode, modules/lchown, modules/makepath,
85215         modules/rmdir, modules/stat: Likewise.
85216
85217 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85218
85219         Merge from tar.
85220         * lib/argp-help.c (make_hol, hol_append): Don't assume that
85221         SIZE_MAX is a valid preprocessor constant.
85222         (__argp_basename): Change from "#ifndef _LIBC"
85223         to "#ifndef __argp_short_program_name", so that
85224         we don't compile these functions for tar.
85225
85226         More merges from coreutils.
85227         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
85228         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
85229         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
85230         * lib/addext.c: Remove; no longer needed.
85231         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
85232         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
85233         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
85234         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
85235         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
85236         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
85237         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
85238         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
85239         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
85240         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
85241         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
85242         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
85243         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
85244         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
85245         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
85246         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
85247         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
85248         Import changes from coreutils.
85249
85250 2004-08-05  Simon Josefsson  <jas@extundo.com>
85251
85252         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
85253
85254 2004-08-05  Simon Josefsson  <jas@extundo.com>
85255
85256         * m4/getsubopt.m4: New file.
85257
85258 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85259
85260         Merge from coreutils.
85261
85262         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
85263         * m4/getcwd-path-max.m4: New files.
85264
85265         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
85266         FILESYSTEM_PREFIX_LEN ->
85267         FILE_SYSTEM_PREFIX_LEN.
85268         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
85269         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
85270         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
85271         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
85272
85273         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
85274         prerequisite modules now handle the DOS stuff.
85275         Don't check for unistd.h.
85276
85277 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85278
85279         Merge from coreutils.
85280
85281         * lib/.gdb-history: Remove; this doesn't belong here.
85282
85283         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
85284         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
85285         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
85286         * lib/getcwd.c: New files.
85287
85288         * lib/dirname.h: Include <stdbool.h>.
85289         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
85290         for consistency with POSIX terminology.  All uses changed.
85291         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
85292         (strip_trailing_slashes): Use bool for booleans.
85293         * lib/stripslash.c (strip_trailing_slashes): Likewise.
85294
85295         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
85296         sometimes returns a positive errno value even when it succeeds.
85297         (print_errno_message) [!LIBC]: Fall back on strerror if
85298         __strerror_r fails.
85299
85300         * lib/path-concat.c (mempcpy): Don't define if a system header defines
85301         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
85302         (longest_relative_suffix): New function.
85303         (path_concat): Use it.  Assume first argument is not NULL.
85304         Port to DOS.  Omit redundant separators.
85305         Report an error instead of returning NULL.
85306         Use mempcpy instead of memcpy.
85307         (xpath_concat): Remove: not declared or used.
85308
85309         * lib/same.h: Include <stdbool.h>
85310         (same_name): Return bool, not int.
85311         * lib/same.c (same_name): Likewise.
85312         (errno): Don't declare; we assume C89 or better now.
85313
85314         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
85315         if not already defined.
85316
85317         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
85318         * lib/dup-safer.c (errno): Likewise.
85319
85320 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85321
85322         Merge from coreutils.
85323         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
85324         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
85325         * modules/path-concat: Don't depend on strdup.
85326
85327 2004-08-03  Simon Josefsson  <jas@extundo.com>
85328
85329         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
85330         * lib/progname.h: Don't include stdbool.h.
85331
85332 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85333
85334         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
85335         * MODULES.html.sh (func_all_modules): Remove fatal.
85336
85337 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85338
85339         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
85340
85341 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85342
85343         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
85344         working.
85345
85346 2004-08-02  Simon Josefsson  <jas@extundo.com>
85347
85348         * lib/getsubopt.h: New file, with comments from Bruno Haible.
85349         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
85350         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
85351
85352 2004-08-01  Simon Josefsson  <jas@extundo.com>
85353
85354         * lib/xgetdomainname.c: Include stdlib.h, for free().
85355
85356 2004-07-19  Bruno Haible  <bruno@clisp.org>
85357
85358         * MODULES.html.sh (func_all_modules): Add dummy.
85359
85360 2004-07-16  Simon Josefsson  <jas@extundo.com>
85361
85362         * modules/dummy: New file.
85363
85364 2004-07-16  Simon Josefsson  <jas@extundo.com>
85365
85366         * lib/dummy.c: New file.
85367
85368 2004-07-16  Bruno Haible  <bruno@clisp.org>
85369
85370         * lib/backupfile.h: Add extern "C" for C++.
85371         * lib/closeout.h: Likewise.
85372         * lib/copy-file.h: Likewise.
85373         * lib/findprog.h: Likewise.
85374         * lib/full-write.h: Likewise.
85375         * lib/pathname.h: Likewise.
85376         * lib/progname.h: Likewise.
85377         * lib/stpcpy.h: Likewise.
85378         * lib/stpncpy.h: Likewise.
85379         * lib/strcase.h: Likewise.
85380         * lib/strstr.h: Likewise.
85381         * lib/xalloc.h: Likewise.
85382
85383         * lib/mbswidth.h: Add extern "C" for C++.
85384         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
85385
85386 2004-07-13  Robert Millan  <robertmh@gnu.org>
85387
85388         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
85389
85390 2004-07-09  Simon Josefsson  <jas@extundo.com>
85391
85392         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
85393         failed without this.)
85394
85395 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
85396
85397         * modules/chown (Files): Add lib/fchown-stub.c, since
85398         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
85399
85400 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
85401
85402         * lib/fchown-stub.c: New file.
85403
85404 2004-06-24  Jim Meyering  <jim@meyering.net>
85405
85406         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
85407
85408 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85409
85410         * modules/argz: Omit "#include".
85411
85412         * MODULES.html.sh (func_all_modules): Add calloc, to match
85413         2004-06-01 addition of calloc module.
85414
85415 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85416
85417         * m4/argz.m4: New file, which is autoupdated from libtool.
85418
85419 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85420
85421         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
85422         libtool.
85423
85424 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85425
85426         * config/srclist-update: Don't insist on "USA." before the
85427         close-comment, as libtool omits the period and puts the */ on a
85428         separate line.
85429         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
85430         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
85431
85432 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
85433
85434         * modules/argz: New file.
85435         * MODULES.html.sh (func_all_modules): Add argz.
85436
85437 2004-06-12  Jim Meyering  <jim@meyering.net>
85438         and  Paul Eggert  <eggert@cs.ucla.edu>
85439
85440         * modules/hash (Files): Add lib/xalloc.h.
85441         * modules/pipe (Depends-on): Add wait-process.
85442         * modules/stat (Depends-on): Add xalloc.
85443         * modules/userspec (Files): Add lib/userspec.h.
85444         * modules/xstrto
85445
85446         Upgrade from gettext-0.13.
85447         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
85448         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
85449         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
85450
85451 2004-06-10  Jim Meyering  <jim@meyering.net>
85452
85453         * lib/calloc.c: New file.
85454
85455 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
85456
85457         * lib/getdate.y (yylex): Allow space between sign and number.
85458         Problem reported by Dan Jacobson.
85459
85460 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
85461
85462         Merge from coreutils CVS.
85463
85464         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
85465         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
85466         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
85467         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
85468         xstrtol.m4: Fix copyright date and/or serial number.
85469
85470         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
85471         See if we need an fchown replacement.
85472         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
85473         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
85474         and use the replacement function if we detect either defect.
85475
85476         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
85477         gl_UTIMECMP.
85478
85479 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
85480         and  Jim Meyering  <jim@meyering.net>
85481
85482         Merge from coreutils CVS.
85483
85484         * lib/stat-macros.h: New file, with contents from file-type.h
85485         and coreutils' system.h.
85486         * lib/file-type.c: Include "stat-macros.h".
85487         * lib/file-type.h (file_type): Move all macro definitions to new file,
85488         stat-macros.h.
85489
85490         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
85491         Wrap old code with this conditional.
85492         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
85493         function that does not dereference symlinks.
85494         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
85495
85496         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
85497         dependency problems.
85498         (xreadlink): Accept new arg SIZE, for efficiency.
85499         All decls and uses changed.
85500         * lib/xreadlink.h: Include <stddef.h>, for size_t.
85501
85502         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
85503         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
85504
85505         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
85506         sysexits.h.
85507
85508 2004-06-01  Jim Meyering  <jim@meyering.net>
85509
85510         * m4/calloc.m4: New file.
85511
85512 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
85513
85514         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
85515         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
85516         Also, fix a typo in a diagnostic.
85517
85518 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
85519
85520         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
85521         or AC_FUNC_REALLOC.
85522
85523 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
85524
85525         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
85526         macros to be defined.
85527         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
85528         the allocator returns NULL because the requested size is zero.
85529
85530 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85531
85532         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
85533         var.  Add comment explaining why libc still defines it.  This
85534         merges the following patch from glibc:
85535         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
85536
85537 2004-05-20  Andreas Schwab  <schwab@suse.de>
85538
85539         * m4/free.m4: Replace free if it not known to work, not the other
85540         way round.
85541
85542 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
85543
85544         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
85545         present in glibc since revision 1.1 of this file.
85546         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
85547         obstack_alignment_mask, obstack_alloc, obstack_base,
85548         obstack_blank, obstack_blank_fast, obstack_chunk_size,
85549         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
85550         obstack_grow0, obstack_init, obstack_int_grow,
85551         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
85552         obstack_next_free, obstack_object_size, obstack_ptr_grow,
85553         obstack_ptr_grow_fast, obstack_room): Remove declarations of
85554         nonexistent functions.
85555
85556 2004-05-18  Karl Berry  <karl@gnu.org>
85557
85558         * config/srclist.txt: break link for vasnprintf.c.
85559
85560 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
85561
85562         Port obstack to the AS/400, where pointers are 16 bytes wide and
85563         you cannot cast an integer to a valid pointer.  This patch is
85564         currently waiting to be integrated into glibc; see
85565         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
85566
85567         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
85568         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
85569         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
85570         (struct obstack): temp member is now a union of a pointer and
85571         an integer, instead of an integer.  All integer uses changed.
85572         This does not affect the physical layout of struct obstack,
85573         except on hosts (like the AS/400) where the size or alignment of
85574         void * is greater than that of ptrdiff_t.
85575         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
85576         __STDC__)]: Store temporary in pointer member of union, not
85577         integer member.
85578         * lib/obstack.c: Include <stddef.h>, for offsetof.
85579         (struct fooalign): Remove; it doesn't need a name.
85580         (union fooround): Change double to long double, and add void *.
85581         (DEFAULT_ALIGNMENT): Use offsetof to compute.
85582         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
85583         not a macro.  Hence the values are always int; so remove all
85584         casts-to-int in uses.
85585
85586 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
85587
85588         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
85589         we can get this patch merged into glibc.
85590
85591 2004-05-17  Derek R. Price  <derek@ximbiot.com>
85592             Paul Eggert  <eggert@cs.ucla.edu>
85593
85594         * m4/argp: Depend on alloca.
85595
85596 2004-05-17  Derek R. Price  <derek@ximbiot.com>
85597             Paul Eggert  <eggert@cs.ucla.edu>
85598
85599         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
85600         freecoding.
85601
85602 2004-05-17  Bruno Haible  <bruno@clisp.org>
85603
85604         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
85605         precision that consists of a '.' followed by an empty digit string.
85606         Patch by Tor Lillqvist <tml@iki.fi>.
85607
85608 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
85609
85610         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
85611         for backward compatibility with older code.  We need our own
85612         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
85613         it under some other name, and our alloca.h will define it.
85614
85615 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
85616             Derek Price  <derek@ximbiot.com>
85617
85618         * lib/alloca.c: Include <alloca.h>, to get our interface.
85619         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
85620         include <alloca.h> first.  Use C89 prototype for alloca; this
85621         requires including <stddef.h> for size_t.  Use extern "C" if C++.
85622         Use #elif for simplicity, since we can assume C89 now.
85623         Don't try to source the system alloca.h since it will not be found
85624         and to prevent recursively including its replacement.
85625         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
85626         * lib/regex.c: Likewise.
85627
85628 2004-05-16  Derek Price  <derek@ximbiot.com>
85629             Paul Eggert  <eggert@cs.ucla.edu>
85630
85631         getline cleanup.  This changes the getndelim2 API: both order of
85632         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
85633         no delimiter).
85634
85635         * lib/getline.c: Don't include stddef.h or stdio.h, since our
85636         interface does that.
85637         (getline): Always use getdelim, so that we don't have two
85638         copies of this code.
85639         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
85640         if available.
85641         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
85642         (GETNDELIM2_MAXIMUM): New macro.
85643         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
85644         instead of the old practice of delim2==0.  All callers changed.
85645         Return -1 on overflow, instead of returning junk.
85646         Do not set *linesize unless allocation succeeds.
85647         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
85648         that we include sys/types.h.
85649         * lib/getnline.h: Likewise.
85650         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
85651         (getndelim2): Reorder arguments.
85652         * lib/getnline.c (getnline, getndelim):
85653         Don't discard the NMAX argument.
85654         (getnline): Invoke getndelim, to avoid code duplication.
85655         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
85656         of (size_t) -1 by callers of the getnline family.
85657
85658 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85659
85660         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
85661         Check for gettimeofday.
85662         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
85663         Check for settimeofday, stime.
85664
85665 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85666
85667         * lib/nanosleep.c (suspended): Change its type from int to
85668         sig_atomic_t volatile.
85669         (first_call): Make it private to rpl_nanosleep, and have it
85670         be zero initially as that's a bit faster.
85671         (my_usleep): Round up fractional times instead of truncating them,
85672         as this is the usual meaning for 'sleep'.
85673
85674         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
85675         doesn't work.
85676         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
85677         (ENOSYS): Define if not defined.
85678         (settime): Fall back on stime if it exists and settimeofday fails.
85679         But don't bother with fallbacks if a method fails with errno == EPERM.
85680
85681 2004-05-11  Jim Meyering  <jim@meyering.net>
85682
85683         Prior to this change, the save_cwd caller required read access to the
85684         current directory on most systems (ones with the fchdir function).
85685
85686         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
85687         fails, try write-only, and finally, resort to using xgetcwd.
85688
85689 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
85690
85691         * lib/obstack.c, obstack.h: Import changes from libc.
85692
85693 2004-04-28  Bruno Haible  <bruno@clisp.org>
85694
85695         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
85696         also implicitly appends .exe to executables.
85697         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
85698         accepts Windows pathnames.
85699         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
85700         Treat Cygwin like Windows, since it now accepts Windows pathnames.
85701         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
85702         Treat Cygwin like Windows, since it now accepts Windows pathnames.
85703         Reported by Derek Robert Price <derek@ximbiot.com>.
85704
85705 2004-04-21  Karl Berry  <karl@gnu.org>
85706
85707         * config/srclist.txt (localcharset.c): break sync.
85708
85709 2004-04-20  Paul Eggert  <eggert@twinsun.com>
85710
85711         * m4/host-os.m4: Add a copyright notice.
85712
85713 2004-04-20  Jim Meyering  <jim@meyering.net>
85714
85715         Change UTILS_ to gl_ in AC_DEFINE'd names.
85716         Change utils_- and jm_-prefixed variables, too.
85717         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
85718         UTILS_FUNC_MKDIR_TRAILING_SLASH.
85719         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
85720
85721         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
85722         Don't emit trailing blanks.
85723         Also rename jm_-prefixed variables to have gl_ prefix.
85724
85725         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
85726         Also rename jm_-prefixed variables to have gl_ prefix.
85727
85728         * m4/jm-macros.m4: Reflect the renamings.
85729         * m4/prereq.m4: Likewise.
85730
85731 2004-04-20  Jim Meyering  <jim@meyering.net>
85732
85733         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
85734         memory.
85735
85736 2004-04-20  Jim Meyering  <jim@meyering.net>
85737             Bruno Haible  <bruno@clisp.org>
85738
85739         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
85740         memory when realloc fails.
85741
85742 2004-04-19  Jim Meyering  <jim@meyering.net>
85743
85744         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
85745         now that readutmp.c may call `free (0)'.
85746
85747 2004-04-19  Bruno Haible  <bruno@clisp.org>
85748
85749         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
85750         * m4/inttypes_h.m4: Likewise.
85751         * m4/stdint_h.m4: Likewise.
85752         * m4/intmax_t.m4: Likewise.
85753         * m4/uintmax_t.m4: Likewise.
85754
85755 2004-04-18  Jim Meyering  <jim@meyering.net>
85756
85757         * m4/prereq.m4: Don't forbid jm_ prefix.
85758
85759         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
85760         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
85761         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
85762         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
85763         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
85764         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
85765         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
85766         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
85767         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
85768         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
85769         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
85770         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
85771         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
85772         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
85773         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
85774         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
85775         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
85776         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
85777         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
85778
85779 2004-04-18  Jim Meyering  <jim@meyering.net>
85780
85781         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
85782         failure, don't leak memory and do call END_UTMP_ENT.
85783
85784 2004-04-16  Jim Meyering  <jim@meyering.net>
85785
85786         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
85787         coreutils' stat program.
85788         (gl_PREREQ): Don't require jm_PREREQ_STAT.
85789
85790 2004-04-11  Paul Eggert  <eggert@twinsun.com>
85791
85792         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
85793         C89.
85794         (CHAR_BIT): Remove, since we assume C89.
85795         Include <stdint.h> if available, as per current Autoconf CVS advice.
85796
85797 2004-03-31  Jim Meyering  <jim@meyering.net>
85798
85799         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
85800         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
85801         * m4/xalloc.m4: Likewise.
85802
85803 2004-03-30  Paul Eggert  <eggert@twinsun.com>
85804
85805         Merge from coreutils.
85806
85807         * m4/inttostr.m4: New file.
85808         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
85809         Require AM_STDBOOL_H and gl_TIMESPEC instead.
85810         Require gl_CLOCK_TIME.
85811         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
85812
85813 2004-03-30  Paul Eggert  <eggert@twinsun.com>
85814
85815         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
85816         not bool, to be more consistent with Unix conventions.
85817         Suggested by Bruno Haible.
85818
85819         Merge from coreutils.
85820
85821         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
85822         * lib/umaxtostr.c: New files.
85823
85824         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
85825         the usual <time.h> dance.
85826         (get_date): Change signature to support fractional time stamps.
85827         All callers changed.
85828         * lib/getdate.y: Include "getdate.h" first, as we can now
85829         assume C89 and don't need to worry about 'const'.
85830         Similarly, include "unlocked-io.h" near start, not in middle.
85831         Include <limits.h>.
85832         (textint.value): Use long int rather than int.
85833         (textint.digits): Use size_t rather than int.
85834         (BILLION, LOG10_BILLION): New constants.
85835         (parser_control): New member rel_ns.  Members day_ordinal,
85836         time_zone, month, day, hour, minutes, rel_year, rel_month,
85837         rel_day, rel_hour, rel_minutes, rel_seconds
85838         are now long int, not int.  Member seconds is now struct timespec,
85839         not int.  New member timespec_seen.  Members dates_seen, days_seen,
85840         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
85841         not int.
85842         (%union.intval): Now long int, not int.
85843         New member timespec.
85844         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
85845         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
85846         (spec): Now is a timespec or an item list.
85847         (timespec, items): New nonterminals.
85848         (time, rel, relunit, number, get_date):
85849         Add support for fractional seconds.
85850         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
85851         (gmtime, localtime, mktime): Remove decls; not needed with C89.
85852         (to_hour): First arg is now long int, not int.
85853         (to_year): Returns long int, not int.
85854         Don't treat year -70 like 70.
85855         (tm_diff): Returns long int, not int.
85856         (lookup_word): Use bool instead of int when appropriate.
85857         (yylex): Use size_t for count, not int.
85858         Detect overflow when parsing large integer constants.
85859         Add support for fractions.
85860         (get_date): Make pointers 'const' if possible.
85861         Use more-portable code to detect integer overflow.
85862         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
85863         Don't use ctime; it's not reliable if the year has >4 digits.
85864
85865         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
85866         This is for compatibility with BSD.
85867
85868         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
85869         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
85870         From coreutils' system.h.
85871
85872         * lib/userspec.c: Don't include "posixver.h".
85873         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
85874         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
85875         compatible extension.  Simplify code by removing a boolean int
85876         that was always nonzero if a string was nonnull.
85877
85878 2004-03-30  Jim Meyering  <jim@meyering.net>
85879
85880         Merge from coreutils.
85881
85882         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
85883         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
85884         on some systems one must include <grp.h> before it.
85885         Reported by Christian Krackowizer.
85886
85887 2004-03-30  Jim Meyering  <jim@meyering.net>
85888
85889         Merge from coreutils.
85890
85891         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
85892
85893         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
85894         an empty input stream.
85895
85896         * lib/readtokens.c: Include <stdbool.h>.
85897         (readtoken): Use `size_t' rather than int/long.
85898         All callers adjusted.
85899         Use `bool' rather than `int' where appropriate.
85900         Use memset rather than an explicit loop.
85901         Use x2nrealloc rather than xrealloc.
85902         Allow the use of `\0' as a delimiter.
85903         (readtokens): Likewise.
85904         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
85905
85906 2004-03-30  Jim Meyering  <jim@meyering.net>
85907
85908         * m4/realloc.m4: Remove file, since now it does no more than
85909         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
85910         the `configure.ac' section of module/realloc.
85911         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
85912
85913 2004-03-30  Bruno Haible  <bruno@clisp.org>
85914
85915         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
85916         nonnull.
85917
85918 2004-03-29  Paul Eggert  <eggert@twinsun.com>
85919
85920         Merge changes to getloadavg.c from coreutils and Emacs.
85921
85922         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
85923         Define to an expression, not to the empty string.
85924         Include cloexec.h and xalloc.h.
85925         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
85926         Use set_cloexec_flag rather than rolling our own.
85927         * lib/cloexec.c, lib/cloexec.h: New files.
85928
85929 2004-03-29  Paul Eggert  <eggert@twinsun.com>
85930
85931         * m4/cloexec.m4: New file.
85932
85933 2004-03-18  Paul Eggert  <eggert@twinsun.com>
85934
85935         * lib/getopt.h: Sync with libc CVS.
85936
85937 2004-03-18  Paul Eggert  <eggert@twinsun.com>
85938             Bruno Haible  <bruno@clisp.org>
85939
85940         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
85941         mbswidth.
85942
85943 2004-03-18  Paul Eggert  <eggert@twinsun.com>
85944             Bruno Haible  <bruno@clisp.org>
85945
85946         * lib/mbswidth.h: Include <wchar.h> only if
85947         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
85948         <wchar.h>.
85949         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
85950
85951 2004-03-09  Paul Eggert  <eggert@twinsun.com>
85952
85953         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
85954         Sync with libc CVS.
85955         * lib/getopt_int.h: New file, also synced from libc.
85956
85957 2004-03-09  Paul Eggert  <eggert@twinsun.com>
85958
85959         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
85960         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
85961         Bring back getopt.c, getopt.h, getopt1.c.
85962
85963 2004-03-07  Paul Eggert  <eggert@twinsun.com>
85964
85965         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
85966         All uses changed.  Check for sa_sigaction member; this fixes
85967         a bug first reported by Jason Andrade in
85968         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
85969
85970 2004-03-07  Paul Eggert  <eggert@twinsun.com>
85971
85972         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
85973         '#if' expressions.  Unlike the code it replaces, it does not
85974         depend on (defined _SC_PAGESIZE).  However, it does depend on
85975         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
85976         first reported by Jason Andrade in
85977         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
85978
85979 2004-02-25  Simon Josefsson  <jas@extundo.com>
85980
85981         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
85982
85983 2004-02-25  Simon Josefsson  <jas@extundo.com>
85984
85985         * lib/strdup.h: New file.
85986         * lib/strdup.c: Include it.
85987         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
85988         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
85989
85990 2004-02-23  Karl Berry  <karl@gnu.org>
85991
85992         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
85993         (from fencepost.gnu.org:/gd/gnuorg).
85994
85995 2004-02-23  Karl Berry  <karl@gnu.org>
85996
85997         * config/srclistvars.sh (GNUORG) [karl]: redefine.
85998         * config/srclist.txt: add maintain/standards documents.
85999
86000 2004-02-18  Bruno Haible  <bruno@clisp.org>
86001
86002         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
86003         Reported by Derek Robert Price <derek@ximbiot.com>.
86004
86005 2004-02-16  Karl Berry  <karl@gnu.org>
86006
86007         * config/mkinstalldirs, install-sh: update from automake.
86008
86009 2004-02-06  Karl Berry  <karl@gnu.org>
86010
86011         * m4/po.m4: update from gettext 0.14.1.
86012
86013 2004-02-06  Karl Berry  <karl@gnu.org>
86014
86015         * lib/config.charset: update from gettext 0.14.1.
86016
86017 2004-02-05  Paul Eggert  <eggert@twinsun.com>
86018
86019         Add comments and code, prompted by suggestions from Bruno Haible
86020         for sh-quote.
86021         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
86022         describing the enum quoting_style values.
86023         * lib/quotearg.c (quotearg_alloc): New function.
86024         (quotearg_buffer_restyled): Treat lone { and } as special.
86025         Treat = as special.  Work around bug with older shells
86026         that "see" a '\' that is really the 2nd byte of a multibyte char.
86027         Quote empty string with shell_quoting_style.
86028
86029 2004-02-03  Bruno Haible  <bruno@clisp.org>
86030
86031         * m4/pipe.m4: New file, from GNU gettext.
86032
86033 2004-02-03  Bruno Haible  <bruno@clisp.org>
86034
86035         * lib/pipe.h: New file, from GNU gettext.
86036         * lib/pipe.c: New file, from GNU gettext.
86037
86038 2004-01-27  Bruno Haible  <bruno@clisp.org>
86039
86040         * m4/execute.m4: New file, from GNU gettext.
86041
86042 2004-01-27  Bruno Haible  <bruno@clisp.org>
86043
86044         * lib/execute.h: New file, from GNU gettext.
86045         * lib/execute.c: New file, from GNU gettext.
86046         * lib/w32spawn.h: New file, from GNU gettext.
86047
86048 2004-01-24  Paul Eggert  <eggert@twinsun.com>
86049
86050         Merge from diffutils.
86051
86052         * lib/file-type.c (file_type): Add typed memory objects.
86053         * lib/file-type.h (S_TYPEISTMO): New macro.
86054
86055         * lib/c-stack.h (c_stack_action): Remove argv argument.
86056         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
86057         (die): Don't calculate message unless segv_action returns.
86058         (get_stack_location, min_address_from_argv, max_address_from_argv,
86059         volatile stack_base, volatile_stack_size): Remove.
86060         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
86061         that every segmentation violation is a stack overflow.  (Ouch!)
86062         See Debian bug 136249 (still outstanding) for more info about why
86063         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
86064
86065 2004-01-24  Paul Eggert  <eggert@twinsun.com>
86066
86067         Exit-status fix from coreutils.
86068
86069         Use exit_failure consistently in place of EXIT_FAILURE,
86070         so that program exit statuses are consistent on failure.
86071
86072         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
86073         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
86074         * lib/argmatch.h: Comment fix to match the above.
86075         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
86076         Now a macro referring to exit_failure, instead of a separate
86077         variable.  Include "exitfail.h" to get it.
86078         * lib/xstrtol.h: Include "exitfail.h".
86079         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
86080
86081         * lib/long-options.c (parse_long_options): Use prototype
86082         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
86083         for clarity.
86084
86085 2004-01-21  Jim Meyering  <jim@meyering.net>
86086
86087         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
86088         so as not to conflict with a different-sized __mktime_internal
86089         function in GNU libc.
86090         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
86091         Problem building statically-linked `ls' reported by Michael Brunnbauer.
86092
86093 2004-01-20  Karl Berry  <karl@gnu.org>
86094
86095         * config/config.guess: update from config.
86096
86097         * config/srclistvars.sh: GNUWWWLICENSES for karl.
86098
86099 2004-01-20  Bruno Haible  <bruno@clisp.org>
86100
86101         Safer stack allocation.
86102         * lib/setenv.c: Include allocsa.h.
86103         (alloca): Remove fallback definition.
86104         (freea): Remove macro.
86105         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
86106         instead of freea.
86107
86108 2004-01-20  Bruno Haible  <bruno@clisp.org>
86109
86110         * m4/eealloc.m4: New file, from GNU gettext.
86111
86112 2004-01-20  Bruno Haible  <bruno@clisp.org>
86113
86114         * m4/allocsa.m4: New file, from GNU gettext.
86115
86116 2004-01-20  Bruno Haible  <bruno@clisp.org>
86117
86118         * lib/xallocsa.h: New file, from GNU gettext.
86119         * lib/xallocsa.c: New file, from GNU gettext.
86120
86121 2004-01-20  Bruno Haible  <bruno@clisp.org>
86122
86123         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
86124
86125 2004-01-20  Bruno Haible  <bruno@clisp.org>
86126
86127         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
86128         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
86129         specially.
86130
86131 2004-01-20  Bruno Haible  <bruno@clisp.org>
86132
86133         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
86134         patch.
86135
86136 2004-01-20  Bruno Haible  <bruno@clisp.org>
86137
86138         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
86139
86140 2004-01-20  Bruno Haible  <bruno@clisp.org>
86141
86142         * lib/eealloc.h: New file.
86143
86144 2004-01-20  Bruno Haible  <bruno@clisp.org>
86145
86146         * lib/binary-io.h: Avoid warnings on Cygwin.
86147
86148 2004-01-20  Bruno Haible  <bruno@clisp.org>
86149
86150         * lib/allocsa.h: New file, from GNU gettext.
86151         * lib/allocsa.c: New file, from GNU gettext.
86152
86153 2004-01-18  Karl Berry  <karl@gnu.org>
86154
86155         * doc/gpl.texi, doc/lgpl.texi: new files.
86156
86157 2004-01-18  Karl Berry  <karl@gnu.org>
86158
86159         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
86160         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
86161
86162 2004-01-15  Paul Eggert  <eggert@twinsun.com>
86163
86164         Merge from coreutils.
86165
86166         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
86167         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
86168         (gl_DEFAULT_POSIX2_VERSION): Move
86169         the documentation from 'configure' into 'config.hin',
86170         so that 'configure --help' isn't burdened by it and
86171         we don't have to worry about its formatting there.
86172         Reword the documentation so that it's more succinct
86173         and can be run together into a single paragraph.
86174         * m4/same.m4 (gl_SAME): Check for pathconf.
86175
86176 2004-01-15  Paul Eggert  <eggert@twinsun.com>
86177
86178         Merge from coreutils.
86179
86180         * lib/posixver.c: Include posixver.h.
86181
86182         * lib/same.c: Include <stdbool.h>, <limits.h>.
86183         (_POSIX_NAME_MAX): Define if not defined.
86184         (MIN): New macro.
86185         (same_name): If file names are silently truncated, report
86186         that the file names are the same if they are the same after
86187         the silent truncation.
86188
86189         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
86190         conversion function.
86191         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
86192         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
86193         longer needed.
86194
86195 2004-01-15  Jim Meyering  <jim@meyering.net>
86196
86197         Merge from coreutils.
86198
86199         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
86200         if no library is required.
86201         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
86202         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
86203         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
86204         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
86205         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
86206         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
86207         value, $ac_cv_search_crypt, if it's "none required".
86208         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
86209         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
86210         not gl_FUNC_GETLOADAVG.
86211         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
86212         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
86213
86214 2004-01-15  Jim Meyering  <jim@meyering.net>
86215
86216         Merge from coreutils.
86217
86218         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
86219         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
86220         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
86221
86222         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
86223         optional configure-time default.
86224
86225         * lib/version-etc.c (version_etc_copyright): Update copyright date.
86226
86227         * lib/xreadlink.c (xreadlink): Correct outdated comment.
86228
86229 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
86230
86231         Merge from coreutils.
86232
86233         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
86234         value, $ac_cv_search_nanosleep, if it's "none required".
86235
86236 2004-01-14  Paul Eggert  <eggert@twinsun.com>
86237
86238         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
86239         with like-named macro in fnmatch.c.
86240         (EXT): Use an internal constant instead.
86241
86242         Merge fnmatch patches from glibc.
86243         * lib/fnmatch.c (mbsinit): Remove define.
86244         Add libc_hidden_ver (__fnmatch, fnmatch).
86245         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
86246         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
86247
86248 2004-01-14  Karl Berry  <karl@gnu.org>
86249
86250         * config/install-sh: update from automake.
86251
86252 2004-01-13  Karl Berry  <karl@gnu.org>
86253
86254         * config/install-sh: update from automake.
86255
86256 2004-01-09  Karl Berry  <karl@gnu.org>
86257
86258         * config/install-sh: update from automake.
86259
86260 2004-01-05  Karl Berry  <karl@gnu.org>
86261
86262         * config/config.{sub,guess}: update from config.
86263
86264 2003-12-31  Karl Berry  <karl@gnu.org>
86265
86266         * config/depcomp: update from automake.
86267
86268 2003-12-14  Karl Berry  <karl@gnu.org>
86269
86270         * lib/config.charset: update from gettext-runtime.
86271
86272 2003-12-03  Paul Eggert  <eggert@twinsun.com>
86273
86274         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
86275         Bug reported by Alfred M. Szmidt.
86276
86277 2003-12-03  Bruno Haible  <bruno@clisp.org>
86278
86279         * m4/gettext.m4: Upgrade from gettext-0.13.
86280         * m4/po.m4: Upgrade from gettext-0.13.
86281         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
86282         * m4/intmax.m4: New file, from gettext-0.13.
86283         * m4/printf-posix.m4: New file, from gettext-0.13.
86284
86285 2003-11-29  Karl Berry  <karl@gnu.org>
86286
86287         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
86288
86289 2003-11-25  Paul Eggert  <eggert@twinsun.com>
86290             Bruno Haible  <bruno@clisp.org>
86291
86292         * lib/printf-parse.h: Don't include sys/types.h.
86293         (ARG_NONE): New macro.
86294         (char_directive): Change type of *arg_index fields to size_t.
86295         * lib/printf-parse.c: Don't include sys/types.h.
86296         (SSIZE_MAX): Remove macro.
86297         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
86298         Remove unnecessary overflow check.
86299         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
86300         fields.
86301
86302 2003-11-25  Bruno Haible  <bruno@clisp.org>
86303
86304         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
86305
86306 2003-11-25  Bruno Haible  <bruno@clisp.org>
86307
86308         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
86309         gt_TYPE_SSIZE_T.
86310
86311 2003-11-24  Paul Eggert  <eggert@twinsun.com>
86312
86313         * modules/alloca: Remove dependency on xalloc.
86314
86315 2003-11-24  Paul Eggert  <eggert@twinsun.com>
86316
86317         * lib/alloca.c: Remove dependency on xalloc module.
86318         (xalloc_die): Remove.
86319         (memory_full) [!defined emacs]: New macro.
86320         [!defined emacs]: Don't include xalloc.h.
86321         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
86322         address arithmetic overflows.  Change datatypes a bit to avoid
86323         unnecessary casts.
86324
86325 2003-11-22  Jim Meyering  <jim@meyering.net>
86326
86327         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
86328         s/size/size_t/.
86329
86330 2003-11-21  Karl Berry  <karl@gnu.org>
86331
86332         * config/config.{sub,guess}: update from config.
86333
86334 2003-11-18  Karl Berry  <karl@gnu.org>
86335
86336         * config/config.{sub,guess}: update from config.
86337
86338         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
86339
86340 2003-11-17  Paul Eggert  <eggert@twinsun.com>
86341
86342         * README: Mention that S+T cannot overflow if S is the size of
86343         an existing object and T is sufficiently small.
86344
86345 2003-11-17  Jim Meyering  <jim@meyering.net>
86346
86347         On systems without utime and without a utimes function capable of
86348         dealing with a NULL struct utimbuf* argument, this utime replacement
86349         could -- in unusual circumstances -- leak a file descriptor.
86350         * lib/utime.c: Include <unistd.h> and <errno.h>.
86351         (utime_null): Be sure to close `fd' and to preserve errno.
86352         Reported by Geoff Collyer via Arnold Robbins.
86353
86354 2003-11-17  Bruno Haible  <bruno@clisp.org>
86355
86356         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
86357         (Depends-on): Add xsize.
86358
86359 2003-11-17  Bruno Haible  <bruno@clisp.org>
86360
86361         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
86362
86363 2003-11-17  Bruno Haible  <bruno@clisp.org>
86364
86365         * lib/vasnprintf.c (alloca): Remove fallback definition.
86366         (freea): Remove definition.
86367         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
86368         Reported by Paul Eggert.
86369
86370 2003-11-16  Paul Eggert  <eggert@twinsun.com>
86371             Bruno Haible  <bruno@clisp.org>
86372
86373         Protect against address arithmetic overflow.
86374         * lib/printf-args.h: Include stddef.h.
86375         (arguments): Change type of field 'count' to size_t.
86376         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
86377         'unsigned int' where appropriate.
86378         * lib/printf-parse.h: Include sys/types.h.
86379         (char_directive): Change type of *arg_index fields to ssize_t.
86380         (char_directives): Change type of fields 'count', max_*_length to
86381         size_t.
86382         * lib/printf-parse.c: Include sys/types.h and xsize.h.
86383         (SSIZE_MAX): Define fallback value.
86384         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
86385         instead of 'int' where appropriate. Check a_allocated, d_allocated
86386         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
86387         * lib/vasnprintf.c: Include xsize.h.
86388         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
86389         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
86390         overflow. Avoid wraparound when converting a width or precision from
86391         decimal to binary.
86392
86393 2003-11-16  Bruno Haible  <bruno@clisp.org>
86394
86395         Update from GNU gettext.
86396         * lib/printf-parse.c: Generalize to it can be compiled for wide
86397         strings.
86398         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
86399         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
86400         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
86401         SNPRINTF): New macros.
86402         Don't include <alloca.h> if the file is used inside libintl.
86403         (local_wcslen): New function, for Solaris 2.5.1.
86404         (VASNPRINTF): Use it instead of wcslen.
86405
86406 2003-11-16  Bruno Haible  <bruno@clisp.org>
86407
86408         * lib/xsize.h (xmax): New function.
86409         (xsum, xsum3, xsum4): Declare as "pure" functions.
86410
86411 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86412
86413         * modules/xalloc (Files): Undo latest change, since xalloc.h
86414         no longer needs SIZE_MAX or PTRDIFF_MAX.
86415
86416 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86417
86418         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
86419         gl_PTRDIFF_MAX.
86420
86421 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86422
86423         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
86424         "return", to pacify some unknown compiler.  Problem reported
86425         by Joerg Schilling.
86426
86427 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86428
86429         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
86430         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
86431         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
86432         heuristic is just as accurate as far as we know, and it removes a
86433         dependency on size_max.m4 and ptrdiff_max.m4.
86434
86435 2003-11-11  Bruno Haible  <bruno@clisp.org>
86436
86437         * modules/xsize (Files): Add m4/size_max.m4.
86438         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
86439
86440 2003-11-11  Bruno Haible  <bruno@clisp.org>
86441
86442         * m4/size_max.m4: New file.
86443         * m4/ptrdiff_max.m4: New file.
86444         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
86445         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
86446         (gl_XALLOC): Invoke it.
86447
86448 2003-11-11  Bruno Haible  <bruno@clisp.org>
86449
86450         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
86451         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
86452         defined.
86453
86454 2003-11-10  Paul Eggert  <eggert@twinsun.com>
86455
86456         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
86457         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
86458         rejected some allocations of exactly SIZE_MAX - 2 bytes.
86459         From Bruno Haible.
86460         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
86461         not (size_t) -1, since it's defined here.
86462
86463 2003-11-09  Karl Berry  <karl@gnu.org>
86464
86465         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
86466
86467 2003-11-06  Paul Eggert  <eggert@twinsun.com>
86468
86469         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
86470         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
86471         Reject sizes of exactly SIZE_MAX bytes.
86472         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
86473         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
86474
86475 2003-11-05  Bruno Haible  <bruno@clisp.org>
86476
86477         * lib/xsize.h: Include limits.h, to avoid a possible collision with
86478         SIZE_MAX defined in <limits.h> on Solaris.
86479
86480 2003-11-04  Jim Meyering  <jim@meyering.net>
86481
86482         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
86483         variable names, rather than @VAR@.
86484         * modules/poll: Likewise.
86485
86486 2003-11-04  Bruno Haible  <bruno@clisp.org>
86487
86488         * modules/xsize: New file.
86489         * modules/linebreak: Depend on xsize.
86490         * MODULES.html.sh (func_all_modules): Add xsize.
86491
86492 2003-11-04  Bruno Haible  <bruno@clisp.org>
86493
86494         * m4/xsize.m4: New file.
86495
86496 2003-11-04  Bruno Haible  <bruno@clisp.org>
86497
86498         * lib/xsize.h: New file.
86499         * lib/linebreak.c: Include xsize.h.
86500         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
86501         argument for overflow.
86502         Suggested by Paul Eggert.
86503
86504 2003-11-03  Karl Berry  <karl@gnu.org>
86505
86506         * config/config.{guess,sub}: update from config.
86507
86508 2003-11-03  Jim Meyering  <jim@meyering.net>
86509
86510         * modules/userspec (lib_SOURCES): Add userspec.h.
86511         (Include): Add "userspec.h".
86512         Improve description.
86513
86514 2003-11-03  Jim Meyering  <jim@meyering.net>
86515
86516         * lib/userspec.c: Include "userspec.h".
86517         * lib/userspec.h: New file.
86518
86519 2003-11-03  Bruno Haible  <bruno@clisp.org>
86520
86521         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
86522
86523 2003-11-03  Bruno Haible  <bruno@clisp.org>
86524
86525         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
86526         available, to avoid (extremely rare) race condition.
86527         Suggested by Paul Eggert.
86528
86529 2003-11-02  Karl Berry  <karl@gnu.org>
86530
86531         * config/srclist.txt (vasprintf.c): sync broken, sigh.
86532
86533 2003-10-31  Paul Eggert  <eggert@twinsun.com>
86534
86535         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
86536         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
86537         (read_filesystem_list): Set and use me_type_malloced.
86538         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
86539         whatever the type happens to be), for brevity and consistency.
86540         Check for size calculation overflow on Alphas running OSF/1.
86541
86542 2003-10-31  Jim Meyering  <jim@meyering.net>
86543
86544         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
86545
86546         * lib/linebuffer.c: Include <string.h> for declaration of memset.
86547
86548 2003-10-30  Paul Eggert  <eggert@twinsun.com>
86549             Bruno Haible  <bruno@clisp.org>
86550
86551         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
86552         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
86553
86554 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
86555
86556         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
86557         netbsd*-gnu*.  Suggested by Robert Millan.
86558
86559 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86560
86561         * modules/group-member: Depend on stdbool.
86562
86563 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86564
86565         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
86566
86567 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86568
86569         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
86570         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
86571         after the 'gnu' in these cases.  This fixes some bugs in the
86572         previous change, and is based on suggestions by Robert Millan.
86573
86574 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86575
86576         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
86577         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
86578         no longer needed.
86579         * lib/quotearg.c (quotearg_n_options): Use it.
86580         * lib/group-member.c: Include <stdbool.h>.
86581         (free_group_info): Arg is now const *; don't free arg.
86582         (get_group_info): Now returns bool and accepts struct group_info *,
86583         rather than returning a malloc'ed struct group_info *.
86584         All uses changed.  Check for overflow in internal size calculation.
86585
86586         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
86587         rather than xmalloc/xrealloc.
86588         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
86589         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
86590         conformance bug: the old code used a pointer after freeing the
86591         storage that it addressed.
86592         * lib/hash.c (hash_initialize): Simplify the code by using
86593         xalloc_oversized rather than doing it by hand.
86594         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
86595         the buffer preserved.  Use free and xmalloc instead.
86596         * lib/quotearg.c (quotearg_n_options): Likewise.
86597         Use a simpler test for size overflow.  Don't use xalloc_oversized
86598         because unsigned int might be wider than size_t (!); this suggests
86599         that we should switch from unsigned int to size_t for slot numbers.
86600
86601 2003-10-28  Paul Eggert  <eggert@twinsun.com>
86602
86603         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
86604         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
86605         NetBSD kernels.  Requested by Richard Stallman.
86606
86607 2003-10-27  Paul Eggert  <eggert@twinsun.com>
86608
86609         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
86610         to allocate the returned structure.  Do not allocate a subarray,
86611         as x2nrealloc will do that.
86612         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
86613         instead of xnrealloc.
86614         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
86615
86616 2003-10-27  Bruno Haible  <bruno@clisp.org>
86617
86618         * lib/stdbool_.h: Better support for BeOS.
86619
86620 2003-10-26  Paul Eggert  <eggert@twinsun.com>
86621
86622         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
86623         now uses inline.
86624
86625 2003-10-26  Paul Eggert  <eggert@twinsun.com>
86626
86627         * lib/xalloc.h (xalloc_oversized): New static inline function, for
86628         callers that want to do their own size-overflow checking.  Include
86629         <stdbool.h>, since xalloc_oversized returns bool.
86630         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
86631         to use xalloc_oversized.
86632
86633         Add two functions x2realloc, x2nrealloc, for programs that grow
86634         arrays dynamically by doubling their sizes.
86635         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
86636         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
86637         New functions.
86638
86639         Port to C99 semantics for 'inline' of external functions.
86640         Bug reported by Bruno Haible.
86641         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
86642         with the old contents of xnmalloc.
86643         (xnmalloc, xmalloc): Use it.
86644         (xnrealloc_inline): New static inline function,
86645         with the old contents of xnrealloc.
86646         (xnrealloc, xrealloc): Use it.
86647
86648         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
86649         that.
86650
86651 2003-10-26  Karl Berry  <karl@gnu.org>
86652
86653         * config/srclist.txt (COPYING.DOC): no longer available from
86654         /gd/gnuorg; don't know where the ultimate source is.
86655
86656 2003-10-25  Paul Eggert  <eggert@twinsun.com>
86657
86658         Fix several address-calculation bugs in the hash modules,
86659         plus some minor code cleanup.
86660
86661         * lib/hash.h: Include <stdbool.h>, for bool.
86662         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
86663         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
86664         hash_get_n_entries, hash_get_max_bucket_length,
86665         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
86666         hash_rehash): Use size_t rather than unsigned.
86667         * lib/hash.c (struct hash_table, hash_get_n_buckets,
86668         hash_get_n_buckets_used, hash_get_n_entries,
86669         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
86670         hash_get_entries, hash_do_for_each, hash_string, is_prime,
86671         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
86672         Likewise.
86673         (SIZE_MAX): Define if not defined.
86674         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
86675         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
86676         hash_print):
86677         Use const * when possible.
86678         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
86679         (check_tuning): Fix bug: if tuning parameters were very close to
86680         0 or 1, rounding errors could have caused subscript violations.
86681         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
86682         (hash_initialize): Add 'fail:' label
86683         to free table and return NULL, and use it to simplify code.
86684         Use calloc rather than clearing the storage ourself.
86685         (hash_initialize, hash_rehash): Check for arithmetic overflow in
86686         buffer size calculations.
86687         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
86688         Include <stddef.h>, for size_t.
86689         * lib/hash-pjw.c (hash_pjw): Likewise.
86690         Switch to method described by Bruno Haible.
86691         Include <limits.h>, for CHAR_BIT.
86692         (SIZE_BITS): New macro.
86693
86694 2003-10-23  Paul Eggert  <eggert@twinsun.com>
86695
86696         * m4/getline.m4 (AM_FUNC_GETLINE):
86697         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
86698         hosts.  Problem reported by Derek Robert Price in
86699         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
86700         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
86701         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
86702
86703 2003-10-21  Paul Eggert  <eggert@twinsun.com>
86704
86705         * lib/getndelim2.c (getndelim2): When size calculation overflows,
86706         ceiling the allocation at NMAX bytes rather than silently
86707         discarding input bytes before NMAX is reached.  This makes
86708         a difference only if NMAX exceeds SIZE_MAX / 2.
86709
86710         * lib/obstack.c: Merge from glibc.
86711         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
86712         Add libc_hidden_def (_obstack_newchunk).
86713         (_obstack_free) [! defined _LIBC]: Remove.
86714         [defined _LIBC]: Make a strong alias from obstack_free, rather than
86715         a clone of the function body.
86716         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
86717         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
86718
86719         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
86720         glibc.
86721         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
86722         arg to memcpy.
86723
86724         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
86725         (obstack_ptr_grow_fast, obstack_int_grow_fast):
86726         Don't use lvalue casts, as GCC plans to remove support for them
86727         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
86728         was also present in the non-GCC version, indicating that this
86729         code had always been buggy and had never been widely used.
86730         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
86731         Use the fast variant of each macro, rather than copying the
86732         definiens of the fast variant; that way, we'll be more likely to
86733         catch future bugs in the fast variants.
86734
86735 2003-10-20  Bruno Haible  <bruno@clisp.org>
86736
86737         * modules/wait-process: New file.
86738         * MODULES.html.sh (func_all_modules): Add wait-process.
86739
86740 2003-10-20  Bruno Haible  <bruno@clisp.org>
86741
86742         * m4/wait-process.m4: New file.
86743
86744 2003-10-20  Bruno Haible  <bruno@clisp.org>
86745
86746         * lib/wait-process.h: New file, from GNU gettext.
86747         * lib/wait-process.c: New file, from GNU gettext.
86748
86749 2003-10-19  Jim Meyering  <jim@meyering.net>
86750
86751         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
86752         HPUX 10.20.
86753
86754 2003-10-18  Karl Berry  <karl@gnu.org>
86755
86756         * config/config.guess: update from config.
86757
86758 2003-10-16  Paul Eggert  <eggert@twinsun.com>
86759
86760         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
86761         (getgroups): First arg is int, not size_t.
86762         Don't let 'free' mangle errno.
86763
86764 2003-10-16  Paul Eggert  <eggert@twinsun.com>
86765
86766         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
86767
86768 2003-10-16  Karl Berry  <karl@gnu.org>
86769
86770         * config/config.{guess,sub}: update from config.
86771
86772 2003-10-16  Jim Meyering  <jim@meyering.net>
86773
86774         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
86775         memcpy.
86776
86777 2003-10-15  Paul Eggert  <eggert@twinsun.com>
86778
86779         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
86780         (SIZE_MAX): Remove.
86781         (new_exclude, add_exclude_file): Initial size no longer needs to
86782         be a power of 2.
86783         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
86784         our own address arithmetic overflow checking.
86785
86786         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
86787         (fnmatch): Do not alloca more than 2000 wide characters;
86788         instead, use malloc for large buffers.
86789         Check for address arithmetic overflow, and return -1
86790         with errno set to ENOMEM in that case.
86791         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
86792         (NEW_PATTERN): Do not alloca more than 8000 bytes;
86793         instead, return -1.  Check for address arithmetic overflow.
86794
86795 2003-10-14  Paul Eggert  <eggert@twinsun.com>
86796
86797         Handle invalid suffixes and overflow independently, so that
86798         callers can treat them independently as needed.  Fix some bugs in
86799         suffix handling, e.g., "100k@" was not diagnosed as an invalid
86800         suffix for a human-readable blocksize.  The major caller-visible
86801         change is the addition of a new
86802         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
86803         that both overflow and suffix chars were found.
86804
86805         * lib/human.c (humblock): Don't check separately for invalid suffix
86806         char; that is xstrtoumax's job (now that its bug is fixed).
86807         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
86808         INTMAX_MAX]: New macros.
86809         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
86810         TYPE_MAXIMUM): New macros.
86811         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
86812         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
86813         if overflow occurs, as it's what __strtol does and it's more useful
86814         in practice.
86815         (__xstrtol): If __strtol reports some error other than ERANGE,
86816         reflect it to the caller as LONGINT_INVALID.  If it reports
86817         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
86818         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
86819         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
86820         value.
86821         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
86822         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
86823         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
86824         [defined UINTMAX_MAX]: New macros.
86825
86826 2003-10-14  Bruno Haible  <bruno@clisp.org>
86827
86828         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
86829
86830 2003-10-14  Bruno Haible  <bruno@clisp.org>
86831
86832         * m4/sig_atomic_t: New file, from GNU gettext.
86833         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
86834
86835 2003-10-14  Bruno Haible  <bruno@clisp.org>
86836
86837         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
86838         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
86839         Also use volatile where needed.
86840
86841 2003-10-12  Paul Eggert  <eggert@twinsun.com>
86842
86843         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
86844         Change maintainer from Bruno Haible to 'all'.
86845
86846 2003-10-12  Paul Eggert  <eggert@twinsun.com>
86847
86848         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
86849
86850 2003-10-12  Paul Eggert  <eggert@twinsun.com>
86851
86852         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
86853         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
86854         and define in terms of the other primitives.
86855         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
86856         (SIZE_MAX): Define if not already defined.
86857         (array_size_overflow): New function.
86858         (xalloc_die): Abort instead of exiting if 'error' returns.
86859         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
86860         (xmalloc, xrealloc): Use them.
86861         (xcalloc): Check for address arithmetic overflow.
86862         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
86863         a bit faster than strcpy.
86864
86865 2003-10-10  Simon Josefsson  <jas@extundo.com>
86866
86867         * modules/argp (Depends-on): Add restrict and strcase.
86868
86869 2003-10-10  Simon Josefsson  <jas@extundo.com>
86870
86871         * m4/argp.m4: Add AC_C_INLINE.
86872
86873 2003-10-08  Paul Eggert  <eggert@twinsun.com>
86874
86875         Merge getpass from libc, plus a few fixes.
86876
86877         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
86878         Include <stdbool.h>.
86879         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
86880         __fsetlocking to empty.
86881         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
86882         do include <bits/libc-lock.h>.
86883         Do not include <fcntl.h>; not needed.
86884         [_LIBC]: Include <wchar.h>.
86885         (NOTCANCEL_MODE): New macro.
86886         (flockfile, funlockfile) [_LIBC]: New macros.
86887         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
86888         [!_LIBC]: New macros.
86889         (call_fclose): New function.
86890         (getpass): Use it.  Save tty stream separately; this simplifies the
86891         code and makes it more reliable if stdin happens to equal stdout.
86892         Invoke __fsetlocking on tty.
86893         Handle thread cancellation if needed.
86894         Namespace cleanup (use __tcgetattr, __getline).
86895         Use bool for Booleans.
86896         [USE_IN_LIBIO]: Handle wide streams.
86897         [!_LIBC]: Unconditionally do the fseek, since we don't know what
86898         stream might go where.
86899
86900         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
86901         doesn't have to include <stdio.h> before us.
86902         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
86903         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
86904         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
86905         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
86906         if not declared, so that we can use getpass.c code from libc without
86907         rewriting it.
86908         (flockfile, ftrylockfile, funlockfile): New macros.
86909
86910 2003-10-08  Paul Eggert  <eggert@twinsun.com>
86911
86912         * modules/getpass: Depend on stdbool.
86913
86914 2003-10-08  Paul Eggert  <eggert@twinsun.com>
86915
86916         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
86917
86918 2003-10-07  Karl Berry  <karl@gnu.org>
86919
86920         * config/config.{guess,sub}: update from config.
86921
86922 2003-10-06  Jim Meyering  <jim@meyering.net>
86923             Bruno Haible  <bruno@clisp.org>
86924
86925         This lets translators provide better translations for the
86926         "Written by ..." part of --version output.
86927         * lib/version-etc.h: Include stdarg.h.
86928         (version_etc_copyright): Declare as readonly.
86929         (version_etc): Make this function variadic with a NULL-terminated list
86930         of author name strings.
86931         (version_etc_va): New declaration.
86932         * lib/version-etc.c: Include stdarg.h, stdlib.h.
86933         (version_etc_copyright): Declare as readonly.
86934         (version_etc_va): New function. Provide a different translatable string
86935         for each possible number of authors < 10. Abbreviate when there are 10
86936         authors or more.
86937         (version_etc): Make this function variadic. Call version_etc_va.
86938         Suggestion from Gary V. Vaughan.
86939
86940         * lib/long-options.h (parse_long_options): Change prototype: the
86941         authors string is moved to the end and becomes variadic.
86942         * lib/long-options.c: Include stdarg.h.
86943         (parse_long_options): Make this function variadic, too.
86944         Call version_etc_va, not version_etc.
86945
86946 2003-10-06  Bruno Haible  <bruno@clisp.org>
86947
86948         * modules/version-etc-2: Remove file.
86949         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
86950
86951 2003-10-06  Bruno Haible  <bruno@clisp.org>
86952
86953         * modules/fatal-signal: New file.
86954         * MODULES.html.sh (func_all_modules): Add fatal-signal.
86955
86956 2003-10-06  Bruno Haible  <bruno@clisp.org>
86957
86958         * m4/fatal-signal.m4: New file.
86959         * m4/signalblocking.m4: New file, from GNU gettext.
86960
86961 2003-10-06  Bruno Haible  <bruno@clisp.org>
86962
86963         * lib/version-etc-2.h: Remove file.
86964         * lib/version-etc-2.c: Remove file.
86965
86966 2003-10-06  Bruno Haible  <bruno@clisp.org>
86967
86968         * lib/fatal-signal.h: New file, from GNU gettext.
86969         * lib/fatal-signal.c: New file, from GNU gettext.
86970
86971 2003-10-05  Paul Eggert  <eggert@twinsun.com>
86972
86973         * README: Rework advice for preventing empty .o files.
86974         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
86975         not <sys/types.h>.
86976
86977 2003-10-04  Karl Berry  <karl@gnu.org>
86978
86979         * lib/argp*: update from libc.
86980
86981 2003-10-04  Karl Berry  <karl@gnu.org>
86982
86983         * config/config.{guess,sub}: update from config.
86984
86985 2003-10-02  Bruno Haible  <bruno@clisp.org>
86986
86987         * modules/lchown (Include): Add lchown.h.
86988         * modules/time_r (Include): Use "..." syntax.
86989         * modules/xgetdomainname (Include): Add xgetdomainname.h.
86990
86991 2003-10-01  Simon Josefsson  <jas@extundo.com>
86992
86993         * MODULES.html.sh (func_all_modules): Move gethostname from section
86994         'based on' to section 'lacking' POSIX:2001.
86995
86996 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
86997
86998         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
86999         to output mode on the same stream.
87000
87001 2003-09-29  Paul Eggert  <eggert@twinsun.com>
87002
87003         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
87004         Fix arg typo in previous patch.
87005
87006 2003-09-28  Jim Meyering  <jim@meyering.net>
87007
87008         * lib/error.c: Correct cpp indentation.
87009
87010 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87011
87012         * modules/free: New file.
87013
87014 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87015
87016         * m4/free.m4: New file.
87017
87018 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87019
87020         * lib/minmax.h (MIN, MAX)
87021         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
87022         Omit the special code that used __typeof__, since we worry that
87023         it could be more trouble than it's worth.  See:
87024         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
87025         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
87026
87027         * lib/free.c: New file.
87028
87029 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
87030
87031         Trivial fixes to Makefile.am parts of module listings.
87032         * modules/strstr: Append strstr.h to lib_SOURCES.
87033         * modules/strcase: Likewise, for strcase.h.
87034
87035 2003-09-27  Karl Berry  <karl@gnu.org>
87036
87037         * config/mkinstalldirs: update from automake.
87038
87039 2003-09-26  Paul Eggert  <eggert@twinsun.com>
87040
87041         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
87042         (error_tail): Do not loop, reallocating temporary buffer, since
87043         the output cannot contain more wide characters than the input
87044         contains bytes, the size must be big enough already.  This avoids
87045         one potential size overflow calculation.  Check for size overflow
87046         when calculating temporary buffer size.  Free temporary buffer
87047         when done, if it was allocated with malloc; this plugs a memory
87048         leak.  Remove casts from void * to pointers, that are no longer
87049         needed now that we're assuming C89 or better.
87050
87051         Merge error changes from glibc.
87052
87053         * lib/error.c, error.h: Update copyright notice header to match glibc.
87054         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
87055         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
87056         Disable cancellation while printing error.
87057         * lib/error.h: Prepend __ to parameter names.
87058
87059 2003-09-26  Jim Meyering  <jim@meyering.net>
87060
87061         * lib/error.c (error_tail): Move some declarations
87062         into inner scope where the local variables are used.
87063
87064 2003-09-26  Bruno Haible  <bruno@clisp.org>
87065
87066         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
87067         stpncpy().
87068         Don't define stpncpy through config.h; it's now done through stpncpy.h.
87069
87070 2003-09-26  Bruno Haible  <bruno@clisp.org>
87071
87072         * lib/stpncpy.h (gnu_stpncpy): New declaration.
87073         (stpncpy): Define as alias for gnu_stpncpy.
87074         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
87075
87076 2003-09-25  Simon Josefsson  <jas@extundo.com>
87077
87078         * lib/xgetdomainname.h: New file.
87079         * lib/xgetdomainname.c: New file.
87080
87081 2003-09-25  Simon Josefsson  <jas@extundo.com>
87082             Bruno Haible  <bruno@clisp.org>
87083
87084         * modules/getdomainname: New file.
87085         * modules/xgetdomainname: New file.
87086         * MODULES.html.sh (func_all_modules): Add getdomainname,
87087         xgetdomainname.
87088
87089 2003-09-25  Simon Josefsson  <jas@extundo.com>
87090             Bruno Haible  <bruno@clisp.org>
87091
87092         * m4/getdomainname.m4: New file.
87093
87094 2003-09-25  Simon Josefsson  <jas@extundo.com>
87095             Bruno Haible  <bruno@clisp.org>
87096
87097         * lib/getdomainname.h: New file.
87098         * lib/getdomainname.c: New file.
87099
87100 2003-09-25  Karl Berry  <karl@gnu.org>
87101
87102         * lib/argp-fmtstream.c, argp-help.c: update from libc.
87103
87104 2003-09-25  Karl Berry  <karl@gnu.org>
87105
87106         * config/install-sh: update from automake.
87107
87108 2003-09-25  Bruno Haible  <bruno@clisp.org>
87109
87110         * modules/version-etc-2: New file, from modules/version-etc with
87111         modifications.
87112         * MODULES.html.sh (func_all_modules): Add version-etc-2.
87113
87114 2003-09-25  Bruno Haible  <bruno@clisp.org>
87115
87116         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
87117         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
87118
87119 2003-09-24  Simon Josefsson  <jas@extundo.com>
87120
87121         * modules/xgethostname: Add xgethostname.h.
87122
87123 2003-09-24  Paul Eggert  <eggert@twinsun.com>
87124
87125         * lib/linebuffer.c (freebuffer): Don't free the argument, just
87126         the buffer associated with the argument.  Bug reported by
87127         Simon Josefsson.
87128
87129 2003-09-24  Paul Eggert  <eggert@twinsun.com>
87130
87131         * README: Document assumptions that 'int' is at least 32 bits
87132         wide, that integer arithmetic is 2's complement without overflow,
87133         that there are no holes in integer values, that adding sizes of
87134         two nonoverlapping objects can't overflow, and that all-bits-zero
87135         yields scalar zero.  Fix spelling and capitalization typos.
87136
87137 2003-09-19  Karl Berry  <karl@gnu.org>
87138
87139         * lib/argp.h: update from libc.
87140
87141 2003-09-17  Paul Eggert  <eggert@twinsun.com>
87142
87143         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
87144         to avoid spurious warnings like "AC_RUN_IFELSE was called before
87145         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
87146
87147 2003-09-17  Paul Eggert  <eggert@twinsun.com>
87148
87149         * gnulib-tool: Use "test -h", not "test -L", for portability
87150         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
87151         (tags_regexp): Remove, since \| doesn't conform to POSIX.
87152         (sed_extract_prog): Issue s commands one-by-one, rather than
87153         using \| in one s command.
87154
87155 2003-09-16  Paul Eggert  <eggert@twinsun.com>
87156
87157         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
87158         input error, instead of returning NULL the next time we are called
87159         (and therefore losing track of errno).
87160
87161 2003-09-16  Bruno Haible  <bruno@clisp.org>
87162
87163         * gnulib-tool (func_create_testdir): Warn about duplicated
87164         dependencies.
87165
87166 2003-09-15  Paul Eggert  <eggert@twinsun.com>
87167
87168         * modules/argmatch, modules/fatal, modules/obstack,
87169         modules/xalloc, modules/xgethostname: Sort dependencies by
87170         importance, not alphabetically.
87171
87172 2003-09-15  Paul Eggert  <eggert@twinsun.com>
87173
87174         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
87175         fails, so that the caller gets the proper errno.
87176
87177         * lib/readutmp.c (read_utmp): Likewise.
87178         Check for fstat error.  Close stream and free storage
87179         when failing.
87180
87181 2003-09-14  Karl Berry  <karl@gnu.org>
87182
87183         * config/srclist.txt (strdup.c): disable for c89 changes.
87184
87185 2003-09-14  Jim Meyering  <jim@meyering.net>
87186
87187         * lib/getloadavg.c: Correct cpp indentation.
87188         * lib/strdup.c: Likewise.
87189         * lib/vasnprintf.c: Likewise.
87190
87191 2003-09-14  Bruno Haible  <bruno@clisp.org>
87192
87193         * modules/fwriteerror: New file.
87194         * MODULES.html.sh (func_all_modules): Add fwriteerror.
87195
87196 2003-09-14  Bruno Haible  <bruno@clisp.org>
87197
87198         * lib/fwriteerror.h: New file.
87199         * lib/fwriteerror.c: New file.
87200
87201 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87202
87203         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
87204         modules/xgethostname, modules/xalloc: Depend on exit.
87205
87206 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87207
87208         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
87209
87210         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
87211         and AC_MINIX, too, so that their extensions are available.
87212
87213         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
87214         This macro has been superseded by gl_BACKUPFILE.
87215
87216         More patches to assume C89 or better.
87217
87218         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
87219
87220         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
87221         unconditionally.
87222         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
87223         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
87224         Include <string.h>, <stdlib.h> unconditionally.
87225         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
87226         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
87227         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
87228         headers or for string.h.
87229         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
87230         or strtoul.
87231
87232         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
87233         headers.
87234         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
87235         * m4/userspec.m4 (gl_USERSPEC): Likewise.
87236         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
87237         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
87238         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
87239         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
87240         memcpy, memset.
87241         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
87242         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
87243         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
87244         strtol.
87245         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
87246         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
87247         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
87248         strtoul.
87249
87250 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87251
87252         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
87253         * lib/obstack.c [!defined _LIBC]: Likewise.
87254         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
87255         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
87256         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
87257
87258         More changes to assume C89 or better.
87259
87260         * lib/error.c (error_tail): Assume vprintf.
87261
87262         * lib/argmatch.c (getenv): Remove decl.
87263         * lib/progreloc.c (get_full_program_name): Define via prototype.
87264         * lib/setenv.c (clearenv): Likewise.
87265         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
87266         needed.
87267         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
87268         (malloc, memcpy): Remove decls.
87269         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
87270         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
87271         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
87272         (memcpy): Remove macro.
87273         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
87274         (__P): Remove.  All uses removed.
87275         (PTR): Remove.  All uses changed to void *.
87276         (CHAR_BIT, NULL): Remove.
87277         (spaces, zeros, memset_space, memset_zero)
87278         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
87279         Remove.
87280         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
87281         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
87282         Define with prototype.
87283         Remove now-unnecessary prototype decl.
87284         (extra_args_spec): Assume ANSI C.  All uses changed.
87285         (extra_args_spec_iso): Remove.
87286         (my_strftime, emacs_strftimeu): Define via prototype.
87287         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
87288         unconditionally.
87289         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
87290         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
87291         (strtoul, strtol): Remove decls.
87292         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
87293         LONG_MAX): Remove.
87294         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
87295         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
87296         (LOCALE_PARAM_PROTO): New macro.
87297         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
87298         (INTERNAL (strtol), strtol): Define with a prototype.
87299         (PARAMS): Remove.  All uses removed.
87300         * lib/tempname.c: Include <string.h> unconditionally.
87301         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
87302         * lib/xgethostname.c (main): Define with a prototype.
87303         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
87304         Include <stdlib.h> unconditionally.
87305         (calloc, malloc, realloc, free): Remove decls.
87306         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
87307         Include <stdlib.h> unconditionally.  Sort include file names.
87308         (strtod): Remove.
87309         (xstrtod): Define with a prototype.
87310         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
87311         (strtol, strtoul): Remove decls.
87312
87313 2003-09-11  Paul Eggert  <eggert@twinsun.com>
87314
87315         More patches to assume C89 or better.
87316         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
87317         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
87318         string.h, memchr, STDC_HEADERS.
87319
87320 2003-09-11  Paul Eggert  <eggert@twinsun.com>
87321
87322         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
87323         Include <stdlib.h>, <string.h> unconditionally.
87324         Remove now-unnecessary cast to char *.
87325         * lib/strnlen.c: Include <string.h> unconditionally.
87326         * lib/yesno.c (yesno): Define with a prototype.
87327
87328 2003-09-11  Bruno Haible  <bruno@clisp.org>
87329
87330         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
87331
87332 2003-09-10  Jim Meyering  <jim@meyering.net>
87333
87334         * lib/error.c: Correct indentation of cpp directives.
87335
87336 2003-09-10  Bruno Haible  <bruno@clisp.org>
87337
87338         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
87339         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
87340         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
87341         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
87342         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
87343         <stdlib.h> and <string.h> checks.
87344         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
87345         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
87346
87347 2003-09-10  Bruno Haible  <bruno@clisp.org>
87348
87349         * lib/strcspn.c: Include <string.h> unconditionally.
87350         * lib/strpbrk.c: Include <string.h> unconditionally.
87351         * lib/strstr.c: Include <string.h> unconditionally.
87352         * lib/unicodeio.c: Include <string.h> unconditionally.
87353         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
87354         * lib/unsetenv.c: Likewise.
87355         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
87356         * lib/yesno.c: Include <stdlib.h> unconditionally.
87357         (rpmatch): Add prototype.
87358
87359 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87360
87361         More patches to assume C89 or better.
87362         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
87363         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
87364         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
87365         or for string.h.
87366         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
87367         stdlib.h.
87368         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
87369         C headers.
87370         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
87371         string.h.
87372         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
87373         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
87374         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
87375         or for string.h.
87376         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
87377         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
87378         C headers.
87379         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
87380         memcpy.
87381         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
87382         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
87383         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
87384         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
87385         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
87386         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
87387         string.h, free.
87388         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
87389         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
87390         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
87391         C headers, or for string.h.
87392         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
87393         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
87394         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
87395         headers, memory.h, stdlib.h, string.h, strings.h.
87396         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
87397         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
87398         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
87399         strchr.
87400         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
87401         headers, memory.h, string.h.
87402         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
87403         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
87404         free.
87405         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
87406         headers.
87407         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
87408         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
87409         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
87410         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
87411         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
87412
87413 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87414
87415         More K&R removal.
87416
87417         * lib/acosl.c (main): Use a prototype.
87418         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
87419         tanl.c: Likewise.
87420
87421         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
87422
87423         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
87424         (getopt, etopt_long, getopt_long_only, _getopt_internal)
87425         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
87426         with a prototype.
87427         * lib/getopt.c (const): Remove macro.
87428         Include <string.h> unconditionally.
87429         (my_index): Remove; all uses changed to strchr.
87430         (strlen): Remove decl.
87431         (exchange): Remove forward decl; no longer needed.
87432         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
87433         Define with prototype.
87434         * lib/getopt1.c (const): Remove macro.
87435         (getopt_long, getopt_long_only, main): Define with prototype.
87436
87437         * lib/getugroups.c: Include <string.h> unconditionally.
87438
87439         * lib/getusershell.c: Include <stdlib.h> unconditionally.
87440         (getusershell, setusershell, endusershell, readname, main):
87441         Define with prototypes.
87442
87443         * lib/group-member.c: Include group-member.h first.
87444         Include <stdlib.h> unconditionally.
87445
87446         * lib/hard-locale.c: Include hard-locale.h first.
87447         Include <stdlib.h>, <string.h> unconditionally.
87448
87449         * lib/hash.c (free, malloc): Remove decls.
87450         Include <stdlib.h> unconditionally.
87451
87452         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
87453         (getenv): Do not declare.
87454
87455         * lib/idcache.c: Include <string.h> unconditionally.
87456
87457         * lib/long-options.c: Include long-options.h first, to test interface.
87458         Include <stdlib.h> unconditionally.
87459
87460         * lib/makepath.c: Include makepath.h first, to test interface.
87461         Include <stdlib.h> and <string.h> unconditionally.
87462
87463         * lib/linebuffer.c: Include <stdlib.h>.
87464         (free): Remove decl.
87465
87466         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
87467         stddef.h. rpl_malloc returns void *, not char *.
87468         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
87469         prototype.
87470
87471         * lib/md5.h: Include <limits.h> unconditionally.
87472         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
87473         (__P): Remove; all uses removed.
87474         * lib/md5.c: Include "md5.h" first.
87475         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
87476         md5_buffer, md5_process_bytes, md5_process_block):
87477         Define with prototypes.
87478         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
87479         * lib/sha.c: Include "sha.h" first.
87480         Include <stdlib.h>, <string.h> unconditionally.
87481
87482         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
87483         * lib/memcmp.c (__ptr_t): Likewise.
87484         * lib/memrchr.c (__ptr_t): Likewise.
87485         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
87486         Include <string.h> unconditionally.
87487         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
87488         * lib/memchr.c: Include <stdlib.h> unconditionally.
87489         * lib/memchr.c (LONG_MAX): Remove.
87490         * lib/memrchr.c (LONG_MAX): Likewise.
87491         * lib/memchr.c (__memchr): Define via a prototype.
87492         * lib/memrchr.c (__memrchr): Likewise.
87493         * lib/memcmp.c (__P): Remove, and remove all uses.
87494         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
87495         Remove forward decls; no longer needed.
87496         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
87497         Use types required by C89 in prototype.
87498
87499         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
87500         * lib/savedir.c: Likewise.
87501         * lib/mkdir.c (free): Remove decl.
87502         * lib/rmdir.c (rmdir): Define with a prototype.
87503         * lib/savedir.c: Include savedir.h first, to test interface.
87504
87505         * lib/mktime.c (STDC_HEADERS): Remove.
87506         Include <stdlib.h>, <string.h> unconditionally.
87507
87508         * lib/modechange.c: Include <stdlib.h> unconditionally.
87509         (malloc): Remove decl.
87510
87511         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
87512         (free): Remove decl.
87513
87514         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
87515         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
87516         (This type really should be intptr_t, but that's a C99ism.)
87517         (_obstack_memcpy): Remove: all uses changed to memcpy.
87518         Include <string.h> unconditionally.
87519         (struct obstack): Assume __STDC__ for types of members
87520         chunkfun, freefun, extra_arg.
87521         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
87522         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
87523         obstack_begin, obstack_specify_allocation,
87524         obstack_specify_allocation_with_arg, obstack_chunkfun,
87525         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
87526         Remove unprototyped decls and the macros that use them.
87527         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
87528         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
87529         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
87530         (defined __STDC__ && __STDC__)]:
87531         Remove nonprototyped code.
87532         Include <stdlib.h> unconditionally.
87533         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
87534         _obstack_allocated_p, _obstack_free, obstack_free,
87535         _obstack_memory_used, print_and_abort):
87536         Define using prototypes.
87537         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
87538         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
87539         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
87540         obstack_next_free, obstack_object_size, obstack_room) [0]:
87541         Remove unused, unprototyped code.
87542
87543         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
87544
87545         * lib/physmem.c (physmem_total, physmem_available, main): Define
87546         with prototypes.
87547
87548         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
87549         (main): Define with a prototype.
87550
87551         * lib/posixver.c (getenv): Remove decl.
87552
87553         * lib/putenv.c (malloc): Returns void *, not char *.
87554         Include <string.h> unconditionally.
87555         (strchr, memcpy, NULL): Do not define.
87556
87557         * lib/readtokens.c: Include readtokens.h first, to test interface.
87558         Include <stdlib.h>, <string.h> unconditionally.
87559         (init_tokenbuffer): Define with a prototype.
87560
87561         * lib/regex.c (PARAMS): Remove.  All uses removed.
87562         All uses of _RE_ARGS removed, too.
87563         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
87564         unconditionally.
87565         (bzero): Assume memset exists.
87566         (memcmp, memcpy, NULL): Remove.
87567         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
87568         char, or assignments to local vars of type signed char.
87569         (init_syntax_once, PREFIX(extract_number_and_incr),
87570         PREFIX(print_partial_compiled_pattern),
87571         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
87572         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
87573         PREFIX(regex_grow_registers), PREFIX(regex_compile),
87574         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
87575         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
87576         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
87577         wcs_compile_range, byte_compile_range, truncate_wchar,
87578         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
87579         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
87580         count_mbs_length, wcs_re_match_2_internal,
87581         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
87582         PREFIX(alt_match_null_string_p),
87583         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
87584         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
87585         regfree, PREFIX(extract_number)): Define with prototype.  Remove
87586         now-unnecessary declaration, if any.
87587         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
87588         regcomp, regexec):
87589         Remove now-unnecessary casts among pointer types.
87590         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
87591
87592         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
87593         (free): Remove decl.
87594
87595         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
87596
87597         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
87598         (free): Remove decl.
87599
87600         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
87601         * lib/xgetcwd.c: Likewise.
87602
87603         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
87604         (free): Remove decl.
87605
87606         * lib/strchrnul.c (strchrnul): Define with a prototype.
87607         Fix bug: c_in was not converted to char before searching.
87608
87609         The following changes are not K&R related:
87610
87611         * lib/group-member.h: Include <sys/types.h>, so that this file is
87612         self-contained.
87613         * lib/makepath.h: Likewise.
87614
87615         * lib/getusershell.c (readname, default_index, line_size, readname):
87616         Use size_t, not int, for sizes.
87617         (readname): If the size overflows, report an error instead of
87618         looping forever.
87619
87620 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87621
87622         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
87623         libc.
87624
87625 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87626
87627         * README: New section: portability guidelines.
87628
87629 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
87630
87631         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
87632         C89 spec.
87633
87634 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
87635
87636         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
87637
87638 2003-09-08  Paul Eggert  <eggert@twinsun.com>
87639
87640         Assume C89 or better; remove K&R cruft.
87641         A few of these changes were first proposed by Derek Robert Price
87642         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
87643
87644         * lib/addext.c: Include <string.h> unconditionally.
87645         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
87646         Don't declare getenv or malloc.
87647
87648         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
87649         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
87650         (NULL): Remove.
87651         (find_stack_direction, alloca): Use prototypes.
87652
87653         * lib/atexit.c (atexit): Define using a prototype.
87654
87655         * lib/basename.c, dirname.c, stripslash.c:
87656         Include <string.h> unconditionally.
87657
87658         * lib/bcopy.c: Include <stddef.h>.
87659         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
87660
87661         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
87662
87663         * lib/error.h (error, error_at_line, error_print_progname)
87664         [! (defined (__STDC__) && __STDC__)]: Remove decls.
87665         * lib/error.c: Include error.h first, to check interface.
87666         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
87667         (VA_START): Remove; all uses changeed to va_start.
87668         (exit, strerror): Remove decls.
87669         (error_print_progname): Prototype uncondionally.
87670         Don't include <errno.h>; no longer needed.
87671         (private_strerror): Remove.
87672         (error_tail): Always define.
87673         (error, error_at_line): Assume C89 or better; always use prototypes.
87674         * lib/fatal.c: Include "fatal.h" first, to test interface.
87675         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
87676         (VA_START): Remove; all uses changed to va_start.
87677         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
87678         this case.
87679         (exit): Remove decl.
87680         (fatal): Prototype unconditionally.  Assume va_start works.
87681         Abort at end, to pacify gcc.
87682
87683         * lib/euidaccess.c (main): Define with a prototype.
87684
87685         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
87686
87687         * lib/exitfail.c: Include <stdlib.h> unconditionally.
87688
87689         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
87690         prototypes.
87691         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
87692         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
87693         (getenv): Remove decl.
87694         (fnmatch): Define using a prototype.
87695         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
87696         (FCT): Define using a prototype.
87697
87698         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
87699
87700         * lib/gethostname.c: Include <stddef.h>.
87701         (gethostname): Define with prototype.  Length is size_t, not int.
87702
87703 2003-09-08  Paul Eggert  <eggert@twinsun.com>
87704
87705         Assume C89 or better; remove K&R cruft.
87706         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
87707         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
87708         string.h, getenv, malloc.
87709         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
87710         headers.
87711         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
87712         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
87713         do not check for strerror.
87714         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
87715         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
87716         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
87717         do not check for doprnt or vprintf.
87718         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
87719         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
87720
87721 2003-09-08  Paul Eggert  <eggert@twinsun.com>
87722
87723         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
87724         getversion.c should have been removed then, but was accidentally
87725         preserved.
87726
87727         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
87728         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
87729
87730 2003-09-08  Karl Berry  <karl@gnu.org>
87731
87732         * config/config.sub, config.guess, srclistvars.sh: update from savannah
87733                 config, forget about prep.
87734
87735         * config/depcomp, missing: update from automake.
87736
87737 2003-09-07  Paul Eggert  <eggert@twinsun.com>
87738
87739         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
87740         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
87741
87742 2003-09-07  Paul Eggert  <eggert@twinsun.com>
87743
87744         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
87745         copy_tm_result.  Bug reported by Simon Josefsson in
87746         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
87747
87748 2003-09-06  Paul Eggert  <eggert@twinsun.com>
87749
87750         * m4/time_r.m4: New file.
87751         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
87752         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
87753         is. Check for timegm declaration.
87754         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
87755         Do not check for gmtime_r.
87756         Replace mktime if __mktime_internal does not exist and if mktime
87757         hasn't been replaced already.
87758
87759 2003-09-06  Paul Eggert  <eggert@twinsun.com>
87760
87761         * lib/time_r.c, lib/time_r.h: New files.
87762
87763         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
87764         __localtime_r.
87765         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
87766         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
87767
87768         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
87769         __gmtime_r.
87770         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
87771         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
87772         Include <time_r.h>.
87773
87774         * lib/timegm.c: Switch to glibc implementation, with the following
87775         changes:
87776         [defined HAVE_CONFIG_H]: Include <config.h>.
87777         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
87778         (__mktime_internal) [!defined _LIBC]: New decl.
87779         (__gmtime_r) [!defined _LIBC]: New macro and function.
87780         (timegm): Use a prototype, since gnulib assumes C89.
87781         Do not bother declaring tmp to be const, as it's not really usefu.
87782         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
87783         (timegm): Declare only if HAVE_DECL_TIMEGM.
87784
87785 2003-09-06  Paul Eggert  <eggert@twinsun.com>
87786
87787         * MODULES.html.sh (func_all_modules): Add time_r.
87788         * modules/time_r: New file.
87789         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
87790         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
87791
87792 2003-09-03  Paul Eggert  <eggert@twinsun.com>
87793
87794         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
87795         Bug reported by Lute Kamstra in
87796         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
87797
87798         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
87799         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
87800         course with correspondingly smaller numbers for tomorrow and
87801         yesterday.  From Tadayoshi Funaba.  Originally installed into
87802         sh-utils on 1999-08-07, but the patch got lost (I guess during the
87803         coreutils merge?).
87804
87805 2003-08-31  Simon Josefsson  <jas@extundo.com>
87806
87807         * modules/timegm: New file.
87808         * MODULES.html.sh (func_all_modules): Add timegm.
87809
87810 2003-08-31  Simon Josefsson  <jas@extundo.com>
87811
87812         * m4/timegm.m4: New file.
87813
87814 2003-08-31  Simon Josefsson  <jas@extundo.com>
87815
87816         * lib/timegm.h: New file.
87817         * lib/timegm.c: New file.  Based on
87818         wget-1.8.2/src/http.c:mktime_from_utc.
87819
87820 2003-08-31  Karl Berry  <karl@gnu.org>
87821
87822         * lib/argp.h: update from libc.
87823
87824 2003-08-28  Bruno Haible  <bruno@clisp.org>
87825
87826         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
87827         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
87828         followed by '#define fnmatch fnmatch_posix' gives an error.
87829
87830 2003-08-28  Bruno Haible  <bruno@clisp.org>
87831
87832         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
87833         warning on QNX, which defines O_BINARY to 000000.
87834
87835 2003-08-27  Jim Meyering  <jim@meyering.net>
87836
87837         * m4/mkstemp.m4: Require that the system mkstemp be able to create
87838         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
87839         would fail after 32.  Reported by Danny Levinson.  Details here:
87840         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
87841
87842 2003-08-24  Bruno Haible  <bruno@clisp.org>
87843
87844         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
87845         MSVC7 <stdio.h> is included later.
87846
87847 2003-08-22  Simon Josefsson  <jas@extundo.com>
87848
87849         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
87850
87851 2003-08-20  Karl Berry  <karl@gnu.org>
87852
87853         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
87854
87855 2003-08-20  Bruno Haible  <bruno@clisp.org>
87856
87857         * modules/progname: New file.
87858         * MODULES.html.sh (func_all_modules): Add progname.
87859
87860 2003-08-20  Bruno Haible  <bruno@clisp.org>
87861
87862         * lib/progname.h: New file, from GNU gettext.
87863         * lib/progname.c: New file, from GNU gettext.
87864         * lib/progreloc.c: New file, from GNU gettext.
87865
87866 2003-08-19  Jim Meyering  <jim@meyering.net>
87867
87868         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
87869         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
87870
87871 2003-08-19  Bruno Haible  <bruno@clisp.org>
87872
87873         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
87874         more.
87875
87876 2003-08-19  Bruno Haible  <bruno@clisp.org>
87877
87878         * lib/xstrdup.c: Assume <string.h> exists.
87879
87880 2003-08-18  Paul Eggert  <eggert@twinsun.com>
87881
87882         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
87883         in makefile rules.
87884
87885 2003-08-18  Jim Meyering  <jim@meyering.net>
87886
87887         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
87888         * m4/lib-ld.m4: Likewise.
87889
87890 2003-08-18  Jim Meyering  <jim@meyering.net>
87891
87892         * lib/setenv.h: Indent nested cpp directive.
87893         * lib/vasnprintf.c: Remove trailing blanks.
87894
87895 2003-08-17  Simon Josefsson  <jas@extundo.com>
87896
87897         * modules/xstrndup: New file.
87898         * MODULES.html.sh (func_all_modules): Add xstrndup.
87899
87900 2003-08-17  Simon Josefsson  <jas@extundo.com>
87901
87902         * modules/argp: Fix autoconf macro name. Add more dependencies.
87903
87904 2003-08-17  Simon Josefsson  <jas@extundo.com>
87905
87906         * m4/xstrndup.m4: New file.
87907
87908 2003-08-17  Simon Josefsson  <jas@extundo.com>
87909
87910         * m4/argp.m4: New file.
87911
87912 2003-08-17  Simon Josefsson  <jas@extundo.com>
87913             Bruno Haible  <bruno@clisp.org>
87914
87915         * lib/xstrndup.h: New file.
87916         * lib/xstrndup.c: New file.
87917
87918 2003-08-17  Bruno Haible  <bruno@clisp.org>
87919
87920         * modules/strndup (Files, Include): Add lib/strndup.h.
87921
87922 2003-08-17  Bruno Haible  <bruno@clisp.org>
87923
87924         * modules/euidaccess (Files): Add lib/euidaccess.h.
87925
87926 2003-08-17  Bruno Haible  <bruno@clisp.org>
87927
87928         * lib/strndup.h: New file.
87929
87930 2003-08-17  Bruno Haible  <bruno@clisp.org>
87931
87932         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
87933         like AC_GNU_SOURCE.
87934         * modules/extensions (configure.ac): Comment out the invocation of
87935         gl_USE_SYSTEM_EXTENSIONS.
87936
87937 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87938
87939         Merges from coreutils, etc.
87940         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
87941         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
87942         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
87943         fixing a typo.
87944         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
87945         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
87946
87947 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87948
87949         Document merge from coreutils.
87950         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
87951         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
87952         * modules/utime: Add m4/utimes-null.m4.
87953
87954 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87955
87956         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
87957         space, undoing this 2003-08-12 change:
87958         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
87959
87960 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87961
87962         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
87963         strtoul.c from libc, undoing this 2003-08-12 change:
87964         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
87965
87966 2003-08-16  Jim Meyering  <jim@meyering.net>
87967
87968         Merges from coreutils.
87969         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
87970         prefix.  Adjust cache variables similarly.  Create 500 rather than
87971         just 300 files, to exercise bug on Darwin6.5, too.
87972         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
87973         $missing_dir.
87974         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
87975         AM_SYS_POSIX_TERMIOS.
87976         Reported by mkc@mathdogs.com.
87977         Also change use of $am_cv_sys_posix_termios
87978         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
87979         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
87980         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
87981         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
87982         in /proc/mounts until it finds one with matching device number.  This
87983         is unnecessary when the FILE argument *is* a mount point.  No stat call
87984         is necessary in that case.  So, disable the statvfs-testing code on
87985         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
87986         as RedHat bug# 84846.
87987         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
87988         to 1MB, so as not to render systems with no stack size limit (e.g.,
87989         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
87990         Include <unistd.h>.  On some systems,
87991         it is required for the definition of _SC_PAGESIZE.
87992
87993 2003-08-16  Jim Meyering  <jim@meyering.net>
87994
87995         Merge from coreutils.
87996         * lib/xstrtoimax.c: #else #if -> #elif.
87997         * lib/xstrtoumax.c: Likewise.
87998
87999 2003-08-16  Jim Meyering  <jim@meyering.net>
88000
88001         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
88002         * m4/utimes.m4: Removed.
88003         * m4/utimes-null.m4: Renamed from utimes.m4.
88004
88005         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
88006         to 1MB, so as not to render systems with no stack size limit (e.g.,
88007         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
88008         Include <unistd.h>.  On some systems,
88009         it is required for the definition of _SC_PAGESIZE.
88010
88011 2003-08-16  Jim Meyering  <jim@meyering.net>
88012         and Paul Eggert  <eggert@cs.ucla.edu>
88013
88014         Merges from coreutils, etc.
88015
88016         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
88017         using the latest version from cvs.  This avoids problems with #line
88018         directives using a vendor (Sun) compiler.
88019         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
88020         Don't set GETGROUPS_LIB here; now it's
88021         done via getgroups.m4's wrapper function.
88022         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
88023         rather than just in sh-util/configure.in, so that the
88024         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
88025         same.
88026         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
88027         AC_FUNC_GETLOADAVG where to find getloadavg.c.
88028         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
88029         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
88030         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
88031         Remove code that is now done by the newly-required macros.
88032         Append $(EXEEXT) to DF_PROG.
88033         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
88034         Do not invoke or require the following here,
88035         since prereq.m4 or some gnulib .m4 now does this for us:
88036         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
88037         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
88038         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
88039         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
88040         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
88041         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
88042         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
88043         AC_FUNC_OBSTACK.
88044         Do not replace the following functions, as this is now the job
88045         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
88046         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
88047         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
88048         atexit getpass, strdup, getpagesize.
88049         Replace 'raise'.
88050         Do not check for the following functions, as this is now the job
88051         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
88052         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
88053         setregid.
88054         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
88055         Check for sys/sysctl.h.
88056         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
88057         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
88058         of checking for ssize_t ourselves.
88059
88060         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
88061         Require every macro that gnulib/modules/* suggests for us.
88062         (jm_PREREQ_ADDEXT): New macro.
88063         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
88064         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
88065
88066         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
88067         (gl_PHYSMEM): Use it.
88068         Also check for `table' function.
88069         Check for new headers and functions.
88070         Add check for sys/sysmp.h.
88071         With suggestions from Kaveh Ghazi.
88072         Ignore headers that are present but cannot be compiled.  This
88073         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
88074         C 5.4.
88075
88076 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88077
88078         Document merge from coreutils.
88079         * modules/userspec: Depend on posixver.
88080         * modules/strftime: Depend on tzset.
88081
88082 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88083
88084         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
88085         rather than tab, after '#' in shell-script copyright notices.
88086         Suggested by Bruno Haible.
88087
88088 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88089
88090         * config/srclist-update: Use three spaces, rather than tab, after '#'
88091         in shell-script copyright notices.  Suggested by Bruno Haible.
88092         Remove unnecessary parenthesization in regular expression.
88093
88094 2003-08-15  Jim Meyering  <jim@meyering.net>
88095
88096         Merge from coreutils.
88097         * lib/xgethostname.c: Include <stdlib.h>.
88098         (xghostname): Don't exit for anything other than memory-related
88099         failure; just return NULL.
88100         * lib/userspec.c: Include "posixver.h".
88101         (parse_user_spec): Accept `.' as a separator only
88102         in pre-POSIX-200112 mode.
88103         * lib/strtoimax.c: Use #elif rather than #else #if.
88104         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
88105         Remove function, now that we can rely on a working tzset function.
88106         [!_LIBC]: Ensure that the required autoconf test has been run.
88107         [!defined _NL_CURRENT && HAVE_STRFTIME]:
88108         Use underlying_strftime for %r.
88109         * lib/sha.c: Merge in some clean-up and optimization changes from
88110         glibc.
88111         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
88112         Ensure that it is a multiple of 64.
88113         Rearrange loop exit tests so as to avoid performing an
88114         additional fread after encountering an error or EOF.
88115         * lib/realloc.c: Update copyright date.
88116
88117 2003-08-15  Jim Meyering  <jim@meyering.net>
88118         and Paul Eggert  <eggert@twinsun.com>
88119
88120         Merge from coreutils.
88121         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
88122         member but strut utmpx does not.  Needed for AIX 4.3.3.
88123         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
88124
88125 2003-08-15  Jim Meyering  <jim@meyering.net>
88126         and Paul Eggert  <eggert@cs.ucla.edu>
88127
88128         Merges from coreutils, etc.
88129         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
88130         Require gl_FUNC_TZSET_CLOBBER.
88131         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
88132         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
88133         members.
88134
88135 2003-08-14  Paul Eggert  <eggert@twinsun.com>
88136
88137         Help the merge from coreutils.
88138         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
88139         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
88140         * m4/tzset.m4: Use it too.
88141
88142 2003-08-14  Paul Eggert  <eggert@twinsun.com>
88143
88144         * modules/tzset: New file.
88145
88146 2003-08-14  Jim Meyering  <jim@meyering.net>
88147
88148         Merges from coreutils.
88149         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
88150         variable names, rather than @FNMATCH_H@.
88151         * modules/alloca: Likewise for $(ALLOCA_H).
88152
88153         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
88154         the three copies of the literal target, `fnmatch.h'.
88155         * modules/alloca (alloca.h): Likewise.
88156
88157 2003-08-14  Jim Meyering  <jim@meyering.net>
88158
88159         Merge from coreutils.
88160         * m4/tzset.m4: New file.
88161         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
88162         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
88163         otherwise, AIX 5.1 systems would end up using the latter.
88164         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
88165         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
88166         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
88167         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
88168
88169 2003-08-14  Jim Meyering  <jim@meyering.net>
88170
88171         Merge from coreutils.
88172         * lib/obstack.h: Whitespace changes.
88173         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
88174         and xcalloc return values.
88175         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
88176         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
88177         hang on OSF/1 5.1 for DIR on both local and remote file systems.
88178         Reported by (and fix confirmed by) Nelson H. F. Beebe.
88179         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
88180         error from mntctl.
88181         Use mntctl's return value to drive the entry-processing loop, since
88182         we can't rely on the value of the vmt_length member in the last
88183         entry.  On some systems doing so could result in exhausting
88184         virtual memory.  Based in part on a patch from Mike Jetzer.
88185
88186 2003-08-14  Jim Meyering  <jim@meyering.net>
88187         and Paul Eggert  <eggert@twinsun.com>
88188
88189         Merges from coreutils, plus other fixes.
88190         * lib/physmem.c: Merge in portability changes from gcc/libiberty
88191         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
88192         for credits and details.  Thanks to Kaveh Ghazi for helping
88193         to keep these files in sync.
88194         (ARRAY_SIZE): Define it.
88195         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
88196         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
88197         (memcasecmp): Don't assume size_t fits in unsigned int.
88198         Remove casts and duplicate code.
88199         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
88200         (memcpy): Remove definition.
88201         Merge in some clean-up and optimization changes from glibc.
88202         [BLOCKSIZE]: Move definition to top of file.
88203         Ensure that it is a multiple of 64.
88204         Rearrange loop exit tests so as to avoid performing an
88205         additional fread after encountering an error or EOF.
88206         * lib/md5.h (md5_uintptr): Define.
88207         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
88208         return to the initial working directory.  Preserve errno
88209         for caller.
88210         * lib/idcache.c: Include "xalloc.h".
88211         (xmalloc, xrealloc): Remove decls.
88212         (getuser): Remove casts no longer required in C89.
88213         * lib/human.c: Include stdio.h, for sprintf.
88214         * lib/group-member.c: Include "xalloc.h".
88215         (xmalloc, xrealloc): Remove decls.
88216         (get_group_info): Remove casts no longer required in C89.
88217         * lib/getusershell.c (readname): Remove casts no longer required in
88218         C89.
88219         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
88220         * lib/getline.c: Whitespace fix, from coreutils.
88221
88222 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88223
88224         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
88225         Check for isascii.
88226
88227         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
88228         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
88229         Undo previous (whitespace-only) change.
88230
88231 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88232
88233         * lib/exclude.c: Include <ctype.h>
88234         (IN_CTYPE_DOMAIN): New macro.
88235         (is_space): New fn.
88236         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
88237         and empty lines.
88238
88239         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
88240         Undo previous (whitespace-only) change.
88241
88242 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88243
88244         * config/srclist-update: Change update back to the old behavior,
88245         leaving whitespace alone.  Use one 'sed' command rather than a
88246         pipeline.
88247         (fixlicense): Now a variable, not a function.
88248         (remove_trailing_blanks): Remove.
88249         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
88250         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
88251         Undo previous (whitespace-only) change.
88252
88253 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88254
88255         Merge from coreutils.
88256         * modules/euidaccess: Add lib_SOURCES, include for new
88257         file euidaccess.h
88258
88259 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88260
88261         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
88262         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
88263         Normalize leading white space and remove trailing white space.
88264
88265         Merge from coreutils
88266         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
88267
88268         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
88269         0.12.1.  These files are now being upgraded automatically by
88270         ../config/srclist-update.
88271
88272 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88273
88274         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
88275         Normalize leading white space and remove trailing white space.
88276         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
88277         notice, as per ../config/srclist-update.
88278
88279         Merge from coreutils.
88280         * lib/euidaccess.h: New file.
88281         * lib/euidaccess.c: Include it.
88282         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
88283         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
88284         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
88285
88286 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88287
88288         * config/srclist-update: Add copyright notice.
88289         (remove_id_lines, remove_trailing_blanks): New constants.
88290         (fixfile): Use them to normalize spacing a bit in copied files.
88291         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
88292         Normalize leading white space and remove trailing white space.
88293
88294         * config/texinfo.tex: Sync with texinfo.
88295
88296         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
88297         strtoul.c from libc, to merge coreutils whitespace changes.
88298
88299         * config/srclist.txt: Get the following m4 files from gettext:
88300         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
88301         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
88302         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
88303         wint_t.m4.
88304
88305 2003-08-12  Karl Berry  <karl@gnu.org>
88306
88307         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
88308         been made.
88309
88310 2003-08-11  Paul Eggert  <eggert@twinsun.com>
88311
88312         * modules/gnu-source, m4/gnu-source.m4:
88313         Remove; we're assuming Autoconf 2.54 or later now.
88314         Suggested by Bruno Haible.
88315         * MODULES.html.sh (func_all_modules): Remove gnu-source.
88316
88317 2003-08-11  Bruno Haible  <bruno@clisp.org>
88318
88319         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
88320
88321 2003-08-11  Bruno Haible  <bruno@clisp.org>
88322
88323         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
88324         (vasnprintf): Use it instead of wcslen.
88325
88326 2003-08-11  Bruno Haible  <bruno@clisp.org>
88327
88328         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
88329         value to ensure that _Bool promotes to int. Use #define for _Bool when
88330         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
88331
88332 2003-08-10  Karl Berry  <karl@gnu.org>
88333
88334         * lib/regex.h: update from libc (whitespace fix).
88335
88336 2003-08-09  Paul Eggert  <eggert@twinsun.com>
88337
88338         Merge some files from coreutils.  These changes were
88339         originally made by Jim Meyering.
88340         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
88341         many older Unixes require this.
88342         * lib/alloca.c (alloca): Remove cast to argument of free;
88343         no longer needed in C89.
88344         * lib/alloca_.h, regex.h: Fix white space to match
88345         what GNU indent does.
88346
88347 2003-08-09  Paul Eggert  <eggert@twinsun.com>
88348
88349         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
88350         apparently Emacs's Unicode mode got confused before my 2003-08-05
88351         checkin.
88352
88353 2003-08-08  Paul Eggert  <eggert@twinsun.com>
88354
88355         * m4/extensions.m4: New file.
88356         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
88357         Require gl_USE_SYSTEM_EXTENSIONS.
88358         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
88359         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
88360
88361 2003-08-08  Paul Eggert  <eggert@twinsun.com>
88362
88363         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
88364         * modules/extensions, modules/gnu-source: New files.
88365         * modules/timespec, modules/unlocked-io: Depend on extensions.
88366
88367 2003-08-07  Paul Eggert  <eggert@twinsun.com>
88368
88369         * modules/restrict: New file.
88370         * MODULES.html.sh (func_all_modules): Add restrict.
88371         * modules/regex: Depend on restrict.
88372
88373 2003-08-07  Paul Eggert  <eggert@twinsun.com>
88374
88375         * m4/restrict.m4: New file.
88376         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
88377
88378 2003-08-07  Bruno Haible  <bruno@clisp.org>
88379
88380         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
88381         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
88382
88383 2003-08-07  Bruno Haible  <bruno@clisp.org>
88384
88385         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
88386         makes the module 'getndelim2' compatible with the module 'getline'.
88387
88388 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88389
88390         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
88391         byte with "\201" to avoid glitches when editing that source file
88392         with multi-gnome-terminal.
88393
88394 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88395
88396         * lib/bumpalloc.h: Remove.
88397
88398 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88399
88400         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
88401         * modules/bumpalloc: Remove.
88402
88403 2003-08-04  Paul Eggert  <eggert@twinsun.com>
88404
88405         * lib/getloadavg.c: Change copyright notice and spacing to conform to
88406         GNU coding style.
88407
88408         Merge from coreutils.
88409         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
88410         1. From glibc.
88411         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
88412         from Karl Berry, implemented by Jim Meyering.
88413         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
88414         from Dmitry V. Levin.
88415         Remove anachronistic cast of xrealloc.
88416         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
88417         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
88418         type. Otherwise, it wouldn't compile with at least /bin/cc on
88419         ymp-cray-unicos9.0.2.X.
88420         Combine two mostly-identical uses of alloca into one.
88421         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
88422
88423 2003-08-04  Dave Love  <d.love@dl.ac.uk>
88424
88425         [From Emacs.]
88426
88427         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
88428         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
88429         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
88430         obsolete NLIST_NAME_UNION.
88431         [__GNU__]: Undef BSD and FSCALE.
88432         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
88433
88434 2003-08-03  Paul Eggert  <eggert@twinsun.com>
88435
88436         * lib/stdbool_.h (_Bool): Make it signed char, instead of
88437         an enum type, so that it's guaranteed to promote to int.  See:
88438         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
88439
88440 2003-08-03  Karl Berry  <karl@gnu.org>
88441
88442         * config/depcomp: update from automake.
88443
88444 2003-07-31  Paul Eggert  <eggert@twinsun.com>
88445
88446         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
88447         (strerror): Don't assume that a printable int fits in 14 bytes.
88448
88449 2003-07-31  Bruno Haible  <bruno@clisp.org>
88450
88451         * modules/getpass-gnu: New file.
88452         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
88453
88454 2003-07-31  Bruno Haible  <bruno@clisp.org>
88455
88456         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
88457
88458 2003-07-24  Karl Berry  <karl@gnu.org>
88459
88460         * config/missing: update from automake.
88461
88462 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
88463             Bruno Haible  <bruno@clisp.org>
88464
88465         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
88466         * lib/getline.c (getline, getdelim): Likewise.
88467         Remove _GNU_SOURCE define; now it's defined in config.h through
88468         m4/getline.m4.
88469
88470 2003-07-23  Karl Berry  <karl@gnu.org>
88471
88472         * config/config.sub: update from prep.
88473
88474 2003-07-22  Paul Eggert  <eggert@twinsun.com>
88475
88476         * modules/xalloc (Depends-on): Add exitfail.
88477         * modules/xmemcoll: Likewise.
88478
88479 2003-07-22  Paul Eggert  <eggert@twinsun.com>
88480
88481         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
88482         over-parenthesization in macros.
88483
88484         Sync with coreutils.
88485
88486         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
88487         required by C99.
88488
88489         Use `exit_failure' for xalloc and xmemcoll instead of their own
88490         private exit-failure variables.
88491         * lib/xalloc.h (xalloc_exit_failure): Remove.
88492         * lib/xmalloc.c: Likewise.  Include exitfail.h.
88493         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
88494         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
88495         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
88496         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
88497
88498 2003-07-20  Jim Meyering  <jim@meyering.net>
88499
88500         * modules/closeout (Depends-on): Add exitfail.
88501         Suggestion from Bruno Haible.
88502
88503 2003-07-19  Karl Berry  <karl@gnu.org>
88504
88505         * config/config.sub: update from prep.
88506
88507 2003-07-18  Paul Eggert  <eggert@twinsun.com>
88508
88509         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
88510         Remove.
88511         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
88512         to test that it can stand by itself.  Include "exitfail.h".
88513         Clients should set exit_failure instead.
88514         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
88515
88516 2003-07-18  Bruno Haible  <bruno@clisp.org>
88517
88518         * modules/getndelim2: New file.
88519         * modules/getline: Share files with module getndelim2.
88520         * modules/getnline: Depend on getndelim2 instead of sharing files with
88521         it. Add getnline.c to lib_SOURCES.
88522         * MODULES.html.sh (func_all_modules): Add getndelim2.
88523
88524 2003-07-18  Bruno Haible  <bruno@clisp.org>
88525
88526         * m4/getndelim2.m4: New file.
88527         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
88528         invoke gl_PREREQ_GETNDELIM2.
88529         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
88530         gl_PREREQ_GETNDELIM2.
88531         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
88532         gl_GETNDELIM2.
88533
88534 2003-07-18  Bruno Haible  <bruno@clisp.org>
88535
88536         * lib/getndelim2.h: New file.
88537         * lib/getndelim2.c: Make into a module of its own. Include config.h,
88538         getndelim2.h.
88539         (getndelim2): Make non-static. Change return type to ssize_t.
88540         * lib/getline.h: Change argument names.
88541         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
88542         * lib/getnline.c: Include getndelim2.h.
88543
88544 2003-07-18  Andreas Schwab  <schwab@suse.de>
88545
88546         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
88547
88548 2003-07-17  Karl Berry  <karl@gnu.org>
88549
88550         * config/config.sub: update from prep.
88551
88552 2003-07-17  Bruno Haible  <bruno@clisp.org>
88553
88554         * modules/getnline: New file.
88555         * modules/getline: Add lib/getndelim2.c to source file list.
88556         * MODULES.html.sh (func_all_modules): Add getnline.
88557
88558 2003-07-17  Bruno Haible  <bruno@clisp.org>
88559
88560         * m4/getnline.m4: New file.
88561
88562 2003-07-17  Bruno Haible  <bruno@clisp.org>
88563
88564         * m4/Makefile.am.in: Remove file.
88565         * m4/Makefile.am: Remove file.
88566         * m4/Makefile.in: Remove file.
88567
88568 2003-07-17  Bruno Haible  <bruno@clisp.org>
88569
88570         * lib/getnline.h: New file.
88571         * lib/getnline.c: New file.
88572         * lib/getndelim2.c: New file, extracted from getline.c.
88573         (getndelim2): Renamed from getdelim2, with added nmax argument.
88574         * lib/getline.c: Include getndelim2.c.
88575         (getdelim2): Moved out to getndelim2.c.
88576         (getline, getdelim): Update.
88577
88578 2003-07-17  Bruno Haible  <bruno@clisp.org>
88579
88580         * lib/Makefile.am: Remove file.
88581         * lib/Makefile.in: Remove file.
88582
88583 2003-07-17  Bruno Haible  <bruno@clisp.org>
88584
88585         * configure.in: Remove file.
88586         * Makefile.in: Remove file.
88587
88588 2003-07-17  Bruno Haible  <bruno@clisp.org>
88589
88590         * MODULES.html.sh: Put the </BODY> right before </HTML>.
88591
88592 2003-07-16  Karl Berry  <karl@gnu.org>
88593
88594         * config/srclist-update: was running fixlicense twice, which caused
88595                 texinfo.tex to be nullified for some reason.  Simplify,
88596                 $gplsrc is no longer needed as far as I can see?
88597
88598 2003-07-16  Jim Meyering  <jim@meyering.net>
88599
88600         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
88601
88602 2003-07-15  Paul Eggert  <eggert@twinsun.com>
88603
88604         * config/srclist.txt: Get the following files from gettext-runtime/intl
88605         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
88606         ref-del.sin.  From Bruno Haible.
88607         * config/srclist-update (fixfile): Change grep pattern again, since the
88608         previous fix didn't work (there was another trailing $).  Use
88609         '[$]' to escape the $s.
88610
88611 2003-07-15  Karl Berry  <karl@gnu.org>
88612
88613         * lib/vasnprintf.c: update from gettext.
88614
88615 2003-07-15  Karl Berry  <karl@gnu.org>
88616
88617         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
88618         gets expanded when surrounded by '$'.
88619
88620 2003-07-15  Jim Meyering  <jim@meyering.net>
88621
88622         * modules/save-cwd: Don't depend on error.  From Derek Price.
88623
88624 2003-07-15  Jim Meyering  <jim@meyering.net>
88625
88626         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
88627
88628 2003-07-14  Simon Josefsson  <jas@extundo.com>
88629
88630         * modules/mempcpy: New file.
88631         * MODULES.html.sh (func_all_modules): Add mempcpy.
88632
88633 2003-07-14  Simon Josefsson  <jas@extundo.com>
88634
88635         * m4/mempcpy.m4: New file.
88636
88637 2003-07-14  Simon Josefsson  <jas@extundo.com>
88638
88639         * lib/mempcpy.h: New file.
88640         * lib/mempcpy.c: New file.
88641
88642 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88643
88644         * modules/getdate, modules/posixtm: Depend on mktime.
88645
88646 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88647
88648         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
88649         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
88650         unicodeio.c, unicodeio.h, unlocked-io.h:
88651         Switch from LGPL to GPL.
88652
88653 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88654
88655         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
88656         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
88657         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
88658         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
88659         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
88660         updated automatically by ../config/srclist-update.  This changes
88661         their license from LPGL to GPL.
88662
88663 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88664
88665         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
88666         assumed to refer to the root of the most recent stable gettext version.
88667         * config/srclistvars.sh: Add defaults for eggert.
88668         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
88669         Match "This program" as well as "The program".  This is needed
88670         for gettext.
88671
88672 2003-07-14  Jim Meyering  <jim@meyering.net>
88673
88674         Don't emit diagnostics.  Let callers do that.
88675         * lib/save-cwd.c: Don't include "error.h".
88676         (save_cwd): Don't call error.  Ensure that errno is valid
88677         when returning nonzero.
88678
88679         * lib/save-cwd.h (restore_cwd): Update prototype.
88680         * lib/save-cwd.c (restore_cwd): Remove two parameters.
88681         Simplify.  Don't call error upon failure.  Let callers do that.
88682         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
88683         when auditing is enabled.  But don't bother updating the #if.
88684
88685 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
88686
88687         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
88688         it breaks C++ compilation.
88689         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
88690
88691 2003-07-10  Simon Josefsson  <jas@extundo.com>
88692
88693         * modules/strchrnul (Makefile.am): Add strchrnul.h.
88694
88695 2003-07-10  Jim Meyering  <jim@meyering.net>
88696
88697         * m4/clock_time.m4: Remove trailing blank.
88698         * m4/intmax_t.m4: Likewise.
88699
88700 2003-07-10  Jim Meyering  <jim@meyering.net>
88701
88702         * lib/vasnprintf.c: Remove trailing blanks.
88703         Make cpp indentation consistent.
88704
88705 2003-07-09  Paul Eggert  <eggert@twinsun.com>
88706
88707         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
88708         posixver.c, strftime.c, strnlen.c, strverscmp.c:
88709         Switch from LGPL to GPL.
88710
88711 2003-07-09  Paul Eggert  <eggert@twinsun.com>
88712
88713         * config/srclist.txt: Sort sublists.  Add
88714         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
88715         that differ from gnulib for one reason or another; we'd like this list
88716         to be smaller but for now let's document what we have.
88717
88718 2003-07-08  Paul Eggert  <eggert@twinsun.com>
88719
88720         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
88721         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
88722         and sweeter "eval x=$x".
88723         * config/srclist.txt: Get lib/argp* from glibc.
88724
88725 2003-07-07  Paul Eggert  <eggert@twinsun.com>
88726
88727         * lib/mktime.c: Fix some boundary cases and remove need for floating
88728         point.
88729
88730         Issue a compile-time diagnostic if time_t is floating point, or if
88731         two's complement arithmetic is not in effect, or if arithmetic
88732         right shift does not propagate the sign.  These assumptions were
88733         all in the original code but they weren't checked.
88734
88735         (TIME_T_MIDPOINT, verify): New macros.
88736         (__isleap): Remove; it has integer overflow problems.
88737         (leapyear): New function, without those problems.
88738         (ydhms_tm_diff): Remove; splitting into two parts.
88739         (ydhms_diff): New function, containing the arithmetic part of
88740         the old ydhms_tm_diff function.  Issue a compile-time
88741         diagnostic if we are not using C99 integer division.
88742         Avoid casts when possible.
88743         (guess_time_tm): New function, containing the checking part of
88744         the old ydhms_tm_diff function.  Return the new value, rather than
88745         the difference between it and the old.  Accept a new argument T
88746         so that *T specifies the old value.  Check for overflow in the result.
88747
88748         (__mktime_internal): Use a time_t offset, not a long int offset.
88749         This undoes the 2003-06-04 change, which is no longer needed now
88750         that we have better overflow checking.
88751         (localtime_offset): Likewise.
88752
88753         (__mktime_internal): Avoid harmful overflow on hosts where time_t
88754         and long are 64-bit but int is only 32-bit.
88755         (ydhms_diff): Use long int to store year1 and yday1.
88756         Issue a compile-time diagnostic if long int is not wide enough.
88757
88758         (__mktime_internal): Use long int to store adjusted year and yday.
88759         Use plain C rather than preprocessor commands, if that doesn't
88760         affect efficiency.
88761         Check for overflow (and try to repair) after each probe
88762         rather than checking only at the very end.  This avoids some bugs
88763         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
88764         does not equal GMT offset at maximum time).
88765         Use integer to check for overflow rather than floating point; this
88766         is more portable to non-IEEE hosts, and is a tad faster.
88767         When we detect that we are oscillating between two values,
88768         don't check whether tm_isdst has the requested value, since
88769         we already know the answer.  When tm_isdst has the wrong value,
88770         use a different heuristic to find the right one, based on the
88771         extreme values actually observed in practice in tz2003a,
88772         rather than the (overly optimistic) "previous 3 calendar quarters".
88773
88774         (not_equal_tm, print_tm, check_result): Use "const T" rather than
88775         "T const" to accommodate glibc style.
88776         (check_result): Use less-confusing report format.  "long" -> "long int.
88777         (main): Likewise.
88778         Don't loop if the iteration overflows time_t.
88779         Allow a negative step in the iteration.
88780
88781 2003-07-06  Karl Berry  <karl@gnu.org>
88782
88783         * config/depcomp: update from automake.
88784         * config/config.sub: update from prep.
88785
88786 2003-07-03  Karl Berry  <karl@gnu.org>
88787
88788         * config/config.guess: update from prep.
88789
88790 2003-07-01  Paul Eggert  <eggert@twinsun.com>
88791
88792         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
88793         xreadlink.c now includes it unconditionally.
88794
88795 2003-07-01  Paul Eggert  <eggert@twinsun.com>
88796
88797         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
88798         having it depend on HAVE_SYS_TYPES_H.
88799
88800 2003-07-01  Bruno Haible  <bruno@clisp.org>
88801
88802         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
88803         <sys/types.h> should be sufficient.
88804         Reported by Paul Eggert.
88805
88806 2003-06-26  Karl Berry  <karl@gnu.org>
88807
88808         * config/depcomp: update from automake.
88809
88810 2003-06-26  Bruno Haible  <bruno@clisp.org>
88811
88812         * modules/human: Depend on module stdbool.
88813
88814 2003-06-25  Bruno Haible  <bruno@clisp.org>
88815
88816         * modules/readlink: New file.
88817         * modules/xreadlink: Depend on it.
88818         * MODULES.html.sh (func_all_modules): Add readlink.
88819
88820 2003-06-25  Bruno Haible  <bruno@clisp.org>
88821
88822         * m4/readlink.m4: New file.
88823
88824 2003-06-25  Bruno Haible  <bruno@clisp.org>
88825
88826         * lib/readlink.c: New file.
88827
88828 2003-06-22  Karl Berry  <karl@gnu.org>
88829
88830         * config/srclist.txt: update mkinstalldirs from automake.
88831         * config/mkinstalldirs: update.
88832
88833 2003-06-22  Bruno Haible  <bruno@clisp.org>
88834
88835         Portability to mingw32.
88836         * m4/ssize_t.m4: New file, from GNU gettext.
88837         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
88838         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
88839
88840 2003-06-22  Bruno Haible  <bruno@clisp.org>
88841
88842         * modules/safe-read: Add m4/ssize_t.m4.
88843         * modules/xreadlink: Add m4/ssize_t.m4.
88844
88845 2003-06-20  Bruno Haible  <bruno@clisp.org>
88846
88847         Assume C89, so PARAMS isn't needed.
88848         * lib/unicodeio.h (PARAMS): Remove.
88849         * lib/unicodeio.c: Don't use PARAMS.
88850
88851 2003-06-18  Karl Berry  <karl@gnu.org>
88852
88853         * config/config.{guess,sub}: update from prep.
88854
88855 2003-06-18  Jim Meyering  <jim@meyering.net>
88856
88857         Merge changes from coreutils.
88858         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
88859         Remove explicit declarations of xmalloc and realloc.
88860         Include xalloc.h.
88861         (read_utmp): Remove anachronistic cast of xmalloc.
88862
88863 2003-06-17  Paul Eggert  <eggert@twinsun.com>
88864
88865         Assume C89, so PARAMS isn't needed.
88866         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
88867         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
88868         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
88869         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
88870         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
88871         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
88872         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
88873         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
88874         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
88875         lib/xstrtod.h, lib/xstrtol.h: Likewise.
88876         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
88877         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
88878         no longer needed. Anyway, config.h should always be included before any
88879         other file.
88880
88881 2003-06-11  Simon Josefsson  <jas@extundo.com>
88882
88883         * modules/sysexits: New file.
88884         * MODULES.html.sh (func_all_modules): Add sysexits.
88885
88886 2003-06-11  Simon Josefsson  <jas@extundo.com>
88887
88888         * lib/sysexit_.h: New file.
88889
88890 2003-06-11  Derek Price  <derek@ximbiot.com>
88891
88892         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
88893         necessary.
88894
88895 2003-06-11  Bruno Haible  <bruno@clisp.org>
88896
88897         * m4/sysexits.m4: New file.
88898
88899 2003-06-10  Simon Josefsson  <jas@extundo.com>
88900
88901         * lib/argp.h: New file, from glibc.
88902         * lib/argp-ba.c: New file, from glibc.
88903         * lib/argp-eexst.c: New file, from glibc.
88904         * lib/argp-fmtstream.c: New file, from glibc.
88905         * lib/argp-fmtstream.h: New file, from glibc.
88906         * lib/argp-fs-xinl.c: New file, from glibc.
88907         * lib/argp-help.c: New file, from glibc.
88908         * lib/argp-namefrob.h: New file, from glibc.
88909         * lib/argp-parse.c: New file, from glibc.
88910         * lib/argp-pv.c: New file, from glibc.
88911         * lib/argp-pvh.c: New file, from glibc.
88912         * lib/argp-xinl.c: New file, from glibc.
88913
88914 2003-06-10  Simon Josefsson  <jas@extundo.com>
88915
88916         * modules/strchrnul: New file.
88917
88918 2003-06-10  Simon Josefsson  <jas@extundo.com>
88919
88920         * modules/argp: New file.
88921
88922 2003-06-10  Simon Josefsson  <jas@extundo.com>
88923
88924         * m4/strchrnul.m4: New file.
88925
88926 2003-06-10  Simon Josefsson  <jas@extundo.com>
88927
88928         * lib/strchrnul.h: New file.
88929         * lib/strchrnul.c: New file.
88930
88931 2003-06-10  Bruno Haible  <bruno@clisp.org>
88932
88933         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
88934
88935 2003-06-07  Karl Berry  <karl@gnu.org>
88936
88937         * config/config.{guess,sub}: update from prep.
88938
88939 2003-06-07  Jim Meyering  <jim@meyering.net>
88940
88941         * modules/strtod: Use $(...) notation, not @...@ for
88942         AC_REPLACE'd variables.
88943         * modules/localcharset: Likewise.
88944
88945 2003-06-07  Jim Meyering  <jim@meyering.net>
88946
88947         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
88948         in place of my name in the copyright comment.
88949         Remove definition and uses of __P.
88950
88951         From coreutils.
88952         * lib/stat.c: Don't declare xmalloc explicitly.
88953         Instead, include "xalloc.h".
88954         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
88955         xrealloc, and xcalloc return values.
88956         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
88957         Improve comment.
88958         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
88959
88960 2003-06-07  Bruno Haible  <bruno@clisp.org>
88961
88962         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
88963         avoid AC_CONFIG_LINKS.
88964         * modules/fnmatch (Makefile.am): Use explicit creation rule for
88965         fnmatch.h, to avoid AC_CONFIG_LINKS.
88966         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
88967
88968 2003-06-07  Bruno Haible  <bruno@clisp.org>
88969
88970         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
88971         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
88972         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
88973         directory.
88974         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
88975         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
88976         directory.
88977
88978 2003-06-06  Jim Meyering  <jim@meyering.net>
88979
88980         Merge from coreutils.
88981         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
88982         Consolidate declarations and initializations of *_base* locals.
88983
88984         Merge from coreutils.
88985         This avoids a core dump on systems without GNU putenv,
88986         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
88987         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
88988         (unsetenv): New static function, from GNU libc.
88989         (rpl_putenv): Use it.
88990
88991         * lib/modechange.c: Remove trailing blanks.
88992
88993         Merge from coreutils.
88994         * lib/fsusage.c: Remove declaration of statfs.
88995         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
88996
88997         * lib/posixtm.c: Include <stdbool.h> unconditionally.
88998
88999 2003-06-06  Jim Meyering  <jim@meyering.net>
89000
89001         * lib/stdbool_.h: Renamed from stdbool.h.in.
89002
89003 2003-06-06  Jim Meyering  <jim@meyering.net>
89004             Bruno Haible  <bruno@clisp.org>
89005
89006         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
89007         Adjust Makefile.am snippet not to redirect directly to target.
89008         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
89009
89010 2003-06-05  Paul Eggert  <eggert@twinsun.com>
89011
89012         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
89013         mismatch, look in future quarters as well as past.  This fixes a
89014         bug when processing fall-backwards gaps immediately after a long
89015         period of daylight-saving time.
89016
89017         * lib/mktime.c: Assume freestanding C89 or better.
89018         (HAVE_LIMITS_H): Remove.  Assume it's 1.
89019         (__P): Remove; not used.
89020         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
89021         (mktime, not_equal_tm, print_tm, check_result,
89022         main): Use prototypes.  Use const * where appropriate.
89023         (main): Fix typo in testing code that uncovered by above changes.
89024         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
89025
89026 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89027
89028         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
89029         locale.h, localeconv.  This merges changes from coreutils.
89030
89031         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
89032         It can be removed after the next Autoconf is released.
89033         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
89034         needed.
89035
89036 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89037
89038         * lib/mktime.c: Fix Debian bug 177940
89039         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
89040         (localtime_offset): Now long int, not time_t, because we want it
89041         to be guaranteed to be signed.  All uses changed.
89042         (__mktime_internal): If overflow would occur when adding offset,
89043         don't add it.
89044
89045         Merge 'human' changes from coreutils.  Rewrite to support
89046         locale-specific notations like thousands separators.
89047         * lib/human.c: Simplify authorship notice.
89048         Include human.h immediately after config.h.
89049         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
89050         <limits.h>: Do not include, since human.h does.
89051         (SIZE_MAX, UINTMAX_MAX): New macros.
89052         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
89053         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
89054         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
89055         (power_letter): Renamed from suffixes.
89056         (generate_suffix_backwards): Remove.
89057         (adjust_value): Now takes int style (because of human.h changes)
89058         and long double value (for greater precision on some platforms).
89059         (group_number): New function.
89060         (human_readable): Use it.  Use integer options, not enum.
89061         Put the options before the sizes in the arg list.
89062         Support all the new options.
89063         The old human_readable function has been removed;
89064         use inttostr.h instead.
89065         (human_readable, default_block_size, humblock):
89066         Use uintmax_t, not int, for block sizes.
89067         (human_readable_inexact, block_size_types): Remove.
89068         (block_size_opts): New constant.
89069         (human_options): Renamed from human_block_size, with new signature
89070         that allows block sizes up to UINTMAX_MAX.  All callers changed.
89071         * lib/human.h: Add copyright and authorship notice.
89072         Include <limits.h> and <stdbool.h> unconditionally.
89073         (PARAMS): Remove.  All uses removed.
89074         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
89075         (enum human_inexact_style): Remove tag; now a nameless enum.
89076         (human_floor, human_ceiling, human_round_to_even): Now have
89077         values 2, 0, 1 rather than -1, 1, 0.
89078         (human_group_digits, human_suppress_point_zero, human_autoscale,
89079         human_base_1024, human_SI, human_B): New constants.
89080         (human_readable_inexact, human_block_size): Remove.
89081         (human_readable): Size args are now uintmax_t, not int.
89082         (human_options): New decl.
89083
89084         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
89085         unnecessary now that we assume C89 or better.  This change
89086         imported from coreutils.
89087
89088         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
89089         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
89090         in the 2003-05-30 sync from glibc.
89091
89092         .h files should stand alone, but we shouldn't include <sys/types.h>
89093         if we can get away with just <stddef.h>.
89094
89095         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
89096         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
89097         rather than <sys/types.h>, as we merely need size_t.
89098         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
89099         to get size_t.
89100         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
89101         Include <stdio.h>, to get FILE.
89102         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
89103         memcasecmp.h has included <stddef.h> and all we need is size_t.
89104         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
89105         our interface, instead of including <sys/types.h>
89106
89107 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89108
89109         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
89110         now, as glibc mktime is buggy on non-glibc systems.
89111
89112 2003-06-03  Karl Berry  <karl@gnu.org>
89113
89114         * config/config.sub: update from prep.
89115
89116 2003-06-02  Paul Eggert  <eggert@twinsun.com>
89117
89118         [from coreutils]
89119         Fix some minor time-related bugs with POSIX time arguments.
89120         Some valid time stamps were being rejected (notably -1, and
89121         time stamps before 1900 on 64-bit hosts).  And some invalid
89122         time stamps were being accepted, e.g. September 31.
89123
89124         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
89125         that we can return (time_t) -1 successfully.
89126         * lib/posixtm.c: Likewise.
89127         [HAVE_STDBOOL_H]: Include <stdbool.h>.
89128         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
89129         (t): Remove static var.
89130         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
89131         of static var.  All uses changed.
89132         (year): Do not reject years before 1900; they can occur with
89133         64-bit time_t.
89134         (posix_time_parse): Do not check for out-of-range components;
89135         that is now the caller's responsibility, since our checks were
89136         only approximations.
89137         (posixtime): Use mktime to check for out-of-range components,
89138         since it knows them exactly.
89139         If mktime returns (time_t) -1, check whether an error actually occurred
89140         by invoking localtime on -1.
89141         (main) [TEST_POSIXTIME]: Check for input data errors, and report
89142         posixtime failures better.
89143         Improve the test data (in comments only).
89144
89145 2003-06-02  Karl Berry  <karl@gnu.org>
89146
89147         * config/mkinstalldirs (version): new variable.
89148         (--version): new option.
89149         (usage): improve message.
89150
89151 2003-05-30  Karl Berry  <karl@gnu.org>
89152
89153         * lib/mktime.c: update from libc.
89154
89155 2003-05-30  Bruno Haible  <bruno@clisp.org>
89156
89157         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
89158         * config/config.rpath: Upgrade to gettext-0.12.1.
89159
89160 2003-05-30  Bruno Haible  <bruno@clisp.org>
89161
89162         * m4/gettext.m4: Upgrade to gettext-0.12.1.
89163         * m4/nls.m4: New file, from gettext-0.12.1.
89164         * m4/po.m4: New file, from gettext-0.12.1.
89165         * m4/progtest.m4: Upgrade to gettext-0.12.1.
89166
89167 2003-05-30  Bruno Haible  <bruno@clisp.org>
89168
89169         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
89170         * lib/localcharset.h: Likewise.
89171         * lib/localcharset.c: Likewise.
89172
89173 2003-05-29  Karl Berry  <karl@gnu.org>
89174
89175         * config/config.rpath: update from gettext.
89176
89177 2003-05-28  Paul Eggert  <eggert@twinsun.com>
89178
89179         Assume the headers required for C89 freestanding compilers.
89180         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
89181         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
89182         * m4/human.m4 (gl_HUMAN): Likewise.
89183         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
89184         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
89185         * m4/userspec.m4 (gl_USERSPEC): Likewise.
89186         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
89187         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
89188         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
89189
89190 2003-05-28  Paul Eggert  <eggert@twinsun.com>
89191
89192         Assume the headers required for C89 freestanding compilers.
89193         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
89194         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
89195         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
89196         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
89197         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
89198         define, since <limits.h> is guaranteed to do that.
89199         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
89200         * lib/exclude.c: Include <stdbool.h> unconditionally.
89201         * lib/tempname.c: Include <stddef.h> unconditionally.
89202         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
89203         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
89204         <stddef.h> does that.
89205         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
89206         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
89207         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
89208         needed.
89209         * lib/xstrtol.c: Likewise.
89210         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
89211         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
89212
89213         * lib/addext.c (addext): Use assignment rather than cast, to avoid
89214         warnings on some platforms.
89215
89216         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
89217         arbitrarily.
89218
89219 2003-05-26  Jim Meyering  <jim@meyering.net>
89220
89221         Merge in a change from coreutils:
89222         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
89223         that is guaranteed to be `no'.  Use `no_such_member' to indicate
89224         that condition, rather than `-1' which is slightly misleading.
89225         Change the name of the cache variable to have the gl_ prefix.
89226         Prompted by a patch from Richard Dawe for DJGPP.
89227
89228 2003-05-24  Karl Berry  <karl@gnu.org>
89229
89230         * config/config.guess: update from prep.
89231
89232 2003-05-22  Karl Berry  <karl@gnu.org>
89233
89234         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
89235
89236 2003-05-20  Karl Berry  <karl@gnu.org>
89237
89238         * config/config.guess: update from prep.
89239
89240 2003-05-18  Karl Berry  <karl@gnu.org>
89241
89242         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
89243         might actually be set by the user.
89244
89245         * config/depcomp, install-sh, mdate-sh: update from automake.
89246
89247 2003-05-17  Bruno Haible  <bruno@clisp.org>
89248
89249         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
89250         invalid expansion for AC_EGREP_CPP.
89251         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
89252         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
89253         Suggested by Akim Demaille <akim@epita.fr> in
89254         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
89255
89256 2003-05-12  Jim Meyering  <jim@meyering.net>
89257
89258         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
89259         the space-padded-by-default conversion specifiers, %e, %k, %l.
89260
89261 2003-05-12  Bruno Haible  <bruno@clisp.org>
89262
89263         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
89264         the string is longer than 4 KB.
89265
89266 2003-05-11  Karl Berry  <karl@gnu.org>
89267
89268         * config/config.{guess,sub}: update from prep.
89269
89270 2003-05-09  Bruno Haible  <bruno@clisp.org>
89271
89272         * modules/error: Add m4/strerror_r.m4 to file list.
89273
89274 2003-05-03  Bruno Haible  <bruno@clisp.org>
89275
89276         Upgrade to Unicode-4.0.
89277         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
89278         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
89279         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
89280         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
89281         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
89282         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
89283         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
89284         Change width of U+E0100..U+E01EF from 1 to 0.
89285
89286 2003-04-25  Jim Meyering  <jim@meyering.net>
89287
89288         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
89289         of type size_t, not int.
89290
89291 2003-04-25  Bruno Haible  <bruno@clisp.org>
89292
89293         * lib/copy-file.c: Include <stddef.h>, for size_t.
89294
89295 2003-04-21  Paul Eggert  <eggert@twinsun.com>
89296
89297         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
89298         code which expansion is under static control.  Patch imported from
89299         Akim Demaille's patch to Bison; see
89300         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
89301
89302 2003-04-14  Bruno Haible  <bruno@clisp.org>
89303
89304         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
89305
89306 2003-04-11  Jim Meyering  <jim@meyering.net>
89307
89308         Merge changes from Coreutils.
89309
89310         2003-03-22  Jim Meyering  <jim@meyering.net>
89311
89312         * lib/strftime.c (widen): Cast alloca return value to proper type.
89313
89314         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
89315
89316         From GNU libc.
89317         * lib/strftime.c (my_strftime): Handle very large width
89318         specifications for numeric values correctly.  Improve checks for
89319         overflow.
89320
89321         2003-01-19  Jim Meyering  <jim@meyering.net>
89322
89323         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
89324         definitions.
89325         (nl_get_alt_digit) [! defined my_strftime]: Define.
89326         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
89327         _nl_get_alt_digit and _nl_get_walt_digit.
89328
89329         * lib/strftime.c (my_strftime): Merge in locale-related changes from
89330         libc. These changes have no effect outside of _LIBC.
89331
89332 2003-04-10  Bruno Haible  <bruno@clisp.org>
89333
89334         * modules/findprog: New file.
89335         * MODULES.html.sh (func_all_modules): Add it.
89336
89337 2003-04-10  Bruno Haible  <bruno@clisp.org>
89338
89339         * m4/findprog.m4: New file.
89340         * m4/eaccess.m4: New file.
89341
89342 2003-04-10  Bruno Haible  <bruno@clisp.org>
89343
89344         * lib/findprog.h: New file, from GNU gettext.
89345         * lib/findprog.c: New file, from GNU gettext.
89346
89347 2003-04-05  Jim Meyering  <jim@meyering.net>
89348
89349         Merge changes from Coreutils.
89350
89351         * lib/exclude.h (PARAMS): Remove definition and uses.
89352         * lib/exclude.c: Remove uses of `PARAMS'.
89353
89354         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
89355         Add test-cases for DOS filenames. Declare program_name.
89356         (main): Set up program_name.  Patch by Rich Dawe.
89357
89358         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
89359         error from mntctl.
89360         Use mntctl's return value to drive the entry-processing loop, since
89361         we can't rely on the value of the vmt_length member in the last
89362         entry.  On some systems doing so could result in exhausting
89363         virtual memory.  Based in part on a patch from Mike Jetzer.
89364
89365 2003-04-04  Bruno Haible  <bruno@clisp.org>
89366
89367         * modules/linebreak: New file.
89368         * MODULES.html.sh (func_all_modules): Add it.
89369
89370 2003-04-04  Bruno Haible  <bruno@clisp.org>
89371
89372         * m4/linebreak.m4: New file.
89373
89374 2003-04-04  Bruno Haible  <bruno@clisp.org>
89375
89376         * lib/linebreak.h: New file, from GNU gettext.
89377         * lib/linebreak.c: New file, from GNU gettext with slight
89378         modifications.
89379         * lib/lbrkprop.h: New file, from GNU gettext.
89380
89381 2003-04-03  Bruno Haible  <bruno@clisp.org>
89382
89383         * modules/utf8-ucs4: New file.
89384         * modules/utf16-ucs4: New file.
89385         * modules/ucs4-utf8: New file.
89386         * modules/ucs4-utf16: New file.
89387         * MODULES.html.sh (func_all_modules): Add them.
89388
89389 2003-04-03  Bruno Haible  <bruno@clisp.org>
89390
89391         * m4/utf-ucs4.m4: New file.
89392         * m4/ucs4-utf.m4: New file.
89393
89394 2003-04-03  Bruno Haible  <bruno@clisp.org>
89395
89396         * lib/utf8-ucs4.h: New file, from GNU gettext.
89397         * lib/utf16-ucs4.h: New file, from GNU gettext.
89398         * lib/ucs4-utf8.h: New file, from GNU gettext.
89399         * lib/ucs4-utf16.h: New file, from GNU gettext.
89400
89401 2003-04-02  Bruno Haible  <bruno@clisp.org>
89402
89403         * modules/binary-io: New file.
89404         * MODULES.html.sh (func_all_modules): Add it.
89405
89406 2003-04-02  Bruno Haible  <bruno@clisp.org>
89407
89408         * lib/binary-io.h: New file, from GNU gettext.
89409
89410 2003-04-01  Bruno Haible  <bruno@clisp.org>
89411
89412         * modules/pathname: New file.
89413         * MODULES.html.sh (func_all_modules): Add it.
89414
89415 2003-04-01  Bruno Haible  <bruno@clisp.org>
89416
89417         * lib/pathname.h: New file, from GNU gettext.
89418         * lib/concatpath.c: New file, from GNU gettext.
89419
89420 2003-03-30  Bruno Haible  <bruno@clisp.org>
89421
89422         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
89423
89424 2003-03-30  Bruno Haible  <bruno@clisp.org>
89425
89426         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
89427         function chown() doesn't exist.
89428
89429 2003-03-28  Bruno Haible  <bruno@clisp.org>
89430
89431         * modules/copy-file: New file.
89432         * MODULES.html.sh (func_all_modules): Add it.
89433
89434 2003-03-28  Bruno Haible  <bruno@clisp.org>
89435
89436         * m4/copy-file.m4: New file.
89437
89438 2003-03-28  Bruno Haible  <bruno@clisp.org>
89439
89440         * lib/copy-file.h: New file, from GNU gettext.
89441         * lib/copy-file.c: New file, from GNU gettext.
89442
89443 2003-03-18  Jim Meyering  <jim@meyering.net>
89444
89445         * lib/quote.c (quote_n): Fix typo in comment.
89446
89447 2003-03-18  Bruno Haible  <bruno@clisp.org>
89448
89449         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
89450         checking.
89451         * m4/onceonly_2_57.m4: Likewise.
89452
89453 2003-03-17  Bruno Haible  <bruno@clisp.org>
89454
89455         * m4/onceonly.m4: Require autoconf 2.54 or newer.
89456         (m4_quote): Remove macro.
89457         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
89458
89459 2003-03-14  Jim Meyering  <jim@meyering.net>
89460
89461         Merge changes from Coreutils.
89462         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
89463         to be const, in order to avoid warnings.
89464         (obstack_room): Likewise.
89465         (obstack_empty_p): Likewise.
89466
89467 2003-03-14  Bruno Haible  <bruno@clisp.org>
89468
89469         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
89470         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
89471
89472 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89473
89474         Merge changes from Bison.
89475         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
89476         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
89477         when compiling Bison 1.875's `bitset bset = obstack_alloc
89478         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
89479         * lib/hash.c: Include <stdbool.h> unconditionally.
89480
89481 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89482
89483         * m4/onceonly.m4 (m4_quote): New macro.
89484         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
89485         Quote AC_FOREACH variable-expansions properly.
89486
89487 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89488
89489         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
89490
89491 2003-03-09  Paul Eggert  <eggert@twinsun.com>
89492
89493         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
89494         Reported by Bruce Becker; see:
89495         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
89496
89497 2003-03-03  Paul Eggert  <eggert@twinsun.com>
89498             Bruno Haible  <bruno@clisp.org>
89499
89500         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
89501         Reported by John Hughes, see
89502         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
89503
89504 2003-02-20  Bruno Haible  <bruno@clisp.org>
89505
89506         * MODULES.html.sh (func_all_modules): Add poll.
89507
89508 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89509
89510         * modules/poll: New file.
89511
89512 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89513
89514         * lib/poll_.h: New file.
89515         * lib/poll.c: New file.
89516
89517 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89518
89519         * m4/poll.m4: New file.
89520
89521 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89522
89523         * modules/mathl: New file.
89524
89525 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89526
89527         * lib/mathl.h: New file.
89528         * lib/acosl.c: New file.
89529         * lib/asinl.c: New file.
89530         * lib/atanl.c: New file.
89531         * lib/ceill.c: New file.
89532         * lib/cosl.c: New file.
89533         * lib/expl.c: New file.
89534         * lib/floorl.c: New file.
89535         * lib/frexpl.c: New file.
89536         * lib/ldexpl.c: New file.
89537         * lib/logl.c: New file.
89538         * lib/sincosl.c: New file.
89539         * lib/sinl.c: New file.
89540         * lib/sqrtl.c: New file.
89541         * lib/tanl.c: New file.
89542         * lib/trigl.c: New file.
89543         * lib/trigl.h: New file.
89544
89545 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89546
89547         * m4/mathl.m4: New file.
89548
89549 2003-02-18  Bruno Haible  <bruno@clisp.org>
89550
89551         * MODULES.html.sh (func_all_modules): Add mathl.
89552
89553 2003-02-17  Bruno Haible  <bruno@clisp.org>
89554
89555         * modules/mkdtemp: New module.
89556         * MODULES.html.sh (func_all_modules): Add it.
89557
89558 2003-02-17  Bruno Haible  <bruno@clisp.org>
89559
89560         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
89561
89562 2003-02-17  Bruno Haible  <bruno@clisp.org>
89563
89564         * lib/mkdtemp.h: New file, from GNU gettext.
89565         * lib/mkdtemp.c: New file, from GNU gettext.
89566
89567 2003-02-02  Jim Meyering  <jim@meyering.net>
89568
89569         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
89570         e.g. glibc-2.2.93.
89571
89572 2003-01-31  Bruno Haible  <bruno@clisp.org>
89573
89574         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
89575         'rpl_rename'.
89576         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
89577         'rpl_strnlen'.
89578         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
89579         'rpl_strtod'.
89580         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
89581         'rpl_utime'.
89582
89583 2003-01-31  Bruno Haible  <bruno@clisp.org>
89584
89585         * lib/rename.c: #undef rename before defining rpl_rename.
89586         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
89587
89588 2003-01-30  Bruno Haible  <bruno@clisp.org>
89589
89590         * modules/vasnprintf, modules/vasprintf: New modules.
89591         * MODULES.html.sh (func_all_modules): Add them.
89592
89593 2003-01-30  Bruno Haible  <bruno@clisp.org>
89594
89595         * m4/signed.m4: New file, from GNU gettext.
89596         * m4/longdouble.m4: New file, from GNU gettext.
89597         * m4/wchar_t.m4: New file, from GNU gettext.
89598         * m4/wint_t.m4: New file, from GNU gettext.
89599         * m4/vasnprintf.m4: New file.
89600         * m4/vasprintf.m4: New file.
89601
89602 2003-01-30  Bruno Haible  <bruno@clisp.org>
89603
89604         * lib/printf-args.h: New file, from GNU gettext.
89605         * lib/printf-args.c: New file, from GNU gettext.
89606         * lib/printf-parse.h: New file, from GNU gettext.
89607         * lib/printf-parse.c: New file, from GNU gettext.
89608         * lib/vasnprintf.h: New file, from GNU gettext.
89609         * lib/vasnprintf.c: New file, from GNU gettext.
89610         * lib/asnprintf.c: New file, from GNU gettext.
89611         * lib/vasprintf.h: New file, from GNU gettext with modifications.
89612         * lib/vasprintf.c: New file, from GNU gettext.
89613         * lib/asprintf.c: New file, from GNU gettext.
89614
89615 2003-01-29  Bruno Haible  <bruno@clisp.org>
89616
89617         * modules/stpncpy: New module.
89618         * MODULES.html.sh (func_all_modules): Add it.
89619
89620 2003-01-29  Bruno Haible  <bruno@clisp.org>
89621
89622         * m4/stpncpy.m4: New file.
89623
89624 2003-01-29  Bruno Haible  <bruno@clisp.org>
89625
89626         * lib/stpncpy.h: New file, from GNU gettext with modifications.
89627         * lib/stpncpy.c: New file, from GNU gettext with modifications.
89628
89629 2003-01-28  Bruno Haible  <bruno@clisp.org>
89630
89631         * modules/c-ctype: New module.
89632         * MODULES.html.sh (func_all_modules): Add it.
89633
89634 2003-01-28  Bruno Haible  <bruno@clisp.org>
89635
89636         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
89637         Paul Eggert.
89638         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
89639         Paul Eggert.
89640
89641 2003-01-27  Bruno Haible  <bruno@clisp.org>
89642
89643         * modules/xsetenv: New module.
89644         * MODULES.html.sh (func_all_modules): Add it.
89645
89646 2003-01-27  Bruno Haible  <bruno@clisp.org>
89647
89648         * lib/xsetenv.h: New file, from GNU gettext.
89649         * lib/xsetenv.c: New file, from GNU gettext.
89650
89651 2003-01-23  Jim Meyering  <jim@meyering.net>
89652
89653         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
89654         from working on systems without dirfd (at least Irix and OSF1/Tru64).
89655
89656 2003-01-23  Bruno Haible  <bruno@clisp.org>
89657
89658         * modules/minmax: New module.
89659         * MODULES.html.sh (func_all_modules): Add it.
89660
89661 2003-01-23  Bruno Haible  <bruno@clisp.org>
89662
89663         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
89664         Eggert.
89665
89666 2003-01-22  Bruno Haible  <bruno@clisp.org>
89667
89668         * modules/exit: New module.
89669         * MODULES.html.sh (func_all_modules): Add it.
89670
89671 2003-01-22  Bruno Haible  <bruno@clisp.org>
89672
89673         * lib/exit.h: New file, from GNU gettext.
89674
89675 2003-01-19  Bruno Haible  <bruno@clisp.org>
89676
89677         * gnulib-tool: Recognize option --extract-maintainer.
89678         (func_get_maintainer): New function.
89679         * modules/*: Add Maintainer entry.
89680
89681 2003-01-16  Jim Meyering  <jim@meyering.net>
89682
89683         * m4/regex.m4: The `regex' struct is both input and output.
89684         Initialize it before each use.  Patch by Tim Waugh.
89685
89686 2003-01-16  Bruno Haible  <bruno@clisp.org>
89687
89688         * MODULES.html.sh: Add a table of contents. Add the module name as
89689         leftmost column. Add hyperlinks.
89690
89691 2003-01-15  Bruno Haible  <bruno@clisp.org>
89692
89693         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
89694
89695 2003-01-15  Bruno Haible  <bruno@clisp.org>
89696
89697         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
89698         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
89699         suffix.
89700
89701 2003-01-15  Bruno Haible  <bruno@clisp.org>
89702
89703         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
89704
89705 2003-01-15  Bruno Haible  <bruno@clisp.org>
89706
89707         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
89708         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
89709
89710 2003-01-14  Jim Meyering  <jim@meyering.net>
89711
89712         * lib/same.c (same_name): Tweak a comment.
89713
89714 2003-01-14  Bruno Haible  <bruno@clisp.org>
89715
89716         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
89717         when a string comparison is sufficient.
89718
89719 2003-01-14  Bruno Haible  <bruno@clisp.org>
89720
89721         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
89722         'unsigned int'.
89723
89724 2003-01-14  Bruno Haible  <bruno@clisp.org>
89725
89726         * lib/hash-pjw.c: Add comment about low quality of this function.
89727
89728 2003-01-13  Bruno Haible  <bruno@clisp.org>
89729
89730         * modules/stpcpy: Distribute lib/stpcpy.h.
89731         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
89732
89733 2003-01-13  Bruno Haible  <bruno@clisp.org>
89734
89735         * modules/*: Add a description.
89736         * modules/strpbrk: Fix Makefile.am snippet.
89737         * modules/strtoimax: Fix dependencies.
89738         * modules/strtoumax: Likewise.
89739
89740 2003-01-13  Bruno Haible  <bruno@clisp.org>
89741
89742         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
89743         * modules/alloca (Makefile.am): All object files depend on alloca.h.
89744         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
89745
89746 2003-01-13  Bruno Haible  <bruno@clisp.org>
89747
89748         * gnulib-tool (func_create_testdir): Store config/* files in the main
89749         directory.
89750         * config.rpath: Move to ...
89751         * config/config.rpath: ... here.
89752         * modules/gettext: Contains config/config.rpath, not config.rpath.
89753         * modules/iconv: Likewise.
89754
89755 2003-01-12  Paul Eggert  <eggert@twinsun.com>
89756
89757         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
89758         to avoid collisions with libcurses and libreadline.
89759
89760         * m4/getstr.m4: Remove.
89761         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
89762
89763 2003-01-12  Paul Eggert  <eggert@twinsun.com>
89764
89765         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
89766         to avoid collisions with libcurses and libreadline.
89767
89768         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
89769         * lib/getstr.h, getstr.c: Remove.
89770         * lib/getline.c: Include "getline.h", to check interface.
89771         Move body of old getstr.c here: this defines MIN_CHUNK and
89772         declares getdelim2, which is renamed from getstr.
89773         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
89774
89775         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
89776         All uses changed.
89777         * lib/linebuffer.h: Likewise.
89778         (readline): Remove backward-compatibility macro.
89779
89780 2003-01-12  Paul Eggert  <eggert@twinsun.com>
89781
89782         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
89783         to avoid collisions with libcurses and libreadline.
89784         * getstr: Remove.
89785         * MODULES.html.sh: Remove getstr.
89786         * modules/getline: Depend on unlocked-io, not getstr.
89787
89788 2003-01-12  Jim Meyering  <jim@meyering.net>
89789
89790         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
89791
89792 2003-01-10  Bruno Haible  <bruno@clisp.org>
89793
89794         * modules/alloca: Change Makefile.am requirements. Simplify Include
89795         requirements. Add lib/alloca_.h to file list.
89796
89797 2003-01-10  Bruno Haible  <bruno@clisp.org>
89798
89799         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
89800
89801 2003-01-10  Bruno Haible  <bruno@clisp.org>
89802
89803         * lib/alloca_.h: New file.
89804         * lib/getdate.y: Unconditionally include alloca.h.
89805         * lib/makepath.c: Likewise.
89806         * lib/setenv.c: Likewise.
89807         * lib/userspec.c: Likewise.
89808
89809 2003-01-09  Karl Berry  <karl@gnu.org>
89810
89811         * MODULES.html.sh: include `dirname $0` in PATH, to find
89812         gnulib-tool.
89813
89814 2003-01-09  Bruno Haible  <bruno@clisp.org>
89815
89816         * modules/stdbool: Change configure.ac, Makefile.am requirements.
89817         Simplify Include requirements. Add lib/stdbool.h.in to file list.
89818
89819 2003-01-09  Bruno Haible  <bruno@clisp.org>
89820
89821         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
89822
89823 2003-01-09  Bruno Haible  <bruno@clisp.org>
89824
89825         * lib/stdbool.h.in: New file.
89826
89827 2003-01-09  Bruno Haible  <bruno@clisp.org>
89828
89829         * gnulib-tool (func_all_modules): Ignore files ending in ~.
89830         * MODULES.html.sh: Likewise.
89831
89832 2003-01-08  Jim Meyering  <jim@meyering.net>
89833
89834         * lib/full-write.c: Undefine and define-away `const' after inclusion
89835         of errno.h, not before.  Suggestion from Bruno Haible.
89836
89837 2003-01-08  Bruno Haible  <bruno@clisp.org>
89838
89839         * modules/full-read: Depend on full-write.
89840
89841 2003-01-08  Bruno Haible  <bruno@clisp.org>
89842
89843         * lib/safe-read.c: Include specification header first, to ensure its
89844         selfcontainedness.
89845         * lib/full-write.c: Likewise.
89846
89847 2003-01-07  Jim Meyering  <jim@meyering.net>
89848
89849         * lib/full-write.c: Rework so that it may serve to define full_read,
89850         too.
89851         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
89852
89853 2003-01-07  Bruno Haible  <bruno@clisp.org>
89854
89855         * lib/strtoimax.c: Include <stdint.h> as an alternative to
89856         <inttypes.h>.
89857         * lib/xstrtol.h: Likewise.
89858         * lib/xstrtoimax.c: Likewise.
89859         * lib/xstrtoumax.c: Likewise.
89860         * lib/human.h: Likewise.
89861
89862         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
89863         on systems that have <inttypes.h> but not <stdint.h>.
89864
89865 2003-01-07  Bruno Haible  <bruno@clisp.org>
89866
89867         * MODULES.html.sh: Add copyright notice.
89868         (missed_files): Omit CVS directory entries.
89869         (func_module): Make it work with sed-3.02.
89870         * MODULES.txt: Remove file.
89871
89872 2003-01-06  Jim Meyering  <jim@meyering.net>
89873
89874         * lib/version-etc.c: Update year in translatable copyright string.
89875
89876 2003-01-03  Karl Berry  <karl@gnu.org>
89877
89878         * config/config.{guess,sub}: update from prep.
89879
89880 2003-01-02  Karl Berry  <karl@gnu.org>
89881
89882         * doc/COPYING.DOC: belatedly updated to 1.2.
89883
89884 2003-01-01  Karl Berry  <karl@gnu.org>
89885
89886         * gnulib-tool (func_verify_module): report module name $module in
89887         error message, not $1.
89888         * gnulib-tool (create-testdir): don't complain if destdir couldn't
89889         be created, only if it doesn't exist.
89890         * gnulib-tool (last_checkin_date): don't expand the $Date here.
89891
89892 2002-12-31  Paul Eggert  <eggert@twinsun.com>
89893
89894         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
89895
89896 2002-12-31  Paul Eggert  <eggert@twinsun.com>
89897
89898         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
89899         memcmp if strcoll doesn't work.
89900
89901 2002-12-31  Bruno Haible  <bruno@clisp.org>
89902
89903         * lib/utime.c (utime_null): No need to call ftruncate if the file was
89904         nonempty.
89905
89906 2002-12-31  Bruno Haible  <bruno@clisp.org>
89907
89908         * lib/memcoll.c (STRCOLL): New macro.
89909         (memcoll): Use it.
89910
89911 2002-12-31  Bruno Haible  <bruno@clisp.org>
89912
89913         * lib/localcharset.h: New file.
89914         * lib/localcharset.c: Include it.
89915         * lib/unicodeio.c: Likewise.
89916
89917 2002-12-31  Bruno Haible  <bruno@clisp.org>
89918
89919         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
89920         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
89921
89922 2002-12-31  Bruno Haible  <bruno@clisp.org>
89923
89924         * lib/getline.h: Include <stddef.h>, for size_t.
89925
89926         * lib/unicodeio.h: Include <stddef.h>, for size_t.
89927         * lib/unicodeio.c: Don't include <stddef.h>.
89928
89929 2002-12-31  Bruno Haible  <bruno@clisp.org>
89930
89931         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
89932         HAVE_TM_ZONE.
89933
89934 2002-12-24  Karl Berry  <karl@gnu.org>
89935
89936         * config/config.guess: update from prep.
89937
89938 2002-12-24  Bruno Haible  <bruno@clisp.org>
89939
89940         General infrasructure.
89941         * m4/README: Rewritten.
89942         * m4/onceonly.m4: New file.
89943         * m4/onceonly_2_57.m4: New file.
89944
89945         Module atexit.
89946         * m4/atexit.m4: New file.
89947
89948         Module strtod.
89949         * m4/strtod.m4: New file.
89950
89951         Module strtol.
89952         * m4/strtol.m4: New file.
89953
89954         Module strtoul.
89955         * m4/strtoul.m4: New file.
89956
89957         Module memchr.
89958         * m4/memchr.m4: New file.
89959
89960         Module memcmp.
89961         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
89962         (jm_FUNC_MEMCMP): Invoke it.
89963
89964         Module memcpy.
89965         * m4/memcpy.m4: New file.
89966
89967         Module memmove.
89968         * m4/memmove.m4: New file.
89969
89970         Module memset.
89971         * m4/memset.m4: New file.
89972
89973         Module strcspn.
89974         * m4/strcspn.m4: New file.
89975
89976         Module strpbrk.
89977         * m4/strpbrk.m4: New file.
89978
89979         Module strstr.
89980         * m4/strstr.m4: New file.
89981
89982         Module strerror.
89983         * m4/strerror.m4: New file.
89984
89985         Module mktime.
89986         * m4/mktime.m4: Renamed from jm-mktime.m4.
89987         (gl_PREREQ_MKTIME): New macro.
89988         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
89989
89990         Module malloc.
89991         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
89992         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
89993         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
89994
89995         Module realloc.
89996         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
89997         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
89998         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
89999
90000         Module strftime.
90001         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
90002         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
90003         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
90004         gl_TM_GMTOFF.
90005         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
90006
90007         Module xalloc.
90008         * m4/xalloc.m4: New file.
90009
90010         Module alloca.
90011         * m4/alloca.m4: New file.
90012
90013         Module putenv.
90014         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
90015         (jm_FUNC_PUTENV): Invoke it.
90016
90017         Module setenv.
90018         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
90019         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
90020         when invoked twice.
90021         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
90022         gt_FUNC_SETENV.
90023
90024         Module memrchr.
90025         * m4/memrchr.m4: New file.
90026
90027         Module stpcpy.
90028         * m4/stpcpy.m4: New file.
90029
90030         Module strcase.
90031         * m4/strcase.m4: New file.
90032
90033         Module strdup.
90034         * m4/strdup.m4: New file.
90035
90036         Module strnlen.
90037         * m4/strnlen.m4: New file.
90038
90039         Module strndup.
90040         * m4/strndup.m4: New file.
90041
90042         Module xstrtod.
90043         * m4/xstrtod.m4: New file.
90044
90045         Module xstrtol.
90046         * m4/xstrtol.m4: New file.
90047
90048         Module getdate.
90049         * m4/getdate.m4: New file.
90050
90051         Module unlocked-io.
90052         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
90053         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
90054         * m4/jm-glibc-io.m4n: Remove file.
90055
90056         Module long-options.
90057         * m4/long-options.m4: New file.
90058
90059         Module md5.
90060         * m4/md5.m4: New file.
90061
90062         Module sha.
90063         * m4/sha.m4: New file.
90064
90065         Module getstr.
90066         * m4/getstr.m4: New file.
90067
90068         Module getline.
90069         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
90070         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
90071         <sys/types.h>, for size_t. Use the function name gnu_getline, not
90072         simply getline. Infoke gl_PREREQ_GETLINE.
90073
90074         Module obstack.
90075         * m4/obstack.m4: New file.
90076
90077         Module hash.
90078         * m4/hash.m4: New file.
90079
90080         Module readtokens.
90081         * m4/readtokens.m4: New file.
90082
90083         Module strverscmp.
90084         * m4/strverscmp.m4: New file.
90085
90086         Module stdbool.
90087         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
90088         OSF/1.
90089
90090         Module strtoll.
90091         * m4/strtoll.m4: New file.
90092
90093         Module strtoull.
90094         * m4/strtoull.m4: New file.
90095
90096         Module strtoimax.
90097         * m4/strtoimax.m4: New file.
90098
90099         Module strtoumax.
90100         * m4/strtoumax.m4: New file.
90101
90102         Module xstrtoimax.
90103         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
90104         jm_AC_PREREQ_XSTRTOIMAX.
90105         Moved the strtol prerequisites to strtol.m4.
90106         Moved the strtoll prerequisites to strtoll.m4.
90107         Moved the strtoimax prerequisites to strtoimax.m4.
90108
90109         Module xstrtoumax.
90110         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
90111         jm_AC_PREREQ_XSTRTOUMAX.
90112         Moved the strtoul prerequisites to strtoul.m4.
90113         Moved the strtoull prerequisites to strtoull.m4.
90114         Moved the strtoumax prerequisites to strtoumax.m4.
90115
90116         Module chown.
90117         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
90118         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
90119
90120         Module dup2.
90121         * m4/dup2.m4: New file.
90122
90123         Module ftruncate.
90124         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
90125         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
90126
90127         Module getgroups.
90128         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
90129         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
90130
90131         Module gettimeofday.
90132         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
90133         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
90134         gl_PREREQ_GETTIMEOFDAY.
90135
90136         Module mkdir.
90137         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
90138         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
90139
90140         Module mkstemp.
90141         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
90142         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
90143         jm_AC_TYPE_UINTMAX_T.
90144         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
90145
90146         Module stat.
90147         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
90148         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
90149
90150         Module lstat.
90151         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
90152         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
90153
90154         Module timespec.
90155         * m4/timespec.m4 (gl_TIMESPEC): New macro.
90156         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
90157         * m4/st_mtim.m4: Indentation.
90158
90159         Module nanosleep.
90160         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
90161         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
90162         gl_PREREQ_NANOSLEEP.
90163
90164         Module regex.
90165         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
90166         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
90167         (gl_REGEX): New macro.
90168
90169         Module rename.
90170         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
90171         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
90172
90173         Module rmdir.
90174         * m4/rmdir.m4: New file.
90175
90176         Module utime.
90177         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
90178         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
90179         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
90180
90181         Module dirname.
90182         * m4/dirname.m4: New file.
90183
90184         Module getopt.
90185         * m4/getopt.m4: New file.
90186
90187         Module unistd-safer.
90188         * m4/unistd-safer.m4: New file.
90189
90190         Module fnmatch.
90191         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
90192         declaration.
90193         (gl_PREREQ_FNMATCH_EXTRA): New macro.
90194         (gl_FUNC_FNMATCH_POSIX): New macro.
90195         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
90196         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
90197         simply fnmatch.
90198
90199         Module exclude.
90200         * m4/exclude.m4: New file.
90201
90202         Module human.
90203         * m4/human.m4: New file.
90204
90205         Module acl.
90206         * m4/acl.m4: Nop.
90207
90208         Module backupfile.
90209         * m4/backupfile.m4: New file.
90210         * m4/d-ino.m4: Indentation.
90211
90212         Module fsusage.
90213         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
90214         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
90215         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
90216
90217         Module dirfd.
90218         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
90219         requirements.
90220
90221         Module euidaccess.
90222         * m4/euidaccess.m4: New file.
90223
90224         Module file-type.
90225         * m4/file-type.m4: New file.
90226
90227         Module fileblocks.
90228         * m4/fileblocks.m4: New file.
90229
90230         Module filemode.
90231         * m4/filemode.m4: New file.
90232
90233         Module isdir.
90234         * m4/isdir.m4: New file.
90235
90236         Module lchown.
90237         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
90238         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
90239
90240         Module makepath.
90241         * m4/makepath.m4: New file.
90242
90243         Module modechange.
90244         * m4/modechange.m4: New file.
90245
90246         Module mountlist.
90247         * m4/mountlist.m4: New file.
90248         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
90249         Indentation.
90250
90251         Module path-concat.
90252         * m4/path-concat.m4: New file.
90253
90254         Module pathmax.
90255         * m4/pathmax.m4: New file.
90256
90257         Module same.
90258         * m4/same.m4: New file.
90259
90260         Module save-cwd.
90261         * m4/save-cwd.m4: New file.
90262
90263         Module savedir.
90264         * m4/savedir.m4: New file.
90265
90266         Module xgetcwd.
90267         * m4/xgetcwd.m4: New file.
90268         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
90269
90270         Module xreadlink.
90271         * m4/xreadlink.m4: New file.
90272
90273         Module safe-read.
90274         * m4/safe-read.m4: New file.
90275
90276         Module safe-write.
90277         * m4/safe-write.m4: New file.
90278
90279         Module closeout.
90280         * m4/closeout.m4: New file.
90281
90282         Module stdio-safer.
90283         * m4/stdio-safer.m4: New file.
90284
90285         Module getpass.
90286         * m4/getpass.m4: New file.
90287
90288         Module getugroups.
90289         * m4/getugroups.m4: New file.
90290
90291         Module group-member.
90292         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
90293         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
90294
90295         Module idcache.
90296         * m4/idcache.m4: New file.
90297
90298         Module userspec.
90299         * m4/userspec.m4: New file.
90300
90301         Module gettime.
90302         * m4/clock_time.m4: New file.
90303         * m4/gettime.m4: New file.
90304
90305         Module settime.
90306         * m4/settime.m4: New file.
90307
90308         Module posixtm.
90309         * m4/posixtm.m4: New file.
90310
90311         Module gethostname.
90312         * m4/gethostname.m4: New file.
90313
90314         Module canon-host.
90315         * m4/canon-host.m4: New file.
90316
90317         Module gettext.
90318         * m4/codeset.m4: New file, from gettext-0.11.5.
90319         * m4/gettext.m4: New file, from gettext-0.11.5.
90320         * m4/glibc21.m4: New file, from gettext-0.11.5.
90321         * m4/iconv.m4: New file, from gettext-0.11.5.
90322         * m4/intdiv0.m4: New file, from gettext-0.11.5.
90323         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
90324         * m4/inttypes.m4: New file, from gettext-0.11.5.
90325         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
90326         * m4/isc-posix.m4: New file, from gettext-0.11.5.
90327         * m4/lcmessage.m4: New file, from gettext-0.11.5.
90328         * m4/lib-ld.m4: New file, from gettext-0.11.5.
90329         * m4/lib-link.m4: New file, from gettext-0.11.5.
90330         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
90331         * m4/progtest.m4: New file, from gettext-0.11.5.
90332         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
90333         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
90334         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
90335
90336         Module localcharset.
90337         * m4/localcharset.m4: New file.
90338
90339         Module hard-locale.
90340         * m4/hard-locale.m4: New file.
90341
90342         Module mbswidth.
90343         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
90344         onceonly macros.
90345         * m4/mbrtowc.m4: Add comment.
90346
90347         Module memcasecmp.
90348         * m4/memcasecmp.m4: New file.
90349
90350         Module memcoll.
90351         * m4/memcoll.m4: New file.
90352
90353         Module unicodeio.
90354         * m4/unicodeio.m4: New file.
90355
90356         Module rpmatch.
90357         * m4/rpmatch.m4: New file.
90358
90359         Module yesno.
90360         * m4/yesno.m4: New file.
90361
90362         Module exitfail.
90363         * m4/exitfail.m4: New file.
90364
90365         Module c-stack.
90366         * m4/c-stack.m4 (gl_C_STACK): New macro.
90367         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
90368
90369         Module error.
90370         * m4/error.m4 (gl_ERROR): New macro.
90371         (jm_PREREQ_ERROR): Use onceonly macros.
90372
90373         Module fatal.
90374         * m4/fatal.m4: New file.
90375
90376         Module getloadavg.
90377         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
90378         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
90379
90380         Module getpagesize.
90381         * m4/getpagesize.m4: New file.
90382
90383         Module getusershell.
90384         * m4/getusershell.m4: New file.
90385
90386         Module physmem.
90387         * m4/physmem.m4: New file.
90388
90389         Module posixver.
90390         * m4/posixver.m4: New file.
90391
90392         Module quotearg.
90393         * m4/quotearg.m4: New file.
90394
90395         Module quote.
90396         * m4/quote.m4: New file.
90397
90398         Module readutmp.
90399         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
90400
90401         Module sig2str.
90402         * m4/sig2str.m4: New file.
90403
90404         Other.
90405         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
90406         ulonglong.m4.
90407         * m4/intmax_t.m4: New file.
90408         * m4/d-type.m4: Indentation.
90409         * m4/jm-macros.m4: Update.
90410         * m4/prereq.m4 (jm_PREREQ): Update.
90411         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
90412         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
90413         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
90414         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
90415         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
90416         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
90417         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
90418         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
90419         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
90420         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
90421         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
90422         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
90423         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
90424         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
90425         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
90426         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
90427         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
90428         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
90429         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
90430
90431 2002-12-24  Bruno Haible  <bruno@clisp.org>
90432
90433         * MODULES.txt: Update according to m4/ changes.
90434
90435         Module gettext.
90436         * config.rpath: New file, from gettext-0.11.5.
90437
90438         * modules/*: New module descriptions.
90439         * gnulib-tool: New file.
90440         * MODULES.html.sh: New file.
90441
90442 2002-12-21  Karl Berry  <karl@gnu.org>
90443
90444         * doc/fdl.texi: update to version 1.2.
90445
90446 2002-12-19  Karl Berry  <karl@gnu.org>
90447
90448         * config/config.guess: update from prep.
90449
90450 2002-12-18  Bruno Haible  <bruno@clisp.org>
90451
90452         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
90453         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
90454
90455 2002-12-17  Bruno Haible  <bruno@clisp.org>
90456
90457         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
90458         stdlib.h, string.h.
90459
90460 2002-12-17  Bruno Haible  <bruno@clisp.org>
90461
90462         * lib/canon-host.c (strdup): Remove unused declaration.
90463
90464         * lib/fsusage.c: Include full_read.h.
90465         (get_fs_usage): Use full_read instead of safe_read.
90466
90467         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
90468
90469 2002-12-12  Karl Berry  <karl@gnu.org>
90470
90471         * config/config.guess: update from prep.
90472
90473 2002-12-11  Bruno Haible  <bruno@clisp.org>
90474
90475         * m4/setenv.m4: New file, from gettext-0.11.5.
90476
90477 2002-12-11  Bruno Haible  <bruno@clisp.org>
90478
90479         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
90480         not unsetenv().
90481         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
90482         modifications:
90483
90484         2002-12-11  Bruno Haible  <bruno@clisp.org>
90485
90486                 * setenv.c (alloca): Fall back to malloc.
90487                 (freea): New macro.
90488                 (setenv): Use freea() to free memory allocated with alloca().
90489
90490         2002-11-13  Bruno Haible  <bruno@clisp.org>
90491
90492                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
90493                 function declarations.
90494                 * unsetenv.c (unsetenv): Likewise.
90495
90496         2002-03-04  Bruno Haible  <bruno@clisp.org>
90497
90498                 Portability to AIX 4.3.3.
90499                 * unsetenv.c: New file, extracted from setenv.c.
90500                 * setenv.c: Move the unsetenv() function to unsetenv.c.
90501
90502         2001-12-20  Bruno Haible  <bruno@clisp.org>
90503
90504                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
90505                 use malloc instead. For SunOS 4.
90506
90507         2001-12-11  Bruno Haible  <bruno@clisp.org>
90508
90509                 * setenv.c: Declare alloca.
90510                 (compar_fn_t): New typedef.
90511                 (KNOWN_VALUE, STORE_VALUE): Use it.
90512
90513         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
90514         setenv.h.
90515
90516 2002-12-10  Paul Eggert  <eggert@twinsun.com>
90517
90518         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
90519         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
90520         Choose values that are less likely to collide with system fnmatch
90521         options.
90522         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
90523         defined (e.g., a pure POSIX system).
90524         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
90525         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
90526
90527 2002-12-06  Paul Eggert  <eggert@twinsun.com>
90528
90529         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
90530         a pain in practice to deal with generated m4 files.  This change
90531         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
90532
90533         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
90534         and jm-glibc-io.m4, as they are no longer a special case.
90535         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
90536         kludge and the auto-generation stuff.  Check only whether the
90537         functions are declared, not whether they exist, since older hosts
90538         that don't declare the functions can't use the optimization anyway.
90539
90540 2002-12-06  Jim Meyering  <jim@meyering.net>
90541
90542         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
90543
90544         Merge in changes from libc's misc/error.c, in preparation
90545         for the merge of gnulib's changes back into libc.
90546
90547         * lib/error.c (_): Define only if not already defined.
90548         Move definition to follow all #include directives.
90549         Include unlocked-io.h only if !_LIBC.
90550         [_LIBC]: Include <libio/libioP.h>.
90551         [USE_IN_LIBIO]: Include <libio/iolibio.h>
90552         (fflush): Tweak definition to use INTUSE.
90553         (putc): Define.
90554
90555 2002-12-05  Paul Eggert  <eggert@twinsun.com>
90556
90557         * lib/alloca.c [defined emacs]: Include "lisp.h".
90558         (xalloc_die) [defined emacs]: New macro.
90559         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
90560         [! defined emacs]: Include <xalloc.h>.
90561         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
90562         (pointer): Typedef to POINTER_TYPE *.
90563         (malloc): Remove decl; we now always use xmalloc.
90564         (alloca): Use old-style definition, since Emacs needs this.
90565         Check for arithmetic overflow when computing combined size.
90566
90567 2002-12-04  Paul Eggert  <eggert@twinsun.com>
90568
90569         Do not generate unlocked-io.h automatically, since it's easier to
90570         maintain it by hand.
90571
90572         * lib/unlocked-io.h: New file, from GNU diffutils,
90573         but with proper copyright notice and attribution.
90574         * lib/gen-uio: Remove.
90575         * lib/Makefile.am: Add copyright notice.
90576         (libfetish_a_SOURCES): Add unlocked-io.h.
90577         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
90578         (DISTCLEANFILES, io_functions): Remove macros.
90579         (EXTRA_DIST): Remove gen_uio.
90580         (unlocked-io.h): Remove rule.
90581
90582 2002-12-04  Jim Meyering  <jim@meyering.net>
90583
90584         Reflect the fact that stat.c and lstat.c are no longer generated.
90585         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
90586         (DISTCLEANFILES): Likewise.
90587         (EXTRA_DIST): Likewise.
90588         (all_local): Don't depend on stat.c or lstat.c.
90589         (stat.c, lstat.c): Remove rules.
90590         (EXTRA_DIST): Remove xstat.in.
90591
90592         * lib/xstat.in: Remove file.  Contents moved into stat.c.
90593         * lib/stat.c: New file.  Contents mostly from xstat.in.
90594         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
90595         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
90596
90597         * lib/safe-read.c: Rework so that it may serve to define safe_write,
90598         too.
90599         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
90600
90601 2002-12-03  Jim Meyering  <jim@meyering.net>
90602
90603         * lib/safe-read.c, safe-write.c: Change variable names and comments,
90604         but not semantics, to minimize the differences between these two files.
90605         (safe_read): Change comment to mention SAFE_READ_ERROR.
90606
90607         * lib/safe-read.c (IS_EINTR): Define.
90608         (safe_read): Use IS_EINTR in place of in-function cpp directives.
90609
90610 2002-12-02  Jim Meyering  <jim@meyering.net>
90611
90612         * lib/safe-read.c (EINTR): Define.
90613         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
90614         (INT_MAX): Provide fallback.
90615         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
90616
90617         * lib/safe-read.h (SAFE_READ_ERROR): Define.
90618
90619 2002-12-02  Bruno Haible  <bruno@clisp.org>
90620
90621         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
90622         Define, taken from safe-read.c.
90623         (INT_MAX): Provide fallback.
90624         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
90625         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
90626
90627         * lib/safe-read.c (EINTR): Remove definition.
90628         (safe_read): Don't use EINTR if it is absent.
90629
90630 2002-12-01  Jim Meyering  <jim@meyering.net>
90631
90632         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
90633         zero.
90634         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
90635
90636 2002-11-27  Paul Eggert  <eggert@twinsun.com>
90637
90638         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
90639         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
90640         with `if (! (value < limit)) abort ();', for readability.
90641
90642 2002-11-26  Karl Berry  <karl@gnu.org>
90643
90644         * lib/strdup.c: copy from libc again, with jim's ok.
90645         * lib/.cppi-disable: re-add strdup.c
90646
90647 2002-11-25  Karl Berry  <karl@gnu.org>
90648
90649         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
90650         instead of "strtol.c".
90651
90652 2002-11-25  Karl Berry  <karl@gnu.org>
90653
90654         * config/install-sh: update from automake for variable quoting, $0 in
90655         error msgs, etc.
90656
90657         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
90658         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
90659         entry.
90660
90661 2002-11-25  Jim Meyering  <jim@meyering.net>
90662
90663         * lib/mktime.c: Sync from libc, now that it has the latest fix.
90664
90665 2002-11-24  Karl Berry  <karl@gnu.org>
90666
90667         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
90668         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
90669
90670 2002-11-24  Jim Meyering  <jim@meyering.net>
90671
90672         Update from coreutils:
90673
90674         * lib/mktime.c: Merge in changes from libc.
90675
90676         Avoid a link-time failure on some Linux systems.
90677         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
90678         (otherwise).
90679         (__mon_yday): Declare with the STATIC attribute.
90680         (__mktime_internal): Likewise.
90681         Based on a report from Greg Schafer.
90682
90683 2002-11-23  Jim Meyering  <jim@meyering.net>
90684
90685         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
90686         Use `unsigned', not `int', as type of index.
90687
90688         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
90689
90690         * lib/fsusage.c: Remove unneeded parentheses around operands of
90691         `defined'.
90692
90693 2002-11-22  Paul Eggert  <eggert@twinsun.com>
90694
90695         * lib/quotearg.h: Allow multiple inclusion by surrounding with
90696         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
90697         so that we can be included first.
90698         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
90699         * lib/quotearg.c: Include quotearg.h immediately after config.h.
90700         No need to include stddef.h or sys/types.h any more.
90701         Surround local include files with "", not "<>".
90702         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
90703         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
90704         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
90705         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
90706         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
90707         (ISPRINT): Remove; no longer needed now that we assume C89.
90708
90709         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
90710         Preserve errno.
90711
90712         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
90713         quotearg_char): Use SIZE_MAX rather than
90714         (size_t) -1 when we are talking about "infinity".
90715
90716         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
90717
90718 2002-11-22  Paul Eggert  <eggert@twinsun.com>
90719
90720         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
90721         hint that one should use `if (! x) abort ();' rather than `assert
90722         (x);', and anyway it's one less thing to worry about configuring.
90723         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
90724         hash_rehash, hash_insert): Use abort rather than assert.
90725
90726 2002-11-22  Bruno Haible  <bruno@clisp.org>
90727
90728         * lib/safe-read.h: Assume C89. Add comments.
90729         (safe_read): Change return type to size_t.
90730         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
90731         byte counts > SSIZE_MAX correctly.
90732         * lib/safe-write.h: New file.
90733         * lib/safe-write.c: New file.
90734         * lib/full-read.h: New file.
90735         * lib/full-read.c: New file.
90736         * lib/full-write.h: Assume C89. Add comments.
90737         * lib/full-write.c: Include safe-write.h.
90738         (full_write): Rewritten to use safe_write.
90739         Suggested by Jim Meyering and Paul Eggert.
90740
90741 2002-11-21  Jim Meyering  <jim@meyering.net>
90742
90743         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
90744
90745         Merge in changes from the coreutils.
90746
90747         2002-09-25  Paul Eggert  <eggert@twinsun.com>
90748         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
90749         <stdint.h>.
90750         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
90751         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
90752         int.  Work more efficiently if X is the same width as uintmax_t.
90753         Do not compare X to -1, to avoid bogus compiler warning.
90754         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
90755         Don't assume that f_frsize and f_bsize are the same type.
90756
90757         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
90758         warning on FreeBSD.
90759
90760         * lib/makepath.c (make_path): Restore umask *before* creating the final
90761         component.
90762         (make_path): Minor reformatting.
90763
90764         * lib/xmalloc.c: Adjust to work with new autoconf macros,
90765         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
90766         HAVE_MALLOC/HAVE_REALLOC.
90767
90768         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
90769         dummy ones.  At least on GNU/Linux systems, `auto' means something
90770         else.
90771         From Michael Stone.
90772
90773 2002-11-21  Bruno Haible  <bruno@clisp.org>
90774
90775         Remove case insensitive option matching.
90776         * lib/argmatch.h (argcasematch): Remove declaration.
90777         (ARGCASEMATCH): Remove macro.
90778         (__xargmatch_internal): Remove case_sensitive argument.
90779         (XARGMATCH): Update.
90780         (XARGCASEMATCH): Remove macro.
90781         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
90782         case_sensitive argument.
90783         (argcasematch): Remove function.
90784         (__xargmatch_internal): Remove case_sensitive argument.
90785         (main): Use XARGMATCH instead of XARGCASEMATCH.
90786
90787         * lib/xmalloc.c: Change compile-time error message. Add comment about
90788         required autoconf version.
90789
90790 2002-11-20  Paul Eggert  <eggert@twinsun.com>
90791
90792         Merge argmatch cleanups from Bison.  Assume C89.
90793
90794         * lib/argmatch.c: Include config.h here, not in argmatch.h.
90795         Include stdlib.h, for EXIT_FAILURE.
90796         Always include <string.h>, since we assume C89.
90797         (EXIT_FAILURE): Remove pre-C89 bug workaround.
90798         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
90799         Include <stddef.h> instead, since it's all we need for size_t.
90800         (PARAMS): Remove.  All uses removed.
90801         (ARRAY_CARDINALITY): Do not bother to #undef.
90802         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
90803         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
90804         Remove unnecessary parentheses.
90805         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
90806         Insert necessary parentheses.
90807         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
90808         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
90809
90810 2002-11-19  Bruno Haible  <bruno@clisp.org>
90811
90812         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
90813         * lib/mbswidth.h: Include <stddef.h>, for size_t.
90814
90815         * lib/mbswidth.h (PARAMS): Remove macro.
90816         (mbswidth, mbsnwidth): Use ANSI C function declarations.
90817         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
90818
90819         * lib/gcd.h (PARAMS): Remove macro.
90820         (gcd): Use ANSI C function declarations.
90821         * lib/gcd.c (gcd): Likewise.
90822
90823 2002-11-15  Bruno Haible  <bruno@clisp.org>
90824
90825         * lib/strcspn.c: Include <stddef.h>.
90826         (strcspn): Use ANSI C function declaration. Change return type to
90827         size_t. Use NULL.
90828         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
90829         (strpbrk): Use NULL.
90830         * lib/strpbrk.h (PARAMS): Remove macro.
90831         (strpbrk): Use ANSI C function declaration.
90832         * lib/strstr.c: Don't include <sys/types.h>.
90833         * lib/strstr.h (PARAMS): Remove macro.
90834         (strstr): Use ANSI C function declarations.
90835
90836 2002-11-14  Karl Berry  <karl@gnu.org>
90837
90838         * config/mkinstalldirs: `do' on separate line, instead of
90839         `for var; do'.
90840
90841 2002-11-06  Bruno Haible  <bruno@clisp.org>
90842
90843         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
90844         * lib/gcd.c (gcd): Likewise.
90845
90846 2002-11-05  Bruno Haible  <bruno@clisp.org>
90847
90848         * lib/gcd.h: New file, from gettext-0.11.5.
90849         * lib/gcd.c: New file, from gettext-0.11.5.
90850
90851 2002-11-05  Bruno Haible  <bruno@clisp.org>
90852
90853         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90854         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90855         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90856         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90857
90858         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
90859         <libintl.h>.
90860         * lib/makepath.c: Include gettext.h instead of <locale.h> and
90861         <libintl.h>.
90862
90863         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
90864         * lib/human.c: Include gettext.h instead of <libintl.h>.
90865         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
90866         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
90867         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
90868         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
90869         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
90870         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
90871         (textdomain): Remove definition.
90872         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
90873
90874         * lib/long-options.c: Remove include of <libintl.h> and definition of
90875         _.
90876         * lib/same.c: Remove include of <libintl.h> and definition of _.
90877
90878 2002-11-04  Owen Taylor  <otaylor@redhat.com>
90879
90880         * lib/config.charset: A few additions for Solaris.
90881
90882 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
90883
90884         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
90885         * lib/localcharset.c (locale_charset): Declare as extern "C".
90886
90887 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
90888
90889         * lib/config.charset: msdos in uk_UA uses CP1125.
90890
90891 2002-11-04  Bruno Haible  <bruno@clisp.org>
90892
90893         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
90894         * lib/strcase.h: New file, from GNU gettext-0.11.5.
90895         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
90896         * lib/strstr.h: New file, from GNU gettext-0.11.5.
90897         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
90898
90899 2002-11-04  Bruno Haible  <bruno@clisp.org>
90900
90901         * lib/localcharset.c (locale_charset): Don't return an empty string.
90902
90903 2002-11-04  Bruno Haible  <bruno@clisp.org>
90904
90905         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
90906         aliases.
90907
90908 2002-11-04  Bruno Haible  <bruno@clisp.org>
90909
90910         * lib/config.charset: Update for newest glibc. Add canonical names
90911         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
90912
90913 2002-11-04  Bruno Haible  <bruno@clisp.org>
90914
90915         * lib/config.charset: Add support for NetBSD.
90916
90917 2002-11-04  Bruno Haible  <bruno@clisp.org>
90918
90919         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
90920
90921 2002-11-01  Bruno Haible  <bruno@clisp.org>
90922
90923         * configure.in: Add AC_CONFIG_AUX_DIR call.
90924         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
90925         test/Makefile.
90926         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
90927
90928 2002-09-28  Karl Berry  <karl@gnu.org>
90929
90930         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
90931         installed automake until the next release, since changes have been
90932         made.
90933
90934 2002-09-25  Karl Berry  <karl@gnu.org>
90935
90936         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
90937         * lib/getopt*: copy from libc/posix.
90938         * lib/gettext.h: copy from gettext.
90939         * lib/.cppi-disable: add strdup.c, gettext.h.
90940
90941 2002-09-25  Karl Berry  <karl@gnu.org>
90942
90943         * config/srclist.txt: enable gettext.h check.
90944         * config/config.{guess,sub}: update from prep.
90945         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
90946                 from automake 1.6.3.
90947         See srclist*.
90948
90949 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
90950
90951         * regex.c (PATFETCH): Remove the translating fetch.
90952         (PATFETCH_RAW): Rename to PATFETCH.
90953         (set_image_of_range): New fun.
90954         (SET_RANGE_TABLE_WORK_AREA): Use it.
90955         (regex_compile): Don't translate the pattern chars so eagerly.
90956         Only do it when inserting an `exactn' bytecode or when handling
90957         a char-range.
90958         (mutually_exclusive_p): Avoid empty statement.
90959
90960 2002-07-06  Jim Meyering  <meyering@lucent.com>
90961
90962         * m4/README: Don't mention Makefile.am.in.
90963         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
90964
90965 2002-07-01  Jim Meyering  <meyering@lucent.com>
90966
90967         * lib/c-stack.c: Include sys/time.h.
90968         From Volker Borchert.
90969
90970 2002-06-26  Paul Eggert  <eggert@twinsun.com>
90971
90972         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
90973
90974 2002-06-26  Paul Eggert  <eggert@twinsun.com>
90975
90976         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
90977         New macro.  Use it uniformly instead of
90978         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
90979         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
90980         reported by Vin Shelton.
90981
90982 2002-06-22  Paul Eggert  <eggert@twinsun.com>
90983
90984         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
90985         Do not assume SA_SIGINFO behavior.
90986         Bug reported by Jim Meyering on NetBSD 1.5.2.
90987
90988 2002-06-22  Jim Meyering  <meyering@lucent.com>
90989
90990         * m4/c-stack.m4: New file, from diffutils-2.8.2.
90991         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
90992
90993         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
90994         now that configure.ac uses AC_GNU_SOURCE.
90995         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
90996         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
90997
90998         Update to latest tools.  Suggestions from Paul Eggert.
90999         * m4/stdbool.m4: New file, from diffutils-2.8.2.
91000         * m4/gnu-source.m4: Update from diffutils-2.8.2.
91001         * m4/fnmatch.m4: Likewise.
91002         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
91003         to AC_HEADER_STDBOOL
91004
91005 2002-06-22  Jim Meyering  <meyering@lucent.com>
91006
91007         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
91008         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
91009
91010 2002-06-22  Jim Meyering  <meyering@lucent.com>
91011
91012         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
91013
91014         * lib/exitfail.c, exitfail.h: Likewise.
91015         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
91016
91017         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
91018         of fnmatch.h.
91019         (EXTRA_DIST): Add fnmatch_loop.c.
91020         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
91021
91022         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
91023         * lib/fnmatch.c: Update from diffutils-2.8.2.
91024         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
91025         * lib/fnmatch.h: Remove file.
91026
91027 2002-06-21  Jim Meyering  <meyering@lucent.com>
91028
91029         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
91030         * m4/mbrtowc.m4: Likewise.
91031
91032         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
91033         * m4/mbswidth.m4: Reflect name change:
91034         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
91035         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
91036
91037         * m4/lib-link.m4: Update from gettext-0.11.2.
91038         * m4/gettext.m4: Likewise.
91039
91040         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
91041         From Alfred M. Szmidt.
91042
91043 2002-06-18  Paul Eggert  <eggert@twinsun.com>
91044
91045         * lib/file-type.h: Report an error if neither S_ISREG nor
91046         S_IFREG is defined, instead of using a test specific to glibc
91047         2.2.  This should be safe, since POSIX requires S_ISREG and
91048         Unix Version 7 had S_IFREG.  We don't need to check for
91049         <sys/types.h> since we don't use any symbols that it defines.
91050
91051 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
91052
91053         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
91054         $@-t, so that each temporary file name is unique and valid in the first
91055         8 characters, for operation under DOS.
91056
91057 2002-06-15  Paul Eggert  <eggert@twinsun.com>
91058
91059         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
91060
91061 2002-06-15  Jim Meyering  <meyering@lucent.com>
91062
91063         Work even with DJGPP 2.03, which lacks support for symlinks.
91064         From Richard Dawe.
91065         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
91066         is defined.
91067         * lib/lchown.c (S_ISLNK): Likewise.
91068
91069 2002-06-15  Jim Meyering  <meyering@lucent.com>
91070
91071         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
91072         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
91073         have been included before this file.
91074
91075 2002-06-14  Jim Meyering  <meyering@lucent.com>
91076
91077         * lib/file-type.h: Use the version from diffutils-2.8.2.
91078         * lib/file-type.c: Likewise.
91079
91080 2002-06-07  Jim Meyering  <meyering@lucent.com>
91081
91082         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
91083         They're needed at least for NetBSD 1.5.2.
91084         ($statxfs_includes): Include those same headers.
91085         ($statxfs_includes): Include sys/vfs.h if available.
91086         ($statxfs_includes): Likewise for sys/statvfs.h.
91087         Check for the following members in both structs statfs and statvfs:
91088         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
91089
91090 2002-06-01  Jim Meyering  <meyering@lucent.com>
91091
91092         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
91093         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
91094
91095 2002-05-28  Jim Meyering  <meyering@lucent.com>
91096
91097         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
91098         Reported by Volker Borchert.
91099
91100 2002-05-27  Jim Meyering  <meyering@lucent.com>
91101
91102         Fix a problem seen only on nonconforming systems whereby ls.c's
91103         use of localtime, and then of gettimeofday would cause trouble:
91104         the localtime call used to initialize rpl_gettimeofday's save
91105         mechanism would clobber ls's current local time information so
91106         that in any long listing the first file would always be listed
91107         with date 1970-01-01.  Analysis by Volker Borchert.
91108
91109         * lib/gettimeofday.c (localtime): Undefine.
91110         (rpl_localtime): New function.
91111
91112 2002-05-27  Jim Meyering  <meyering@lucent.com>
91113
91114         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
91115         localtime.
91116
91117         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
91118         use the replacement function; it wouldn't resolve at link time.
91119         Reported by Volker Borchert.
91120
91121 2002-05-22  Jim Meyering  <meyering@lucent.com>
91122
91123         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
91124         file-type.h.
91125         * lib/file-type.h: New file.
91126         * lib/file-type.c (file_type): New file/function.  Extracted from
91127         diffutils.
91128
91129 2002-04-30  Jim Meyering  <meyering@lucent.com>
91130
91131         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
91132
91133 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91134
91135         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
91136
91137 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91138
91139         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
91140         Do not check for alloca.h (no longer used) or stdbool.h (was never
91141         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
91142
91143 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91144
91145         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
91146
91147 2002-04-29  Jim Meyering  <meyering@lucent.com>
91148
91149         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
91150         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
91151         Use AC_FUNC_STRNLEN here instead.
91152
91153         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
91154         With autoconf-2.53a, it's part of AC_PROG_CC.
91155
91156 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91157
91158         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
91159         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
91160
91161 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91162
91163         * lib/sig2str.h, lib/sig2str.c: New files.
91164         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
91165
91166 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91167
91168         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
91169         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
91170         of 127, since 64 is the largest conceivable number for ancient
91171         nonstandard hosts.
91172         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
91173
91174 2002-04-28  Jim Meyering  <meyering@lucent.com>
91175
91176         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
91177
91178 2002-04-24  Jim Meyering  <meyering@lucent.com>
91179
91180         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
91181         (jm_PREREQ): Use it.
91182
91183         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
91184         mach/mach.h fcntl.h.
91185         Check for this function: setlocale.
91186
91187 2002-04-24  Jim Meyering  <meyering@lucent.com>
91188
91189         * lib/gettext.h: New file, from Gettext.
91190         * lib/Makefile.am (INCLUDES): Remove -I../intl.
91191         (libfetish_a_SOURCES): Add gettext.h.
91192
91193 2002-04-16  Jim Meyering  <meyering@lucent.com>
91194
91195         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
91196         ut_pid, ut_id, ut_exit.
91197
91198 2002-04-16  Jim Meyering  <meyering@lucent.com>
91199
91200         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
91201         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
91202         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
91203
91204 2002-04-12  Jim Meyering  <meyering@lucent.com>
91205
91206         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
91207         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
91208         existence of the getmntinfo function.  Needed for Darwin 5.3.
91209
91210         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
91211         This is necessary at least on Darwin 5.3.
91212
91213         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
91214         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
91215         strnlen.o in the library, and that makes some versions of ranlib
91216         object.
91217
91218 2002-04-12  Jim Meyering  <meyering@lucent.com>
91219
91220         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
91221
91222 2002-04-09  Jim Meyering  <meyering@lucent.com>
91223
91224         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
91225         to be more precise.  Rather than saying we're checking whether the
91226         function `works', say what we're testing.
91227         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
91228         Reported by Bruno Haible.
91229
91230 2002-03-10  Jim Meyering  <meyering@lucent.com>
91231
91232         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
91233         Suggestion from Santiago Vila.
91234
91235 2002-03-08  Jim Meyering  <meyering@lucent.com>
91236
91237         * lib/rename.c: Mention that this wrapper is needed also on
91238         mips-dec-ultrix4.4 systems.
91239
91240 2002-03-02  Jim Meyering  <meyering@lucent.com>
91241
91242         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
91243         not HAVE_CLOCK_SETTIME.
91244
91245 2002-02-27  Paul Eggert  <eggert@twinsun.com>
91246
91247         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
91248         Check for clock_settime.
91249
91250 2002-02-27  Paul Eggert  <eggert@twinsun.com>
91251
91252         * lib/nanosleep.h: Rename to....
91253         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
91254
91255         * lib/gettime.c: New file.
91256         * lib/settime.c: New file.
91257         * lib/stime.c: Remove.
91258
91259         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
91260         timespec.h.  Remove nanosleep.h.
91261
91262 2002-02-25  Paul Eggert  <eggert@twinsun.com>
91263
91264         * m4/acl.m4: New file.
91265         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
91266         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
91267
91268 2002-02-25  Paul Eggert  <eggert@twinsun.com>
91269
91270         * lib/acl.c, lib/acl.h: New files.
91271         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
91272
91273 2002-02-24  Jim Meyering  <meyering@lucent.com>
91274
91275         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
91276         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
91277         cause trouble.  Reported by Nelson Beebe.
91278
91279 2002-02-23  Paul Eggert  <eggert@twinsun.com>
91280
91281         * lib/path-concat.c (xpath_concat): Reorder code to pacify
91282         compilers that don't know that xalloc_die never returns.
91283
91284 2002-02-20  Jim Meyering  <meyering@lucent.com>
91285
91286         * lib/getdate.c: Regenerate using bison-1.33.
91287
91288 2002-02-17  Jim Meyering  <meyering@lucent.com>
91289
91290         * config/config.guess (main): Don't use `head -1'; it's no longer
91291         portable. Use `sed 1q' instead.
91292
91293 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
91294
91295         * m4/codeset.m4: Upgrade to gettext-0.11.
91296         * m4/gettext.m4: Upgrade to gettext-0.11.
91297         * m4/glibc21.m4: Upgrade to gettext-0.11.
91298         * m4/iconv.m4: Upgrade to gettext-0.11.
91299         * m4/isc-posix.m4: Upgrade to gettext-0.11.
91300         * m4/lcmessage.m4: Upgrade to gettext-0.11.
91301         * m4/lib-ld.m4: New file, from gettext-0.11.
91302         * m4/lib-link.m4: New file, from gettext-0.11.
91303         * m4/lib-prefix.m4: New file, from gettext-0.11.
91304         * m4/progtest.m4: Upgrade to gettext-0.11.
91305
91306 2002-02-15  Paul Eggert  <eggert@twinsun.com>
91307
91308         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
91309         (jm_PREREQ): Use it.
91310
91311 2002-02-15  Paul Eggert  <eggert@twinsun.com>
91312
91313         * lib/posixver.c, lib/posixver.h: New files.
91314         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
91315
91316 2002-02-02  Paul Eggert  <eggert@twinsun.com>
91317             Bruno Haible  <bruno@clisp.org>
91318
91319         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
91320         (fwrite_success_callback): New declaration.
91321         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
91322         print_unicode_char. Call failure callback instead of error.
91323         (fwrite_success_callback): New function.
91324         (exit_failure_callback): New function.
91325         (fallback_failure_callback): New function.
91326         (print_unicode_char): Call unicode_to_mb.
91327
91328 2002-01-26  Jim Meyering  <meyering@lucent.com>
91329
91330         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
91331         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
91332
91333 2002-01-26  Jim Meyering  <meyering@lucent.com>
91334
91335         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
91336
91337 2002-01-22  Paul Eggert  <eggert@twinsun.com>
91338
91339         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
91340
91341 2002-01-22  Jim Meyering  <meyering@lucent.com>
91342
91343         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
91344         Otherwise, some versions of automake would omit the rule that makes
91345         Makefile from Makefile.in.
91346
91347 2002-01-21  Paul Eggert  <eggert@twinsun.com>
91348
91349         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
91350         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
91351         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
91352         (memcoll): Set errno to zero if there is no error.
91353
91354         * lib/quotearg.c (quotearg_buffer_restyled):
91355         Fix bug with quoting buffers containing NUL when backslashing escapes.
91356         This bug was exposed by the other changes in this patch.
91357         (quotearg_n_options): New arg ARGSIZE.
91358         All callers changed.
91359         (quoting_options_from_style): New function.
91360         (quotearg_n_style): Use it.
91361         (quotearg_n_style_mem): New function.
91362
91363         * lib/quotearg.h (quotearg_n_style_mem): New function.
91364
91365 2002-01-19  Jim Meyering  <meyering@lucent.com>
91366
91367         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
91368         Remove useless quotes: DF_PROG="df".
91369         * m4/strnlen.m4: New file.
91370
91371 2002-01-16  Paul Eggert  <eggert@twinsun.com>
91372
91373         * lib/backupfile.c (ISDIGIT): Comment fix.
91374         * lib/getdate.y (ISDIGIT): Likewise.
91375         * lib/posixtm.c (ISDIGIT, year): Likewise.
91376         * lib/strverscmp.c (ISDIGIT): Likewise.
91377         * lib/userspec.c (ISDIGIT): Likewise.
91378
91379 2002-01-16  Jim Meyering  <meyering@lucent.com>
91380
91381         * lib/getdate.y: Add three semicolons, each just before a closing
91382         brace. Bison (as of version 1.31) no longer papers over that mistake.
91383
91384 2002-01-05  Jim Meyering  <meyering@lucent.com>
91385
91386         * lib/version-etc.c (version_etc_copyright): Update copyright year.
91387
91388 2001-12-19  Paul Eggert  <eggert@twinsun.com>
91389
91390         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
91391         not silently exit merely because the output buffer happens to
91392         have nothing pending.
91393
91394 2001-12-18  Paul Eggert  <eggert@twinsun.com>
91395
91396         See the big note in ../ChangeLog.
91397         * lib/human.c (suffixes): Prefer K to k for 1024.
91398         (generate_suffix_backwards): New function.
91399         (human_readable_inexact): Use it.
91400         * lib/xstrtol.c (__xstrtol): If there is no number but there
91401         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
91402         Accept 'K' as well as 'k'.
91403
91404 2001-12-15  Jim Meyering  <meyering@lucent.com>
91405
91406         * lib/regex.h (__restrict_arr): Update from libc.
91407
91408         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
91409         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
91410         (STREQ): Define.
91411
91412 2001-12-14  Jim Meyering  <meyering@lucent.com>
91413
91414         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
91415         Suggestion from Bruno Haible.
91416
91417 2001-12-10  Jim Meyering  <meyering@lucent.com>
91418
91419         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
91420         xrealloc, Instead, include "xalloc.h".
91421         (initbuffer): Don't cast xmalloc return value to char*.
91422         (readline): Reword comment.
91423         Don't cast xrealloc return value to char*
91424         Return NULL, not 0.
91425
91426 2001-12-09  Jim Meyering  <meyering@lucent.com>
91427
91428         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
91429         about `signed and unsigned type in conditional expression'.
91430         * lib/posixtm.c (posix_time_parse): Likewise.
91431
91432         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
91433
91434         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
91435         to avoid a pedantic warning.
91436
91437         * lib/getstr.c: Don't include assert.h.
91438         (getstr): Remove warning-evoking assertions.
91439         Return -1 if offset parameter is out of bounds.
91440         Change the type of a local from int to size_t.
91441
91442         * lib/strftime.c (my_strftime_localtime_r): Include this function
91443         definition in the `#if ! HAVE_TM_GMTOFF' block.
91444
91445         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
91446         Include xalloc.h instead.
91447
91448 2001-12-02  Jim Meyering  <meyering@lucent.com>
91449
91450         * lib/tempname.c: Don't declare getenv, thus reverting the change of
91451         2001-11-18.  It's no longer necessary, now that stdlib.h is always
91452         included.
91453
91454         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
91455         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
91456
91457 2001-11-30  Akim Demaille  <akim@epita.fr>
91458
91459         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
91460         before being defined.
91461
91462 2001-11-27  Paul Eggert  <eggert@twinsun.com>
91463
91464         * lib/quotearg.h (quotearg_n, quotearg_n_style):
91465         First arg is int, not unsigned.
91466         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
91467         (SIZE_MAX, UINT_MAX): New macros.
91468         (quotearg_n_options): Abort if N is negative.
91469         Avoid overflow check on hosts where size_t is 64 bits and int
91470         is 32 bits, as overflow is impossible there.
91471         Fix off-by-one typo that caused unnecessary reallocation.
91472
91473 2001-11-27  Jim Meyering  <meyering@lucent.com>
91474
91475         * lib/tempname.c: Merge with version from libc.
91476         * lib/regex.c: Likewise.
91477
91478         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
91479         systems for which STDC_HEADERS is 0, it was not included, resulting in
91480         a warning about an integer-to-pointer conversion problem with getenv.
91481         Reported by Volker Borchert.
91482
91483 2001-11-26  Jim Meyering  <meyering@lucent.com>
91484
91485         * lib/gtod.h: Remove file.
91486         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
91487         * lib/gettimeofday.c: Don't include gtod.h.
91488         (GTOD_init): Remove function.
91489         (rpl_gettimeofday): Do its job here instead, rather than aborting.
91490         Suggestion from Volker Borchert.
91491
91492 2001-11-23  Jim Meyering  <meyering@lucent.com>
91493
91494         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
91495         it.
91496         * lib/hash.c (struct hash_table): Define it here instead.
91497
91498 2001-11-22  Jim Meyering  <meyering@lucent.com>
91499
91500         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
91501
91502 2001-11-20  Jim Meyering  <meyering@lucent.com>
91503
91504         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
91505         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
91506
91507 2001-11-19  Jim Meyering  <meyering@lucent.com>
91508
91509         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
91510         directory.  Use "conftestXXXXXX" as the template.
91511         Suggestion from Paul Eggert.
91512
91513         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
91514         immediately, so the test doesn't mistakenly hit the max-open-files
91515         limit.
91516
91517 2001-11-18  Paul Eggert  <eggert@twinsun.com>
91518
91519         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
91520         (TEMPORARIES): New macro.
91521         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
91522         removes an artificial limitation (e.g. HP-UX 10.20, where
91523         TMP_MAX is 17576).
91524
91525 2001-11-18  Jim Meyering  <meyering@lucent.com>
91526
91527         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
91528
91529 2001-11-18  Jim Meyering  <meyering@lucent.com>
91530
91531         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
91532         on SunOS 4.
91533
91534         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
91535         files will be created before anything else.
91536
91537 2001-11-17  Paul Eggert  <eggert@twinsun.com>
91538
91539         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
91540         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
91541
91542 2001-11-17  Jim Meyering  <meyering@lucent.com>
91543
91544         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
91545         Prompted by a report from Bob Proulx.
91546
91547         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
91548         Instead, require UTILS_FUNC_MKSTEMP.
91549
91550 2001-11-17  Jim Meyering  <meyering@lucent.com>
91551
91552         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
91553         Now, that's done as part of AC_FUNC_STRTOD.
91554
91555 2001-11-17  Jim Meyering  <meyering@lucent.com>
91556
91557         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
91558         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
91559         rather than group writable.  Patch by Juan F. Codagnone.
91560
91561         * lib/readtokens.c: Remove explicit declarations of xmalloc and
91562         xrealloc, Instead, include "xalloc.h".
91563
91564         * lib/mountlist.c: Include unlocked-io.h after all system headers.
91565         Remove explicit declarations of xmalloc, xrealloc,
91566         and xstrdup.  Instead, include "xalloc.h".
91567
91568         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
91569         unlocked-io.h.
91570         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
91571         Likewise.
91572         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
91573
91574         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
91575         Reported by Padraig Brady.
91576
91577         * lib/mkstemp.c: #undef mkstemp.
91578         Include config.h.
91579         (rpl_mkstemp): Rename from mkstemp.
91580         Protoize.
91581
91582 2001-11-16  Jim Meyering  <meyering@lucent.com>
91583
91584         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
91585         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
91586         determine the amount of total physical memory, use pstat_getstatic.
91587         HPUX-11 doesn't define _SC_PHYS_PAGES.
91588         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
91589         If sysconf couldn't be used to determine the amount of available
91590         physical memory, use both pstat_getstatic and pstat_getdynamic.
91591         Based on a patch from Bob Proulx.
91592
91593 2001-11-10  Jim Meyering  <meyering@lucent.com>
91594
91595         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
91596         (jm_PREREQ): Use it.
91597
91598 2001-11-09  Jim Meyering  <meyering@lucent.com>
91599
91600         * m4/jm-macros.m4: Require autoconf-2.52f.
91601         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
91602         Use these AC_-prefixed names, not the AM_-prefixed ones.
91603
91604         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
91605
91606 2001-11-05  Jim Meyering  <meyering@lucent.com>
91607
91608         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
91609
91610 2001-11-04  Jim Meyering  <meyering@lucent.com>
91611
91612         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
91613         $DEFS.
91614
91615 2001-11-03  Jim Meyering  <meyering@lucent.com>
91616
91617         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
91618         of AC_DEFUN.
91619
91620         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
91621         know the name of the variable in the macro definition.
91622
91623 2001-11-03  Jim Meyering  <meyering@lucent.com>
91624
91625         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
91626         in argmatch_to_argument call.
91627
91628         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
91629         argument.
91630
91631         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
91632         e.g., a fault due to an attempt to free a NULL pointer.
91633
91634 2001-11-01  Jim Meyering  <meyering@lucent.com>
91635
91636         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
91637         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
91638
91639 2001-11-01  Jim Meyering  <meyering@lucent.com>
91640
91641         * lib/dirfd.c, lib/dirfd.h: New files.
91642         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
91643
91644         * lib/hash.c (hash_print) [TESTING]: Clean up.
91645
91646 2001-10-22  Paul Eggert  <eggert@twinsun.com>
91647
91648         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
91649         to avoid a warning if -Wall.
91650
91651 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
91652
91653         * README: New file
91654         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
91655         (per RMS's instructions, this is now the canonical source)
91656         * lgpl/, gpl/: New directories.
91657
91658 2001-10-21  Paul Eggert  <eggert@twinsun.com>
91659
91660         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
91661
91662 2001-10-21  Jim Meyering  <meyering@lucent.com>
91663
91664         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
91665         this code would end up calling gettext even in packages built
91666         with --disable-nls.
91667         * lib/getopt.c (_): Likewise.
91668         * lib/regex.c (_): Likewise.
91669
91670 2001-10-20  Paul Eggert  <eggert@twinsun.com>
91671
91672         * m4/error.m4 (jm_PREREQ_ERROR):
91673         Do not invoke AC_CHECK_FUNCS with strerror_r, as
91674         AC_FUNC_STRERROR_R does that.
91675         Check for strerror declaration.
91676
91677         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
91678         are supposed to have them these days.
91679         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
91680         Merge changes from latest Autoconf CVS.
91681         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
91682         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
91683         POSIX decided to standardize on the int flavor of strerror_r.
91684
91685 2001-10-20  Paul Eggert  <eggert@twinsun.com>
91686
91687         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
91688         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
91689         Use strerror_r that is only a macro, even if it is not a function.
91690         (strerror): Check for HAVE_DECL_STRERROR before declaring.
91691         (private_strerror): Use prototypes, not old-style function definition.
91692         (print_errno_message): New function.
91693         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
91694         char*-flavored one.
91695         (error_tail, error, error_at_line): Use it.
91696
91697 2001-10-11  Jim Meyering  <meyering@lucent.com>
91698
91699         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
91700         and quote_n (1, ... to avoid clobbering a buffer.
91701
91702 2001-10-05  Jim Meyering  <meyering@lucent.com>
91703
91704         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
91705         hash-pjw.h.
91706         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
91707         * lib/hash-pjw.h: New file.
91708
91709 2001-09-30  Jim Meyering  <meyering@lucent.com>
91710
91711         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
91712         `struct fsstat' has the `f_fstypename' member.
91713         Use that to define FS_TYPE, which is now used to make
91714         the getfsstat link test tighter.
91715
91716 2001-09-30  Jim Meyering  <meyering@lucent.com>
91717
91718         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
91719         Include <sys/ucred.h>, for Apple Darwin.
91720         Include sys/mount.h and sys/fs_types.h only if available.
91721         (FS_TYPE): Define.
91722         (read_filesystem_list): Use FS_TYPE.
91723
91724 2001-09-29  Paul Eggert  <eggert@twinsun.com>
91725
91726         * lib/exclude.c (excluded_filename): 0 -> false, since it's
91727         a boolean context.
91728
91729 2001-09-29  Jim Meyering  <meyering@lucent.com>
91730
91731         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
91732         [one-argument getmntent function]): Include stdio.h before mntent.h.
91733         SunOS 4.1.x needs it for the declaration of `FILE'.
91734         Patch by Volker Borchert.
91735
91736         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
91737         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
91738         sys/fs_types.h, and make the link-test for getfsstat guard #include
91739         directives with appropriate #if HAVE_*_H tests so that we can
91740         detect getfsstat on Apple Darwin1.3.7 systems.
91741         Reported by Nelson Beebe.
91742         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
91743
91744 2001-09-28  Paul Eggert  <eggert@twinsun.com>
91745
91746         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
91747         #defines strtoimax.  Also treat the other strto* functions
91748         like strtoimax.
91749
91750         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
91751         Check for strtoul and strtoumax,
91752         as those declarations are made even in the signed case.
91753         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
91754         Likewise, for strtol and strtoimax.
91755
91756 2001-09-28  Paul Eggert  <eggert@twinsun.com>
91757
91758         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
91759         #defines strtoimax.  Also treat the other strto* functions
91760         like strtoimax.
91761
91762         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
91763         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
91764         (strtoimax, strtoumax): Do not declare if already defined as a macro.
91765
91766 2001-09-26  Jim Meyering  <meyering@lucent.com>
91767
91768         Most macros in unlocked-io.h had the wrong number of arguments.
91769         * lib/gen-uio: New script.
91770         (USE_UNLOCKED_IO): Define to 1 if not already defined.
91771         * lib/unlocked-io.hin: Remove file.
91772         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
91773         rather than trying to embed it here.
91774         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
91775         Reported by Padraig Brady.
91776
91777 2001-09-25  Volker Borchert  <bt@teknon.de>
91778
91779         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
91780         `result'.
91781
91782 2001-09-24  Jim Meyering  <meyering@lucent.com>
91783
91784         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
91785
91786 2001-09-23  Jim Meyering  <meyering@lucent.com>
91787
91788         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
91789         instead of the mere test for existence of mntent.h.  The latter
91790         would get a false-positive on AIX 3.4 systems.
91791         In the outer getmntent if-block, don't die if neither of the getmntent
91792         tests succeeds.  Instead, just fall through and continue with the
91793         remaining tests.
91794
91795 2001-09-23  Jim Meyering  <meyering@lucent.com>
91796
91797         * lib/mountlist.c: Remove useless parentheses in #if directives.
91798         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
91799         the deprecated MOUNTED symbol is no longer defined in mntent.h.
91800
91801 2001-09-22  Jim Meyering  <meyering@lucent.com>
91802
91803         * m4/gettext.m4: New file.  From gettext.
91804         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
91805         * m4/progtest.m4: Likewise
91806         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
91807         * m4/glibc21.m4: Likewise.
91808
91809         * m4/libintl.m4: Remove.  No longer used.
91810
91811 2001-09-22  Jim Meyering  <meyering@lucent.com>
91812
91813         * lib/localcharset.c: Update from latest gettext.
91814         * lib/config.charset: Likewise.
91815
91816 2001-09-20  Jim Meyering  <meyering@lucent.com>
91817
91818         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
91819         strtoimax.
91820         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
91821         strtoumax.
91822
91823 2001-09-20  Jim Meyering  <meyering@lucent.com>
91824
91825         * lib/xstrtol.c (strtoimax): Guard declaration with
91826         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
91827         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
91828         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
91829         (strtoumax): Likewise, for completeness (it wasn't necessary).
91830
91831 2001-09-17  Paul Eggert  <eggert@twinsun.com>
91832
91833         * lib/strtoimax.c (HAVE_LONG_LONG):
91834         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
91835         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
91836         to work around bug in IBM C compiler.
91837
91838 2001-09-17  Jim Meyering  <meyering@lucent.com>
91839
91840         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
91841         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
91842         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
91843         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
91844         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
91845         whenever the right hand side need not be expanded by the shell.
91846
91847 2001-09-16  Paul Eggert  <eggert@twinsun.com>
91848
91849         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
91850         library.  It's not correct, as some older glibcs are buggy.
91851         fnmatch wasn't fixed until glibc 2.2.
91852
91853         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
91854         special shell magic here.
91855
91856 2001-09-16  Jim Meyering  <meyering@lucent.com>
91857
91858         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
91859         * m4/jm-macros.m4: Require it.
91860
91861 2001-09-16  Jim Meyering  <meyering@lucent.com>
91862
91863         * lib/mkdir.c: New file.
91864
91865 2001-09-15  Jim Meyering  <meyering@lucent.com>
91866
91867         * m4/jm-macros.m4: Check for help2man.
91868
91869 2001-09-11  Jim Meyering  <meyering@lucent.com>
91870
91871         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
91872         The body, by Paul Eggert, was moved here from configure.in.
91873         * m4/jm-macros.m4: Require UTILS_HOST_OS.
91874
91875 2001-09-04  Paul Eggert  <eggert@twinsun.com>
91876
91877         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
91878         (jm_PREREQ): Use it.
91879
91880 2001-09-04  Paul Eggert  <eggert@twinsun.com>
91881
91882         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
91883         Use ssize_t, not int, to store result of readlink.
91884         Check for ssize_t overflow as well as size_t overflow,
91885         as POSIX says the result of readlink is implementation-defined
91886         when ssize_t overflows.
91887         Remove unnecessary cast to char*.
91888         Use free+malloc instead of realloc, as the storage doesn't need
91889         to be preserved and it's clearer and can be more efficient that way.
91890         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
91891         * lib/xreadlink.h (xreadlink): Update prototype.
91892
91893 2001-09-04  Paul Eggert  <eggert@twinsun.com>
91894
91895         * lib/xgetcwd.c: Revert some of the previous change; intead,
91896         fix the HAVE_GETCWD_NULL code to behave more like the
91897         !HAVE_GETCWD_NULL code used to.
91898
91899         Include "xalloc.h".
91900         (xgetcwd): Do not return NULL when memory is exhausted; instead,
91901         invoke xalloc_die.
91902
91903 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91904
91905         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
91906         sys/param.h, as pathmax.h includes them.
91907
91908 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91909
91910         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
91911         (jm_PREREQ_XGETCWD): New macro.
91912
91913         * m4/getcwd.m4: New file.
91914
91915 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91916
91917         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
91918         like the HAVE_GETCWD_NULL code.
91919         Include pathmax.h if not HAVE_GETCWD.
91920         Do not include xalloc.h.
91921         (INITIAL_BUFFER_SIZE): New symbol.
91922         Do not use xmalloc / xrealloc, since the caller is responsible for
91923         handling errors.  Preserve errno around `free' during failure.
91924         Do not overrun buffer when using getwd.
91925
91926 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91927
91928         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
91929         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
91930         getcwd (NULL, 0).
91931
91932 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91933
91934         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
91935         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
91936         spotted by Jim Meyering.
91937
91938 2001-09-03  Jim Meyering  <meyering@lucent.com>
91939
91940         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
91941         failure.
91942
91943 2001-09-02  Jim Meyering  <meyering@lucent.com>
91944
91945         * lib/error.c: Update from GNU libc.
91946
91947 2001-09-01  Jim Meyering  <meyering@lucent.com>
91948
91949         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
91950         Used by df.
91951
91952 2001-09-01  Jim Meyering  <meyering@lucent.com>
91953
91954         * lib/xreadlink.c: New file.
91955         * lib/xreadlink.h: New file.
91956         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
91957         xreadlink.h.
91958
91959         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
91960         doesn't conflict with sparc Solaris 7's definition in
91961         /usr/include/sys/int_types.h.
91962
91963         * lib/exclude.c: Use `""', not `<>' to #include non-system header
91964         files.
91965         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
91966         and strncasecmp as r-values.  Unixware didn't have declarations.
91967
91968 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91969
91970         * lib/xstrtol.h: Add copyright notice.
91971         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
91972         LONGINT_INVALID_SUFFIX_CHAR.
91973
91974 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91975
91976         * lib/xstrtol.c (strtoimax): New decl.
91977
91978 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91979
91980         * lib/xgetcwd.c: Don't include pathmax.h.
91981         Include stdlib.h and unistd.h if available.
91982         Include xalloc.h.
91983         (xmalloc, xstrdup, free): Remove decls.
91984         (xgetcwd): Don't assume sizes fit in unsigned.
91985         Check for overflow when computing sizes.
91986         Simplify reallocation code.
91987
91988 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91989
91990         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
91991         a directory's st_size can have an arbitrary value, so the old
91992         usage could waste an arbitrary amount of memory.  All uses
91993         changed.
91994         * lib/savedir.h: Update prototype.
91995
91996 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91997
91998         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
91999
92000         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
92001         old strtoimax.c.
92002
92003         Also, make the following further changes to make this file's
92004         configuration more similar to that of strtol.c:
92005         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
92006         (strtoumax, uintmax_t, strtoull, strtol): Remove.
92007         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
92008         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
92009         changed to signed values.
92010
92011         And make the following changes as well:
92012         Fix copyright notice, as 1999 was missing.
92013         (verify): New macro.
92014         (strtoimax): Check sizes at compile-time, not run-time.
92015         Prefer strtol to strtoll if both work.
92016         (main): Remove; it was not that useful and was a pain to maintain.
92017
92018         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
92019
92020 2001-08-31  Jim Meyering  <meyering@lucent.com>
92021
92022         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
92023         Use an initial, malloc'd, buffer of length 128 rather than
92024         a statically allocated one of length 1024.
92025
92026 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92027
92028         Simplify code, partly by assuming autoconf 2.52 semantics.
92029
92030         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
92031
92032         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
92033         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
92034         All uses removed.
92035         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
92036         Move AC_REQUIRE to next-to-top level, to avoid confusion.
92037         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
92038         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
92039         jm_AC_HEADER_INTTYPES_H.
92040         * m4/jm-macros.m4 (jm_MACROS): Likewise.
92041
92042         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
92043
92044         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
92045         Quote first arg of AC_DEFUN.
92046         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
92047         since they are needed to parse the include file even if we need
92048         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
92049         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
92050         but with opposite signedness.
92051
92052 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92053
92054         Merge 'exclude' changes from tar 1.13.22.
92055         This fixes one or two unlikely storage allocation overflow bugs,
92056         but doesn't change user-visible behavior otherwise.
92057
92058 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92059
92060         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
92061         (jm_PREREQ_EXCLUDE): New macro.
92062
92063 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92064
92065         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
92066         tm to be declared.
92067
92068 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92069
92070         * lib/hash.c: Remove '2001' from copyright notice.
92071
92072 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92073
92074         * lib/full-write.h: New file.
92075         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
92076         * lib/full-write.c: Correct credits, as cccp.c no longer
92077         exists and anyway it was so heavily changed from the old cccp
92078         code as to be unrecognizable.  Include full-write.h.
92079         (full_write): Return size_t, with short writes meaning failure.
92080         All callers changed.  This fixes a bug with large buffers
92081         on 64-bit hosts.
92082         * lib/utime.c: Include full-write.h.
92083
92084 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92085
92086         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
92087         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
92088         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
92089         Include if available.
92090         (<xalloc.h>): Include
92091         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
92092         (verify): New macro.  Use it to verify that EXCLUDE macros do not
92093         collide with FNM macros.
92094         (struct patopts): New struct.
92095         (struct exclude): Use it, as exclude patterns now come with options.
92096         (new_exclude): Support above changes.
92097         (new_exclude, add_exclude_file):
92098         Initial size must now be a power of two to simplify overflow checking.
92099         (free_exclude, fnmatch_no_wildcards): New function.
92100         (excluded_filename): No longer requires options arg, as the options
92101         are determined by add_exclude.  Now returns bool, not int.
92102         (excluded_filename, add_exclude):
92103         Add support for the fancy new exclusion options.
92104         (add_exclude, add_exclude_file): Now takes int options arg.
92105         Check for arithmetic overflow when computing sizes.
92106         (add_exclude_file): xrealloc might modify errno, so don't
92107         realloc until after errno might be used.
92108
92109         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
92110         New macros.
92111         (free_exclude): New decl.
92112         (add_exclude, add_exclude_file): Now takes int options arg.
92113         (excluded_filename): No longer requires options arg, as the options
92114         are determined by add_exclude.  Now returns bool, not int.
92115
92116 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92117
92118         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
92119
92120 2001-08-27  Jim Meyering  <meyering@lucent.com>
92121
92122         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
92123
92124         * lib/version-etc.c (N_): Remove definition.
92125         Revert most of last change.
92126         Instead, simply don't mark the `Copyright...' string for translation.
92127         Based on advice from Paul Eggert.
92128
92129         * lib/strtoxmax.c: Tweak comment.
92130
92131 2001-08-26  Jim Meyering  <meyering@lucent.com>
92132
92133         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
92134
92135         * m4/xstrtoimax.m4: New file.
92136         * m4/xstrtoumax.m4: Add comments explaining why we
92137         AC_REPLACE_FUNCS(strtol).
92138
92139 2001-08-26  Jim Meyering  <meyering@lucent.com>
92140
92141         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
92142         of copyright with `%s' so translators don't get an untranslated
92143         message in 2002.
92144         (COPYRIGHT_YEAR): Define.
92145         (version_etc): Use fprintf rather than fputs.
92146         Suggestion from Ulrich Drepper.
92147
92148         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
92149
92150         * lib/strtoll.c: New file, from GNU libc.
92151         * lib/xstrtoimax.c: New file.
92152
92153         * lib/xstrtol.h: Add xstrtoimax.
92154         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
92155         * lib/strtoimax.c: New file.  Likewise, but first define
92156         STRTOUXMAX_SIGNED.
92157
92158         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
92159         ...
92160         * lib/strtoxmax.c: ... then renamed to this.
92161
92162 2001-08-18  Paul Eggert  <eggert@twinsun.com>
92163
92164         * m4/inttypes.m4: Add AC_PREREQ(2.13).
92165         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
92166         (jm_AC_TYPE_INTMAX_T): New macro.
92167         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
92168
92169         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
92170
92171         * m4/longlong.m4: Renamed from ulonglong.m4.
92172         * m4/inttypes.m4: Renamed from inttypes_h.m4.
92173         * m4/uintmax_t.m4: Removed.
92174
92175 2001-08-13  Paul Eggert  <eggert@twinsun.com>
92176
92177         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
92178         Port to Solaris 8, where 'sed' requires a space after the 'r'
92179         command, and where sh dislikes "$/".  Clean up the spacing a bit.
92180         Redirect output to $tmp just once.
92181
92182 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
92183
92184         * lib/addext.c (<errno.h>): Include.
92185         (errno): Declare if not defined.
92186         (addext): Work correctly when pathconf returns -1 and leaves
92187         errno alone because there is no limit.  Also, work even if
92188         pathconf returns a value greater than SIZE_MAX.
92189
92190 2001-08-12  Jim Meyering  <meyering@lucent.com>
92191
92192         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
92193         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
92194         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
92195         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
92196         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
92197         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
92198         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
92199         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
92200         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
92201         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
92202         utime.m4, utimes.m4, xstrtoumax.m4:
92203         Quote the first argument in each use of AC_DEFUN.
92204
92205 2001-08-12  Jim Meyering  <meyering@lucent.com>
92206
92207         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
92208         Simply `return getcwd (NULL, 0);'.
92209         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
92210         Use 1300 as initial value for length, not PATH_MAX.
92211
92212         * lib/pathmax.h: Clean up cpp syntax.
92213
92214 2001-08-12  Jim Meyering  <meyering@lucent.com>
92215
92216         * lib/gettimeofday.c: New file.
92217         * lib/gtod.h: New file.
92218         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
92219
92220 2001-08-05  Jim Meyering  <meyering@lucent.com>
92221
92222         * m4/jm-macros.m4: Require autoconf-2.52.
92223
92224 2001-08-04  Jim Meyering  <meyering@lucent.com>
92225
92226         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
92227         stmt, to get in sync with glibc.
92228
92229 2001-08-03  Paul Eggert  <eggert@twinsun.com>
92230
92231         The following changes are from gettext 0.10.39 as maintained by
92232         Bruno Haible.
92233
92234         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
92235         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
92236         with inverted sense.  All uses changed.
92237
92238         * lib/mbswidth.c: Don't include <limits.h>.
92239         Include <stdlib.h> and <string.h> unconditionally.
92240         (iswcntrl, mbsinit, ISCNTRL): New macros.
92241         (mbsnwidth): Use K&R style function declarations.
92242         Don't bother checking for MB_LEN_MAX == 1, since the compiler
92243         can optimize it when MB_CUR_MAX == 1.
92244         The width of control characters is zero, not 1.
92245
92246 2001-08-03  Paul Eggert  <eggert@twinsun.com>
92247
92248         The following changes are from gettext 0.10.39 as maintained by
92249         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
92250
92251         * m4/codeset.m4: Upgrade to serial AM1.
92252         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
92253         all uses changed.  Quote first arg of AC_DEFUN.
92254         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
92255
92256         * m4/iconv.m4: Upgrade to serial AM2.
92257         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
92258         Add --with-libconv-prefix.
92259         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
92260         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
92261         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
92262         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
92263         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
92264
92265         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
92266         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
92267         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
92268         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
92269         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
92270         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
92271         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
92272         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
92273         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
92274
92275         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
92276         string.h any more.
92277
92278         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
92279         not the default value.
92280
92281         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
92282         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
92283         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
92284         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
92285         Also check for iswcntrl, used for wcwidth fallback.
92286         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
92287         to Autoconf 2.13.
92288
92289 2001-08-03  Jim Meyering  <meyering@lucent.com>
92290
92291         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
92292         as it was in the original.  Reported by Paul Eggert.
92293
92294 2001-07-16  Jim Meyering  <meyering@lucent.com>
92295
92296         * m4/gettimeofday.m4: New file.
92297         Prompted by a report from Bernhard Baehr.
92298
92299 2001-07-15  Jim Meyering  <meyering@lucent.com>
92300
92301         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
92302         stuff. Now it's in ../Makefile.cfg.
92303
92304 2001-07-15  Jim Meyering  <meyering@lucent.com>
92305
92306         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
92307         (BUILT_SOURCES): Add unlocked-io.h.
92308         (io_functions): Define.
92309         (unlocked-io.h): New rule.
92310         (DISTCLEANFILES): Add unlocked-io.h.
92311         (all-local): Depend on unlocked-io.h, to ensure it is created.
92312
92313         * lib/unlocked-io.hin: New file
92314
92315         * lib/regex.c: Update from glibc.
92316
92317 2001-07-05  Jim Meyering  <meyering@lucent.com>
92318
92319         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
92320         recommendation.
92321         (libfetish_a_SOURCES): Put all .h files here instead.
92322         Remove a thus-exposed (better checks in automake) duplicate and
92323         two unnecessary .h files.
92324
92325 2001-07-04  Jim Meyering  <meyering@lucent.com>
92326
92327         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
92328         that generates jm-glibc-io.m4 so that it doesn't trigger any make
92329         distcheck failure.
92330
92331 2001-07-02  Jim Meyering  <meyering@lucent.com>
92332
92333         The following changes were prompted by suggestions from Bruno Haible.
92334
92335         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
92336         is now generated.
92337         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
92338         definition of EXTRA_DIST.
92339         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
92340         ensure that the generated file is created/updated whenever the list
92341         of $(unlocked_functions) is changed.
92342         (jm-glibc-io.m4): New rule.
92343         (unlocked-io.h): New rule -- currently unused.
92344
92345 2001-06-24  Jim Meyering  <meyering@lucent.com>
92346
92347         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
92348         unmatched right bracket, rather than kludging it with an extra,
92349         falsely-matching quote in a comment.  Patch by Akim Demaille.
92350
92351 2001-06-11  Jim Meyering  <meyering@lucent.com>
92352
92353         * lib/regex.c: Update from GNU libc.
92354
92355 2001-05-27  Jim Meyering  <meyering@lucent.com>
92356
92357         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
92358         Check for ut_type in struct utmp.
92359
92360 2001-05-27  Jim Meyering  <meyering@lucent.com>
92361
92362         * lib/readutmp.h (UT_TYPE): Define.
92363
92364 2001-05-24  Jim Meyering  <meyering@lucent.com>
92365
92366         * lib/argmatch.c: Include "quote.h".
92367         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
92368         quote function.  Reported by Göran Uddeborg.
92369
92370 2001-05-22  Jim Meyering  <meyering@lucent.com>
92371
92372         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
92373         now that we use the package-supplied version unconditionally.
92374         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
92375
92376 2001-05-21  Jim Meyering  <meyering@lucent.com>
92377
92378         * m4/regex.m4: Change a couple backticks to single quotes to avoid
92379         shell syntax errors.
92380
92381 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
92382
92383         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
92384
92385 2001-05-20  Paul Eggert  <eggert@twinsun.com>
92386
92387         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
92388         Don't bother to check library strftime, since
92389         we'll be using our own my_strftime function anyway.
92390         Define my_strftime instead of strftime.
92391
92392 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
92393
92394         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
92395         which is not yet declared.
92396
92397 2001-05-15  Jim Meyering  <meyering@lucent.com>
92398
92399         * m4/regex.m4: Use proper quoting so brackets appear in the test
92400         program.
92401         Reported by, and with help from, Bruno Haible.
92402
92403 2001-05-13  Jim Meyering  <meyering@lucent.com>
92404
92405         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
92406         undefined.
92407
92408 2001-05-11  Paul Eggert  <eggert@twinsun.com>
92409
92410         dirname code cleanup.  base_name now behaves more compatibly
92411         with POSIX basename when given file names that have trailing
92412         slashes, and similarly for dir_name.  Add new primitives
92413         base_len and dir_len.  Put the directory-name-related decls
92414         into dirname.h.
92415
92416         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
92417         * lib/backupfile.c (base_name): Likewise.
92418         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
92419         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
92420         * lib/makepath.c (strip_trailing_slashes): Likewise.
92421         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
92422         ISSLASH): Likewise.
92423         * lib/rename.c (strip_trailing_slashes): Likewise.
92424         * lib/same.c (base_name): Likewise.
92425         * lib/stripslash.c (ISSLASH): Likewise.
92426
92427         * lib/addext.c: Include <dirname.h> after size_t is defined.
92428         * lib/backupfile.c: Likewise.
92429
92430         * lib/addext.c (addext): Use base_len to trim redundant
92431         trailing slashes instead of doing it ourselves.
92432         But do not trim the last slash if it is not redundant.
92433
92434         * lib/backupfile.c (find_backup_file_name,
92435         max_backup_version): Use base_len instead of rolling it ourselves.
92436         Handle the case of "" and (on DOS) "C:" correctly.
92437
92438         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
92439         needed. Include <string.h>, <dirname.h>.
92440         (base_name): Allow file names ending in slashes, other than names
92441         that are all slashes.  In this case, return the basename followed
92442         by the slashes.  This is more general, and can be used in places
92443         where the original base_name purposely had an assertion failure.
92444         (base_len): New function.
92445
92446         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
92447         Do not include <assert.h>; no longer needed.
92448         Include xalloc.h.
92449         (memrchr): Remove decl.
92450         (dir_name_r): Remove.
92451         (dir_len): Renamed from dirlen.  All callers changed.
92452         Rewrite in terms of base_name, for simplicity and consistency.
92453         (dir_name): Never return NULL.  All callers changed.
92454         Do not include <stdlib.h> in test program; no longer needed.
92455         return 0; is fine for test program.
92456
92457         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
92458         New macros.
92459         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
92460
92461         * lib/path-concat.c (path_concat): Use base_len to compute
92462         base length, not strlen; this means we cannot rely on memcpy
92463         to null-terminate.
92464
92465         * lib/same.c (STREQ): Remove.
92466         (same_name): Handle the case where the basename ends in trailing '/'.
92467
92468         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
92469         a slash was stripped.  Do not strip the last slash after a
92470         file system prefix.
92471
92472 2001-05-11  Paul Eggert  <eggert@twinsun.com>
92473
92474         * lib/Makefile.am (libfetish_a_SOURCES):
92475         Add strftime.c, since we now compile it on all hosts.
92476
92477         * lib/strftime.c (my_strftime):
92478         Define to nstrftime if emacs, but only if my_strftime is not defined.
92479         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
92480         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
92481         Add one more extra argument: a nanoseconds value.
92482         All uses changed.
92483         (ns): New macro.
92484         (my_strftime function): Add %N format.
92485         (emacs_strftimeu): Renamed from emacs_strftime,
92486         with extra ut argument.
92487
92488 2001-05-09  Paul Eggert  <eggert@twinsun.com>
92489
92490         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
92491
92492 2001-04-21  Jim Meyering  <meyering@lucent.com>
92493
92494         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
92495         doesn't interfere.
92496
92497 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
92498
92499         * m4/ftruncate.m4: Check for chsize.
92500         Link with ftruncate.o unconditionally if ftruncate is missing.
92501         This was required when cross-compiling to i586-mingw32msvc.
92502
92503 2001-04-08  Jim Meyering  <meyering@lucent.com>
92504
92505         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
92506         recomputed; that's necessary when the offset spans a DST transition.
92507         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
92508
92509 2001-04-02  Jim Meyering  <meyering@lucent.com>
92510
92511         * lib/regex.h, regex.c: Update from GNU libc.
92512
92513 2001-03-24  Jim Meyering  <meyering@lucent.com>
92514
92515         * m4/jm-macros.m4: Require autoconf-2.49d.
92516
92517 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
92518
92519         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
92520
92521 2001-03-19  Paul Eggert  <eggert@twinsun.com>
92522
92523         * lib/version-etc.c (version_etc_copyright): Update to 2001.
92524
92525 2001-03-17  Jim Meyering  <meyering@lucent.com>
92526
92527         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
92528         now that the version in autoconf is equivalent.
92529         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
92530
92531         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
92532         Suggestion from Akim Demaille.
92533
92534         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
92535         (jm_PREREQ_TEMPNAME): New function.
92536
92537 2001-03-16  Paul Eggert  <eggert@twinsun.com>
92538
92539         * lib/tempname.c (uint64_t): Define to uintmax_t if
92540         not defined, and if UINT64_MAX is not defined.
92541         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
92542         Reported by John David Anglin.
92543
92544 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
92545
92546         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
92547         resolve alias if codeset is empty.
92548         * lib/config.charset (BeOS): Use wildcard syntax.
92549
92550 2001-03-13  Jim Meyering  <meyering@lucent.com>
92551
92552         * lib/path-concat.c (path_concat)
92553         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
92554         concatenating e.g., `C:' and `foo'.
92555         From Bruno Haible.
92556
92557 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
92558
92559         * lib/localcharset.c (locale_charset): Don't use
92560         setlocale(LC_CTYPE,NULL). Don't return NULL.
92561         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
92562
92563 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
92564
92565         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
92566         support for DOS/DJGPP.
92567
92568 2001-03-01  Paul Eggert  <eggert@twinsun.com>
92569
92570         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
92571         lacks mkstemp.  Compile our own tempname.c if we compile our own
92572         mkstemp.c, as mkstemp relies on tempname.
92573
92574 2001-03-01  Jim Meyering  <meyering@lucent.com>
92575
92576         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
92577         AH_VERBATIM really does output its argument verbatim.
92578
92579 2001-02-28  Paul Eggert  <eggert@twinsun.com>
92580
92581         * lib/Makefile.am (libfetish_a_SOURCES):
92582         Add dup-safer.c, fopen-safer.c.
92583         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
92584
92585         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
92586         * lib/unistd-safer.h: New files.
92587
92588 2001-02-25  Paul Eggert  <eggert@twinsun.com>
92589
92590         The mkstemp replacement is taken from glibc 2.2.2, with some
92591         portability fixes for use outside glibc, as follows:
92592
92593         * lib/tempname.c (struct_stat64): New macro.
92594         (direxists, __gen_tempname): Use it.
92595         This avoids a portability problem with Solaris 8.
92596
92597         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
92598         (<stddef.h>, <stdint.h>, <string.h>):
92599         Include only if STDC_HEADERS || _LIBC.
92600         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
92601         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
92602         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
92603         (__set_errno): Define this macro if <errno.h> doesn't.
92604         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
92605         Define these macros if <stdio.h> doesn't.
92606         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
92607         Define these macros if <sys/stat.h>
92608         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
92609         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
92610         __xstat64): Define if not _LIBC.
92611         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
92612         (__gen_tempname): Invoke gettimeofday only if
92613         HAVE_GETTIMEOFDAY || _LIBC;
92614         otherwise, fall back on plain "time".
92615         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
92616
92617         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
92618
92619         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
92620
92621 2001-02-18  Paul Eggert  <eggert@twinsun.com>
92622
92623         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
92624
92625 2001-02-17  Paul Eggert  <eggert@twinsun.com>
92626
92627         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
92628         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
92629         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
92630         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
92631
92632 2001-02-17  Paul Eggert  <eggert@twinsun.com>
92633
92634         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
92635         Remove workaround macros for hosts that have mbrtowc but not
92636         mbstate_t, as we now insist on proper declarations for both
92637         before using mbrtowc.
92638
92639 2001-02-17  Jim Meyering  <meyering@lucent.com>
92640
92641         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
92642         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
92643         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
92644         UnixWare 7.1.1.
92645
92646         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
92647         rather than AC_CACHE_VAL.
92648
92649 2001-02-17  Jim Meyering  <meyering@lucent.com>
92650
92651         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
92652         around included file name.
92653
92654         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
92655
92656         * lib/strftime.c: Update from GNU libc (the only changes were to
92657         comments).
92658
92659 2001-02-17  Jim Meyering  <meyering@lucent.com>
92660
92661         * lib/regex.c: Update from libc.
92662
92663 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
92664
92665         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
92666         clash.
92667
92668 2001-02-16  Paul Eggert  <eggert@twinsun.com>
92669
92670         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
92671         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
92672         Reported by Mark Hounschell via Paul Eggert.
92673
92674 2001-02-07  Jim Meyering  <meyering@lucent.com>
92675
92676         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
92677
92678 2001-02-05  Jim Meyering  <meyering@lucent.com>
92679
92680         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
92681         it includes the patch required for `large file' support with at least
92682         HP-UX's 10.20 /bin/cc.
92683
92684 2001-02-03  Jim Meyering  <meyering@lucent.com>
92685
92686         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
92687         AS_IF, now that it works once again (mysteriously).
92688         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
92689
92690 2001-01-30  Jim Meyering  <meyering@lucent.com>
92691
92692         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
92693         * m4/chown.m4: Rename conftestchown to conftest.chown.
92694         * m4/rename.m4: s/conftestdir/conftest.d1/ and
92695         s/conftestdir2/conftest.d2/.
92696         * m4/utimes.m4: s/conftestdata/conftest.data/
92697         Inspired by Pavel Roskin's change in autoconf.
92698
92699 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
92700
92701         * lib/config.charset: Update for FreeBSD 4.2.
92702
92703 2001-01-27  Jim Meyering  <meyering@lucent.com>
92704
92705         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
92706         a use of AS_IF.
92707         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
92708
92709 2001-01-26  Jim Meyering  <meyering@lucent.com>
92710
92711         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
92712         quotearg.c includes it.
92713
92714 2001-01-26  Jim Meyering  <meyering@lucent.com>
92715
92716         * lib/quotearg.c: Include stddef.h.
92717         * lib/quote.c: Include stddef.h.
92718         Reported by Axel Kittenberger.
92719
92720         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
92721         line in double quotes so that it evokes a better diagnostic.
92722         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
92723         Reported by Axel Kittenberger.
92724
92725 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
92726
92727         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
92728         as if it was a `charset'.
92729
92730 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
92731
92732         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
92733         has const.
92734
92735 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
92736
92737         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
92738         to avoid a warning.  Add back 'const' to inptr.
92739
92740 2001-01-20  Jim Meyering  <meyering@lucent.com>
92741
92742         Be sure that headers are checked before used in code compiled
92743         for the type checks.
92744         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
92745         In place of that, invoke jm_CHECK_ALL_TYPES.
92746         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
92747         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
92748         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
92749         The check for ssize_t was mistakenly run before the test for unistd.h.
92750
92751         The configure-time check for stdbool.h was missing.
92752         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
92753         (jm_PREREQ_HASH): New function.
92754
92755 2001-01-17  Jim Meyering  <meyering@lucent.com>
92756
92757         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
92758         for autoconf-2.49c.
92759         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
92760
92761 2001-01-16  Jim Meyering  <meyering@lucent.com>
92762
92763         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
92764         From Bruno Haible.
92765
92766 2001-01-14  Jim Meyering  <meyering@lucent.com>
92767
92768         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
92769         foo and bar.  Create conftestdir/ in the script, not in the C code.
92770         Remove directories in the script, not in the C code.
92771         Remove conftestdir{,2} before trying to create the directory.
92772         Make the entire configure script fail if the mkdir fails.
92773
92774 2001-01-14  Jim Meyering  <meyering@lucent.com>
92775
92776         * lib/rename.c: New file.  From Volker Borchert.
92777         Include stdlib.h, string.h or strings.h, and xalloc.h.
92778         Use strip_trailing_slashes rather than open-coding it.
92779
92780 2001-01-03  Paul Eggert  <eggert@twinsun.com>
92781
92782         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
92783
92784 2001-01-03  Jim Meyering  <meyering@lucent.com>
92785
92786         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
92787         of local `inptr' to avoid warning with some system declarations of
92788         iconv.
92789
92790 2001-01-02  Volker Borchert  <bt@teknon.de>
92791
92792         * m4/rename.m4: New file.
92793         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
92794
92795 2001-01-01  Jim Meyering  <meyering@lucent.com>
92796
92797         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
92798         even on systems with utmpx.h.  It's necessary for the declaration of
92799         utmp's ut_user member.  Reported by Andreas Jaeger.
92800
92801         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
92802         available. They are required for the declarations of getgrgid and
92803         getpwuid resp.
92804         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
92805         Reported by Andreas Jaeger.
92806
92807 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
92808
92809         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
92810         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
92811         so `make install' also works in VPATH builds.
92812
92813 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
92814
92815         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
92816         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
92817         can be used in subdirectories.
92818
92819 2000-12-29  Paul Eggert  <eggert@twinsun.com>
92820
92821         * lib/modechange.c: Do not assume that mode_t uses the
92822         traditional octal encoding.  E.g. "chmod 1 FOO" should set
92823         the other-execute bit of FOO even if S_IXOTH != 1.
92824
92825         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
92826         WOTH, XOTH, ALLM): New macros.
92827         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
92828          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
92829         Use them.
92830         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
92831         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
92832         (mode_compile):
92833         No need to use uintmax_t; unsigned long is long enough.
92834         Don't bother to get suffix since we don't use it.
92835
92836 2000-12-26  Jim Meyering  <meyering@lucent.com>
92837
92838         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
92839         better with autoheader.
92840
92841 2000-12-24  Jim Meyering  <meyering@lucent.com>
92842
92843         * lib/hash.c (is_prime): Return explicit boolean values.
92844         (hash_get_first): Return NULL to appease Irix5.6's 89.
92845         Reported by Nelson Beebe.
92846
92847 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
92848
92849         * lib/localcharset.c (locale_charset): Add support for Win32.
92850
92851 2000-12-18  Paul Eggert  <eggert@twinsun.com>
92852
92853         * lib/physmem.h, lib/physmem.c: New files.
92854
92855         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
92856         (noinst_HEADERS): Add physmem.h.
92857
92858         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
92859         't' for compatibility with Solaris 8 sort.
92860
92861 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
92862
92863         * lib/config.charset: Add support for BeOS.
92864
92865 2000-12-17  Jim Meyering  <meyering@lucent.com>
92866
92867         * m4/dos.m4 (jm_AC_DOS): New file and macro.
92868         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
92869
92870 2000-12-16  Jim Meyering  <meyering@lucent.com>
92871
92872         This bug had a serious impact on chown: `chown N:M FILE' (for integer
92873         N and M) would have treated it like `chown N:N FILE'.
92874
92875         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
92876
92877 2000-12-16  Jim Meyering  <meyering@lucent.com>
92878
92879         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
92880         SHELLS_FILE to a file name that's useful on djgpp systems.
92881         Include stdlib.h.
92882         (ADDITIONAL_DEFAULT_SHELLS): Define.
92883         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
92884         Based mostly on a patch from Prashant TR.
92885
92886 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
92887
92888         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
92889         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
92890         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
92891
92892 2000-12-08  Andreas Schwab  <schwab@suse.de>
92893
92894         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
92895         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
92896
92897 2000-12-07  Jim Meyering  <meyering@lucent.com>
92898
92899         * lib/stripslash.c (ISSLASH): Define.
92900         (strip_trailing_slashes): Use ISSLASH rather than comparing against
92901         `/'.
92902         From Prashant TR.
92903
92904         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
92905         (dir_name_r): Declare this function as static.
92906         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
92907         manifest itself on a name containing a mix of slashes and
92908         backslashes.
92909         Make this function work with names starting with a DOS-style
92910         drive letter and colon prefix.
92911         (dir_name): Append `.' if necessary.
92912         Based mostly on patches from Prashant TR and Eli Zaretskii.
92913
92914         * lib/dirname.h (dir_name_r): Remove prototype.
92915
92916 2000-12-06  Paul Eggert  <eggert@twinsun.com>
92917
92918         * m4/off_t-format.m4: Remove this file.
92919         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
92920
92921 2000-12-06  Jim Meyering  <meyering@lucent.com>
92922
92923         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
92924         replacement strtoull, we may well need the replacement strtoul, too.
92925         Check for declarations of strtoul and strtoull.
92926         Check for strtol.  Mainly as a cue to cause automake to include
92927         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
92928         Check for limits.h -- strtol.c needs it.
92929
92930 2000-12-05  Jim Meyering  <meyering@lucent.com>
92931
92932         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
92933
92934 2000-12-04  Jim Meyering  <meyering@lucent.com>
92935
92936         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
92937         Also include memory.h, stdlib.h, unistd.h if appropriate.
92938         Reported by Andreas Jaeger (conflicting declaration of malloc).
92939
92940 2000-12-02  Jim Meyering  <meyering@lucent.com>
92941
92942         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
92943         * m4/jm-macros.m4 (jm_MACROS): require it.
92944
92945 2000-12-02  Jim Meyering  <meyering@lucent.com>
92946
92947         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
92948
92949 2000-12-01  Paul Eggert  <eggert@twinsun.com>
92950
92951         * lib/memrchr.c: Include <config.h> before any system include file.
92952
92953 2000-11-30  Jim Meyering  <meyering@lucent.com>
92954
92955         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
92956
92957 2000-11-30  Jim Meyering  <meyering@lucent.com>
92958
92959         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
92960
92961 2000-11-29  Paul Eggert  <eggert@twinsun.com>
92962
92963         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
92964
92965 2000-11-26  Jim Meyering  <meyering@lucent.com>
92966
92967         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
92968
92969 2000-11-22  Paul Eggert  <eggert@twinsun.com>
92970
92971         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
92972         size of (size_t) -1; it's not portable.
92973
92974 2000-11-17  Jim Meyering  <meyering@lucent.com>
92975
92976         * lib/strstr.c: Update from GNU libc.
92977
92978 2000-11-17  Akim Demaille  <akim@epita.fr>
92979
92980         * lib/obstack.h: Formatting changes.
92981         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
92982         prevent type checking.
92983         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
92984         cast the value to (void *): assigning a `foo *' to a `void *'
92985         variable is valid.
92986         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
92987
92988 2000-11-16  Jim Meyering  <meyering@lucent.com>
92989
92990         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
92991
92992 2000-11-11  Jim Meyering  <meyering@lucent.com>
92993
92994         * lib/error.c: Add a couple #includes, merging from GNU libc version.
92995
92996 2000-11-10  Jim Meyering  <meyering@lucent.com>
92997
92998         * lib/obstack.h: Update from GNU libc.
92999         * lib/obstack.c: Likewise.
93000
93001 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
93002
93003         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
93004
93005 2000-11-06  Paul Eggert  <eggert@twinsun.com>
93006
93007         * lib/getusershell.c (setusershell): Use rewind rather than
93008         fseek/fseeko, to avoid configuration hassles with fseeko.
93009         Don't bother opening SHELLS_FILE if shellstream is NULL;
93010         it's not necessary.
93011
93012 2000-11-05  Jim Meyering  <meyering@lucent.com>
93013
93014         * lib/makepath.h (make_dir): Declare.
93015         * lib/makepath.c (make_dir): Remove `static' attribute.
93016         Tweak a comment.
93017
93018 2000-11-04  Jim Meyering  <meyering@lucent.com>
93019
93020         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
93021
93022 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
93023
93024         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
93025         last one in a bucket, advance to the next bucket.
93026
93027 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
93028
93029         * lib/fnmatch.c: Do not comment out all the code if we are using
93030         the GNU C library, because in some cases we are replacing buggy
93031         code in the GNU C library itself.
93032
93033 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
93034
93035         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
93036         (regex_compile): Catch bogus \(\1\).
93037
93038 2000-10-30  Paul Eggert  <eggert@twinsun.com>
93039
93040         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
93041         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
93042         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
93043
93044 2000-10-30  Paul Eggert  <eggert@twinsun.com>
93045
93046         * lib/error.h, getline.h, modechange.h:
93047         Remove "2000" from Copyright line, as the file hasn't been
93048         changed this year other than in the copyright notice.
93049
93050         * lib/xalloc.h: Add "2000" to Copyright line, as this file
93051         was changed this year.
93052
93053 2000-10-29  Jim Meyering  <meyering@lucent.com>
93054
93055         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
93056         renaming.
93057         * m4/ls-mntd-fs.m4: Likewise
93058
93059 2000-10-29  Jim Meyering  <meyering@lucent.com>
93060
93061         * lib/xstat.in: Fix grammar in comment.
93062
93063 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
93064
93065         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
93066         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
93067         doesn't define __restrict_arr.
93068
93069 2000-10-28  Jim Meyering  <meyering@lucent.com>
93070
93071         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
93072         (jm_PREREQ_MEMCHR): New function.
93073
93074 2000-10-28  Jim Meyering  <meyering@lucent.com>
93075
93076         * lib/memchr.c: Update from libc.
93077         Adjust for portability:
93078         [HAVE_STDLIB_H]: Include stdlib.h.
93079         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
93080         Undef __memchr, too.
93081         [!weak_alias]: Define __memchr to memchr.
93082
93083         * lib/regex.c: Update from libc.
93084         * lib/regex.h: Likewise.
93085         * lib/getopt1.c: Likewise.
93086         * lib/memcmp.c: Likewise.
93087
93088         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
93089         Avoid using fseek, when possible -- it's broken by design.
93090         Patch by Ulrich Drepper.
93091
93092 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
93093
93094         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
93095         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
93096         Giving in to popular pressure to shut up the compiler with casts.
93097
93098 2000-10-26  Jim Meyering  <meyering@lucent.com>
93099
93100         * lib/strftime.c: Update from libc.
93101
93102 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
93103
93104         * regex.c: More `unsigned char' -> `re_char' changes.
93105         Also change several `int' into `re_wchar_t'.
93106         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
93107         (PUSH_FAILURE_POINTER): Don't cast any more.
93108         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
93109         We want GCC to complain, since this piece of code makes
93110         re_match non-reentrant, which *should* be fixed.
93111         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
93112         (EXTEND_BUFFER): Use RETALLOC.
93113         (SET_LIST_BIT): Don't cast.
93114         (re_wchar_t): New type.
93115         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
93116         that those two functions will always properly return.
93117         (IMMEDIATE_QUIT_CHECK): Cast to void.
93118         (analyse_first): Use recursion rather than an explicit stack.
93119         (re_compile_fastmap): Can't fail anymore.
93120         (re_search_2): Don't check re_compile_fastmap for failure.
93121         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
93122         Now also sets the new value (passed in a new argument).
93123         (re_match_2_internal): Use it.
93124         Also, use a new var `reg' of type size_t when looping through regs
93125         rather than reuse the inappropriate `mcnt'.
93126
93127 2000-10-25  Jim Meyering  <meyering@lucent.com>
93128
93129         * lib/obstack.c: Update from libc.
93130
93131 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
93132
93133         * regex.c (regex_compile): Change the way of handling a range from
93134         a char less than 256 to a char not less than 256.
93135
93136 2000-10-24  Andrew Innes  <andrewi@gnu.org>
93137
93138         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
93139         NT-Emacs only.
93140         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
93141         so that re_search functions only quit when callers expect them to.
93142
93143 2000-10-23  Jim Meyering  <meyering@lucent.com>
93144
93145         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
93146         wrong.  That set_locale call must not have any side effects.
93147         From Paul Eggert.
93148
93149 2000-10-22  Jim Meyering  <meyering@lucent.com>
93150
93151         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
93152         [CYCLIC]: Remove now-unused definition.
93153
93154         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
93155         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
93156         Suggestion from Ulrich Drepper.
93157
93158 2000-10-21  Jim Meyering  <meyering@lucent.com>
93159
93160         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
93161         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
93162         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
93163
93164 2000-10-21  Jim Meyering  <meyering@lucent.com>
93165
93166         * lib/dirname.c (memrchr): Declare if necessary.
93167         (dir_name): Remove the restriction that there be no
93168         trailing slashes.  Now, this code skips past them, effectively
93169         ignoring them.
93170         [TEST_DIRNAME] (main): New unit tests.
93171
93172         * lib/memrchr.c: New file from GNU libc.
93173         Undef __memrchr, too.
93174         [!weak_alias]: Define __memrchr to memrchr.
93175         Guard weak_alias use with `#ifdef weak_alias'.
93176
93177 2000-10-21  Jim Meyering  <meyering@lucent.com>
93178
93179         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
93180         (dir_name): Use dir_name_r.
93181         * lib/dirname.h (dir_name_r): Declare it.
93182
93183 2000-10-17  Jim Meyering  <meyering@lucent.com>
93184
93185         * lib/quote.h (PARAMS): Define and use.
93186         Reported by Akim Demaille.
93187
93188         * lib/getopt.c: Update from libc.
93189
93190 2000-10-16  Jim Meyering  <meyering@lucent.com>
93191
93192         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
93193         setlocale.
93194         From Jan Fedak.
93195
93196 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
93197
93198         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
93199
93200 2000-09-25  Jim Meyering  <meyering@lucent.com>
93201
93202         * lib/md5.h (rol): Define (from GnuPG).
93203
93204         * lib/sha.c: Give credit (GnuPG) where due.
93205         (M): Use rol rather than open-coding it.
93206         Add a FIXME comment.
93207
93208 2000-09-21  Jim Meyering  <meyering@lucent.com>
93209
93210         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
93211         Reported by Michael Stone.
93212
93213 2000-09-20  Jim Meyering  <meyering@lucent.com>
93214
93215         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
93216         (noinst_HEADERS): Add sha.h.
93217         Based on code from Scott G. Miller and from GnuPG.
93218
93219 2000-09-18  Jim Meyering  <meyering@lucent.com>
93220
93221         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
93222         LIBS. Otherwise, everyone ends up linking with -lelf for some
93223         configurations.
93224         Reported by Mike Stone.
93225
93226 2000-09-15  Jim Meyering  <meyering@lucent.com>
93227
93228         * lib/regex.c: Update from libc.
93229
93230 2000-09-10  Jim Meyering  <meyering@lucent.com>
93231
93232         * lib/getopt.c (_getopt_internal): Update from glibc.
93233
93234 2000-09-09  Jim Meyering  <meyering@lucent.com>
93235
93236         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
93237         think it should be used as a general replacement for isascii.
93238         * lib/fnmatch.c: Likewise.
93239         * lib/mbswidth.c: Likewise
93240         * lib/regex.c: Likewise.
93241
93242         Don't use atoi.
93243         * lib/userspec.c: Include sys/param.h and limits.h.
93244         Include xstrtol.h.
93245         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
93246         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
93247         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
93248         UID, GID.  Check range.
93249
93250 2000-09-06  Jim Meyering  <meyering@lucent.com>
93251
93252         * lib/getopt.c (_getopt_internal): Update from glibc.
93253
93254 2000-08-30  Jim Meyering  <meyering@lucent.com>
93255
93256         * lib/strftime.c: Merge in changes from GNU libc.
93257
93258 2000-08-26  Jim Meyering  <meyering@lucent.com>
93259
93260         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
93261         * m4/fpending.m4: New file.
93262
93263 2000-08-26  Jim Meyering  <meyering@lucent.com>
93264
93265         * lib/closeout.c: Include "__fpending.h".
93266         (close_stdout_status): Return right away if there's nothing to flush.
93267
93268         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
93269         * lib/__fpending.c: New file.
93270         * lib/__fpending.h: New file.
93271
93272 2000-08-20  Jim Meyering  <meyering@lucent.com>
93273
93274         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
93275         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
93276         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
93277
93278 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
93279
93280         Improve fileutils installation on systems where running
93281         programs (like install) can't be unlinked.
93282         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
93283         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
93284
93285 2000-08-07  Paul Eggert  <eggert@twinsun.com>
93286
93287         Standardize on "memory exhausted" instead of "Memory exhausted"
93288         or "virtual memory exhausted".
93289         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
93290         "virtual memory exhausted".
93291         * lib/same.c (same_name): Invoke xalloc_die instead of printing
93292         our own message.
93293         * lib/userspec.c (parse_user_spec): Likewise.
93294         * lib/bumpalloc.h: comment fix
93295         * lib/same.c, userspec.c: Include xalloc.h.
93296
93297         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
93298         not char *const and pointing to a constant array.
93299         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
93300         (xrealloc): Comment fix.
93301
93302         * lib/userspec.c (parse_user_spec):
93303         Don't translate a message until just before returning,
93304         to avoid unnecessary translation.
93305
93306 2000-08-07  Jim Meyering  <meyering@lucent.com>
93307
93308         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
93309         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
93310         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
93311         getgroups.c, gethostname.c, getopt.h, group-member.c,
93312         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
93313         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
93314         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
93315         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
93316         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
93317         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
93318         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
93319         yesno.c: Back out Copyright date changes for each file with no change
93320         this year.  This eases coordination with other programs using the same
93321         source code modules.  From Paul Eggert.
93322
93323 2000-08-06  Paul Eggert  <eggert@twinsun.com>
93324
93325         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
93326         not char, for compatibility with glibc 2.1.3 strftime.c.
93327
93328 2000-08-03  Greg McGary  <greg@mcgary.org>
93329
93330         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
93331         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
93332         (EXTEND_BUFFER): Use them.
93333
93334 2000-08-01  Jim Meyering  <meyering@lucent.com>
93335
93336         * lib/dirname.c (ISSLASH): Define.
93337         (BACKSLASH_IS_PATH_SEPARATOR): Define.
93338         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
93339         both `\' and `/' may be use as path separators.
93340         Based on a patch from Prashant TR.
93341
93342 2000-07-31  Paul Eggert  <eggert@twinsun.com>
93343
93344         * lib/quotearg.c (quotearg_n_options): Don't make the initial
93345         slot vector a constant, since it might get modified.
93346
93347 2000-07-31  Jim Meyering  <meyering@lucent.com>
93348
93349         * lib/xmalloc.c: Use `virtual memory exhausted', not
93350         `Memory exhausted'.
93351         * lib/obstack.c (print_and_abort): Likewise.
93352
93353 2000-07-30  Paul Eggert  <eggert@twinsun.com>
93354
93355         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
93356         buffer, so that the caller can always quote one small
93357         component of a "memory exhausted" message in slot 0.
93358         From a suggestion by Jim Meyering.
93359
93360 2000-07-30  Jim Meyering  <meyering@lucent.com>
93361
93362         * lib/makepath.c (make_path): Quote the other instance, too.
93363
93364         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
93365         (STATIC_BUF_SIZE): Define.
93366         (quotearg_n_options): Use only statically allocated storage when
93367         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
93368         than STATIC_BUF_SIZE.
93369
93370 2000-07-29  Jim Meyering  <meyering@lucent.com>
93371
93372         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
93373         * lib/dirname.c (dir_name): Likewise.
93374
93375         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
93376         `/'.
93377
93378         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
93379         (dir_name): Assert that there are no trailing slashes.
93380
93381 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
93382
93383         * lib/mbswidth.h (mbswidth): Add a flags argument.
93384         (mbswidth): New declaration.
93385         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
93386         * lib/mbswidth.c (mbswidth): Add a flags argument.
93387         (mbsnwidth): New function.
93388
93389 2000-07-24  Jim Meyering  <meyering@lucent.com>
93390
93391         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
93392
93393 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93394
93395         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
93396
93397 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93398
93399         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
93400         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
93401         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
93402         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
93403         invoke multibyte primitives.
93404
93405 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93406
93407         * lib/quotearg.c:
93408         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
93409         so that mbstate_t is always defined.
93410
93411         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
93412         be 1 in at least one GCC installation, and this configuration
93413         error is likely to be common.  Ignoring MB_LEN_MAX hurts
93414         performance on hosts that have mbrtowc but have only unibyte
93415         locales, but I assume these hosts are rare.
93416
93417 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93418
93419         * lib/mbswidth.c (_XOPEN_SOURCE):
93420         Don't define; this causes problems on Solaris 7.
93421         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
93422
93423 2000-07-23  Jim Meyering  <meyering@lucent.com>
93424
93425         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
93426         too: getgrgid, getpwuid, getuid.
93427
93428 2000-07-23  Jim Meyering  <meyering@lucent.com>
93429
93430         * lib/basename.c (base_name): Add an assertion.
93431
93432 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
93433
93434         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
93435         shadow its mbsinit function.
93436
93437 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
93438
93439         * lib/mbswidth.h: New file.
93440         * lib/mbswidth.c: New file.
93441         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
93442         (noinst_HEADERS): Add mbswidth.h.
93443
93444 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
93445
93446         * lib/config.charset: Add support for FreeBSD. Improve support for
93447         HP-UX and IRIX 6.
93448
93449 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
93450
93451         * m4/mbswidth.m4: New file.
93452         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
93453
93454 2000-07-15  Jim Meyering  <meyering@lucent.com>
93455
93456         * lib/makepath.c: Include quote.h.
93457         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
93458         corresponding argument in a `quote (...)' call.
93459         Give better diagnostics.
93460
93461         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
93462         (noinst_HEADERS): Add quote.h.
93463
93464         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
93465         from tar's src/misc.c.
93466         * lib/quote.h: New file.  Prototypes for same.
93467
93468 2000-07-14  Paul Eggert  <eggert@twinsun.com>
93469
93470         From a suggestion by Bruno Haible.
93471         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
93472         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
93473         to decide whether to define the BeOS workaround macro;
93474         this adjusts to the change to AC_MBSTATE_T.
93475
93476 2000-07-14  Jim Meyering  <meyering@lucent.com>
93477
93478         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
93479         jm_AC_TYPE_UINTMAX_T.
93480
93481 2000-07-13  Paul Eggert  <eggert@twinsun.com>
93482
93483         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
93484
93485         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
93486         quotearg_buffer_restyled): Add support for
93487         clocale_quoting_style.  Undo previous change to
93488         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
93489         and "{RIGHT QUOTATION MARK}" msgids.
93490
93491 2000-07-10  Paul Eggert  <eggert@twinsun.com>
93492
93493         From a suggestion by Bruno Haible.
93494         * m4/mbstate_t.m4 (AC_MBSTATE_T):
93495         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
93496         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
93497         and mbstate_t, to a single-part test that simply defines mbstate_t.
93498         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
93499         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
93500
93501 2000-07-10  Jim Meyering  <meyering@lucent.com>
93502
93503         * m4/strerror_r.m4: Mirror the correction made in autoconf.
93504
93505         * m4/gnu-source.m4: Output to confdefs.h directly.
93506         Suggestion from Akim Demaille.
93507
93508 2000-07-09  Paul Eggert  <eggert@twinsun.com>
93509
93510         The old behavior of quoting `like this' doesn't look good with
93511         newer, ISO-style fonts.  See:
93512         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
93513
93514         Instead, quote "like this" by default.  Let the translator
93515         tailor the locale-specific quoting behavior by providing
93516         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
93517
93518         * lib/quotearg.c (N_): New macro.
93519         (gettext_default): New function.
93520         (quotearg_buffer_restyled): Use
93521         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
93522         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
93523
93524 2000-07-09  Jim Meyering  <meyering@lucent.com>
93525
93526         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
93527         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
93528
93529         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
93530         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
93531
93532 2000-07-09  Jim Meyering  <meyering@lucent.com>
93533
93534         * lib/Most files: Update copyright dates to include 2000.
93535
93536 2000-07-08  Jim Meyering  <meyering@lucent.com>
93537
93538         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
93539         if not defined.
93540         (xgethostname): Remove now-unnecessary #ifdef.
93541         Move declaration of `err' into loop where it's used.
93542
93543 2000-07-05  Paul Eggert  <eggert@twinsun.com>
93544         and Bruno Haible  <haible@clisp.cons.org>
93545
93546         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
93547         only if the test for an object-type mbstate_t fails.  This
93548         prevents us from mistakenly reporting that mbstate_t is a
93549         system object type after we "#define mbstate_t int" to work
93550         around its lack.
93551
93552 2000-07-05  Paul Eggert  <eggert@twinsun.com>
93553         and Bruno Haible  <haible@clisp.cons.org>
93554
93555         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
93556
93557 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93558
93559         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
93560         to strerror_r.
93561         Include <ctype.h> for use of isalpha.
93562
93563 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93564
93565         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
93566         by allocating a larger buffer. Test the gethostname return value for
93567         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
93568         returns an error and ENAMETOOLONG isn't defined.
93569
93570 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93571
93572         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
93573         dimension.
93574
93575 2000-07-04  Jim Meyering  <meyering@lucent.com>
93576
93577         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
93578         of the deprecated AC_CHECKING.
93579
93580 2000-07-04  Jim Meyering  <meyering@lucent.com>
93581
93582         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
93583         Reported by Bruno Haible.
93584
93585 2000-07-04  Jim Meyering  <meyering@lucent.com>
93586
93587         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
93588         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
93589         lacks mbrtowc.
93590
93591 2000-07-03  Paul Eggert  <eggert@twinsun.com>
93592
93593         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
93594         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
93595
93596 2000-07-03  Paul Eggert  <eggert@twinsun.com>
93597         and Bruno Haible  <haible@clisp.cons.org>
93598
93599         * lib/quotearg.c (mbrtowc):
93600         Assign to *pwc, and return 1 only if result is nonzero.
93601         (iswprint): Use ISPRINT when substituting our own mbrtowc.
93602
93603 2000-07-03  Jim Meyering  <meyering@lucent.com>
93604
93605         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
93606
93607 2000-07-03  Jim Meyering  <meyering@lucent.com>
93608
93609         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
93610         This is necessary to get a definition of e.g., UTMP_FILE on
93611         HP-UX 10.20.
93612         From Bob Proulx.
93613
93614 2000-07-02  Jim Meyering  <meyering@lucent.com>
93615
93616         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
93617
93618         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
93619         AC_LIBOBJ(function_name).
93620         * m4/chown.m4: Likewise.
93621         * m4/fnmatch.m4: Likewise.
93622         * m4/ftruncate.m4: Likewise.
93623         * m4/getgroups.m4: Likewise.
93624         * m4/getline.m4: Likewise.
93625         * m4/group-member.m4: Likewise.
93626         * m4/jm-macros.m4: Likewise.
93627         * m4/lstat.m4: Likewise.
93628         * m4/malloc.m4: Likewise.
93629         * m4/memcmp.m4: Likewise.
93630         * m4/nanosleep.m4: Likewise.
93631         * m4/putenv.m4: Likewise.
93632         * m4/realloc.m4: Likewise.
93633         * m4/regex.m4: Likewise.
93634         * m4/stat.m4: Likewise.
93635         * m4/strftime.m4: Likewise.
93636
93637 2000-07-02  Jim Meyering  <meyering@lucent.com>
93638
93639         * lib/quotearg.c (mbstate_t): Don't define here.
93640
93641 2000-07-02  Jim Meyering  <meyering@lucent.com>
93642
93643         * lib/nanosleep.c (SIGCONT): Define if not already defined.
93644
93645 2000-07-01  Jim Meyering  <meyering@lucent.com>
93646
93647         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
93648
93649 2000-07-01  Jim Meyering  <meyering@lucent.com>
93650
93651         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
93652         problem.
93653
93654 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
93655
93656         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
93657         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
93658
93659 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
93660
93661         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
93662         per change in ../m4/ls-mntd-fs.m4.
93663         (read_filesystem_list): Ignore symbolic links.
93664
93665 2000-06-29  Jim Meyering  <meyering@lucent.com>
93666
93667         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
93668         for declaration of strcmp.
93669
93670         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
93671
93672         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
93673         Avoid warning by casting result to `char *' to remove `const'.
93674
93675 2000-06-28  Jim Meyering  <meyering@lucent.com>
93676
93677         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
93678         included by quotearg.c, for which we perform this test.  From
93679         Bruno Haible.
93680
93681 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
93682
93683         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
93684         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
93685         <utmpx.h> exists, put readutmp.o into LIBOBJS.
93686
93687 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
93688
93689         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
93690
93691 2000-06-26  Paul Eggert  <eggert@twinsun.com>
93692
93693         savedir now sets errno on failure and invokes xmalloc to get memory.
93694         Fix a couple of other minor bugs while we're at it.
93695
93696         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
93697         (NAMLEN): Remove macro.
93698         (malloc, realloc): Remove decls.
93699         (stpcpy): Likewise.
93700         ("xalloc.h"): Include.
93701         (NAME_SIZE_DEFAULT): New macro.
93702         (savedir): Use xmalloc / xrealloc to allocate memory.
93703         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
93704         Skip "" directory entries.
93705         Use strlen to calculate directory entry length, since the old method
93706         is rarely used these days and isn't worth supporting.
93707         Don't use a pointer after freeing it.
93708         Check for integer overflow when calculating allocation size.
93709         Use memcpy to copy entries, instead of stpcpy.
93710         Set errno properly when returning NULL.
93711         Check for readdir error.
93712
93713 2000-06-26  Jim Meyering  <meyering@lucent.com>
93714
93715         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
93716
93717 2000-06-25  Jim Meyering  <meyering@lucent.com>
93718
93719         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
93720         Linux header bug when _XOPEN_SOURCE is defined to 500.
93721
93722 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
93723
93724         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
93725         deficiency.
93726
93727 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
93728
93729         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
93730         Include xalloc.h.
93731         Don't include <stdlib.h>.  Don't declare malloc, realloc.
93732
93733 2000-06-24  Jim Meyering  <meyering@lucent.com>
93734
93735         * m4/strerror_r.m4: Revive this file -- to try out an experimental
93736         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
93737         for which strerror does return char*, but which lacks a conveniently
93738         accessible declaration of the function.  If the compile-test says
93739         strerror_r doesn't work, then resort to a `run'-test that works on
93740         BeOS and segfaults on DEC Unix.
93741
93742 2000-06-24  Jim Meyering  <meyering@lucent.com>
93743
93744         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
93745
93746 2000-06-23  Paul Eggert  <eggert@twinsun.com>
93747
93748         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
93749         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
93750
93751 2000-06-23  Paul Eggert  <eggert@twinsun.com>
93752
93753         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
93754         (mbrtowc, mbstate_t): Define substitutes if
93755         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
93756         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
93757         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
93758
93759 2000-06-23  Jim Meyering  <meyering@lucent.com>
93760
93761         * m4/afs.m4: Add missing AC_MSG_RESULT.
93762         Reported by Bruno Haible.
93763
93764         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
93765         Suggestion from Bruno Haible.
93766
93767 2000-06-23  Jim Meyering  <meyering@lucent.com>
93768
93769         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
93770
93771 2000-06-21  Jim Meyering  <meyering@lucent.com>
93772
93773         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
93774
93775 2000-06-21  Jim Meyering  <meyering@lucent.com>
93776
93777         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
93778         (noinst_HEADERS): Add getstr.h.
93779
93780         * lib/getline.c (getstr): Move into a separate file.
93781         * lib/getstr.c (getstr): New file, extracted from getline.c, with
93782         the following changes: new parameter, delim2; both delim[12]
93783         parameters have type `int', not `char'.  The latter would lose
93784         with 8-bit delimiters.
93785         * lib/getstr.h: New file.
93786
93787 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
93788
93789         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
93790         than 1024, return a memory chunk of least possible size, instead
93791         of size PATH_MAX + 2. In the loop, increment the size proportionally.
93792         Use free/xmalloc instead of xrealloc to avoid copying for very long
93793         paths.
93794
93795 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
93796
93797         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
93798         the empty string.
93799
93800 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
93801
93802         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
93803         address, not strdup.  Include <stdlib.h> and don't declare free().
93804
93805 2000-06-19  Jim Meyering  <meyering@lucent.com>
93806
93807         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
93808
93809 2000-06-18  Jim Meyering  <meyering@lucent.com>
93810
93811         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
93812
93813         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
93814         `checking whether...' message to be consistent with that of the
93815         lstat test.
93816
93817 2000-06-18  Jim Meyering  <meyering@lucent.com>
93818
93819         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
93820         Besides, these days every porting target provides a mkdir function.
93821
93822         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
93823         needed. (this snippet comes from src/system.h).
93824
93825 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
93826
93827         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
93828
93829 2000-06-15  Paul Eggert  <eggert@twinsun.com>
93830
93831         * lib/human.c (adjust_value): New function.
93832         (human_readable_inexact): Apply rounding style even when
93833         printing approximate values.
93834
93835 2000-06-14  Paul Eggert  <eggert@twinsun.com>
93836
93837         * lib/human.c (human_readable_inexact): Allow an input block
93838         size that is not a multiple of the output block size, and vice versa.
93839         Reported by Piergiorgio Sartor.
93840
93841 2000-06-14  Paul Eggert  <eggert@twinsun.com>
93842
93843         * lib/getdate.y (get_date): Apply relative times after time
93844         zone indicator, not before.  Reported by Todd A. Jacobs.
93845
93846 2000-06-13  Jim Meyering  <meyering@lucent.com>
93847
93848         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
93849
93850         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
93851
93852 2000-06-12  Paul Eggert  <eggert@twinsun.com>
93853
93854         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
93855
93856 2000-06-12  Jim Meyering  <meyering@lucent.com>
93857
93858         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
93859         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
93860         optional argument.
93861         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
93862         the optional argument, `lib'.
93863
93864 2000-06-08  Jim Meyering  <meyering@lucent.com>
93865
93866         * m4/largefile.m4: Remove file (now that it's part of autoconf).
93867
93868 2000-06-04  Paul Eggert  <eggert@twinsun.com>
93869
93870         Rewrite largefile configuration so that we don't need to run
93871         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
93872         AC_CANONICAL_HOST in configure.in -- jmm]
93873
93874         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
93875         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
93876         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
93877         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
93878         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
93879         All uses changed.
93880         Instead of inspecting the output of getconf, try to compile the
93881         test program without and with the macro definition.
93882         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
93883         for getconf.  Instead, check for the needed flags by compiling
93884         test programs.
93885
93886 2000-06-04  Paul Eggert  <eggert@twinsun.com>
93887
93888         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
93889
93890 2000-06-04  Jim Meyering  <meyering@lucent.com>
93891
93892         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
93893         SunOS 4.1.4 for which gid_t is an unsigned type.
93894
93895 2000-06-03  Jim Meyering  <meyering@lucent.com>
93896
93897         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
93898         now that autoconf requires that.
93899
93900         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
93901         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
93902         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
93903
93904 2000-06-03  Jim Meyering  <meyering@lucent.com>
93905
93906         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
93907
93908 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
93909
93910         * m4/glibc21.m4: New file.
93911         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
93912
93913 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
93914
93915         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
93916         newer, don't install charset.alias.
93917         * lib/config.charset: Change the Linux/glibc rules so they become empty
93918         on glibc-2.1 or newer.
93919
93920 2000-06-02  Jim Meyering  <meyering@lucent.com>
93921
93922         * lib/mountlist.c: Back out last change.  Instead, do this...
93923         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
93924         me_dummy member using the same `ignore'-testing code.
93925         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
93926         fs_type strings.
93927         From Mark D. Roth.
93928
93929 2000-05-29  Jim Meyering  <meyering@lucent.com>
93930
93931         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
93932         mounts with the `ignore' attribute.  Based on a patch from
93933         Mark D. Roth.
93934
93935 2000-05-28  Jim Meyering  <meyering@lucent.com>
93936
93937         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
93938         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
93939         * m4/stat.m4: Likewise.
93940         * m4/lstat.m4: Likewise.
93941         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
93942
93943         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
93944         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
93945
93946 2000-05-26  Jim Meyering  <meyering@lucent.com>
93947
93948         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
93949
93950 2000-05-24  Jim Meyering  <meyering@lucent.com>
93951
93952         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
93953         autoconf requires that.
93954         * m4/lib-check.m4: Likewise.
93955         * m4/jm-macros.m4: Likewise.
93956         * m4/strftime.m4: Likewise.
93957
93958         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
93959         AC_CHECK_DECLS, now that autoconf requires that.
93960
93961 2000-05-22  Jim Meyering  <meyering@lucent.com>
93962
93963         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
93964         * m4/lstat.m4: Likewise.
93965
93966 2000-05-22  Jim Meyering  <meyering@lucent.com>
93967
93968         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
93969
93970 2000-05-20  Jim Meyering  <meyering@lucent.com>
93971
93972         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
93973         (jm_PREREQ): Use it.
93974
93975 2000-05-18  Jim Meyering  <meyering@lucent.com>
93976
93977         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
93978         back, too, since it may have been modified by allocate_entry.
93979         (hash_delete): Rewrite to use neither the assignment operator
93980         nor the comma operator in an if-expression.
93981
93982 2000-05-15  Paul Eggert  <eggert@twinsun.com>
93983
93984         * lib/closeout.c:
93985         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
93986         Remove; no longer needed.
93987         "quotearg.h": Add include.
93988         (file_name): Do not bother to explicitly initialize to NULL; it's less
93989         efficient on some hosts.
93990         (close_stdout_status): Remove test as to whether stdout was already
93991         closed; it breaks for the case "echo x | sort >&-".
93992         Quote file name colons.
93993         Do not assume that _("write error") lacks format strings.
93994
93995 2000-05-15  Jim Meyering  <meyering@lucent.com>
93996
93997         * lib/version-etc.c (version_etc_copyright): Update the copyright
93998         string used in all --version output.
93999
94000 2000-05-14  Jim Meyering  <meyering@lucent.com>
94001
94002         * lib/closeout.c (close_stdout_set_file_name): New function.
94003         (close_stdout_status): Use new file-scoped global.
94004         Return right away if fstat says the stdout file descriptor is invalid.
94005         * lib/closeout.h (close_stdout_set_file_name): Declare.
94006
94007 2000-05-10  Jim Meyering  <meyering@lucent.com>
94008
94009         * lib/closeout.c [default_exit_status]: New file-scoped variable.
94010         (close_stdout_set_status): New function.
94011         * lib/closeout.h (close_stdout_set_status): Declare.
94012
94013 2000-05-09  Jim Meyering  <meyering@lucent.com>
94014
94015         * m4/gettext.m4: Rename this...
94016         * m4/libintl.m4: ...to this.
94017
94018 2000-05-08  Jim Meyering  <meyering@lucent.com>
94019
94020         * lib/long-options.c: Don't include closeout.h.
94021         (parse_long_options): Don't call close_stdout for --version.
94022
94023 2000-05-06  Paul Eggert  <eggert@twinsun.com>
94024
94025         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
94026         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
94027         2.1.3 bug.  This avoids a clash when files like regex.c define
94028         _GNU_SOURCE.
94029
94030 2000-05-06  Jim Meyering  <meyering@lucent.com>
94031
94032         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
94033         (AC_REPLACE_FUNCS): Add strnlen.
94034
94035         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
94036         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
94037
94038         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
94039         AC_SEARCH_LIBS call for nanosleep.
94040         (LIB_NANOSLEEP): Set and AC_SUBST.
94041
94042 2000-05-06  Jim Meyering  <meyering@lucent.com>
94043
94044         * lib/strnlen.c: Undefine __strnlen and strnlen.
94045         [!weak_alias]: Define __strnlen to strnlen.
94046
94047         * lib/atexit.c: New file, from libiberty.
94048
94049 2000-05-06  Jim Meyering  <meyering@lucent.com>
94050
94051         * lib/closeout.c (close_stdout_status): Also check for errors on the
94052         stderr stream.
94053
94054 2000-05-05  Jim Meyering  <meyering@lucent.com>
94055
94056         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
94057         AC_SEARCH_LIBS call for clock_gettime.
94058         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
94059
94060         * m4/search-libs.m4: Update from autoconf.
94061
94062         su doesn't work on Solaris 2.6.
94063         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
94064         <shadow.h>.  Reported by Dragos Harabor.
94065
94066 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
94067
94068         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
94069         memcpy instead of xmalloc, xrealloc, path_concat.
94070         (locale_charset): Treat empty environment variables as absent.
94071         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
94072
94073 2000-05-04  Jim Meyering  <meyering@lucent.com>
94074
94075         * lib/getopt.c: Update from glibc.
94076         * lib/obstack.c: Likewise.
94077         * lib/obstack.h: Likewise.
94078         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
94079         file
94080
94081         * lib/regex.h: Likewise.
94082         * lib/strndup.c: Likewise.
94083         * lib/strnlen.c: New file, from glibc.
94084
94085 2000-05-03  Jim Meyering  <meyering@lucent.com>
94086
94087         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
94088
94089 2000-05-02  Paul Eggert  <eggert@twinsun.com>
94090
94091         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
94092         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
94093         compile-time test, rather than inspecting host and OS, to
94094         decide whether to define _LARGEFILE_SOURCE.
94095
94096 2000-05-01  Jim Meyering  <meyering@lucent.com>
94097
94098         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
94099
94100         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
94101         Based on a patch from Bruno Haible.
94102
94103 2000-05-01  Jim Meyering  <meyering@lucent.com>
94104
94105         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
94106
94107 2000-04-29  Jim Meyering  <meyering@lucent.com>
94108
94109         * lib/path-concat.c: Declare strdup only if it's not defined.
94110         * lib/canon-host.c: Likewise.
94111
94112 2000-04-28  Jim Meyering  <meyering@lucent.com>
94113
94114         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
94115         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
94116         is included first, then limits.h is included by locale.h by libintl.h.
94117         From John David Anglin.
94118
94119 2000-04-25  Jim Meyering  <meyering@lucent.com>
94120
94121         * lib/makepath.c (S_IRWXUGO): Define.
94122         (make_path): Always perform explicit chmod if MODE specifies any
94123         of the `special' permission bits.  Prompted by a bug report against
94124         install from Mate Wierdl and Joost van Baal.
94125
94126 2000-04-18  Jim Meyering  <meyering@lucent.com>
94127
94128         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
94129         (jm_PREREQ): Use it.
94130
94131 2000-04-18  Jim Meyering  <meyering@lucent.com>
94132
94133         * lib/README: New file.
94134
94135         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
94136         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
94137
94138 2000-04-17  Jim Meyering  <meyering@lucent.com>
94139
94140         Get it right :-)
94141         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
94142         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
94143         Suggestion from Akim Demaille.
94144
94145 2000-04-17  Jim Meyering  <meyering@lucent.com>
94146
94147         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
94148         the definition of it to rpl_strftime also defined-away the system's
94149         declaration.
94150
94151 2000-04-15  Jim Meyering  <meyering@lucent.com>
94152
94153         Use `C' to denote so-called `contiguous' files, the same way
94154         that tar does.
94155         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
94156         (ftypelet): Use S_ISCTG.
94157         From Michael Deutschmann.
94158
94159 2000-04-14  Jim Meyering  <meyering@lucent.com>
94160
94161         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
94162         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
94163         clobbered.
94164
94165 2000-04-14  Jim Meyering  <meyering@lucent.com>
94166
94167         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
94168
94169 2000-04-13  Jim Meyering  <meyering@lucent.com>
94170
94171         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
94172         AH_VERBATIM to insert required #ifndef into config.h.in.
94173         Suggestion from Akim Demaille.
94174
94175 2000-04-12  Jim Meyering  <meyering@lucent.com>
94176
94177         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
94178         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
94179         Christian Krackowizer.
94180
94181         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
94182         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
94183         (AC_SYS_LARGEFILE): Require.
94184         (AM_C_PROTOTYPES): Require.
94185
94186 2000-04-08  Jim Meyering  <meyering@lucent.com>
94187
94188         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
94189         names don't conflict.  Reported by Eli Zaretskii.
94190
94191 2000-04-07  Jim Meyering  <meyering@lucent.com>
94192
94193         * lib/putenv.c: Move inclusion of errno.h so it follows that of
94194         sys/types.h, to work around system header problems on AIX 3.2.5.
94195         From Bruno Haible.
94196
94197 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
94198
94199         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
94200         bug.  Deal with the different error behavior of Irix iconv.
94201
94202 2000-04-05  Paul Eggert  <eggert@twinsun.com>
94203
94204         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
94205         IRIX if the installer said otherwise.
94206
94207 2000-04-05  Jim Meyering  <meyering@lucent.com>
94208
94209         Portability tweaks required for ultrix4.3.
94210         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
94211         (jm_CHECK_DECLS): Add getutent to the list of functions.
94212         (_jm_DECL_HEADERS): Add utmpx.h.
94213         From John David Anglin.
94214
94215         * m4/strftime.m4: Back out the 2000-04-02 change.
94216         Instead of that change, simply undefine putenv in the test program.
94217
94218 2000-04-05  Jim Meyering  <meyering@lucent.com>
94219
94220         Portability tweaks required for ultrix4.3.
94221         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
94222         getutent.
94223         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
94224         * lib/canon-host.c: Declare strdup.
94225         * lib/path-concat.c: Likewise.
94226         From John David Anglin.
94227
94228 2000-04-04  Jim Meyering  <meyering@lucent.com>
94229
94230         Be more DOS 8.3-friendly.
94231         * lib/ref-add.sin: Renamed from ref-add.sed.in.
94232         * lib/ref-del.sin: Renamed from ref-del.sed.in.
94233         * lib/Makefile.am: Reflect renaming.
94234         Reported by Eli Zaretskii.
94235
94236         Use a temporary file name that won't clash with `charset.alias'
94237         in the DOS 8.3 name space.
94238         * lib/Makefile.am (charset_tmp): Define.
94239         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
94240         (uninstall-local): Likewise.
94241         Reported by Eli Zaretskii.
94242
94243 2000-04-03  Jim Meyering  <meyering@lucent.com>
94244
94245         * m4/gettext.m4: Fix typo in comment.
94246
94247         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
94248         textutils/configure.in).  Suggestion from Paul Eggert.
94249         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
94250
94251 2000-04-02  Paul Eggert  <eggert@twinsun.com>
94252
94253         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
94254         variable in the shell rather than using putenv, which isn't
94255         portable.  This avoids the configure-time inter-test dependency
94256         on the potentially-renamed putenv function.
94257
94258 2000-03-30  Paul Eggert  <eggert@twinsun.com>
94259
94260         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
94261         before checking struct stat.st_blksize, so that
94262         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
94263
94264 2000-03-29  Paul Eggert  <eggert@twinsun.com>
94265
94266         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
94267         since strftime.c uses HAVE_STRFTIME to decide whether to use
94268         the underlying strftime.
94269
94270 2000-03-29  Paul Eggert  <eggert@twinsun.com>
94271
94272         * lib/time/strftime.c (my_strftime): Make sure we call the system
94273         strftime, not ourselves, when invoking the underlying strftime.
94274
94275 2000-03-24  Jim Meyering  <meyering@lucent.com>
94276
94277         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
94278         (charset_alias): Define.
94279         (install-exec-local): Factor out common code.
94280         (uninstall-local): Split lines longer than 80.
94281         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
94282         (SUFFIXES): Define.
94283         (.sed.in.sed): New rule.  Don't redirect directly to $@.
94284         (CLEANFILES): Add ref-add.sed and ref-del.sed.
94285
94286 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
94287
94288         * lib/config.charset: Output a line containing "Packages using this
94289         file".
94290         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
94291         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
94292         ref-del.sed): New rules.
94293
94294 2000-03-17  Jim Meyering  <meyering@lucent.com>
94295
94296         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
94297         Otherwise, include <strings.h>
94298
94299 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
94300
94301         * lib/unicodeio.c (utf8_wctomb): New function.
94302         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
94303         format instead of in UCS-4 with platform dependent endianness.
94304
94305 2000-03-10  Jim Meyering  <meyering@lucent.com>
94306
94307         * m4/lib-check.m4: Look for getspnam in -lgen, too.
94308         From Marco Franzen.
94309
94310 2000-03-07  Paul Eggert  <eggert@twinsun.com>
94311
94312         * lib/savedir.c (savedir): Work even if directory size is
94313         negative; this can happen with some screwy NFS configurations.
94314
94315 2000-03-06  Jim Meyering  <meyering@lucent.com>
94316
94317         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
94318         if it's NULL (because we ran out of memory).  From Bruno Haible.
94319
94320 2000-03-05  Jim Meyering  <meyering@lucent.com>
94321
94322         * lib/localcharset.c ("path-concat.h"): Include.
94323         (get_charset_aliases): Use path_concat instead of ANSI string
94324         concatenation.
94325
94326         * lib/unicodeio.h (PARAMS): Define.
94327         Use it to guard prototype.
94328
94329 2000-03-04  Jim Meyering  <meyering@lucent.com>
94330
94331         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
94332         for lib/localcharset.c.
94333
94334 2000-03-04  Jim Meyering  <meyering@lucent.com>
94335
94336         * lib/Makefile.am (install-exec-local): Create $(libdir) before
94337         installing into it.
94338         (uninstall-local): Uncomment this rule so `make distcheck' works
94339         once again.
94340
94341         * lib/unicodeio.c (<errno.h>): Include it.
94342         (errno): Declare if not defined.
94343
94344         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
94345
94346         * lib/config.charset: New version, incorporating remarks from a linux
94347         i18n mailing list.  From Bruno Haible.
94348
94349 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
94350
94351         * m4/codeset.m4: New file.
94352         * m4/iconv.m4: New file.
94353         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
94354
94355 2000-03-03  Jim Meyering  <meyering@lucent.com>
94356
94357         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
94358
94359 2000-03-02  Jim Meyering  <meyering@lucent.com>
94360
94361         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
94362         the messages come out on separate lines.
94363
94364         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
94365         rather than jm_CHECK_DECLARATIONS.
94366         * m4/decl.m4: Remove now-unused file.
94367
94368         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
94369         geteuid.
94370
94371 2000-03-02  Jim Meyering  <meyering@lucent.com>
94372
94373         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
94374
94375 2000-03-01  Jim Meyering  <meyering@lucent.com>
94376
94377         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
94378         * lib/unicodeio.c: Likewise.
94379
94380 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
94381
94382         * lib/config.charset: New file.
94383         * lib/localcharset.c: New file.
94384         * lib/unicodeio.h, lib/unicodeio.c: New files.
94385         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
94386         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
94387         (noinst_HEADERS): Add unicodeio.h.
94388         (all-local, install-exec-local, charset.alias): New targets.
94389
94390 2000-02-28  Paul Eggert  <eggert@twinsun.com>
94391
94392         * lib/quotearg.c (ALERT_CHAR): New macro.
94393         (quotearg_buffer_restyled): Use it.
94394
94395 2000-02-27  Jim Meyering  <meyering@lucent.com>
94396
94397         * m4/check-decl.m4: Add getenv to the list.
94398
94399 2000-02-27  Jim Meyering  <meyering@lucent.com>
94400
94401         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
94402         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
94403
94404         * lib/backupfile.c: Guard inclusion of stdlib.h with
94405         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
94406         Declare malloc if needed.
94407
94408         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
94409         `#ifndef HAVE_DECL..'
94410         now that autoconf always defines the HAVE_DECL_ symbols.
94411         * lib/human.c: Likewise.
94412         * lib/same.c: Likewise.
94413         * lib/strtoumax.c: Likewise.
94414
94415         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
94416         declaration check was not run.
94417         * lib/hash.c: Likewise.
94418         * lib/human.c: Likewise.
94419         * lib/same.c: Likewise.
94420         * lib/strtoumax.c: Likewise.
94421
94422         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
94423         `.', then first look up the entire `.'-containing string as a login
94424         name.
94425
94426 2000-02-23  Jim Meyering  <meyering@lucent.com>
94427
94428         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
94429         in place of my hack.
94430
94431 2000-02-18  Paul Eggert  <eggert@twinsun.com>
94432
94433         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
94434         (textint): New typedef.
94435         (parser_control): Member year changed from int to textint.
94436         All uses changed.
94437         (YYSTYPE): Removed; replaced by %union with int and textint members.
94438         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
94439         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
94440         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
94441         (tSNUMBER, tUNUMBER): Now of type <textintval>.
94442         (date, number, to_year): Use width of number in digits, not its value,
94443         to determine whether it's a 2-digit year, or a 2-digit time.
94444         (yylex): Store number of digits of numeric tokens.
94445         Reported by John Kendall.
94446
94447         (parser_control): Changed from struct parser_control to typedef (for
94448         consistency).  All uses changed.
94449
94450         (tID): Removed; not used.
94451         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
94452
94453 2000-02-14  Paul Eggert  <eggert@twinsun.com>
94454
94455         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
94456         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
94457
94458 2000-02-12  Jim Meyering  <meyering@lucent.com>
94459
94460         * lib/userspec.c (ISDIGIT): Define it.
94461         (isdigit): Remove definition.
94462         (is_number): Use ISDIGIT, not isdigit.
94463         <libintl.h>: Include.
94464         (_ and N_): Define.
94465         (parse_user_spec): Mark translatable strings.
94466
94467 2000-02-10  Jim Meyering  <meyering@lucent.com>
94468
94469         With these changes, nanosleep.[ch] are finally enough like the other
94470         lib/* replacement files to compile on a few more losing systems.
94471
94472         * lib/nanosleep.h: Don't include config.h.
94473         Remove prototype from declaration of nanosleep.
94474         (PARAMS): Remove now-unneeded definition.
94475         * lib/nanosleep.c: #undef nanosleep.
94476         (rpl_nanosleep): Rename from nanosleep.
94477
94478 2000-02-10  Jim Meyering  <meyering@lucent.com>
94479
94480         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
94481         gnu_nanosleep to rpl_nanosleep.
94482
94483 2000-02-09  Jim Meyering  <meyering@lucent.com>
94484
94485         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
94486         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
94487
94488 2000-02-08  Akim Demaille  <akim@epita.fr>
94489
94490         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
94491         `[' and `]' and remove uses of `changequote'.
94492         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
94493         (AC_SYS_LARGEFILE): Likewise.
94494         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
94495         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
94496         of changequote.
94497         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
94498         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
94499         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
94500         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
94501
94502 2000-02-05  Jim Meyering  <meyering@lucent.com>
94503
94504         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
94505         Remove explicit use of AC_HEADER_TIME.  It is required by
94506         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
94507         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
94508         in autoconf whereby the expansion of the latter ended up preceding
94509         the expansion of its prerequisite, AC_HEADER_TIME.
94510         Reported by Volker Borchert.
94511
94512 2000-02-03  Jim Meyering  <meyering@lucent.com>
94513
94514         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
94515
94516 2000-02-03  Jim Meyering  <meyering@lucent.com>
94517
94518         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
94519         rather than with `#if HAVE_UTMPNAME'.
94520
94521 2000-02-02  Jim Meyering  <meyering@lucent.com>
94522
94523         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
94524         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
94525         Reported by Eli Zaretskii.
94526
94527 2000-02-01  Jim Meyering  <meyering@lucent.com>
94528
94529         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
94530
94531 2000-01-31  Jim Meyering  <meyering@lucent.com>
94532
94533         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
94534         functions.  Add the time.h and sys/time.h headers along with the
94535         AC_REQUIRE'ment of AC_HEADER_TIME.
94536
94537 2000-01-31  Jim Meyering  <meyering@lucent.com>
94538
94539         * lib/nanosleep.h (nanosleep): Guard declaration with
94540         `#if ! HAVE_DECL_NANOSLEEP'.
94541         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
94542         the declaration in that vendor's sys/timers.h.
94543         Reported by Christian Krackowizer.
94544
94545         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
94546         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
94547         (ISPRINT): Likewise.
94548         Reported by Tom Tromey.
94549
94550 2000-01-30  Jim Meyering  <meyering@lucent.com>
94551
94552         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
94553
94554         * m4/prereq.m4 (utmp_includes): Define.
94555         Check for ut_user and ut_name members in both struct utmpx
94556         and struct utmp.
94557
94558 2000-01-30  Jim Meyering  <meyering@lucent.com>
94559
94560         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
94561         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
94562         header files where only utmpx.ut_user is declared.
94563
94564         * lib/readutmp.h (UT_USER): Define.
94565
94566 2000-01-29  Jim Meyering  <meyering@lucent.com>
94567
94568         * m4/lib-check.m4: New file containing library-related checks from
94569         fileutils and sh-utils (textutils had none).
94570
94571 2000-01-28  Jim Meyering  <meyering@lucent.com>
94572
94573         * m4/perl.m4: Change format of warning message to look more like that
94574         from the missing script.  Suggestion from François Pinard.
94575
94576 2000-01-25  Jim Meyering  <meyering@lucent.com>
94577
94578         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
94579         well as time.h in the compile check.
94580         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
94581         Fix typo in cross-compiling case: s/yes/no/.
94582
94583 2000-01-23  Jim Meyering  <meyering@lucent.com>
94584
94585         * m4/jm-macros.m4: Move df-related tests here from
94586         fileutils/configure.in
94587
94588         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
94589         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
94590
94591         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
94592         s/space/ac_fsusage_space/.
94593         (jm_FILE_SYSTEM_USAGE): Take two parameters.
94594
94595         * m4/ftruncate.m4: New file (derived from part of
94596         fileutils/configure.in).
94597         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
94598         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
94599
94600         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
94601         AC_SUBST these here, rather than just in sh-util/configure.in, so
94602         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
94603         all the same.
94604         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
94605         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
94606         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
94607         (AC_SUBST(POW_LIBM)): Likewise.
94608         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
94609
94610 2000-01-23  Jim Meyering  <meyering@lucent.com>
94611
94612         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
94613         obstack.c.
94614
94615 2000-01-22  Jim Meyering  <meyering@lucent.com>
94616
94617         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
94618
94619         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
94620
94621         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
94622         configure.in
94623         (AC_CHECK_HEADERS): Likewise for sh-utils.
94624         (AC_CHECK_HEADERS): Likewise for textutils.
94625         Merge the three lists of headers.
94626
94627         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
94628         from fileutils' configure.in.
94629
94630         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
94631         code. Moved tests into their own function (_jm_DECL_HEADERS) in
94632         check-decl.m4.
94633
94634         * m4/check-decl.m4: Use #if rather than #ifdef.
94635         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
94636         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
94637         (_jm_DECL_HEADERS): Define new function.
94638         (jm_CHECK_DECLARATIONS): Require it.
94639
94640 2000-01-22  Jim Meyering  <meyering@lucent.com>
94641
94642         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
94643         [! HAVE_DECL_STRTOULL]: Declare strtoull.
94644         Required for some AIX systems.  Reported by Christian Krackowizer.
94645         [TESTING] (main): New function.
94646
94647         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
94648         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
94649         letters.
94650
94651         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
94652         iswprint.
94653
94654         * lib/strverscmp.c (ISDIGIT): Define.
94655         (strverscmp): Use ISDIGIT, not isdigit.
94656
94657 2000-01-19  Jim Meyering  <meyering@lucent.com>
94658
94659         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
94660         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
94661         defines `struct timespec' in <sys/time.h>
94662
94663         * m4/c-bs-a.m4: Remove uses of changequote altogether.
94664         Thanks to Akim for explaining.
94665
94666 2000-01-17  Paul Eggert  <eggert@twinsun.com>
94667
94668         * lib/nanosleep.c (nanosleep):
94669         Don't use SA_INTERRUPT to decide whether to call sigaction, as
94670         POSIX.1 doesn't require SA_INTERRUPT and some systems
94671         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
94672         it's been part of POSIX.1 since day 1 (in 1988).
94673
94674 2000-01-17  Jim Meyering  <meyering@lucent.com>
94675
94676         * lib/interlock: Remove unused file.  Reported by François Pinard.
94677
94678 2000-01-16  Paul Eggert  <eggert@twinsun.com>
94679
94680         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
94681         alert, backslash, formfeed, and vertical tab unnecessarily in
94682         shell quoting style.
94683
94684 2000-01-16  Jim Meyering  <meyering@lucent.com>
94685
94686         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
94687         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
94688         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
94689         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
94690
94691 2000-01-16  Jim Meyering  <meyering@lucent.com>
94692
94693         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
94694         because the latter didn't work.
94695
94696 2000-01-15  Jim Meyering  <meyering@lucent.com>
94697
94698         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
94699         (AC_REPLACE_FUNCS): Add memcpy and memset.
94700         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
94701         Add strpbrk.
94702         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
94703
94704 2000-01-12  Jim Meyering  <meyering@lucent.com>
94705
94706         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
94707         (jm_PREREQ): Use it.
94708         (jm_PREREQ_READUTMP): New macro.
94709         (jm_PREREQ): Use it.
94710
94711 2000-01-11  Paul Eggert  <eggert@twinsun.com>
94712
94713         Quote multibyte characters correctly.
94714         * m4/c-bs-a.m4: New file.
94715         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
94716         (jm_PREREQ): Use it.
94717
94718 2000-01-11  Paul Eggert  <eggert@twinsun.com>
94719
94720         * m4/uintmax_t.m4: Port to autoconf 2.13.
94721
94722 2000-01-08  Jim Meyering  <meyering@ascend.com>
94723
94724         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
94725         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
94726
94727 2000-01-04  Jim Meyering  <meyering@ascend.com>
94728
94729         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
94730         jm_STRUCT_DIRENT_D_TYPE.
94731         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
94732         jm_STRUCT_DIRENT_D_INO.
94733         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
94734         jm_STRUCT_UTIMBUF.
94735         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
94736         renamings.
94737         * m4/utime.m4: Likewise.
94738
94739         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
94740         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
94741
94742 2000-01-03  Paul Eggert  <eggert@twinsun.com>
94743
94744         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
94745         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
94746
94747 2000-01-02  Jim Meyering  <meyering@ascend.com>
94748
94749         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
94750         remember if this is necessary.
94751
94752 1999-12-26  Jim Meyering  <meyering@ascend.com>
94753
94754         * m4/jm-macros.m4: Use it here.
94755         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
94756
94757 1999-12-23  Jim Meyering  <meyering@ascend.com>
94758
94759         * m4/jm-macros.m4: Check for clock_gettime (moved from
94760         fileutils/configure.in)
94761         Check for gettimeofday.
94762
94763 1999-12-20  Jim Meyering  <meyering@ascend.com>
94764
94765         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
94766         autoconf-2.14a-1999-12-20.
94767
94768 1999-12-19  Jim Meyering  <meyering@ascend.com>
94769
94770         * m4/lstat-slash.m4: New file.
94771         * m4/jm-macros.m4: Use the new macro:
94772         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94773
94774 1999-12-07  Jim Meyering  <meyering@ascend.com>
94775
94776         * m4/perl.m4: Require that File::Compare be available, too.
94777         Too many systems seem to lack it.
94778
94779         * m4/strftime.m4: Add checks for most of the cpp macros tested in
94780         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
94781
94782 1999-11-18  Paul Eggert  <eggert@twinsun.com>
94783
94784         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
94785         problem with the QNX 4.25 shell, which doesn't propagate exit
94786         status of failed commands inside shell assignments.
94787
94788 1999-11-17  Jim Meyering  <meyering@ascend.com>
94789
94790         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
94791
94792 1999-11-07  Jim Meyering  <meyering@ascend.com>
94793
94794         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
94795
94796 1999-11-06  Jim Meyering  <meyering@ascend.com>
94797
94798         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
94799         * m4/jm-macros.m4 (jm_MACROS): Use it here.
94800
94801 1999-11-05  Jim Meyering  <meyering@ascend.com>
94802
94803         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
94804         configure.in of textutils, fileutils, and sh-utils into this one
94805         (shared between those packages) file.
94806         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
94807         AC_STRUCT_ST_BLKSIZE.
94808
94809 1999-11-03  Jim Meyering  <meyering@ascend.com>
94810
94811         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
94812         of AC_CHECK_TYPE checks includes unistd.h.
94813         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
94814         Suggestion from Akim Demaille.
94815
94816 1999-10-30  Jim Meyering  <meyering@ascend.com>
94817
94818         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
94819         m4-quoted string.
94820         * m4/ls-mntd-fs.m4: Likewise.
94821         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
94822         * m4/jm-winsz1.m4: Likewise.
94823
94824         * m4/const.m4: Remove file, since the fix made it into the experimental
94825         version of autoconf.
94826         * m4/mktime.m4: Likewise.
94827
94828         * m4/check-type.m4: Remove file, now that the latest version of
94829         AC_CHECK_TYPE takes a third arg to specify additional #includes.
94830
94831         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
94832         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
94833         AC_CHECK_TYPE.
94834
94835 1999-10-04  Jim Meyering  <meyering@ascend.com>
94836
94837         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
94838
94839 1999-09-22  Paul Eggert  <eggert@twinsun.com>
94840
94841         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
94842         2.95.1 bug with HP-UX 10.20.
94843
94844 1999-09-17  Jim Meyering  <meyering@ascend.com>
94845
94846         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
94847         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
94848         due to missing strdup (against sh-utils-2.0).
94849
94850 1999-08-29  Jim Meyering  <meyering@ascend.com>
94851
94852         * m4/jm-macros.m4: Require jm_BISON.
94853         * m4/bison.m4: New file.
94854
94855 1999-08-17  Paul Eggert  <eggert@twinsun.com>
94856
94857         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
94858         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
94859
94860 1999-08-05  Jim Meyering  <meyering@ascend.com>
94861
94862         * m4/getline.m4: Rename test file from conftestdata to conftest.data
94863         to avoid conflicts with `conftest' on 8+3 filesystems.
94864         Suggestion from Eli Zaretskii.
94865
94866 1999-08-04  Jim Meyering  <meyering@ascend.com>
94867
94868         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
94869         fileutils and sh-utils (textutils's getline test was inadequate).
94870         (AM_FUNC_GETLINE): Run this test.
94871         (AC_CHECK_FUNCS): Check for getdelim.
94872         Reported by Bob Proulx.
94873
94874 1999-08-02  Jim Meyering  <meyering@ascend.com>
94875
94876         * m4/jm-macros.m4: Add a comment.
94877
94878 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94879
94880         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
94881         <inttypes.h> defines strtoumax as a macro (and not as a
94882         function).
94883
94884 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94885
94886         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
94887         that we can shift, multiply and divide unsigned long long
94888         values; Ultrix cc can't do it.
94889
94890 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94891
94892         * m4/mktime.m4: New file, which is a preview of what should appear
94893         in the next public autoconf release.
94894
94895 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94896
94897         * m4/lfs.m4: Remove this file.
94898         * m4/largefile.m4: New file.  It contains the old contents of
94899         lfs.m4, except that all names with prefix AC_LFS have been
94900         changed to use the prefix AC_SYS_LARGEFILE instead, to be
94901         compatible with future autoconf versions.  Also, some minor m4
94902         quoting problems have been fixed.
94903
94904 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94905
94906         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
94907         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
94908         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
94909         and simplify the shell code.
94910
94911 1999-08-01  Jim Meyering  <meyering@ascend.com>
94912
94913         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
94914         m4.
94915
94916 1999-07-20  Jim Meyering  <meyering@ascend.com>
94917
94918         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
94919
94920 1999-07-15  Jim Meyering  <meyering@ascend.com>
94921
94922         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
94923
94924 1999-05-22  Jim Meyering  <meyering@ascend.com>
94925
94926         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
94927
94928 1999-05-20  Jim Meyering  <meyering@ascend.com>
94929
94930         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
94931         Add a colon after each `then' in case $4 is empty.
94932
94933 1999-05-16  Jim Meyering  <meyering@ascend.com>
94934
94935         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
94936
94937 1999-05-10  Jim Meyering  <meyering@ascend.com>
94938
94939         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
94940
94941         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
94942         AC_FUNC_MKTIME.
94943
94944 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
94945
94946         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
94947
94948 1999-05-04  Paul Eggert  <eggert@twinsun.com>
94949
94950         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
94951         not CPPFLAGS, so that linking works correctly in IRIX.
94952
94953 1999-04-30  Paul Eggert  <eggert@twinsun.com>
94954
94955         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
94956
94957 1999-04-20  Paul Eggert  <eggert@twinsun.com>
94958
94959         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
94960         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
94961         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
94962         jm_AC_TYPE_UNSIGNED_LONG_LONG.
94963         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
94964
94965         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
94966
94967 1999-04-20  Jim Meyering  <meyering@ascend.com>
94968
94969         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
94970         AC_REPLACE xstroull if necessary.  From Paul Eggert.
94971         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
94972
94973 1999-04-18  Jim Meyering  <meyering@ascend.com>
94974
94975         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
94976         * m4/jm-macros.m4: Use it.
94977
94978 1999-04-06  Jim Meyering  <meyering@ascend.com>
94979
94980         * m4/strftime.m4: Remove test for %f.
94981
94982 1999-03-29  Jim Meyering  <meyering@ascend.com>
94983
94984         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
94985         superset of the AC_TYPE_* checks in the textutils, fileutils,
94986         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
94987         AC_TYPE_PID_T.
94988
94989 1999-03-28  Jim Meyering  <meyering@ascend.com>
94990
94991         * m4/jm-macros.m4: Define GNU_PACKAGE here.
94992         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
94993         replaced e.g., in the *.sh files of the sh-utils.
94994
94995 1999-03-20  Jim Meyering  <meyering@ascend.com>
94996
94997         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
94998         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
94999         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
95000
95001 1999-03-19  Jim Meyering  <meyering@ascend.com>
95002
95003         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
95004
95005 1999-03-12  Jim Meyering  <meyering@ascend.com>
95006
95007         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
95008
95009 1999-03-07  Jim Meyering  <meyering@ascend.com>
95010
95011         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
95012         declared.
95013
95014 1999-02-17  Jim Meyering  <meyering@ascend.com>
95015
95016         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
95017         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
95018
95019 1999-02-07  Jim Meyering  <meyering@ascend.com>
95020
95021         * m4/group-member.m4: New file -- extracted from sh-utils'
95022         configure.in.
95023
95024         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
95025         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
95026
95027 1999-02-06  Jim Meyering  <meyering@ascend.com>
95028
95029         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
95030         * m4/fnmatch.m4: Likewise.
95031         * m4/getgroups.m4: Likewise.
95032         * m4/lstat.m4: Likewise.
95033         * m4/malloc.m4: Likewise.
95034         * m4/putenv.m4: Likewise.
95035         * m4/realloc.m4: Likewise.
95036         * m4/regex.m4: Likewise.
95037         * m4/stat.m4: Likewise.
95038         * m4/strftime.m4: Likewise.
95039         Suggestion from Alain Magloire.
95040
95041         * m4/chown.m4: Use `.$ac_objext', not `.o'.
95042         * m4/fnmatch.m4: Likewise.
95043         * m4/getgroups.m4: Likewise.
95044         * m4/getline.m4: Likewise.
95045         * m4/lstat.m4: Likewise.
95046         * m4/malloc.m4: Likewise.
95047         * m4/memcmp.m4: Likewise.
95048         * m4/putenv.m4: Likewise.
95049         * m4/realloc.m4: Likewise.
95050         * m4/regex.m4: Likewise.
95051         * m4/stat.m4: Likewise.
95052         * m4/strftime.m4: Likewise.
95053         Suggestion from Alain Magloire.
95054
95055         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
95056         an argument.
95057
95058         * m4/regex.m4: Add a run-time Test for proper operation of
95059         re_compile_pattern.
95060
95061 1999-01-31  Jim Meyering  <meyering@ascend.com>
95062
95063         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
95064
95065 1999-01-30  Jim Meyering  <meyering@ascend.com>
95066
95067         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
95068
95069         * m4/jm-mktime.m4: Make this a wrapper around the official
95070         AM_FUNC_MKTIME rather than my private copy, now that the official one
95071         is up to date.
95072         * m4/mktime.m4: Remove file.
95073
95074         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
95075         * m4/uptime.m4: Likewise.
95076         * m4/uintmax_t.m4: Likewise.
95077
95078 1999-01-28  Jim Meyering  <meyering@ascend.com>
95079
95080         * m4/jm-macros.m4: Use jm_AFS.
95081         * m4/afs.m4: New file (from fileutils' configure.in).
95082
95083         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
95084         * m4/chown.m4: Likewise.
95085         * m4/d-ino.m4: Likewise.
95086         * m4/d-type.m4: Likewise.
95087         * m4/fnmatch.m4: Likewise.
95088         * m4/getgroups.m4: Likewise.
95089         * m4/gettext.m4: Likewise.
95090         * m4/jm-mktime.m4: Likewise.
95091         * m4/jm-winsz2.m4: Likewise.
95092         * m4/lcmessage.m4: Likewise.
95093         * m4/ls-mntd-fs.m4: Likewise.
95094         * m4/malloc.m4: Likewise.
95095         * m4/memcmp.m4: Likewise.
95096         * m4/putenv.m4: Likewise.
95097         * m4/realloc.m4: Likewise.
95098         * m4/st_mtim.m4: Likewise.
95099         * m4/strftime.m4: Likewise.
95100
95101 1999-01-16  Jim Meyering  <meyering@ascend.com>
95102
95103         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
95104         (ARGMATCH_DIE_DECL): Define.
95105
95106 1999-01-12  Jim Meyering  <meyering@ascend.com>
95107
95108         * m4/Makefile.am.in: Rewrite to avoid using fmt.
95109         Reported by Lars Hecking.
95110
95111 1999-01-10  Jim Meyering  <meyering@ascend.com>
95112
95113         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
95114         gross kludge.
95115         * m4/inttypes_h.m4: Likewise.
95116         * m4/lstat.m4: Likewise.
95117         * m4/malloc.m4: Likewise.
95118         * m4/readdir.m4: Likewise.
95119         * m4/realloc.m4: Likewise.
95120         * m4/st_dm_mode.m4: Likewise.
95121         * m4/stat.m4: Likewise.
95122         * m4/utimbuf.m4: Likewise.
95123         * m4/utimes.m4: Likewise.
95124
95125         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
95126         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
95127         comments in config.h.in are meaningful.
95128
95129         * m4/jm-macros.m4: Require autoconf-2.13 here.
95130
95131         * m4/regex.m4: By default, don't use the included regex.c on systems
95132         with glibc 2.  Suggestion from Uli Drepper.
95133
95134 1999-01-02  Jim Meyering  <meyering@ascend.com>
95135
95136         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
95137
95138 1998-12-18  Jim Meyering  <meyering@ascend.com>
95139
95140         * m4/Makefile.am.in (Makefile.am): Simplify rule.
95141         Based on a suggestion from Lars Hecking.
95142
95143 1998-11-16  Paul Eggert  <eggert@twinsun.com>
95144
95145         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
95146
95147 1998-11-16  Jim Meyering  <meyering@ascend.com>
95148
95149         * m4/lfs.m4: Double-quote the `uname...` expression.
95150
95151 1998-11-14  Jim Meyering  <meyering@ascend.com>
95152
95153         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
95154         * m4/stat.m4: Likewise.
95155
95156 1998-11-03  Jim Meyering  <meyering@ascend.com>
95157
95158         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
95159         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
95160
95161 1998-10-18  Jim Meyering  <meyering@ascend.com>
95162
95163         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
95164
95165 1998-10-17  Jim Meyering  <meyering@ascend.com>
95166
95167         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
95168         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
95169         calls for those previously hard-coded headers.  Instead, take a new
95170         parameter.
95171         (jm_CHECK_DECLARATIONS): Reflect interface change.
95172         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
95173         (jm_CHECK_DECL_LOCALTIME_R): New macro.
95174
95175         * m4/mktime.m4: Test for spring-forward gap before long-running test.
95176
95177 1998-10-14  Jim Meyering  <meyering@ascend.com>
95178
95179         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
95180         instead of "TZ=America/Vancouver".  From Paul Eggert.
95181
95182 1998-10-11  Jim Meyering  <meyering@ascend.com>
95183
95184         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
95185         This adds a test for a recently added compatibility fix for mktime.c.
95186         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
95187
95188 1998-09-27  Jim Meyering  <meyering@ascend.com>
95189
95190         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
95191
95192         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
95193         ../configure.in, including a change from Gordon Matzigkeit to allow
95194         cross-compiling for the Hurd.
95195
95196         * m4/glibc.m4: New file/macro to test for the GNU C Library
95197         versions 1 and 2.  From Gordon Matzigkeit.
95198         Indent.
95199
95200 1998-09-21  Jim Meyering  <meyering@ascend.com>
95201
95202         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
95203
95204 1998-08-18  Paul Eggert  <eggert@twinsun.com>
95205
95206         Port nanosecond-resolution times to UnixWare 2.1.2 and
95207         pedantic Solaris 2.6.
95208
95209         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
95210         AC_STRUCT_ST_MTIM.
95211         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
95212         Generate name of ns member, instead of just 1 or undef.
95213         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
95214
95215 1998-08-15  Jim Meyering  <meyering@ascend.com>
95216
95217         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
95218         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
95219         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
95220         instead of jm_TYPE_SSIZE_T.
95221
95222 1998-08-12  Jim Meyering  <meyering@ascend.com>
95223
95224         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
95225
95226 1998-08-02  Jim Meyering  <meyering@ascend.com>
95227
95228         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
95229         in acconfig.h manually.
95230
95231 1998-07-31  Paul Eggert  <eggert@twinsun.com>
95232
95233         * m4/st_mtim.m4: New file.
95234
95235 1998-07-28  Jim Meyering  <meyering@ascend.com>
95236
95237         * m4/utimes.m4: Undef stat.
95238
95239 1998-07-25  Jim Meyering  <meyering@ascend.com>
95240
95241         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
95242         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
95243
95244 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
95245
95246         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
95247         uid and gid actually remain unchanged.
95248
95249 1998-07-07  Jim Meyering  <meyering@ascend.com>
95250
95251         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
95252
95253 1998-07-04  Jim Meyering  <meyering@ascend.com>
95254
95255         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
95256         to prove that this macro can be used in packages without regex.c.
95257
95258 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
95259
95260         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
95261         is to be used.
95262
95263 1998-07-03  Jim Meyering  <meyering@ascend.com>
95264
95265         * m4/gettext.m4: Add -lintl if it's found to be necessary.
95266
95267         * m4/gettext.m4: New file -- from gettext-0.10.35.
95268         * m4/lcmessage.m4: Likewise.
95269         * m4/progtest.m4: Likewise.
95270
95271         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
95272         * m4/jm-macros.m4: Require the new macro.
95273
95274 1998-06-29  Jim Meyering  <meyering@ascend.com>
95275
95276         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
95277         for the definition of NGROUPS (used in a system header included
95278         by sys/mount.h).
95279
95280 1998-06-28  Jim Meyering  <meyering@ascend.com>
95281
95282         * m4/ls-mntd-fs.m4: New file.
95283         * m4/fstypename.m4: New file.
95284
95285         * m4/jm-macros.m4: Require the new macro.
95286         * m4/jm-glibc-io.m4: New file.
95287
95288 1998-05-19  Jim Meyering  <meyering@ascend.com>
95289
95290         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
95291         * m4/lchown.m4: New file.
95292
95293         * m4/Makefile.am.in: New file.
95294         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
95295
95296 1998-05-14  Jim Meyering  <meyering@ascend.com>
95297
95298         * m4/Makefile.am (EXTRA_DIST): Add them.
95299         * m4/jm-macros.m4: New file.
95300         * m4/utimbuf.m4: New file.
95301
95302 1998-05-12  Jim Meyering  <meyering@ascend.com>
95303
95304         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
95305
95306 1998-05-11  Jim Meyering  <meyering@ascend.com>
95307
95308         * m4/isc-posix.m4: New file.
95309
95310 1998-05-10  Jim Meyering  <meyering@ascend.com>
95311
95312         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
95313
95314 1998-05-09  Jim Meyering  <meyering@ascend.com>
95315
95316         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
95317         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
95318         with automake.
95319
95320         * m4/ssize_t.m4: New file.
95321         * m4/mktime.m4: Remove file -- the new automake has this now.
95322
95323 1998-04-26  Jim Meyering  <meyering@ascend.com>
95324
95325         * m4/assert.m4: New file.
95326         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
95327
95328 1998-04-05  Jim Meyering  <meyering@ascend.com>
95329
95330         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
95331         (jm_PREREQ): Use it here.
95332
95333 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
95334
95335         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
95336         in acconfig.h.
95337
95338 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
95339
95340         * m4/prereq.m4: New file.
95341         * m4/error.m4: New file.
95342         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
95343
95344 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
95345
95346         * m4/getline.m4: Don't set am_cv_func_working_getline before the
95347         cache-check for the same variable -- that defeated the purpose of
95348         the test; the test program was never run.  This was a problem only
95349         on systems with losing getline functions -- HP-UX 10.20 is one.
95350         Reported by Bjorn Helgaas.
95351
95352 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
95353
95354         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
95355
95356 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
95357
95358         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
95359
95360         * m4/const.m4: New file.  Use an initializer in this declaration
95361         typedef int charset[2]; const charset x;
95362         Reported by Bob Glickstein.
95363
95364 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
95365
95366         * m4/chown.m4: Fix reversed types on -1 args to chown.
95367         From Kaveh Ghazi.
95368
95369 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
95370
95371         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
95372         Add lseek and memchr.
95373
95374         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
95375         T.E.Dickey <dickey@clark.net> said that some older preprocessors
95376         have a 20-character limit on names.
95377
95378 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
95379
95380         * m4/inttypes_h.m4: New file.
95381         * m4/uintmax_t.m4: New file.
95382         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
95383
95384
95385         -----
95386
95387         Local Variables:
95388         coding: utf-8
95389         End:
95390
95391         Copyright (C) 1997-2012 Free Software Foundation, Inc.
95392
95393         Copying and distribution of this file, with or without
95394         modification, are permitted provided the copyright notice
95395         and this notice are preserved.